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" |
Hans de Goede | ca78c26 | 2014-03-01 20:26:28 +0100 | [diff] [blame^] | 16 | /include/ "sunxi-common-regulators.dtsi" |
Maxime Ripard | a9d281c | 2013-01-08 19:40:59 +0100 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Miniand Hackberry"; |
| 20 | compatible = "miniand,hackberry", "allwinner,sun4i-a10"; |
| 21 | |
Maxime Ripard | b74aec1 | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 22 | soc@01c00000 { |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 23 | emac: ethernet@01c0b000 { |
| 24 | pinctrl-names = "default"; |
| 25 | pinctrl-0 = <&emac_pins_a>; |
| 26 | phy = <&phy0>; |
| 27 | status = "okay"; |
| 28 | }; |
| 29 | |
| 30 | mdio@01c0b080 { |
| 31 | phy-supply = <®_emac_3v3>; |
| 32 | status = "okay"; |
| 33 | |
| 34 | phy0: ethernet-phy@0 { |
| 35 | reg = <0>; |
| 36 | }; |
| 37 | }; |
| 38 | |
Hans de Goede | ca78c26 | 2014-03-01 20:26:28 +0100 | [diff] [blame^] | 39 | usbphy: phy@01c13400 { |
| 40 | usb1_vbus-supply = <®_usb1_vbus>; |
| 41 | usb2_vbus-supply = <®_usb2_vbus>; |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
| 45 | ehci0: usb@01c14000 { |
| 46 | status = "okay"; |
| 47 | }; |
| 48 | |
| 49 | ohci0: usb@01c14400 { |
| 50 | status = "okay"; |
| 51 | }; |
| 52 | |
| 53 | ehci1: usb@01c1c000 { |
| 54 | status = "okay"; |
| 55 | }; |
| 56 | |
| 57 | ohci1: usb@01c1c400 { |
| 58 | status = "okay"; |
| 59 | }; |
| 60 | |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 61 | pio: pinctrl@01c20800 { |
| 62 | pinctrl-names = "default"; |
| 63 | pinctrl-0 = <&hackberry_hogs>; |
| 64 | |
| 65 | hackberry_hogs: hogs@0 { |
| 66 | allwinner,pins = "PH19"; |
| 67 | allwinner,function = "gpio_out"; |
| 68 | allwinner,drive = <0>; |
| 69 | allwinner,pull = <0>; |
| 70 | }; |
Hans de Goede | ca78c26 | 2014-03-01 20:26:28 +0100 | [diff] [blame^] | 71 | |
| 72 | usb2_vbus_pin_hackberry: usb2_vbus_pin@0 { |
| 73 | allwinner,pins = "PH12"; |
| 74 | allwinner,function = "gpio_out"; |
| 75 | allwinner,drive = <0>; |
| 76 | allwinner,pull = <0>; |
| 77 | }; |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 78 | }; |
| 79 | |
Maxime Ripard | b00adbe | 2013-03-18 10:54:49 +0100 | [diff] [blame] | 80 | uart0: serial@01c28000 { |
Maxime Ripard | 0dfd1df | 2013-03-05 22:18:03 +0100 | [diff] [blame] | 81 | pinctrl-names = "default"; |
| 82 | pinctrl-0 = <&uart0_pins_a>; |
Maxime Ripard | a9d281c | 2013-01-08 19:40:59 +0100 | [diff] [blame] | 83 | status = "okay"; |
| 84 | }; |
| 85 | }; |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 86 | |
Hans de Goede | 5991bbe | 2014-02-22 16:53:42 +0100 | [diff] [blame] | 87 | reg_emac_3v3: emac-3v3 { |
| 88 | compatible = "regulator-fixed"; |
| 89 | regulator-name = "emac-3v3"; |
| 90 | regulator-min-microvolt = <3300000>; |
| 91 | regulator-max-microvolt = <3300000>; |
| 92 | enable-active-high; |
| 93 | gpio = <&pio 7 19 0>; |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 94 | }; |
Hans de Goede | ca78c26 | 2014-03-01 20:26:28 +0100 | [diff] [blame^] | 95 | |
| 96 | reg_usb1_vbus: usb1-vbus { |
| 97 | status = "okay"; |
| 98 | }; |
| 99 | |
| 100 | reg_usb2_vbus: usb2-vbus { |
| 101 | pinctrl-0 = <&usb2_vbus_pin_hackberry>; |
| 102 | gpio = <&pio 7 12 0>; |
| 103 | status = "okay"; |
| 104 | }; |
Maxime Ripard | a9d281c | 2013-01-08 19:40:59 +0100 | [diff] [blame] | 105 | }; |