diff options
Diffstat (limited to 'arch/arm/boot/dts/r8a7790-lager.dts')
-rw-r--r-- | arch/arm/boot/dts/r8a7790-lager.dts | 83 |
1 files changed, 80 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index d01048ab3e77..dd2fe46073f2 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts | |||
@@ -12,11 +12,17 @@ | |||
12 | /dts-v1/; | 12 | /dts-v1/; |
13 | #include "r8a7790.dtsi" | 13 | #include "r8a7790.dtsi" |
14 | #include <dt-bindings/gpio/gpio.h> | 14 | #include <dt-bindings/gpio/gpio.h> |
15 | #include <dt-bindings/input/input.h> | ||
15 | 16 | ||
16 | / { | 17 | / { |
17 | model = "Lager"; | 18 | model = "Lager"; |
18 | compatible = "renesas,lager", "renesas,r8a7790"; | 19 | compatible = "renesas,lager", "renesas,r8a7790"; |
19 | 20 | ||
21 | aliases { | ||
22 | serial6 = &scif0; | ||
23 | serial7 = &scif1; | ||
24 | }; | ||
25 | |||
20 | chosen { | 26 | chosen { |
21 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; | 27 | bootargs = "console=ttySC6,115200 ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
22 | }; | 28 | }; |
@@ -36,6 +42,39 @@ | |||
36 | #size-cells = <1>; | 42 | #size-cells = <1>; |
37 | }; | 43 | }; |
38 | 44 | ||
45 | gpio_keys { | ||
46 | compatible = "gpio-keys"; | ||
47 | |||
48 | button@1 { | ||
49 | linux,code = <KEY_1>; | ||
50 | label = "SW2-1"; | ||
51 | gpio-key,wakeup; | ||
52 | debounce-interval = <20>; | ||
53 | gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; | ||
54 | }; | ||
55 | button@2 { | ||
56 | linux,code = <KEY_2>; | ||
57 | label = "SW2-2"; | ||
58 | gpio-key,wakeup; | ||
59 | debounce-interval = <20>; | ||
60 | gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; | ||
61 | }; | ||
62 | button@3 { | ||
63 | linux,code = <KEY_3>; | ||
64 | label = "SW2-3"; | ||
65 | gpio-key,wakeup; | ||
66 | debounce-interval = <20>; | ||
67 | gpios = <&gpio1 26 GPIO_ACTIVE_LOW>; | ||
68 | }; | ||
69 | button@4 { | ||
70 | linux,code = <KEY_4>; | ||
71 | label = "SW2-4"; | ||
72 | gpio-key,wakeup; | ||
73 | debounce-interval = <20>; | ||
74 | gpios = <&gpio1 28 GPIO_ACTIVE_LOW>; | ||
75 | }; | ||
76 | }; | ||
77 | |||
39 | leds { | 78 | leds { |
40 | compatible = "gpio-leds"; | 79 | compatible = "gpio-leds"; |
41 | led6 { | 80 | led6 { |
@@ -112,7 +151,7 @@ | |||
112 | }; | 151 | }; |
113 | 152 | ||
114 | &pfc { | 153 | &pfc { |
115 | pinctrl-0 = <&du_pins &scif0_pins &scif1_pins>; | 154 | pinctrl-0 = <&du_pins>; |
116 | pinctrl-names = "default"; | 155 | pinctrl-names = "default"; |
117 | 156 | ||
118 | du_pins: du { | 157 | du_pins: du { |
@@ -155,10 +194,16 @@ | |||
155 | renesas,function = "mmc1"; | 194 | renesas,function = "mmc1"; |
156 | }; | 195 | }; |
157 | 196 | ||
158 | qspi_pins: spi { | 197 | qspi_pins: spi0 { |
159 | renesas,groups = "qspi_ctrl", "qspi_data4"; | 198 | renesas,groups = "qspi_ctrl", "qspi_data4"; |
160 | renesas,function = "qspi"; | 199 | renesas,function = "qspi"; |
161 | }; | 200 | }; |
201 | |||
202 | msiof1_pins: spi2 { | ||
203 | renesas,groups = "msiof1_clk", "msiof1_sync", "msiof1_rx", | ||
204 | "msiof1_tx"; | ||
205 | renesas,function = "msiof1"; | ||
206 | }; | ||
162 | }; | 207 | }; |
163 | 208 | ||
164 | ðer { | 209 | ðer { |
@@ -173,6 +218,7 @@ | |||
173 | reg = <1>; | 218 | reg = <1>; |
174 | interrupt-parent = <&irqc0>; | 219 | interrupt-parent = <&irqc0>; |
175 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | 220 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
221 | micrel,led-mode = <1>; | ||
176 | }; | 222 | }; |
177 | }; | 223 | }; |
178 | 224 | ||
@@ -190,7 +236,7 @@ | |||
190 | status = "okay"; | 236 | status = "okay"; |
191 | }; | 237 | }; |
192 | 238 | ||
193 | &spi { | 239 | &qspi { |
194 | pinctrl-0 = <&qspi_pins>; | 240 | pinctrl-0 = <&qspi_pins>; |
195 | pinctrl-names = "default"; | 241 | pinctrl-names = "default"; |
196 | 242 | ||
@@ -202,6 +248,8 @@ | |||
202 | compatible = "spansion,s25fl512s"; | 248 | compatible = "spansion,s25fl512s"; |
203 | reg = <0>; | 249 | reg = <0>; |
204 | spi-max-frequency = <30000000>; | 250 | spi-max-frequency = <30000000>; |
251 | spi-tx-bus-width = <4>; | ||
252 | spi-rx-bus-width = <4>; | ||
205 | m25p,fast-read; | 253 | m25p,fast-read; |
206 | 254 | ||
207 | partition@0 { | 255 | partition@0 { |
@@ -221,6 +269,35 @@ | |||
221 | }; | 269 | }; |
222 | }; | 270 | }; |
223 | 271 | ||
272 | &scif0 { | ||
273 | pinctrl-0 = <&scif0_pins>; | ||
274 | pinctrl-names = "default"; | ||
275 | |||
276 | status = "okay"; | ||
277 | }; | ||
278 | |||
279 | &scif1 { | ||
280 | pinctrl-0 = <&scif1_pins>; | ||
281 | pinctrl-names = "default"; | ||
282 | |||
283 | status = "okay"; | ||
284 | }; | ||
285 | |||
286 | &msiof1 { | ||
287 | pinctrl-0 = <&msiof1_pins>; | ||
288 | pinctrl-names = "default"; | ||
289 | |||
290 | status = "okay"; | ||
291 | |||
292 | pmic: pmic@0 { | ||
293 | compatible = "renesas,r2a11302ft"; | ||
294 | reg = <0>; | ||
295 | spi-max-frequency = <6000000>; | ||
296 | spi-cpol; | ||
297 | spi-cpha; | ||
298 | }; | ||
299 | }; | ||
300 | |||
224 | &sdhi0 { | 301 | &sdhi0 { |
225 | pinctrl-0 = <&sdhi0_pins>; | 302 | pinctrl-0 = <&sdhi0_pins>; |
226 | pinctrl-names = "default"; | 303 | pinctrl-names = "default"; |