GNU Linux-libre 4.19.264-gnu1
[releases.git] / arch / arm / boot / dts / bcm2836-rpi-2-b.dts
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3 #include "bcm2836.dtsi"
4 #include "bcm2835-rpi.dtsi"
5 #include "bcm283x-rpi-smsc9514.dtsi"
6 #include "bcm283x-rpi-usb-host.dtsi"
7
8 / {
9         compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
10         model = "Raspberry Pi 2 Model B";
11
12         memory {
13                 reg = <0 0x40000000>;
14         };
15
16         leds {
17                 act {
18                         gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
19                 };
20
21                 pwr {
22                         label = "PWR";
23                         gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
24                         default-state = "keep";
25                         linux,default-trigger = "default-on";
26                 };
27         };
28 };
29
30 &gpio {
31         pinctrl-0 = <&gpioout &alt0 &i2s_alt0>;
32
33         /* I2S interface */
34         i2s_alt0: i2s_alt0 {
35                 brcm,pins = <18 19 20 21>;
36                 brcm,function = <BCM2835_FSEL_ALT0>;
37         };
38 };
39
40 &hdmi {
41         hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
42 };
43
44 &pwm {
45         pinctrl-names = "default";
46         pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
47         status = "okay";
48 };
49
50 &uart0 {
51         pinctrl-names = "default";
52         pinctrl-0 = <&uart0_gpio14>;
53         status = "okay";
54 };