Commit | Line | Data |
---|---|---|
4b37ab03 SS |
1 | /* |
2 | * Device Tree Source for the Henninger board | |
3 | * | |
4 | * Copyright (C) 2014 Renesas Solutions Corp. | |
5 | * Copyright (C) 2014 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 "r8a7791.dtsi" | |
1299df03 | 14 | #include <dt-bindings/gpio/gpio.h> |
4b37ab03 SS |
15 | |
16 | / { | |
17 | model = "Henninger"; | |
18 | compatible = "renesas,henninger", "renesas,r8a7791"; | |
19 | ||
20 | aliases { | |
21 | serial0 = &scif0; | |
22 | }; | |
23 | ||
24 | chosen { | |
26b0d2cf | 25 | bootargs = "console=ttySC0,38400 ignore_loglevel rw root=/dev/nfs ip=dhcp"; |
4b37ab03 SS |
26 | }; |
27 | ||
28 | memory@40000000 { | |
29 | device_type = "memory"; | |
30 | reg = <0 0x40000000 0 0x40000000>; | |
31 | }; | |
32 | ||
33 | memory@200000000 { | |
34 | device_type = "memory"; | |
35 | reg = <2 0x00000000 0 0x40000000>; | |
36 | }; | |
1299df03 SS |
37 | |
38 | vcc_sdhi0: regulator@0 { | |
39 | compatible = "regulator-fixed"; | |
40 | ||
41 | regulator-name = "SDHI0 Vcc"; | |
42 | regulator-min-microvolt = <3300000>; | |
43 | regulator-max-microvolt = <3300000>; | |
44 | regulator-always-on; | |
45 | }; | |
46 | ||
47 | vccq_sdhi0: regulator@1 { | |
48 | compatible = "regulator-gpio"; | |
49 | ||
50 | regulator-name = "SDHI0 VccQ"; | |
51 | regulator-min-microvolt = <1800000>; | |
52 | regulator-max-microvolt = <3300000>; | |
53 | ||
54 | gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>; | |
55 | gpios-states = <1>; | |
56 | states = <3300000 1 | |
57 | 1800000 0>; | |
58 | }; | |
59 | ||
60 | vcc_sdhi2: regulator@2 { | |
61 | compatible = "regulator-fixed"; | |
62 | ||
63 | regulator-name = "SDHI2 Vcc"; | |
64 | regulator-min-microvolt = <3300000>; | |
65 | regulator-max-microvolt = <3300000>; | |
66 | regulator-always-on; | |
67 | }; | |
68 | ||
69 | vccq_sdhi2: regulator@3 { | |
70 | compatible = "regulator-gpio"; | |
71 | ||
72 | regulator-name = "SDHI2 VccQ"; | |
73 | regulator-min-microvolt = <1800000>; | |
74 | regulator-max-microvolt = <3300000>; | |
75 | ||
76 | gpios = <&gpio2 26 GPIO_ACTIVE_HIGH>; | |
77 | gpios-states = <1>; | |
78 | states = <3300000 1 | |
79 | 1800000 0>; | |
80 | }; | |
4b37ab03 SS |
81 | }; |
82 | ||
2af0d937 SS |
83 | &extal_clk { |
84 | clock-frequency = <20000000>; | |
85 | }; | |
86 | ||
4b37ab03 SS |
87 | &pfc { |
88 | scif0_pins: serial0 { | |
89 | renesas,groups = "scif0_data_d"; | |
90 | renesas,function = "scif0"; | |
91 | }; | |
26b0d2cf SS |
92 | |
93 | ether_pins: ether { | |
94 | renesas,groups = "eth_link", "eth_mdio", "eth_rmii"; | |
95 | renesas,function = "eth"; | |
96 | }; | |
97 | ||
98 | phy1_pins: phy1 { | |
99 | renesas,groups = "intc_irq0"; | |
100 | renesas,function = "intc"; | |
101 | }; | |
1299df03 SS |
102 | |
103 | sdhi0_pins: sd0 { | |
104 | renesas,groups = "sdhi0_data4", "sdhi0_ctrl"; | |
105 | renesas,function = "sdhi0"; | |
106 | }; | |
107 | ||
108 | sdhi2_pins: sd2 { | |
109 | renesas,groups = "sdhi2_data4", "sdhi2_ctrl"; | |
110 | renesas,function = "sdhi2"; | |
111 | }; | |
f59838d4 SS |
112 | |
113 | qspi_pins: spi0 { | |
114 | renesas,groups = "qspi_ctrl", "qspi_data4"; | |
115 | renesas,function = "qspi"; | |
116 | }; | |
667366bf SS |
117 | |
118 | msiof0_pins: spi1 { | |
119 | renesas,groups = "msiof0_clk", "msiof0_sync", "msiof0_rx", | |
120 | "msiof0_tx"; | |
121 | renesas,function = "msiof0"; | |
122 | }; | |
4b37ab03 SS |
123 | }; |
124 | ||
125 | &scif0 { | |
126 | pinctrl-0 = <&scif0_pins>; | |
127 | pinctrl-names = "default"; | |
128 | ||
129 | status = "okay"; | |
130 | }; | |
26b0d2cf SS |
131 | |
132 | ðer { | |
133 | pinctrl-0 = <ðer_pins &phy1_pins>; | |
134 | pinctrl-names = "default"; | |
135 | ||
136 | phy-handle = <&phy1>; | |
137 | renesas,ether-link-active-low; | |
138 | status = "ok"; | |
139 | ||
140 | phy1: ethernet-phy@1 { | |
141 | reg = <1>; | |
142 | interrupt-parent = <&irqc0>; | |
143 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | |
144 | micrel,led-mode = <1>; | |
145 | }; | |
146 | }; | |
5a62ec57 SS |
147 | |
148 | &sata0 { | |
149 | status = "okay"; | |
150 | }; | |
1299df03 SS |
151 | |
152 | &sdhi0 { | |
153 | pinctrl-0 = <&sdhi0_pins>; | |
154 | pinctrl-names = "default"; | |
155 | ||
156 | vmmc-supply = <&vcc_sdhi0>; | |
157 | vqmmc-supply = <&vccq_sdhi0>; | |
158 | cd-gpios = <&gpio6 6 GPIO_ACTIVE_LOW>; | |
159 | wp-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; | |
160 | status = "okay"; | |
161 | }; | |
162 | ||
163 | &sdhi2 { | |
164 | pinctrl-0 = <&sdhi2_pins>; | |
165 | pinctrl-names = "default"; | |
166 | ||
167 | vmmc-supply = <&vcc_sdhi2>; | |
168 | vqmmc-supply = <&vccq_sdhi2>; | |
169 | cd-gpios = <&gpio6 22 GPIO_ACTIVE_LOW>; | |
170 | status = "okay"; | |
171 | }; | |
f59838d4 SS |
172 | |
173 | &qspi { | |
174 | pinctrl-0 = <&qspi_pins>; | |
175 | pinctrl-names = "default"; | |
176 | ||
177 | status = "okay"; | |
178 | ||
179 | flash@0 { | |
180 | #address-cells = <1>; | |
181 | #size-cells = <1>; | |
182 | compatible = "spansion,s25fl512s"; | |
183 | reg = <0>; | |
184 | spi-max-frequency = <30000000>; | |
185 | spi-tx-bus-width = <4>; | |
186 | spi-rx-bus-width = <4>; | |
187 | m25p,fast-read; | |
188 | ||
189 | partition@0 { | |
190 | label = "loader_prg"; | |
191 | reg = <0x00000000 0x00040000>; | |
192 | read-only; | |
193 | }; | |
194 | partition@40000 { | |
195 | label = "user_prg"; | |
196 | reg = <0x00040000 0x00400000>; | |
197 | read-only; | |
198 | }; | |
199 | partition@440000 { | |
200 | label = "flash_fs"; | |
201 | reg = <0x00440000 0x03bc0000>; | |
202 | }; | |
203 | }; | |
204 | }; | |
667366bf SS |
205 | |
206 | &msiof0 { | |
207 | pinctrl-0 = <&msiof0_pins>; | |
208 | pinctrl-names = "default"; | |
209 | ||
210 | status = "okay"; | |
211 | ||
212 | pmic@0 { | |
213 | compatible = "renesas,r2a11302ft"; | |
214 | reg = <0>; | |
215 | spi-max-frequency = <6000000>; | |
216 | spi-cpol; | |
217 | spi-cpha; | |
218 | }; | |
219 | }; |