blob: 6692d336335d172b2eb1cffc30a84892d07c8708 [file] [log] [blame]
Maxime Riparda9d281c2013-01-08 19:40:59 +01001/*
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
Maxime Ripardb74aec12013-08-03 16:07:36 +020021 soc@01c00000 {
Maxime Ripardd97a0792013-05-30 03:49:25 +000022 emac: ethernet@01c0b000 {
23 pinctrl-names = "default";
24 pinctrl-0 = <&emac_pins_a>;
25 phy = <&phy0>;
26 status = "okay";
27 };
28
29 mdio@01c0b080 {
30 phy-supply = <&reg_emac_3v3>;
31 status = "okay";
32
33 phy0: ethernet-phy@0 {
34 reg = <0>;
35 };
36 };
37
38 pio: pinctrl@01c20800 {
39 pinctrl-names = "default";
40 pinctrl-0 = <&hackberry_hogs>;
41
42 hackberry_hogs: hogs@0 {
43 allwinner,pins = "PH19";
44 allwinner,function = "gpio_out";
45 allwinner,drive = <0>;
46 allwinner,pull = <0>;
47 };
48 };
49
Maxime Ripardb00adbe2013-03-18 10:54:49 +010050 uart0: serial@01c28000 {
Maxime Ripard0dfd1df2013-03-05 22:18:03 +010051 pinctrl-names = "default";
52 pinctrl-0 = <&uart0_pins_a>;
Maxime Riparda9d281c2013-01-08 19:40:59 +010053 status = "okay";
54 };
55 };
Maxime Ripardd97a0792013-05-30 03:49:25 +000056
Hans de Goede5991bbe2014-02-22 16:53:42 +010057 reg_emac_3v3: emac-3v3 {
58 compatible = "regulator-fixed";
59 regulator-name = "emac-3v3";
60 regulator-min-microvolt = <3300000>;
61 regulator-max-microvolt = <3300000>;
62 enable-active-high;
63 gpio = <&pio 7 19 0>;
Maxime Ripardd97a0792013-05-30 03:49:25 +000064 };
Maxime Riparda9d281c2013-01-08 19:40:59 +010065};