blob: 3514b37d66bcd180df6e963a5d816e3446ef9379 [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
21 chosen {
22 bootargs = "earlyprintk console=ttyS0,115200";
23 };
24
Maxime Ripard69144e32013-03-13 20:07:37 +010025 soc@01c20000 {
Maxime Ripardd97a0792013-05-30 03:49:25 +000026 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 = <&reg_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
Maxime Ripardb00adbe2013-03-18 10:54:49 +010054 uart0: serial@01c28000 {
Maxime Ripard0dfd1df2013-03-05 22:18:03 +010055 pinctrl-names = "default";
56 pinctrl-0 = <&uart0_pins_a>;
Maxime Riparda9d281c2013-01-08 19:40:59 +010057 status = "okay";
58 };
59 };
Maxime Ripardd97a0792013-05-30 03:49:25 +000060
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 };
Maxime Riparda9d281c2013-01-08 19:40:59 +010073};