• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
36		mmc0: mmc@01c0f000 {
37			pinctrl-names = "default";
38			pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
39			vmmc-supply = <&reg_vcc3v3>;
40			bus-width = <4>;
41			cd-gpios = <&pio 7 1 0>; /* PH1 */
42			cd-inverted;
43			status = "okay";
44		};
45
46		usbphy: phy@01c13400 {
47			usb1_vbus-supply = <&reg_usb1_vbus>;
48			usb2_vbus-supply = <&reg_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 = <&reg_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		i2c0: i2c@01c2ac00 {
96			pinctrl-names = "default";
97			pinctrl-0 = <&i2c0_pins_a>;
98			status = "okay";
99
100			axp209: pmic@34 {
101				compatible = "x-powers,axp209";
102				reg = <0x34>;
103				interrupts = <0>;
104
105				interrupt-controller;
106				#interrupt-cells = <1>;
107			};
108		};
109	};
110
111	leds {
112		compatible = "gpio-leds";
113		pinctrl-names = "default";
114		pinctrl-0 = <&led_pins_olinuxinolime>;
115
116		green {
117			label = "a10-olinuxino-lime:green:usr";
118			gpios = <&pio 7 2 0>;
119			default-state = "on";
120		};
121	};
122
123	reg_ahci_5v: ahci-5v {
124		pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
125		gpio = <&pio 2 3 0>;
126		status = "okay";
127	};
128
129	reg_usb1_vbus: usb1-vbus {
130		status = "okay";
131	};
132
133	reg_usb2_vbus: usb2-vbus {
134		status = "okay";
135	};
136};
137