2 * Copyright (c) 2015 John Wehle <john@feith.com>
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * The ordering of certain devices is significant (e.g. usb depends on
31 * usb-phy which depends on gpio, also the timer should appear early on
32 * to provide a reasonably accurate DELAY implementation).
34 * Both usb-phys devices must be configured to prevent the usb controller
35 * from hanging during initialization.
40 /memreserve/ 0x7900000 0x00600000; /* 6MB frame buffer */
42 #include "meson8b.dtsi"
45 model = "hardkernel,odroid-c1";
46 compatible = "hardkernel,odroid-c1", "amlogic,s805";
58 device_type = "memory";
59 reg = <0x0 0x40000000>; /* 1GB RAM */
67 compatible = "arm,cortex-a5-scu";
68 reg = <0xc4300000 0x1000>;
71 cpuconfig: cpuconfig@d901ff80 {
72 compatible = "amlogic,aml8726-cpuconfig";
73 reg = <0xd901ff80 16>;
77 compatible = "amlogic,aml8726-ccm";
78 reg = <0xc1104140 20>; /* cbus 0x1050 */
80 functions = "ethernet", "i2c", "rng", "sdio", "sdxc",
81 "uart-a", "uart-b", "uart-c",
86 compatible = "amlogic,aml8726-pinctrl";
87 reg = <0xc11080b0 40>, /* mux */
88 <0xc11080e8 24>, /* pu/pd */
89 <0xc1108120 24>, /* pull enable */
90 <0xc8100014 4>, /* ao mux */
91 <0xc810002c 4>, /* ao pu/pd */
92 <0xc810002c 4>; /* ao pull enable */
95 * Currently only pin muxing that deviates
96 * from the power on default of gpio is
100 pinctrl-names = "default";
101 pinctrl-0 = <&pins_uartao &pins_ethernet &pins_hdmi>;
103 pins_ethernet: ethernet {
104 amlogic,pins = "ref_clk",
112 amlogic,function = "ethernet";
116 amlogic,pins = "cec", "hpd",
118 amlogic,function = "hdmi";
121 pins_sdio_b: sdio_b {
122 amlogic,pins = "clk", "cmd",
125 amlogic,function = "sdio-b";
129 pins_sdxc_b: sdxc_b {
130 amlogic,pins = "clk", "cmd",
133 amlogic,function = "sdxc-b";
137 pins_sdio_c: sdio_c {
138 amlogic,pins = "clk", "cmd",
141 amlogic,function = "sdio-c";
145 pins_sdxc_c: sdxc_c {
146 amlogic,pins = "clk", "cmd",
151 amlogic,function = "sdxc-c";
156 amlogic,pins = "scl", "sda";
157 amlogic,function = "i2c-a";
161 amlogic,pins = "scl", "sda";
162 amlogic,function = "i2c-b";
166 amlogic,pins = "tx", "rx", "cts", "rts";
167 amlogic,function = "uart-a";
173 * gpiox18 appears to have special
174 * meaning to the bootloader making
175 * hardware handshaking unavailable.
178 amlogic,pins = "tx", "rx";
179 amlogic,function = "uart-b";
183 amlogic,pins = "tx", "rx", "cts", "rts";
184 amlogic,function = "uart-c";
187 pins_uartao: uartao {
188 amlogic,pins = "tx", "rx";
189 amlogic,function = "uart-ao";
194 compatible = "amlogic,aml8726-rtc";
195 reg = <0xc8100740 20>; /* aobus 0x1d0 */
196 interrupts = <0 72 1>;
199 clkmsr: clkmsr@c1108758 {
200 compatible = "amlogic,aml8726-clkmsr";
201 reg = <0xc1108758 16>; /* cbus 0x21d6 */
206 gpioao: gpio@c8100024 {
208 compatible = "amlogic,aml8726-gpio";
209 reg = <0xc8100024 4>, /* oen aobus 0x9 */
210 <0xc8100024 4>, /* out */
211 <0xc8100028 4>; /* in */
218 gpio3: gpio@c1108054 {
219 compatible = "amlogic,aml8726-gpio";
220 reg = <0xc1108054 4>, /* oen cbus 0x2015 */
221 <0xc1108058 4>, /* out */
222 <0xc110805c 4>; /* in */
229 gpio5: gpio@c110806c {
230 compatible = "amlogic,aml8726-gpio";
231 reg = <0xc110806c 4>, /* oen cbus 0x201b */
232 <0xc1108070 4>, /* out */
233 <0xc1108074 4>; /* in */
241 compatible = "amlogic,aml8726-mmc";
242 reg = <0xc1108c20 32>; /* cbus 0x2308 */
243 interrupts = <0 28 1>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&pins_sdio_b>;
251 * Ordering is significant.
253 * mmc-vselect low sets first voltage
254 * mmc-vselect high sets second voltage
256 * If mmc-vselect is not present, then
257 * only one voltage should be specified.
259 mmc-voltages = "3.3", "1.8";
260 mmc-vselect = <&gpioao 3>; /* gpioao_3 */
262 mmc-pwr-en = <&gpio5 31 0>; /* card_8 */
263 ins-detect = <&gpio5 29 0>; /* card_6 */
267 compatible = "amlogic,aml8726-sdxc-m8";
268 clock-frequency = <1275000000>;
269 reg = <0xc1108e00 60>; /* cbus 0x2380 */
270 interrupts = <0 78 1>;
272 pinctrl-names = "default";
273 pinctrl-0 = <&pins_sdxc_c>;
275 mmc-voltages = "1.8";
277 mmc-rst = <&gpio3 9 0>; /* boot_9 emmc-rst */
281 compatible = "amlogic,aml8726-rng";
282 reg = <0xc1108100 8>; /* cbus 0x2040 */
287 compatible = "amlogic,aml8726-m8-usb-phy";
288 reg = <0xc1108800 32>; /* cbus 0x2200 */
290 usb-pwr-en = <&gpioao 5 1>; /* gpioao_5 vbus */
295 compatible = "amlogic,aml8726-m8-usb-phy";
296 reg = <0xc1108820 32>; /* cbus 0x2208 */
299 usb-hub-rst = <&gpioao 4 0>; /* gpioao_4 hub-rst */
304 compatible = "synopsys,designware-hs-otg2";
305 reg = <0xc9040000 0x40000>; /* ahbbus 0x40000*/
306 interrupts = <0 30 4>;
307 #address-cells = <1>;
315 compatible = "synopsys,designware-hs-otg2";
316 reg = <0xc90c0000 0x40000>; /* ahbbus 0xc0000 */
317 interrupts = <0 31 4>;
318 #address-cells = <1>;
326 compatible = "amlogic,meson6-dwmac";
327 reg = <0xc9410000 0x2000>; /* ahbbus 0x410000 */
328 interrupts = <0 8 1>;
329 #address-cells = <1>;
332 eth-phy-rst = <&gpio3 23 0>; /* gpioh_4 phy-rst */
335 screen: fb@c8006020 {
336 device_type = "display";
337 compatible = "amlogic,aml8726-fb";
338 reg = <0xc8006048 12>, /* CANVAS */
339 <0xc1106800 1024>, /* VIU */
340 <0xc1107400 1024>; /* VPP */
341 interrupts = <0 2 1>,
346 address = <0x7900000>; /* match memreserve */
355 compatible = "gpio-leds";
358 gpios = <&gpioao 13>; /* gpioao_13 sys_led */
370 clock-frequency = <0>;
375 current-speed = <115200>;