]>
Commit | Line | Data |
---|---|---|
2f060b25 | 1 | /dts-v1/; |
2 | ||
3 | #include "bcm2709.dtsi" | |
4 | #include "bcm283x-rpi-smsc9514.dtsi" | |
5 | ||
6 | / { | |
3bd9ccf3 | 7 | compatible = "raspberrypi,2-model-b", "brcm,bcm2836"; |
2f060b25 | 8 | model = "Raspberry Pi 2 Model B"; |
9 | }; | |
10 | ||
11 | &gpio { | |
12 | spi0_pins: spi0_pins { | |
13 | brcm,pins = <9 10 11>; | |
14 | brcm,function = <4>; /* alt0 */ | |
15 | }; | |
16 | ||
17 | spi0_cs_pins: spi0_cs_pins { | |
18 | brcm,pins = <8 7>; | |
19 | brcm,function = <1>; /* output */ | |
20 | }; | |
21 | ||
22 | i2c0_pins: i2c0 { | |
23 | brcm,pins = <0 1>; | |
24 | brcm,function = <4>; | |
25 | }; | |
26 | ||
27 | i2c1_pins: i2c1 { | |
28 | brcm,pins = <2 3>; | |
29 | brcm,function = <4>; | |
30 | }; | |
31 | ||
32 | i2s_pins: i2s { | |
33 | brcm,pins = <18 19 20 21>; | |
34 | brcm,function = <4>; /* alt0 */ | |
35 | }; | |
36 | ||
37 | audio_pins: audio_pins { | |
38 | brcm,pins = <40 45>; | |
39 | brcm,function = <4>; | |
40 | }; | |
41 | }; | |
42 | ||
43 | &uart0 { | |
44 | status = "okay"; | |
45 | }; | |
46 | ||
47 | &spi0 { | |
48 | pinctrl-names = "default"; | |
49 | pinctrl-0 = <&spi0_pins &spi0_cs_pins>; | |
50 | cs-gpios = <&gpio 8 1>, <&gpio 7 1>; | |
51 | ||
52 | spidev0: spidev@0{ | |
53 | compatible = "spidev"; | |
54 | reg = <0>; /* CE0 */ | |
55 | #address-cells = <1>; | |
56 | #size-cells = <0>; | |
57 | spi-max-frequency = <125000000>; | |
58 | }; | |
59 | ||
60 | spidev1: spidev@1{ | |
61 | compatible = "spidev"; | |
62 | reg = <1>; /* CE1 */ | |
63 | #address-cells = <1>; | |
64 | #size-cells = <0>; | |
65 | spi-max-frequency = <125000000>; | |
66 | }; | |
67 | }; | |
68 | ||
69 | &i2c0 { | |
70 | pinctrl-names = "default"; | |
71 | pinctrl-0 = <&i2c0_pins>; | |
72 | clock-frequency = <100000>; | |
73 | }; | |
74 | ||
75 | &i2c1 { | |
76 | pinctrl-names = "default"; | |
77 | pinctrl-0 = <&i2c1_pins>; | |
78 | clock-frequency = <100000>; | |
79 | }; | |
80 | ||
81 | &i2c2 { | |
82 | clock-frequency = <100000>; | |
83 | }; | |
84 | ||
85 | &i2s { | |
86 | pinctrl-names = "default"; | |
87 | pinctrl-0 = <&i2s_pins>; | |
88 | }; | |
89 | ||
90 | &leds { | |
91 | act_led: act { | |
92 | label = "led0"; | |
93 | linux,default-trigger = "mmc0"; | |
94 | gpios = <&gpio 47 0>; | |
95 | }; | |
96 | ||
97 | pwr_led: pwr { | |
98 | label = "led1"; | |
99 | linux,default-trigger = "input"; | |
100 | gpios = <&gpio 35 0>; | |
101 | }; | |
102 | }; | |
103 | ||
104 | &hdmi { | |
105 | hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; | |
106 | }; | |
107 | ||
108 | &audio { | |
109 | pinctrl-names = "default"; | |
110 | pinctrl-0 = <&audio_pins>; | |
111 | }; | |
112 | ||
113 | / { | |
114 | __overrides__ { | |
115 | act_led_gpio = <&act_led>,"gpios:4"; | |
116 | act_led_activelow = <&act_led>,"gpios:8"; | |
117 | act_led_trigger = <&act_led>,"linux,default-trigger"; | |
118 | ||
119 | pwr_led_gpio = <&pwr_led>,"gpios:4"; | |
120 | pwr_led_activelow = <&pwr_led>,"gpios:8"; | |
121 | pwr_led_trigger = <&pwr_led>,"linux,default-trigger"; | |
122 | }; | |
123 | }; |