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 | c0955a8 | 2014-05-02 17:57:20 +0200 | [diff] [blame] | 39 | mmc0: mmc@01c0f000 { |
| 40 | pinctrl-names = "default"; |
| 41 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
Hans de Goede | a4da476 | 2014-05-11 09:46:54 +0200 | [diff] [blame] | 42 | vmmc-supply = <®_vcc3v3>; |
Hans de Goede | c0955a8 | 2014-05-02 17:57:20 +0200 | [diff] [blame] | 43 | bus-width = <4>; |
| 44 | cd-gpios = <&pio 7 1 0>; /* PH1 */ |
| 45 | cd-inverted; |
| 46 | status = "okay"; |
| 47 | }; |
| 48 | |
Hans de Goede | ca78c26 | 2014-03-01 20:26:28 +0100 | [diff] [blame] | 49 | usbphy: phy@01c13400 { |
| 50 | usb1_vbus-supply = <®_usb1_vbus>; |
| 51 | usb2_vbus-supply = <®_usb2_vbus>; |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | |
| 55 | ehci0: usb@01c14000 { |
| 56 | status = "okay"; |
| 57 | }; |
| 58 | |
| 59 | ohci0: usb@01c14400 { |
| 60 | status = "okay"; |
| 61 | }; |
| 62 | |
| 63 | ehci1: usb@01c1c000 { |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
| 67 | ohci1: usb@01c1c400 { |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 71 | pio: pinctrl@01c20800 { |
| 72 | pinctrl-names = "default"; |
| 73 | pinctrl-0 = <&hackberry_hogs>; |
| 74 | |
| 75 | hackberry_hogs: hogs@0 { |
| 76 | allwinner,pins = "PH19"; |
| 77 | allwinner,function = "gpio_out"; |
| 78 | allwinner,drive = <0>; |
| 79 | allwinner,pull = <0>; |
| 80 | }; |
Hans de Goede | ca78c26 | 2014-03-01 20:26:28 +0100 | [diff] [blame] | 81 | |
| 82 | usb2_vbus_pin_hackberry: usb2_vbus_pin@0 { |
| 83 | allwinner,pins = "PH12"; |
| 84 | allwinner,function = "gpio_out"; |
| 85 | allwinner,drive = <0>; |
| 86 | allwinner,pull = <0>; |
| 87 | }; |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 88 | }; |
| 89 | |
Hans de Goede | 4a5c586 | 2014-06-30 23:57:59 +0200 | [diff] [blame] | 90 | ir0: ir@01c21800 { |
| 91 | pinctrl-names = "default"; |
| 92 | pinctrl-0 = <&ir0_pins_a>; |
| 93 | status = "okay"; |
| 94 | }; |
| 95 | |
Maxime Ripard | b00adbe | 2013-03-18 10:54:49 +0100 | [diff] [blame] | 96 | uart0: serial@01c28000 { |
Maxime Ripard | 0dfd1df | 2013-03-05 22:18:03 +0100 | [diff] [blame] | 97 | pinctrl-names = "default"; |
| 98 | pinctrl-0 = <&uart0_pins_a>; |
Maxime Ripard | a9d281c | 2013-01-08 19:40:59 +0100 | [diff] [blame] | 99 | status = "okay"; |
| 100 | }; |
Carlo Caione | e288f1b | 2014-06-30 23:57:52 +0200 | [diff] [blame] | 101 | |
| 102 | i2c0: i2c@01c2ac00 { |
| 103 | pinctrl-names = "default"; |
| 104 | pinctrl-0 = <&i2c0_pins_a>; |
| 105 | status = "okay"; |
| 106 | |
| 107 | axp209: pmic@34 { |
| 108 | compatible = "x-powers,axp209"; |
| 109 | reg = <0x34>; |
| 110 | interrupts = <0>; |
| 111 | |
| 112 | interrupt-controller; |
| 113 | #interrupt-cells = <1>; |
| 114 | }; |
| 115 | }; |
Maxime Ripard | a9d281c | 2013-01-08 19:40:59 +0100 | [diff] [blame] | 116 | }; |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 117 | |
Hans de Goede | 5991bbe | 2014-02-22 16:53:42 +0100 | [diff] [blame] | 118 | reg_emac_3v3: emac-3v3 { |
| 119 | compatible = "regulator-fixed"; |
| 120 | regulator-name = "emac-3v3"; |
| 121 | regulator-min-microvolt = <3300000>; |
| 122 | regulator-max-microvolt = <3300000>; |
| 123 | enable-active-high; |
| 124 | gpio = <&pio 7 19 0>; |
Maxime Ripard | d97a079 | 2013-05-30 03:49:25 +0000 | [diff] [blame] | 125 | }; |
Hans de Goede | ca78c26 | 2014-03-01 20:26:28 +0100 | [diff] [blame] | 126 | |
| 127 | reg_usb1_vbus: usb1-vbus { |
| 128 | status = "okay"; |
| 129 | }; |
| 130 | |
| 131 | reg_usb2_vbus: usb2-vbus { |
| 132 | pinctrl-0 = <&usb2_vbus_pin_hackberry>; |
| 133 | gpio = <&pio 7 12 0>; |
| 134 | status = "okay"; |
| 135 | }; |
Maxime Ripard | a9d281c | 2013-01-08 19:40:59 +0100 | [diff] [blame] | 136 | }; |