Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / sc16is752-spi1-overlay.dts
1 /dts-v1/;
2 /plugin/;
3
4 / {
5         compatible = "brcm,bcm2835";
6
7         fragment@0 {
8                 target = <&gpio>;
9                 __overlay__ {
10                         spi1_pins: spi1_pins {
11                                 brcm,pins = <19 20 21>;
12                                 brcm,function = <3>; /* alt4 */
13                         };
14
15                         spi1_cs_pins: spi1_cs_pins {
16                                 brcm,pins = <18>;
17                                 brcm,function = <1>; /* output */
18                         };
19                 };
20         };
21
22         fragment@1 {
23                 target = <&spi1>;
24                 __overlay__ {
25                         #address-cells = <1>;
26                         #size-cells = <0>;
27                         pinctrl-names = "default";
28                         pinctrl-0 = <&spi1_pins &spi1_cs_pins>;
29                         cs-gpios = <&gpio 18 1>;
30                         status = "okay";
31
32                         sc16is752: sc16is752@0 {
33                                 compatible = "nxp,sc16is752";
34                                 reg = <0>; /* CE0 */
35                                 clocks = <&sc16is752_clk>;
36                                 interrupt-parent = <&gpio>;
37                                 interrupts = <24 2>; /* IRQ_TYPE_EDGE_FALLING */
38                                 gpio-controller;
39                                 #gpio-cells = <2>;
40                                 spi-max-frequency = <4000000>;
41                         };
42                 };
43         };
44
45         fragment@2 {
46                 target = <&aux>;
47                 __overlay__ {
48                         status = "okay";
49                 };
50         };
51
52         fragment@3 {
53                 target-path = "/";
54                 __overlay__ {
55                         sc16is752_clk: sc16is752_spi1_0_clk {
56                                 compatible = "fixed-clock";
57                                 #clock-cells = <0>;
58                                 clock-frequency = <14745600>;
59                         };
60                 };
61         };
62
63         __overrides__ {
64                 int_pin = <&sc16is752>,"interrupts:0";
65                 xtal = <&sc16is752_clk>,"clock-frequency:0";
66         };
67 };