Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / bcm2708-rpi-zero.dts
1 /dts-v1/;
2
3 #include "bcm2708.dtsi"
4 #include "bcm2708-rpi.dtsi"
5 #include "bcm283x-rpi-csi1-2lane.dtsi"
6 #include "bcm283x-rpi-i2c0mux_0_28.dtsi"
7
8 / {
9         compatible = "raspberrypi,model-zero", "brcm,bcm2835";
10         model = "Raspberry Pi Zero";
11
12         chosen {
13                 bootargs = "coherent_pool=1M snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1";
14         };
15 };
16
17 &gpio {
18         /*
19          * This is based on the official GPU firmware DT blob.
20          *
21          * Legend:
22          * "NC" = not connected (no rail from the SoC)
23          * "FOO" = GPIO line named "FOO" on the schematic
24          * "FOO_N" = GPIO line named "FOO" on schematic, active low
25          */
26         gpio-line-names = "ID_SDA",
27                           "ID_SCL",
28                           "SDA1",
29                           "SCL1",
30                           "GPIO_GCLK",
31                           "GPIO5",
32                           "GPIO6",
33                           "SPI_CE1_N",
34                           "SPI_CE0_N",
35                           "SPI_MISO",
36                           "SPI_MOSI",
37                           "SPI_SCLK",
38                           "GPIO12",
39                           "GPIO13",
40                           /* Serial port */
41                           "TXD0",
42                           "RXD0",
43                           "GPIO16",
44                           "GPIO17",
45                           "GPIO18",
46                           "GPIO19",
47                           "GPIO20",
48                           "GPIO21",
49                           "GPIO22",
50                           "GPIO23",
51                           "GPIO24",
52                           "GPIO25",
53                           "GPIO26",
54                           "GPIO27",
55                           "SDA0",
56                           "SCL0",
57                           "NC", /* GPIO30 */
58                           "NC", /* GPIO31 */
59                           "CAM_GPIO1", /* GPIO32 */
60                           "NC", /* GPIO33 */
61                           "NC", /* GPIO34 */
62                           "NC", /* GPIO35 */
63                           "NC", /* GPIO36 */
64                           "NC", /* GPIO37 */
65                           "NC", /* GPIO38 */
66                           "NC", /* GPIO39 */
67                           "NC", /* GPIO40 */
68                           "CAM_GPIO0", /* GPIO41 */
69                           "NC", /* GPIO42 */
70                           "NC", /* GPIO43 */
71                           "NC", /* GPIO44 */
72                           "NC", /* GPIO45 */
73                           "HDMI_HPD_N",
74                           "STATUS_LED_N",
75                           /* Used by SD Card */
76                           "SD_CLK_R",
77                           "SD_CMD_R",
78                           "SD_DATA0_R",
79                           "SD_DATA1_R",
80                           "SD_DATA2_R",
81                           "SD_DATA3_R";
82
83         spi0_pins: spi0_pins {
84                 brcm,pins = <9 10 11>;
85                 brcm,function = <4>; /* alt0 */
86         };
87
88         spi0_cs_pins: spi0_cs_pins {
89                 brcm,pins = <8 7>;
90                 brcm,function = <1>; /* output */
91         };
92
93         i2c0_pins: i2c0 {
94                 brcm,pins = <0 1>;
95                 brcm,function = <4>;
96         };
97
98         i2c1_pins: i2c1 {
99                 brcm,pins = <2 3>;
100                 brcm,function = <4>;
101         };
102
103         i2s_pins: i2s {
104                 brcm,pins = <18 19 20 21>;
105                 brcm,function = <4>; /* alt0 */
106         };
107
108         audio_pins: audio_pins {
109                 brcm,pins = <>;
110                 brcm,function = <>;
111         };
112 };
113
114 &uart0 {
115         status = "okay";
116 };
117
118 &spi0 {
119         pinctrl-names = "default";
120         pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
121         cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
122
123         spidev0: spidev@0{
124                 compatible = "spidev";
125                 reg = <0>;      /* CE0 */
126                 #address-cells = <1>;
127                 #size-cells = <0>;
128                 spi-max-frequency = <125000000>;
129         };
130
131         spidev1: spidev@1{
132                 compatible = "spidev";
133                 reg = <1>;      /* CE1 */
134                 #address-cells = <1>;
135                 #size-cells = <0>;
136                 spi-max-frequency = <125000000>;
137         };
138 };
139
140 &i2c0if {
141         clock-frequency = <100000>;
142 };
143
144 &i2c1 {
145         pinctrl-names = "default";
146         pinctrl-0 = <&i2c1_pins>;
147         clock-frequency = <100000>;
148 };
149
150 &i2c2 {
151         clock-frequency = <100000>;
152 };
153
154 &i2s {
155         pinctrl-names = "default";
156         pinctrl-0 = <&i2s_pins>;
157 };
158
159 &leds {
160         act_led: led-act {
161                 label = "led0";
162                 linux,default-trigger = "actpwr";
163                 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
164         };
165 };
166
167 &hdmi {
168         hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
169 };
170
171 &audio {
172         pinctrl-names = "default";
173         pinctrl-0 = <&audio_pins>;
174         brcm,disable-headphones = <1>;
175 };
176
177 &cam1_reg {
178         gpio = <&gpio 41 GPIO_ACTIVE_HIGH>;
179 };
180
181 cam0_reg: &cam_dummy_reg {
182 };
183
184 / {
185         __overrides__ {
186                 act_led_gpio = <&act_led>,"gpios:4";
187                 act_led_activelow = <&act_led>,"gpios:8";
188                 act_led_trigger = <&act_led>,"linux,default-trigger";
189         };
190 };