diff options
Diffstat (limited to 'arch/arm/dts/sun7i-a20-bananapi.dts')
-rw-r--r-- | arch/arm/dts/sun7i-a20-bananapi.dts | 141 |
1 files changed, 94 insertions, 47 deletions
diff --git a/arch/arm/dts/sun7i-a20-bananapi.dts b/arch/arm/dts/sun7i-a20-bananapi.dts index 67c8a7644b..81bc85d398 100644 --- a/arch/arm/dts/sun7i-a20-bananapi.dts +++ b/arch/arm/dts/sun7i-a20-bananapi.dts | |||
@@ -48,7 +48,6 @@ | |||
48 | 48 | ||
49 | #include <dt-bindings/gpio/gpio.h> | 49 | #include <dt-bindings/gpio/gpio.h> |
50 | #include <dt-bindings/interrupt-controller/irq.h> | 50 | #include <dt-bindings/interrupt-controller/irq.h> |
51 | #include <dt-bindings/pinctrl/sun4i-a10.h> | ||
52 | 51 | ||
53 | / { | 52 | / { |
54 | model = "LeMaker Banana Pi"; | 53 | model = "LeMaker Banana Pi"; |
@@ -64,10 +63,19 @@ | |||
64 | stdout-path = "serial0:115200n8"; | 63 | stdout-path = "serial0:115200n8"; |
65 | }; | 64 | }; |
66 | 65 | ||
66 | hdmi-connector { | ||
67 | compatible = "hdmi-connector"; | ||
68 | type = "a"; | ||
69 | |||
70 | port { | ||
71 | hdmi_con_in: endpoint { | ||
72 | remote-endpoint = <&hdmi_out_con>; | ||
73 | }; | ||
74 | }; | ||
75 | }; | ||
76 | |||
67 | leds { | 77 | leds { |
68 | compatible = "gpio-leds"; | 78 | compatible = "gpio-leds"; |
69 | pinctrl-names = "default"; | ||
70 | pinctrl-0 = <&led_pins_bananapi>; | ||
71 | 79 | ||
72 | green { | 80 | green { |
73 | label = "bananapi:green:usr"; | 81 | label = "bananapi:green:usr"; |
@@ -77,8 +85,6 @@ | |||
77 | 85 | ||
78 | reg_gmac_3v3: gmac-3v3 { | 86 | reg_gmac_3v3: gmac-3v3 { |
79 | compatible = "regulator-fixed"; | 87 | compatible = "regulator-fixed"; |
80 | pinctrl-names = "default"; | ||
81 | pinctrl-0 = <&gmac_power_pin_bananapi>; | ||
82 | regulator-name = "gmac-3v3"; | 88 | regulator-name = "gmac-3v3"; |
83 | regulator-min-microvolt = <3300000>; | 89 | regulator-min-microvolt = <3300000>; |
84 | regulator-max-microvolt = <3300000>; | 90 | regulator-max-microvolt = <3300000>; |
@@ -110,6 +116,10 @@ | |||
110 | >; | 116 | >; |
111 | }; | 117 | }; |
112 | 118 | ||
119 | &de { | ||
120 | status = "okay"; | ||
121 | }; | ||
122 | |||
113 | &ehci0 { | 123 | &ehci0 { |
114 | status = "okay"; | 124 | status = "okay"; |
115 | }; | 125 | }; |
@@ -120,7 +130,7 @@ | |||
120 | 130 | ||
121 | &gmac { | 131 | &gmac { |
122 | pinctrl-names = "default"; | 132 | pinctrl-names = "default"; |
123 | pinctrl-0 = <&gmac_pins_rgmii_a>; | 133 | pinctrl-0 = <&gmac_rgmii_pins>; |
124 | phy = <&phy1>; | 134 | phy = <&phy1>; |
125 | phy-mode = "rgmii"; | 135 | phy-mode = "rgmii"; |
126 | phy-supply = <®_gmac_3v3>; | 136 | phy-supply = <®_gmac_3v3>; |
@@ -131,9 +141,17 @@ | |||
131 | }; | 141 | }; |
132 | }; | 142 | }; |
133 | 143 | ||
144 | &hdmi { | ||
145 | status = "okay"; | ||
146 | }; | ||
147 | |||
148 | &hdmi_out { | ||
149 | hdmi_out_con: endpoint { | ||
150 | remote-endpoint = <&hdmi_con_in>; | ||
151 | }; | ||
152 | }; | ||
153 | |||
134 | &i2c0 { | 154 | &i2c0 { |
135 | pinctrl-names = "default"; | ||
136 | pinctrl-0 = <&i2c0_pins_a>; | ||
137 | status = "okay"; | 155 | status = "okay"; |
138 | 156 | ||
139 | axp209: pmic@34 { | 157 | axp209: pmic@34 { |
@@ -144,24 +162,19 @@ | |||
144 | }; | 162 | }; |
145 | 163 | ||
146 | &i2c2 { | 164 | &i2c2 { |
147 | pinctrl-names = "default"; | ||
148 | pinctrl-0 = <&i2c2_pins_a>; | ||
149 | status = "okay"; | 165 | status = "okay"; |
150 | }; | 166 | }; |
151 | 167 | ||
152 | &ir0 { | 168 | &ir0 { |
153 | pinctrl-names = "default"; | 169 | pinctrl-names = "default"; |
154 | pinctrl-0 = <&ir0_rx_pins_a>; | 170 | pinctrl-0 = <&ir0_rx_pin>; |
155 | status = "okay"; | 171 | status = "okay"; |
156 | }; | 172 | }; |
157 | 173 | ||
158 | &mmc0 { | 174 | &mmc0 { |
159 | pinctrl-names = "default"; | ||
160 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bananapi>; | ||
161 | vmmc-supply = <®_vcc3v3>; | 175 | vmmc-supply = <®_vcc3v3>; |
162 | bus-width = <4>; | 176 | bus-width = <4>; |
163 | cd-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */ | 177 | cd-gpios = <&pio 7 10 GPIO_ACTIVE_LOW>; /* PH10 */ |
164 | cd-inverted; | ||
165 | status = "okay"; | 178 | status = "okay"; |
166 | }; | 179 | }; |
167 | 180 | ||
@@ -178,32 +191,66 @@ | |||
178 | }; | 191 | }; |
179 | 192 | ||
180 | &pio { | 193 | &pio { |
181 | usb0_id_detect_pin: usb0_id_detect_pin@0 { | 194 | vcc-pa-supply = <®_vcc3v3>; |
182 | allwinner,pins = "PH4"; | 195 | vcc-pc-supply = <®_vcc3v3>; |
183 | allwinner,function = "gpio_in"; | 196 | vcc-pe-supply = <®_vcc3v3>; |
184 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 197 | vcc-pf-supply = <®_vcc3v3>; |
185 | allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; | 198 | vcc-pg-supply = <®_vcc3v3>; |
186 | }; | 199 | gpio-line-names = |
187 | 200 | /* PA */ | |
188 | mmc0_cd_pin_bananapi: mmc0_cd_pin@0 { | 201 | "ERXD3", "ERXD2", "ERXD1", "ERXD0", "ETXD3", |
189 | allwinner,pins = "PH10"; | 202 | "ETXD2", "ETXD1", "ETXD0", |
190 | allwinner,function = "gpio_in"; | 203 | "ERXCK", "ERXERR", "ERXDV", "EMDC", "EMDIO", |
191 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 204 | "ETXEN", "ETXCK", "ECRS", |
192 | allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; | 205 | "ECOL", "ETXERR", "", "", "", "", "", "", |
193 | }; | 206 | "", "", "", "", "", "", "", "", |
194 | 207 | /* PB */ | |
195 | gmac_power_pin_bananapi: gmac_power_pin@0 { | 208 | "PMU-SCK", "PMU-SDA", "", "", "", "", "", "", |
196 | allwinner,pins = "PH23"; | 209 | "", "USB0-DRV", "", "", "", "", "", "", |
197 | allwinner,function = "gpio_out"; | 210 | "", "", "", "", "SCL", "SDA", "", "", |
198 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 211 | "", "", "", "", "", "", "", "", |
199 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; | 212 | /* PC */ |
200 | }; | 213 | "", "", "", "", "", "", "", "", |
201 | 214 | "", "", "", "", "", "", "", "", | |
202 | led_pins_bananapi: led_pins@0 { | 215 | "", "", "", "", "", "", "", "", |
203 | allwinner,pins = "PH24"; | 216 | "", "", "", "", "", "", "", "", |
204 | allwinner,function = "gpio_out"; | 217 | /* PD */ |
205 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | 218 | "", "", "", "", "", "", "", "", |
206 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; | 219 | "", "", "", "", "", "", "", "", |
220 | "", "", "", "", "", "", "", "", | ||
221 | "", "", "", "", "", "", "", "", | ||
222 | /* PE */ | ||
223 | "", "", "", "", "", "", "", "", | ||
224 | "", "", "", "", "", "", "", "", | ||
225 | "", "", "", "", "", "", "", "", | ||
226 | "", "", "", "", "", "", "", "", | ||
227 | /* PF */ | ||
228 | "SD0-D1", "SD0-D0", "SD0-CLK", "SD0-CMD", "SD0-D3", | ||
229 | "SD0-D2", "", "", | ||
230 | "", "", "", "", "", "", "", "", | ||
231 | "", "", "", "", "", "", "", "", | ||
232 | "", "", "", "", "", "", "", "", | ||
233 | /* PG */ | ||
234 | "", "", "", "", "", "", "", "", | ||
235 | "", "", "", "", "", "", "", "", | ||
236 | "", "", "", "", "", "", "", "", | ||
237 | "", "", "", "", "", "", "", "", | ||
238 | /* PH */ | ||
239 | "TXD0", "RXD0", "IO-1", "PH3", "USB0-IDDET", "PH5", "", "", | ||
240 | "", "", "SD0-DET", "", "", "", "", "", | ||
241 | "", "", "", "", "IO-4", "IO-5", "", "EMAC-PWR-EN", | ||
242 | "LED1", "", "", "", "", "", "", "", | ||
243 | /* PI */ | ||
244 | "", "", "", "IO-GCLK", "", "", "", "", | ||
245 | "", "", "SPI-CE0", "SPI-CLK", "SPI-MOSI", | ||
246 | "SPI-MISO", "SPI-CE1", "", | ||
247 | "IO-6", "IO-3", "IO-2", "IO-0", "", "", "", "", | ||
248 | "", "", "", "", "", "", "", ""; | ||
249 | |||
250 | usb0_id_detect_pin: usb0-id-detect-pin { | ||
251 | pins = "PH4"; | ||
252 | function = "gpio_in"; | ||
253 | bias-pull-up; | ||
207 | }; | 254 | }; |
208 | }; | 255 | }; |
209 | 256 | ||
@@ -248,27 +295,27 @@ | |||
248 | 295 | ||
249 | &spi0 { | 296 | &spi0 { |
250 | pinctrl-names = "default"; | 297 | pinctrl-names = "default"; |
251 | pinctrl-0 = <&spi0_pins_a>, | 298 | pinctrl-0 = <&spi0_pi_pins>, |
252 | <&spi0_cs0_pins_a>, | 299 | <&spi0_cs0_pi_pin>, |
253 | <&spi0_cs1_pins_a>; | 300 | <&spi0_cs1_pi_pin>; |
254 | status = "okay"; | 301 | status = "okay"; |
255 | }; | 302 | }; |
256 | 303 | ||
257 | &uart0 { | 304 | &uart0 { |
258 | pinctrl-names = "default"; | 305 | pinctrl-names = "default"; |
259 | pinctrl-0 = <&uart0_pins_a>; | 306 | pinctrl-0 = <&uart0_pb_pins>; |
260 | status = "okay"; | 307 | status = "okay"; |
261 | }; | 308 | }; |
262 | 309 | ||
263 | &uart3 { | 310 | &uart3 { |
264 | pinctrl-names = "default"; | 311 | pinctrl-names = "default"; |
265 | pinctrl-0 = <&uart3_pins_b>; | 312 | pinctrl-0 = <&uart3_ph_pins>; |
266 | status = "okay"; | 313 | status = "okay"; |
267 | }; | 314 | }; |
268 | 315 | ||
269 | &uart7 { | 316 | &uart7 { |
270 | pinctrl-names = "default"; | 317 | pinctrl-names = "default"; |
271 | pinctrl-0 = <&uart7_pins_a>; | 318 | pinctrl-0 = <&uart7_pi_pins>; |
272 | status = "okay"; | 319 | status = "okay"; |
273 | }; | 320 | }; |
274 | 321 | ||