Commit | Line | Data |
---|---|---|
5f45cec4 SS |
1 | /* |
2 | * Device Tree Source for the Wheat board | |
3 | * | |
4 | * Copyright (C) 2016 Renesas Electronics Corporation | |
5 | * Copyright (C) 2016 Cogent Embedded, Inc. | |
6 | * | |
7 | * This file is licensed under the terms of the GNU General Public License | |
8 | * version 2. This program is licensed "as is" without any warranty of any | |
9 | * kind, whether express or implied. | |
10 | */ | |
11 | ||
12 | /dts-v1/; | |
13 | #include "r8a7792.dtsi" | |
0c157ad2 | 14 | #include <dt-bindings/gpio/gpio.h> |
fa8f4aba | 15 | #include <dt-bindings/input/input.h> |
5f45cec4 SS |
16 | |
17 | / { | |
18 | model = "Wheat"; | |
19 | compatible = "renesas,wheat", "renesas,r8a7792"; | |
20 | ||
21 | aliases { | |
22 | serial0 = &scif0; | |
23 | }; | |
24 | ||
25 | chosen { | |
1d9a17dd | 26 | bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
5f45cec4 SS |
27 | stdout-path = "serial0:115200n8"; |
28 | }; | |
29 | ||
30 | memory@40000000 { | |
31 | device_type = "memory"; | |
32 | reg = <0 0x40000000 0 0x40000000>; | |
33 | }; | |
1d9a17dd SS |
34 | |
35 | d3_3v: regulator-3v3 { | |
36 | compatible = "regulator-fixed"; | |
37 | regulator-name = "D3.3V"; | |
38 | regulator-min-microvolt = <3300000>; | |
39 | regulator-max-microvolt = <3300000>; | |
40 | regulator-boot-on; | |
41 | regulator-always-on; | |
42 | }; | |
43 | ||
44 | ethernet@18000000 { | |
45 | compatible = "smsc,lan89218", "smsc,lan9115"; | |
46 | reg = <0 0x18000000 0 0x100>; | |
47 | phy-mode = "mii"; | |
48 | interrupt-parent = <&irqc>; | |
49 | interrupts = <0 IRQ_TYPE_EDGE_FALLING>; | |
50 | smsc,irq-push-pull; | |
51 | smsc,save-mac-address; | |
52 | reg-io-width = <4>; | |
53 | vddvario-supply = <&d3_3v>; | |
54 | vdd33a-supply = <&d3_3v>; | |
55 | ||
56 | pinctrl-0 = <&lan89218_pins>; | |
57 | pinctrl-names = "default"; | |
58 | }; | |
0c157ad2 | 59 | |
fa8f4aba SS |
60 | keyboard { |
61 | compatible = "gpio-keys"; | |
62 | ||
63 | key-a { | |
64 | linux,code = <KEY_A>; | |
65 | label = "SW2"; | |
66 | wakeup-source; | |
67 | debounce-interval = <20>; | |
68 | gpios = <&gpio3 20 GPIO_ACTIVE_LOW>; | |
69 | }; | |
70 | key-b { | |
71 | linux,code = <KEY_B>; | |
72 | label = "SW3"; | |
73 | wakeup-source; | |
74 | debounce-interval = <20>; | |
75 | gpios = <&gpio11 2 GPIO_ACTIVE_LOW>; | |
76 | }; | |
77 | }; | |
78 | ||
0c157ad2 SS |
79 | vcc_sdhi0: regulator-vcc-sdhi0 { |
80 | compatible = "regulator-fixed"; | |
81 | ||
82 | regulator-name = "SDHI0 Vcc"; | |
83 | regulator-min-microvolt = <3300000>; | |
84 | regulator-max-microvolt = <3300000>; | |
85 | ||
86 | gpio = <&gpio11 12 GPIO_ACTIVE_HIGH>; | |
87 | enable-active-high; | |
88 | }; | |
5f45cec4 SS |
89 | }; |
90 | ||
91 | &extal_clk { | |
92 | clock-frequency = <20000000>; | |
93 | }; | |
94 | ||
95 | &pfc { | |
96 | scif0_pins: scif0 { | |
97 | groups = "scif0_data"; | |
98 | function = "scif0"; | |
99 | }; | |
1d9a17dd SS |
100 | |
101 | lan89218_pins: lan89218 { | |
102 | intc { | |
103 | groups = "intc_irq0"; | |
104 | function = "intc"; | |
105 | }; | |
106 | lbsc { | |
107 | groups = "lbsc_ex_cs0"; | |
108 | function = "lbsc"; | |
109 | }; | |
110 | }; | |
4ea71e6d SS |
111 | |
112 | can0_pins: can0 { | |
113 | groups = "can0_data"; | |
114 | function = "can0"; | |
115 | }; | |
116 | ||
117 | can1_pins: can1 { | |
118 | groups = "can1_data"; | |
119 | function = "can1"; | |
120 | }; | |
0c157ad2 SS |
121 | |
122 | sdhi0_pins: sdhi0 { | |
123 | groups = "sdhi0_data4", "sdhi0_ctrl"; | |
124 | function = "sdhi0"; | |
125 | }; | |
e678114f SS |
126 | |
127 | qspi_pins: qspi { | |
128 | groups = "qspi_ctrl", "qspi_data4"; | |
129 | function = "qspi"; | |
130 | }; | |
5f45cec4 SS |
131 | }; |
132 | ||
133 | &scif0 { | |
134 | pinctrl-0 = <&scif0_pins>; | |
135 | pinctrl-names = "default"; | |
136 | ||
137 | status = "okay"; | |
138 | }; | |
4ea71e6d SS |
139 | |
140 | &can0 { | |
141 | pinctrl-0 = <&can0_pins>; | |
142 | pinctrl-names = "default"; | |
143 | ||
144 | status = "okay"; | |
145 | }; | |
146 | ||
147 | &can1 { | |
148 | pinctrl-0 = <&can1_pins>; | |
149 | pinctrl-names = "default"; | |
150 | ||
151 | status = "okay"; | |
152 | }; | |
0c157ad2 SS |
153 | |
154 | &sdhi0 { | |
155 | pinctrl-0 = <&sdhi0_pins>; | |
156 | pinctrl-names = "default"; | |
157 | ||
158 | vmmc-supply = <&vcc_sdhi0>; | |
159 | cd-gpios = <&gpio11 11 GPIO_ACTIVE_LOW>; | |
160 | status = "okay"; | |
161 | }; | |
e678114f SS |
162 | |
163 | &qspi { | |
164 | pinctrl-0 = <&qspi_pins>; | |
165 | pinctrl-names = "default"; | |
166 | status = "okay"; | |
167 | ||
168 | flash@0 { | |
169 | compatible = "spansion,s25fl512s", "jedec,spi-nor"; | |
170 | reg = <0>; | |
171 | spi-max-frequency = <30000000>; | |
172 | spi-tx-bus-width = <4>; | |
173 | spi-rx-bus-width = <4>; | |
174 | spi-cpol; | |
175 | spi-cpha; | |
176 | m25p,fast-read; | |
177 | ||
178 | partitions { | |
179 | compatible = "fixed-partitions"; | |
180 | #address-cells = <1>; | |
181 | #size-cells = <1>; | |
182 | ||
183 | partition@0 { | |
184 | label = "loader"; | |
185 | reg = <0x00000000 0x00040000>; | |
186 | read-only; | |
187 | }; | |
188 | partition@40000 { | |
189 | label = "user"; | |
190 | reg = <0x00040000 0x00400000>; | |
191 | read-only; | |
192 | }; | |
193 | partition@440000 { | |
194 | label = "flash"; | |
195 | reg = <0x00440000 0x03bc0000>; | |
196 | }; | |
197 | }; | |
198 | }; | |
199 | }; |