Emilio López | 629ae88 | 2013-08-13 20:18:21 -0300 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Emilio López |
| 3 | * |
| 4 | * Emilio López <emilio@elopez.com.ar> |
| 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" |
Roman Byshko | 2428b6c | 2014-03-01 20:26:26 +0100 | [diff] [blame] | 16 | /include/ "sunxi-common-regulators.dtsi" |
Emilio López | 629ae88 | 2013-08-13 20:18:21 -0300 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Mele A1000"; |
| 20 | compatible = "mele,a1000", "allwinner,sun4i-a10"; |
| 21 | |
Emilio López | 629ae88 | 2013-08-13 20:18:21 -0300 | [diff] [blame] | 22 | soc@01c00000 { |
| 23 | emac: ethernet@01c0b000 { |
| 24 | pinctrl-names = "default"; |
| 25 | pinctrl-0 = <&emac_pins_a>; |
| 26 | phy = <&phy1>; |
| 27 | status = "okay"; |
| 28 | }; |
| 29 | |
| 30 | mdio@01c0b080 { |
| 31 | phy-supply = <®_emac_3v3>; |
| 32 | status = "okay"; |
| 33 | |
| 34 | phy1: ethernet-phy@1 { |
| 35 | reg = <1>; |
| 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 | |
Roman Byshko | 2428b6c | 2014-03-01 20:26:26 +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 | |
Oliver Schinagl | 248bd1e | 2014-03-01 20:26:21 +0100 | [diff] [blame] | 63 | ahci: sata@01c18000 { |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
Roman Byshko | 2428b6c | 2014-03-01 20:26:26 +0100 | [diff] [blame] | 67 | ehci1: usb@01c1c000 { |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | |
| 71 | ohci1: usb@01c1c400 { |
| 72 | status = "okay"; |
| 73 | }; |
| 74 | |
Emilio López | 629ae88 | 2013-08-13 20:18:21 -0300 | [diff] [blame] | 75 | pinctrl@01c20800 { |
| 76 | emac_power_pin_a1000: emac_power_pin@0 { |
| 77 | allwinner,pins = "PH15"; |
| 78 | allwinner,function = "gpio_out"; |
| 79 | allwinner,drive = <0>; |
| 80 | allwinner,pull = <0>; |
| 81 | }; |
| 82 | |
| 83 | led_pins_a1000: led_pins@0 { |
| 84 | allwinner,pins = "PH10", "PH20"; |
| 85 | allwinner,function = "gpio_out"; |
| 86 | allwinner,drive = <0>; |
| 87 | allwinner,pull = <0>; |
| 88 | }; |
| 89 | }; |
| 90 | |
| 91 | uart0: serial@01c28000 { |
| 92 | pinctrl-names = "default"; |
| 93 | pinctrl-0 = <&uart0_pins_a>; |
| 94 | status = "okay"; |
| 95 | }; |
| 96 | |
| 97 | i2c0: i2c@01c2ac00 { |
| 98 | pinctrl-names = "default"; |
| 99 | pinctrl-0 = <&i2c0_pins_a>; |
| 100 | status = "okay"; |
Carlo Caione | e288f1b | 2014-06-30 23:57:52 +0200 | [diff] [blame^] | 101 | |
| 102 | axp209: pmic@34 { |
| 103 | compatible = "x-powers,axp209"; |
| 104 | reg = <0x34>; |
| 105 | interrupts = <0>; |
| 106 | |
| 107 | interrupt-controller; |
| 108 | #interrupt-cells = <1>; |
| 109 | }; |
Emilio López | 629ae88 | 2013-08-13 20:18:21 -0300 | [diff] [blame] | 110 | }; |
| 111 | }; |
| 112 | |
| 113 | leds { |
| 114 | compatible = "gpio-leds"; |
| 115 | pinctrl-names = "default"; |
| 116 | pinctrl-0 = <&led_pins_a1000>; |
| 117 | |
| 118 | red { |
| 119 | label = "a1000:red:usr"; |
| 120 | gpios = <&pio 7 10 0>; |
| 121 | }; |
| 122 | |
| 123 | blue { |
| 124 | label = "a1000:blue:usr"; |
| 125 | gpios = <&pio 7 20 0>; |
| 126 | }; |
| 127 | }; |
| 128 | |
Hans de Goede | 5991bbe | 2014-02-22 16:53:42 +0100 | [diff] [blame] | 129 | reg_emac_3v3: emac-3v3 { |
| 130 | compatible = "regulator-fixed"; |
| 131 | pinctrl-names = "default"; |
| 132 | pinctrl-0 = <&emac_power_pin_a1000>; |
| 133 | regulator-name = "emac-3v3"; |
| 134 | regulator-min-microvolt = <3300000>; |
| 135 | regulator-max-microvolt = <3300000>; |
| 136 | enable-active-high; |
| 137 | gpio = <&pio 7 15 0>; |
Emilio López | 629ae88 | 2013-08-13 20:18:21 -0300 | [diff] [blame] | 138 | }; |
Roman Byshko | 2428b6c | 2014-03-01 20:26:26 +0100 | [diff] [blame] | 139 | |
| 140 | reg_usb1_vbus: usb1-vbus { |
| 141 | status = "okay"; |
| 142 | }; |
| 143 | |
| 144 | reg_usb2_vbus: usb2-vbus { |
| 145 | status = "okay"; |
| 146 | }; |
Emilio López | 629ae88 | 2013-08-13 20:18:21 -0300 | [diff] [blame] | 147 | }; |