]>
Commit | Line | Data |
---|---|---|
dcadf59e HG |
1 | /* |
2 | * Copyright 2014 - Hans de Goede <hdegoede@redhat.com> | |
3 | * | |
4 | * The code contained herein is licensed under the GNU General Public | |
5 | * License. You may obtain a copy of the GNU General Public License | |
6 | * Version 2 or later at the following locations: | |
7 | * | |
8 | * http://www.opensource.org/licenses/gpl-license.html | |
9 | * http://www.gnu.org/copyleft/gpl.html | |
10 | */ | |
11 | ||
12 | /dts-v1/; | |
13 | /include/ "sun4i-a10.dtsi" | |
14 | /include/ "sunxi-common-regulators.dtsi" | |
15 | ||
16 | / { | |
17 | model = "Olimex A10-OLinuXino-LIME"; | |
18 | compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10"; | |
19 | ||
20 | soc@01c00000 { | |
21 | emac: ethernet@01c0b000 { | |
22 | pinctrl-names = "default"; | |
23 | pinctrl-0 = <&emac_pins_a>; | |
24 | phy = <&phy1>; | |
25 | status = "okay"; | |
26 | }; | |
27 | ||
28 | mdio@01c0b080 { | |
29 | status = "okay"; | |
30 | ||
31 | phy1: ethernet-phy@1 { | |
32 | reg = <1>; | |
33 | }; | |
34 | }; | |
35 | ||
c0955a86 HG |
36 | mmc0: mmc@01c0f000 { |
37 | pinctrl-names = "default"; | |
38 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; | |
a4da476b | 39 | vmmc-supply = <®_vcc3v3>; |
c0955a86 HG |
40 | bus-width = <4>; |
41 | cd-gpios = <&pio 7 1 0>; /* PH1 */ | |
42 | cd-inverted; | |
43 | status = "okay"; | |
44 | }; | |
45 | ||
dcadf59e HG |
46 | usbphy: phy@01c13400 { |
47 | usb1_vbus-supply = <®_usb1_vbus>; | |
48 | usb2_vbus-supply = <®_usb2_vbus>; | |
49 | status = "okay"; | |
50 | }; | |
51 | ||
52 | ehci0: usb@01c14000 { | |
53 | status = "okay"; | |
54 | }; | |
55 | ||
56 | ohci0: usb@01c14400 { | |
57 | status = "okay"; | |
58 | }; | |
59 | ||
60 | ahci: sata@01c18000 { | |
61 | target-supply = <®_ahci_5v>; | |
62 | status = "okay"; | |
63 | }; | |
64 | ||
65 | ehci1: usb@01c1c000 { | |
66 | status = "okay"; | |
67 | }; | |
68 | ||
69 | ohci1: usb@01c1c400 { | |
70 | status = "okay"; | |
71 | }; | |
72 | ||
73 | pinctrl@01c20800 { | |
74 | ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 { | |
75 | allwinner,pins = "PC3"; | |
76 | allwinner,function = "gpio_out"; | |
77 | allwinner,drive = <0>; | |
78 | allwinner,pull = <0>; | |
79 | }; | |
80 | ||
81 | led_pins_olinuxinolime: led_pins@0 { | |
82 | allwinner,pins = "PH2"; | |
83 | allwinner,function = "gpio_out"; | |
84 | allwinner,drive = <1>; | |
85 | allwinner,pull = <0>; | |
86 | }; | |
87 | }; | |
88 | ||
89 | uart0: serial@01c28000 { | |
90 | pinctrl-names = "default"; | |
91 | pinctrl-0 = <&uart0_pins_a>; | |
92 | status = "okay"; | |
93 | }; | |
94 | }; | |
95 | ||
96 | leds { | |
97 | compatible = "gpio-leds"; | |
98 | pinctrl-names = "default"; | |
99 | pinctrl-0 = <&led_pins_olinuxinolime>; | |
100 | ||
101 | green { | |
102 | label = "a10-olinuxino-lime:green:usr"; | |
103 | gpios = <&pio 7 2 0>; | |
104 | default-state = "on"; | |
105 | }; | |
106 | }; | |
107 | ||
108 | reg_ahci_5v: ahci-5v { | |
109 | pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>; | |
110 | gpio = <&pio 2 3 0>; | |
111 | status = "okay"; | |
112 | }; | |
113 | ||
114 | reg_usb1_vbus: usb1-vbus { | |
115 | status = "okay"; | |
116 | }; | |
117 | ||
118 | reg_usb2_vbus: usb2-vbus { | |
119 | status = "okay"; | |
120 | }; | |
121 | }; |