Maxime Ripard | a9d281c | 2013-01-08 19:40:59 +0100 | [diff] [blame] | 1 | /* |
| 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 Ripard | b74aec1 | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 21 | soc@01c00000 { |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 22 | 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 = <®_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 Ripard | b00adbe | 2013-03-18 10:54:49 +0100 | [diff] [blame] | 50 | uart0: serial@01c28000 { |
Maxime Ripard | 0dfd1df | 2013-03-05 22:18:03 +0100 | [diff] [blame] | 51 | pinctrl-names = "default"; |
| 52 | pinctrl-0 = <&uart0_pins_a>; |
Maxime Ripard | a9d281c | 2013-01-08 19:40:59 +0100 | [diff] [blame] | 53 | status = "okay"; |
| 54 | }; |
| 55 | }; |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 56 | |
Hans de Goede | 5991bbe | 2014-02-22 16:53:42 +0100 | [diff] [blame^] | 57 | 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 Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 64 | }; |
Maxime Ripard | a9d281c | 2013-01-08 19:40:59 +0100 | [diff] [blame] | 65 | }; |