Oliver Schinagl | 01ed663 | 2013-10-08 10:22:32 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Oliver Schinagl |
| 3 | * |
| 4 | * Oliver Schinagl <oliver@schinagl.nl> |
| 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/ "sun7i-a20.dtsi" |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 16 | /include/ "sunxi-common-regulators.dtsi" |
Oliver Schinagl | 01ed663 | 2013-10-08 10:22:32 +0200 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Cubietech Cubietruck"; |
| 20 | compatible = "cubietech,cubietruck", "allwinner,sun7i-a20"; |
| 21 | |
| 22 | soc@01c00000 { |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 23 | mmc0: mmc@01c0f000 { |
| 24 | pinctrl-names = "default"; |
| 25 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
Hans de Goede | 0ed9eab | 2014-05-11 09:46:57 +0200 | [diff] [blame] | 26 | vmmc-supply = <®_vcc3v3>; |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 27 | bus-width = <4>; |
| 28 | cd-gpios = <&pio 7 1 0>; /* PH1 */ |
| 29 | cd-inverted; |
| 30 | status = "okay"; |
| 31 | }; |
| 32 | |
Chen-Yu Tsai | 3906c0a | 2014-05-02 17:57:29 +0200 | [diff] [blame] | 33 | mmc3: mmc@01c12000 { |
| 34 | pinctrl-names = "default"; |
| 35 | pinctrl-0 = <&mmc3_pins_a>; |
| 36 | vmmc-supply = <®_vmmc3>; |
Hans de Goede | c5b7261 | 2014-05-21 19:43:30 +0200 | [diff] [blame] | 37 | bus-width = <4>; |
Chen-Yu Tsai | 3906c0a | 2014-05-02 17:57:29 +0200 | [diff] [blame] | 38 | non-removable; |
| 39 | status = "okay"; |
| 40 | }; |
| 41 | |
Hans de Goede | a415eef | 2014-03-01 20:26:34 +0100 | [diff] [blame] | 42 | usbphy: phy@01c13400 { |
| 43 | usb1_vbus-supply = <®_usb1_vbus>; |
| 44 | usb2_vbus-supply = <®_usb2_vbus>; |
| 45 | status = "okay"; |
| 46 | }; |
| 47 | |
| 48 | ehci0: usb@01c14000 { |
| 49 | status = "okay"; |
| 50 | }; |
| 51 | |
| 52 | ohci0: usb@01c14400 { |
| 53 | status = "okay"; |
| 54 | }; |
| 55 | |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 56 | ahci: sata@01c18000 { |
| 57 | target-supply = <®_ahci_5v>; |
| 58 | status = "okay"; |
| 59 | }; |
| 60 | |
Hans de Goede | a415eef | 2014-03-01 20:26:34 +0100 | [diff] [blame] | 61 | ehci1: usb@01c1c000 { |
| 62 | status = "okay"; |
| 63 | }; |
| 64 | |
| 65 | ohci1: usb@01c1c400 { |
| 66 | status = "okay"; |
| 67 | }; |
| 68 | |
Oliver Schinagl | 01ed663 | 2013-10-08 10:22:32 +0200 | [diff] [blame] | 69 | pinctrl@01c20800 { |
Chen-Yu Tsai | 3906c0a | 2014-05-02 17:57:29 +0200 | [diff] [blame] | 70 | mmc3_pins_a: mmc3@0 { |
| 71 | /* AP6210 requires pull-up */ |
| 72 | allwinner,pull = <1>; |
| 73 | }; |
| 74 | |
| 75 | vmmc3_pin_cubietruck: vmmc3_pin@0 { |
| 76 | allwinner,pins = "PH9"; |
| 77 | allwinner,function = "gpio_out"; |
| 78 | allwinner,drive = <0>; |
| 79 | allwinner,pull = <0>; |
| 80 | }; |
| 81 | |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 82 | ahci_pwr_pin_cubietruck: ahci_pwr_pin@1 { |
| 83 | allwinner,pins = "PH12"; |
| 84 | allwinner,function = "gpio_out"; |
| 85 | allwinner,drive = <0>; |
| 86 | allwinner,pull = <0>; |
| 87 | }; |
| 88 | |
Oliver Schinagl | 01ed663 | 2013-10-08 10:22:32 +0200 | [diff] [blame] | 89 | led_pins_cubietruck: led_pins@0 { |
| 90 | allwinner,pins = "PH7", "PH11", "PH20", "PH21"; |
| 91 | allwinner,function = "gpio_out"; |
| 92 | allwinner,drive = <0>; |
| 93 | allwinner,pull = <0>; |
| 94 | }; |
| 95 | }; |
| 96 | |
Alexandre Belloni | 96ac3b3 | 2014-04-28 18:17:14 +0200 | [diff] [blame] | 97 | pwm: pwm@01c20e00 { |
| 98 | pinctrl-names = "default"; |
| 99 | pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>; |
| 100 | status = "okay"; |
| 101 | }; |
| 102 | |
Alexander Bersenev | 0256452 | 2014-06-09 00:08:13 +0600 | [diff] [blame] | 103 | ir0: ir@01c21800 { |
| 104 | pinctrl-names = "default"; |
| 105 | pinctrl-0 = <&ir0_pins_a>; |
| 106 | status = "okay"; |
| 107 | }; |
| 108 | |
Oliver Schinagl | 01ed663 | 2013-10-08 10:22:32 +0200 | [diff] [blame] | 109 | uart0: serial@01c28000 { |
| 110 | pinctrl-names = "default"; |
| 111 | pinctrl-0 = <&uart0_pins_a>; |
| 112 | status = "okay"; |
| 113 | }; |
Chen-Yu Tsai | 6267355 | 2014-01-06 13:58:12 +0800 | [diff] [blame] | 114 | |
| 115 | i2c0: i2c@01c2ac00 { |
| 116 | pinctrl-names = "default"; |
| 117 | pinctrl-0 = <&i2c0_pins_a>; |
| 118 | status = "okay"; |
Carlo Caione | ec0c933 | 2014-06-30 23:57:53 +0200 | [diff] [blame] | 119 | |
| 120 | axp209: pmic@34 { |
| 121 | compatible = "x-powers,axp209"; |
| 122 | reg = <0x34>; |
| 123 | interrupt-parent = <&nmi_intc>; |
| 124 | interrupts = <0 8>; |
| 125 | |
| 126 | interrupt-controller; |
| 127 | #interrupt-cells = <1>; |
| 128 | }; |
Chen-Yu Tsai | 6267355 | 2014-01-06 13:58:12 +0800 | [diff] [blame] | 129 | }; |
| 130 | |
| 131 | i2c1: i2c@01c2b000 { |
| 132 | pinctrl-names = "default"; |
| 133 | pinctrl-0 = <&i2c1_pins_a>; |
| 134 | status = "okay"; |
| 135 | }; |
| 136 | |
| 137 | i2c2: i2c@01c2b400 { |
| 138 | pinctrl-names = "default"; |
| 139 | pinctrl-0 = <&i2c2_pins_a>; |
| 140 | status = "okay"; |
| 141 | }; |
Chen-Yu Tsai | 67073d9 | 2014-02-10 18:35:51 +0800 | [diff] [blame] | 142 | |
| 143 | gmac: ethernet@01c50000 { |
| 144 | pinctrl-names = "default"; |
| 145 | pinctrl-0 = <&gmac_pins_rgmii_a>; |
| 146 | phy = <&phy1>; |
| 147 | phy-mode = "rgmii"; |
| 148 | status = "okay"; |
| 149 | |
| 150 | phy1: ethernet-phy@1 { |
| 151 | reg = <1>; |
| 152 | }; |
| 153 | }; |
Oliver Schinagl | 01ed663 | 2013-10-08 10:22:32 +0200 | [diff] [blame] | 154 | }; |
| 155 | |
| 156 | leds { |
| 157 | compatible = "gpio-leds"; |
| 158 | pinctrl-names = "default"; |
| 159 | pinctrl-0 = <&led_pins_cubietruck>; |
| 160 | |
| 161 | blue { |
| 162 | label = "cubietruck:blue:usr"; |
| 163 | gpios = <&pio 7 21 0>; |
| 164 | }; |
| 165 | |
| 166 | orange { |
| 167 | label = "cubietruck:orange:usr"; |
| 168 | gpios = <&pio 7 20 0>; |
| 169 | }; |
| 170 | |
| 171 | white { |
| 172 | label = "cubietruck:white:usr"; |
| 173 | gpios = <&pio 7 11 0>; |
| 174 | }; |
| 175 | |
| 176 | green { |
| 177 | label = "cubietruck:green:usr"; |
| 178 | gpios = <&pio 7 7 0>; |
| 179 | }; |
| 180 | }; |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 181 | |
| 182 | reg_ahci_5v: ahci-5v { |
| 183 | pinctrl-0 = <&ahci_pwr_pin_cubietruck>; |
| 184 | gpio = <&pio 7 12 0>; |
| 185 | status = "okay"; |
| 186 | }; |
Hans de Goede | a415eef | 2014-03-01 20:26:34 +0100 | [diff] [blame] | 187 | |
| 188 | reg_usb1_vbus: usb1-vbus { |
| 189 | status = "okay"; |
| 190 | }; |
| 191 | |
| 192 | reg_usb2_vbus: usb2-vbus { |
| 193 | status = "okay"; |
| 194 | }; |
Chen-Yu Tsai | 3906c0a | 2014-05-02 17:57:29 +0200 | [diff] [blame] | 195 | |
| 196 | reg_vmmc3: vmmc3 { |
| 197 | compatible = "regulator-fixed"; |
| 198 | pinctrl-names = "default"; |
| 199 | pinctrl-0 = <&vmmc3_pin_cubietruck>; |
| 200 | regulator-name = "vmmc3"; |
| 201 | regulator-min-microvolt = <3300000>; |
| 202 | regulator-max-microvolt = <3300000>; |
| 203 | enable-active-high; |
| 204 | gpio = <&pio 7 9 0>; |
| 205 | }; |
Oliver Schinagl | 01ed663 | 2013-10-08 10:22:32 +0200 | [diff] [blame] | 206 | }; |