blob: 93af3069989517c09fbc38e63882451c3e2675d5 [file] [log] [blame]
Emilio López629ae882013-08-13 20:18:21 -03001/*
2 * Copyright 2013 Emilio López
3 *
4 * Emilio López <emilio@elopez.com.ar>
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"
Roman Byshko2428b6c2014-03-01 20:26:26 +010016/include/ "sunxi-common-regulators.dtsi"
Emilio López629ae882013-08-13 20:18:21 -030017
18/ {
19 model = "Mele A1000";
20 compatible = "mele,a1000", "allwinner,sun4i-a10";
21
Emilio López629ae882013-08-13 20:18:21 -030022 soc@01c00000 {
23 emac: ethernet@01c0b000 {
24 pinctrl-names = "default";
25 pinctrl-0 = <&emac_pins_a>;
26 phy = <&phy1>;
27 status = "okay";
28 };
29
30 mdio@01c0b080 {
31 phy-supply = <&reg_emac_3v3>;
32 status = "okay";
33
34 phy1: ethernet-phy@1 {
35 reg = <1>;
36 };
37 };
38
Hans de Goedec0955a82014-05-02 17:57:20 +020039 mmc0: mmc@01c0f000 {
40 pinctrl-names = "default";
41 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
42 bus-width = <4>;
43 cd-gpios = <&pio 7 1 0>; /* PH1 */
44 cd-inverted;
45 status = "okay";
46 };
47
Roman Byshko2428b6c2014-03-01 20:26:26 +010048 usbphy: phy@01c13400 {
49 usb1_vbus-supply = <&reg_usb1_vbus>;
50 usb2_vbus-supply = <&reg_usb2_vbus>;
51 status = "okay";
52 };
53
54 ehci0: usb@01c14000 {
55 status = "okay";
56 };
57
58 ohci0: usb@01c14400 {
59 status = "okay";
60 };
61
Oliver Schinagl248bd1e2014-03-01 20:26:21 +010062 ahci: sata@01c18000 {
63 status = "okay";
64 };
65
Roman Byshko2428b6c2014-03-01 20:26:26 +010066 ehci1: usb@01c1c000 {
67 status = "okay";
68 };
69
70 ohci1: usb@01c1c400 {
71 status = "okay";
72 };
73
Emilio López629ae882013-08-13 20:18:21 -030074 pinctrl@01c20800 {
75 emac_power_pin_a1000: emac_power_pin@0 {
76 allwinner,pins = "PH15";
77 allwinner,function = "gpio_out";
78 allwinner,drive = <0>;
79 allwinner,pull = <0>;
80 };
81
82 led_pins_a1000: led_pins@0 {
83 allwinner,pins = "PH10", "PH20";
84 allwinner,function = "gpio_out";
85 allwinner,drive = <0>;
86 allwinner,pull = <0>;
87 };
88 };
89
90 uart0: serial@01c28000 {
91 pinctrl-names = "default";
92 pinctrl-0 = <&uart0_pins_a>;
93 status = "okay";
94 };
95
96 i2c0: i2c@01c2ac00 {
97 pinctrl-names = "default";
98 pinctrl-0 = <&i2c0_pins_a>;
99 status = "okay";
100 };
101 };
102
103 leds {
104 compatible = "gpio-leds";
105 pinctrl-names = "default";
106 pinctrl-0 = <&led_pins_a1000>;
107
108 red {
109 label = "a1000:red:usr";
110 gpios = <&pio 7 10 0>;
111 };
112
113 blue {
114 label = "a1000:blue:usr";
115 gpios = <&pio 7 20 0>;
116 };
117 };
118
Hans de Goede5991bbe2014-02-22 16:53:42 +0100119 reg_emac_3v3: emac-3v3 {
120 compatible = "regulator-fixed";
121 pinctrl-names = "default";
122 pinctrl-0 = <&emac_power_pin_a1000>;
123 regulator-name = "emac-3v3";
124 regulator-min-microvolt = <3300000>;
125 regulator-max-microvolt = <3300000>;
126 enable-active-high;
127 gpio = <&pio 7 15 0>;
Emilio López629ae882013-08-13 20:18:21 -0300128 };
Roman Byshko2428b6c2014-03-01 20:26:26 +0100129
130 reg_usb1_vbus: usb1-vbus {
131 status = "okay";
132 };
133
134 reg_usb2_vbus: usb2-vbus {
135 status = "okay";
136 };
Emilio López629ae882013-08-13 20:18:21 -0300137};