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