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 | |
Roman Byshko | 2428b6c | 2014-03-01 20:26:26 +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 | |
Oliver Schinagl | 248bd1e | 2014-03-01 20:26:21 +0100 | [diff] [blame] | 53 | ahci: sata@01c18000 { |
| 54 | status = "okay"; |
| 55 | }; |
| 56 | |
Roman Byshko | 2428b6c | 2014-03-01 20:26:26 +0100 | [diff] [blame] | 57 | ehci1: usb@01c1c000 { |
| 58 | status = "okay"; |
| 59 | }; |
| 60 | |
| 61 | ohci1: usb@01c1c400 { |
| 62 | status = "okay"; |
| 63 | }; |
| 64 | |
Emilio López | 629ae88 | 2013-08-13 20:18:21 -0300 | [diff] [blame] | 65 | pinctrl@01c20800 { |
| 66 | emac_power_pin_a1000: emac_power_pin@0 { |
| 67 | allwinner,pins = "PH15"; |
| 68 | allwinner,function = "gpio_out"; |
| 69 | allwinner,drive = <0>; |
| 70 | allwinner,pull = <0>; |
| 71 | }; |
| 72 | |
| 73 | led_pins_a1000: led_pins@0 { |
| 74 | allwinner,pins = "PH10", "PH20"; |
| 75 | allwinner,function = "gpio_out"; |
| 76 | allwinner,drive = <0>; |
| 77 | allwinner,pull = <0>; |
| 78 | }; |
| 79 | }; |
| 80 | |
| 81 | uart0: serial@01c28000 { |
| 82 | pinctrl-names = "default"; |
| 83 | pinctrl-0 = <&uart0_pins_a>; |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | i2c0: i2c@01c2ac00 { |
| 88 | pinctrl-names = "default"; |
| 89 | pinctrl-0 = <&i2c0_pins_a>; |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | }; |
| 93 | |
| 94 | leds { |
| 95 | compatible = "gpio-leds"; |
| 96 | pinctrl-names = "default"; |
| 97 | pinctrl-0 = <&led_pins_a1000>; |
| 98 | |
| 99 | red { |
| 100 | label = "a1000:red:usr"; |
| 101 | gpios = <&pio 7 10 0>; |
| 102 | }; |
| 103 | |
| 104 | blue { |
| 105 | label = "a1000:blue:usr"; |
| 106 | gpios = <&pio 7 20 0>; |
| 107 | }; |
| 108 | }; |
| 109 | |
Hans de Goede | 5991bbe | 2014-02-22 16:53:42 +0100 | [diff] [blame] | 110 | reg_emac_3v3: emac-3v3 { |
| 111 | compatible = "regulator-fixed"; |
| 112 | pinctrl-names = "default"; |
| 113 | pinctrl-0 = <&emac_power_pin_a1000>; |
| 114 | regulator-name = "emac-3v3"; |
| 115 | regulator-min-microvolt = <3300000>; |
| 116 | regulator-max-microvolt = <3300000>; |
| 117 | enable-active-high; |
| 118 | gpio = <&pio 7 15 0>; |
Emilio López | 629ae88 | 2013-08-13 20:18:21 -0300 | [diff] [blame] | 119 | }; |
Roman Byshko | 2428b6c | 2014-03-01 20:26:26 +0100 | [diff] [blame] | 120 | |
| 121 | reg_usb1_vbus: usb1-vbus { |
| 122 | status = "okay"; |
| 123 | }; |
| 124 | |
| 125 | reg_usb2_vbus: usb2-vbus { |
| 126 | status = "okay"; |
| 127 | }; |
Emilio López | 629ae88 | 2013-08-13 20:18:21 -0300 | [diff] [blame] | 128 | }; |