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 | |
Zalan Blenessy | e2f0265 | 2014-03-01 20:26:36 +0100 | [diff] [blame] | 34 | usbphy: phy@01c13400 { |
| 35 | usb1_vbus-supply = <®_usb1_vbus>; |
| 36 | usb2_vbus-supply = <®_usb2_vbus>; |
| 37 | status = "okay"; |
| 38 | }; |
| 39 | |
| 40 | ehci0: usb@01c14000 { |
| 41 | status = "okay"; |
| 42 | }; |
| 43 | |
| 44 | ohci0: usb@01c14400 { |
| 45 | status = "okay"; |
| 46 | }; |
| 47 | |
Maxime Ripard | d5cf89c | 2014-02-22 22:35:59 +0100 | [diff] [blame] | 48 | spi2: spi@01c17000 { |
| 49 | pinctrl-names = "default"; |
| 50 | pinctrl-0 = <&spi2_pins_a>; |
| 51 | status = "okay"; |
| 52 | }; |
| 53 | |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 54 | ahci: sata@01c18000 { |
| 55 | target-supply = <®_ahci_5v>; |
| 56 | status = "okay"; |
| 57 | }; |
| 58 | |
Zalan Blenessy | e2f0265 | 2014-03-01 20:26:36 +0100 | [diff] [blame] | 59 | ehci1: usb@01c1c000 { |
| 60 | status = "okay"; |
| 61 | }; |
| 62 | |
| 63 | ohci1: usb@01c1c400 { |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
Maxime Ripard | 6e487da | 2013-07-25 00:12:45 +0200 | [diff] [blame] | 67 | pinctrl@01c20800 { |
| 68 | led_pins_olinuxino: led_pins@0 { |
| 69 | allwinner,pins = "PH2"; |
| 70 | allwinner,function = "gpio_out"; |
| 71 | allwinner,drive = <1>; |
| 72 | allwinner,pull = <0>; |
| 73 | }; |
| 74 | }; |
| 75 | |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 76 | uart0: serial@01c28000 { |
Maxime Ripard | 2fff6ac | 2013-07-25 00:10:53 +0200 | [diff] [blame] | 77 | pinctrl-names = "default"; |
| 78 | pinctrl-0 = <&uart0_pins_a>; |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 79 | status = "okay"; |
| 80 | }; |
| 81 | |
| 82 | uart6: serial@01c29800 { |
Maxime Ripard | 2fff6ac | 2013-07-25 00:10:53 +0200 | [diff] [blame] | 83 | pinctrl-names = "default"; |
| 84 | pinctrl-0 = <&uart6_pins_a>; |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 85 | status = "okay"; |
| 86 | }; |
| 87 | |
| 88 | uart7: serial@01c29c00 { |
Maxime Ripard | 2fff6ac | 2013-07-25 00:10:53 +0200 | [diff] [blame] | 89 | pinctrl-names = "default"; |
| 90 | pinctrl-0 = <&uart7_pins_a>; |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 91 | status = "okay"; |
| 92 | }; |
Maxime Ripard | d6d3f9e | 2013-08-31 23:14:19 +0200 | [diff] [blame] | 93 | |
| 94 | i2c0: i2c@01c2ac00 { |
| 95 | pinctrl-names = "default"; |
| 96 | pinctrl-0 = <&i2c0_pins_a>; |
| 97 | status = "okay"; |
| 98 | }; |
| 99 | |
| 100 | i2c1: i2c@01c2b000 { |
| 101 | pinctrl-names = "default"; |
| 102 | pinctrl-0 = <&i2c1_pins_a>; |
| 103 | status = "okay"; |
| 104 | }; |
| 105 | |
| 106 | i2c2: i2c@01c2b400 { |
| 107 | pinctrl-names = "default"; |
| 108 | pinctrl-0 = <&i2c2_pins_a>; |
| 109 | status = "okay"; |
| 110 | }; |
Chen-Yu Tsai | 7164318 | 2014-02-10 18:35:53 +0800 | [diff] [blame] | 111 | |
| 112 | gmac: ethernet@01c50000 { |
| 113 | pinctrl-names = "default"; |
| 114 | pinctrl-0 = <&gmac_pins_mii_a>; |
| 115 | phy = <&phy1>; |
| 116 | phy-mode = "mii"; |
| 117 | status = "okay"; |
| 118 | |
| 119 | phy1: ethernet-phy@1 { |
| 120 | reg = <1>; |
| 121 | }; |
| 122 | }; |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 123 | }; |
Maxime Ripard | 6e487da | 2013-07-25 00:12:45 +0200 | [diff] [blame] | 124 | |
| 125 | leds { |
| 126 | compatible = "gpio-leds"; |
| 127 | pinctrl-names = "default"; |
| 128 | pinctrl-0 = <&led_pins_olinuxino>; |
| 129 | |
| 130 | green { |
| 131 | label = "a20-olinuxino-micro:green:usr"; |
| 132 | gpios = <&pio 7 2 0>; |
| 133 | default-state = "on"; |
| 134 | }; |
| 135 | }; |
Hans de Goede | 902febf | 2014-03-01 20:26:22 +0100 | [diff] [blame] | 136 | |
| 137 | reg_ahci_5v: ahci-5v { |
| 138 | status = "okay"; |
| 139 | }; |
Zalan Blenessy | e2f0265 | 2014-03-01 20:26:36 +0100 | [diff] [blame] | 140 | |
| 141 | reg_usb1_vbus: usb1-vbus { |
| 142 | status = "okay"; |
| 143 | }; |
| 144 | |
| 145 | reg_usb2_vbus: usb2-vbus { |
| 146 | status = "okay"; |
| 147 | }; |
Maxime Ripard | e476ac8 | 2013-07-17 10:12:16 +0200 | [diff] [blame] | 148 | }; |