Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 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/ "sun7i-a20.dtsi" |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 16 | /include/ "sunxi-common-regulators.dtsi" |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Olimex A20-Olinuxino Micro"; |
| 20 | compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20"; |
| 21 | |
Maxime Ripard | d5cf89c | 2014-02-22 22:35:59 +0100 | [diff] [blame] | 22 | aliases { |
| 23 | spi0 = &spi1; |
| 24 | spi1 = &spi2; |
| 25 | }; |
| 26 | |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 27 | soc@01c00000 { |
Maxime Ripard | d5cf89c | 2014-02-22 22:35:59 +0100 | [diff] [blame] | 28 | spi1: spi@01c06000 { |
| 29 | pinctrl-names = "default"; |
| 30 | pinctrl-0 = <&spi1_pins_a>; |
| 31 | status = "okay"; |
| 32 | }; |
| 33 | |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 34 | mmc0: mmc@01c0f000 { |
| 35 | pinctrl-names = "default"; |
| 36 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
Hans de Goede | 0ed9eab | 2014-05-11 09:46:57 +0200 | [diff] [blame] | 37 | vmmc-supply = <®_vcc3v3>; |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 38 | bus-width = <4>; |
| 39 | cd-gpios = <&pio 7 1 0>; /* PH1 */ |
| 40 | cd-inverted; |
| 41 | status = "okay"; |
| 42 | }; |
| 43 | |
| 44 | mmc3: mmc@01c12000 { |
| 45 | pinctrl-names = "default"; |
| 46 | pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>; |
Hans de Goede | 0ed9eab | 2014-05-11 09:46:57 +0200 | [diff] [blame] | 47 | vmmc-supply = <®_vcc3v3>; |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 48 | bus-width = <4>; |
| 49 | cd-gpios = <&pio 7 11 0>; /* PH11 */ |
| 50 | cd-inverted; |
| 51 | status = "okay"; |
| 52 | }; |
| 53 | |
Zalan Blenessy | e2f0265 | 2014-03-01 20:26:36 +0100 | [diff] [blame] | 54 | usbphy: phy@01c13400 { |
| 55 | usb1_vbus-supply = <®_usb1_vbus>; |
| 56 | usb2_vbus-supply = <®_usb2_vbus>; |
| 57 | status = "okay"; |
| 58 | }; |
| 59 | |
| 60 | ehci0: usb@01c14000 { |
| 61 | status = "okay"; |
| 62 | }; |
| 63 | |
| 64 | ohci0: usb@01c14400 { |
| 65 | status = "okay"; |
| 66 | }; |
| 67 | |
Maxime Ripard | d5cf89c | 2014-02-22 22:35:59 +0100 | [diff] [blame] | 68 | spi2: spi@01c17000 { |
| 69 | pinctrl-names = "default"; |
| 70 | pinctrl-0 = <&spi2_pins_a>; |
| 71 | status = "okay"; |
| 72 | }; |
| 73 | |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 74 | ahci: sata@01c18000 { |
| 75 | target-supply = <®_ahci_5v>; |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
Zalan Blenessy | e2f0265 | 2014-03-01 20:26:36 +0100 | [diff] [blame] | 79 | ehci1: usb@01c1c000 { |
| 80 | status = "okay"; |
| 81 | }; |
| 82 | |
| 83 | ohci1: usb@01c1c400 { |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
Maxime Ripard | 6e487da | 2013-07-25 00:12:45 +0200 | [diff] [blame] | 87 | pinctrl@01c20800 { |
Hans de Goede | c621183 | 2014-05-02 17:57:28 +0200 | [diff] [blame] | 88 | mmc3_cd_pin_olinuxinom: mmc3_cd_pin@0 { |
| 89 | allwinner,pins = "PH11"; |
| 90 | allwinner,function = "gpio_in"; |
| 91 | allwinner,drive = <0>; |
| 92 | allwinner,pull = <1>; |
| 93 | }; |
| 94 | |
Maxime Ripard | 6e487da | 2013-07-25 00:12:45 +0200 | [diff] [blame] | 95 | led_pins_olinuxino: led_pins@0 { |
| 96 | allwinner,pins = "PH2"; |
| 97 | allwinner,function = "gpio_out"; |
| 98 | allwinner,drive = <1>; |
| 99 | allwinner,pull = <0>; |
| 100 | }; |
| 101 | }; |
| 102 | |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 103 | uart0: serial@01c28000 { |
Maxime Ripard | 2fff6ac | 2013-07-25 00:10:53 +0200 | [diff] [blame] | 104 | pinctrl-names = "default"; |
| 105 | pinctrl-0 = <&uart0_pins_a>; |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 106 | status = "okay"; |
| 107 | }; |
| 108 | |
| 109 | uart6: serial@01c29800 { |
Maxime Ripard | 2fff6ac | 2013-07-25 00:10:53 +0200 | [diff] [blame] | 110 | pinctrl-names = "default"; |
| 111 | pinctrl-0 = <&uart6_pins_a>; |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 112 | status = "okay"; |
| 113 | }; |
| 114 | |
| 115 | uart7: serial@01c29c00 { |
Maxime Ripard | 2fff6ac | 2013-07-25 00:10:53 +0200 | [diff] [blame] | 116 | pinctrl-names = "default"; |
| 117 | pinctrl-0 = <&uart7_pins_a>; |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 118 | status = "okay"; |
| 119 | }; |
Maxime Ripard | d6d3f9e | 2013-08-31 23:14:19 +0200 | [diff] [blame] | 120 | |
| 121 | i2c0: i2c@01c2ac00 { |
| 122 | pinctrl-names = "default"; |
| 123 | pinctrl-0 = <&i2c0_pins_a>; |
| 124 | status = "okay"; |
Carlo Caione | ec0c933 | 2014-06-30 23:57:53 +0200 | [diff] [blame] | 125 | |
| 126 | axp209: pmic@34 { |
| 127 | compatible = "x-powers,axp209"; |
| 128 | reg = <0x34>; |
| 129 | interrupt-parent = <&nmi_intc>; |
| 130 | interrupts = <0 8>; |
| 131 | |
| 132 | interrupt-controller; |
| 133 | #interrupt-cells = <1>; |
| 134 | }; |
Maxime Ripard | d6d3f9e | 2013-08-31 23:14:19 +0200 | [diff] [blame] | 135 | }; |
| 136 | |
| 137 | i2c1: i2c@01c2b000 { |
| 138 | pinctrl-names = "default"; |
| 139 | pinctrl-0 = <&i2c1_pins_a>; |
| 140 | status = "okay"; |
| 141 | }; |
| 142 | |
| 143 | i2c2: i2c@01c2b400 { |
| 144 | pinctrl-names = "default"; |
| 145 | pinctrl-0 = <&i2c2_pins_a>; |
| 146 | status = "okay"; |
| 147 | }; |
Chen-Yu Tsai | 7164318 | 2014-02-10 18:35:53 +0800 | [diff] [blame] | 148 | |
| 149 | gmac: ethernet@01c50000 { |
| 150 | pinctrl-names = "default"; |
| 151 | pinctrl-0 = <&gmac_pins_mii_a>; |
| 152 | phy = <&phy1>; |
| 153 | phy-mode = "mii"; |
| 154 | status = "okay"; |
| 155 | |
| 156 | phy1: ethernet-phy@1 { |
| 157 | reg = <1>; |
| 158 | }; |
| 159 | }; |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 160 | }; |
Maxime Ripard | 6e487da | 2013-07-25 00:12:45 +0200 | [diff] [blame] | 161 | |
| 162 | leds { |
| 163 | compatible = "gpio-leds"; |
| 164 | pinctrl-names = "default"; |
| 165 | pinctrl-0 = <&led_pins_olinuxino>; |
| 166 | |
| 167 | green { |
| 168 | label = "a20-olinuxino-micro:green:usr"; |
| 169 | gpios = <&pio 7 2 0>; |
| 170 | default-state = "on"; |
| 171 | }; |
| 172 | }; |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 173 | |
| 174 | reg_ahci_5v: ahci-5v { |
| 175 | status = "okay"; |
| 176 | }; |
Zalan Blenessy | e2f0265 | 2014-03-01 20:26:36 +0100 | [diff] [blame] | 177 | |
| 178 | reg_usb1_vbus: usb1-vbus { |
| 179 | status = "okay"; |
| 180 | }; |
| 181 | |
| 182 | reg_usb2_vbus: usb2-vbus { |
| 183 | status = "okay"; |
| 184 | }; |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 185 | }; |