Commit | Line | Data |
---|---|---|
a9d281ca MR |
1 | /* |
2 | * Copyright 2012 Maxime Ripard | |
3 | * | |
4 | * Maxime Ripard <maxime.ripard@free-electrons.com> | |
5 | * | |
6 | * The code contained herein is licensed under the GNU General Public | |
7 | * License. You may obtain a copy of the GNU General Public License | |
8 | * Version 2 or later at the following locations: | |
9 | * | |
10 | * http://www.opensource.org/licenses/gpl-license.html | |
11 | * http://www.gnu.org/copyleft/gpl.html | |
12 | */ | |
13 | ||
14 | /dts-v1/; | |
15 | /include/ "sun4i-a10.dtsi" | |
16 | ||
17 | / { | |
18 | model = "Miniand Hackberry"; | |
19 | compatible = "miniand,hackberry", "allwinner,sun4i-a10"; | |
20 | ||
21 | chosen { | |
22 | bootargs = "earlyprintk console=ttyS0,115200"; | |
23 | }; | |
24 | ||
69144e3b | 25 | soc@01c20000 { |
d97a079a MR |
26 | emac: ethernet@01c0b000 { |
27 | pinctrl-names = "default"; | |
28 | pinctrl-0 = <&emac_pins_a>; | |
29 | phy = <&phy0>; | |
30 | status = "okay"; | |
31 | }; | |
32 | ||
33 | mdio@01c0b080 { | |
34 | phy-supply = <®_emac_3v3>; | |
35 | status = "okay"; | |
36 | ||
37 | phy0: ethernet-phy@0 { | |
38 | reg = <0>; | |
39 | }; | |
40 | }; | |
41 | ||
42 | pio: pinctrl@01c20800 { | |
43 | pinctrl-names = "default"; | |
44 | pinctrl-0 = <&hackberry_hogs>; | |
45 | ||
46 | hackberry_hogs: hogs@0 { | |
47 | allwinner,pins = "PH19"; | |
48 | allwinner,function = "gpio_out"; | |
49 | allwinner,drive = <0>; | |
50 | allwinner,pull = <0>; | |
51 | }; | |
52 | }; | |
53 | ||
b00adbe0 | 54 | uart0: serial@01c28000 { |
0dfd1dfc MR |
55 | pinctrl-names = "default"; |
56 | pinctrl-0 = <&uart0_pins_a>; | |
a9d281ca MR |
57 | status = "okay"; |
58 | }; | |
59 | }; | |
d97a079a MR |
60 | |
61 | regulators { | |
62 | compatible = "simple-bus"; | |
63 | ||
64 | reg_emac_3v3: emac-3v3 { | |
65 | compatible = "regulator-fixed"; | |
66 | regulator-name = "emac-3v3"; | |
67 | regulator-min-microvolt = <3300000>; | |
68 | regulator-max-microvolt = <3300000>; | |
69 | enable-active-high; | |
70 | gpio = <&pio 7 19 0>; | |
71 | }; | |
72 | }; | |
a9d281ca | 73 | }; |