Hans de Goede | 52e86b3 | 2013-12-15 20:23:36 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 Maxime Ripard |
| 3 | * Copyright 2013 Hans de Goede <hdegoede@redhat.com> |
| 4 | * |
| 5 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
| 6 | * |
| 7 | * The code contained herein is licensed under the GNU General Public |
| 8 | * License. You may obtain a copy of the GNU General Public License |
| 9 | * Version 2 or later at the following locations: |
| 10 | * |
| 11 | * http://www.opensource.org/licenses/gpl-license.html |
| 12 | * http://www.gnu.org/copyleft/gpl.html |
| 13 | */ |
| 14 | |
| 15 | /dts-v1/; |
| 16 | /include/ "sun5i-a13.dtsi" |
Hans de Goede | a83447f | 2014-03-01 20:26:33 +0100 | [diff] [blame] | 17 | /include/ "sunxi-common-regulators.dtsi" |
Hans de Goede | 52e86b3 | 2013-12-15 20:23:36 +0100 | [diff] [blame] | 18 | |
| 19 | / { |
| 20 | model = "Olimex A13-Olinuxino Micro"; |
| 21 | compatible = "olimex,a13-olinuxino-micro", "allwinner,sun5i-a13"; |
| 22 | |
| 23 | soc@01c00000 { |
Hans de Goede | 31064bb | 2014-05-02 17:57:22 +0200 | [diff] [blame] | 24 | mmc0: mmc@01c0f000 { |
| 25 | pinctrl-names = "default"; |
| 26 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxinom>; |
Hans de Goede | b4d6c77 | 2014-05-11 09:46:55 +0200 | [diff] [blame^] | 27 | vmmc-supply = <®_vcc3v3>; |
Hans de Goede | 31064bb | 2014-05-02 17:57:22 +0200 | [diff] [blame] | 28 | bus-width = <4>; |
| 29 | cd-gpios = <&pio 6 0 0>; /* PG0 */ |
| 30 | cd-inverted; |
| 31 | status = "okay"; |
| 32 | }; |
| 33 | |
Hans de Goede | a83447f | 2014-03-01 20:26:33 +0100 | [diff] [blame] | 34 | usbphy: phy@01c13400 { |
| 35 | usb1_vbus-supply = <®_usb1_vbus>; |
| 36 | status = "okay"; |
| 37 | }; |
| 38 | |
| 39 | ehci0: usb@01c14000 { |
| 40 | status = "okay"; |
| 41 | }; |
| 42 | |
| 43 | ohci0: usb@01c14400 { |
| 44 | status = "okay"; |
| 45 | }; |
| 46 | |
Hans de Goede | 52e86b3 | 2013-12-15 20:23:36 +0100 | [diff] [blame] | 47 | pinctrl@01c20800 { |
Hans de Goede | 31064bb | 2014-05-02 17:57:22 +0200 | [diff] [blame] | 48 | mmc0_cd_pin_olinuxinom: mmc0_cd_pin@0 { |
| 49 | allwinner,pins = "PG0"; |
| 50 | allwinner,function = "gpio_in"; |
| 51 | allwinner,drive = <0>; |
| 52 | allwinner,pull = <1>; |
| 53 | }; |
| 54 | |
Hans de Goede | 52e86b3 | 2013-12-15 20:23:36 +0100 | [diff] [blame] | 55 | led_pins_olinuxinom: led_pins@0 { |
| 56 | allwinner,pins = "PG9"; |
| 57 | allwinner,function = "gpio_out"; |
| 58 | allwinner,drive = <1>; |
| 59 | allwinner,pull = <0>; |
| 60 | }; |
Hans de Goede | a83447f | 2014-03-01 20:26:33 +0100 | [diff] [blame] | 61 | |
| 62 | usb1_vbus_pin_olinuxinom: usb1_vbus_pin@0 { |
| 63 | allwinner,pins = "PG11"; |
| 64 | allwinner,function = "gpio_out"; |
| 65 | allwinner,drive = <0>; |
| 66 | allwinner,pull = <0>; |
| 67 | }; |
Hans de Goede | 52e86b3 | 2013-12-15 20:23:36 +0100 | [diff] [blame] | 68 | }; |
| 69 | |
| 70 | uart1: serial@01c28400 { |
| 71 | pinctrl-names = "default"; |
| 72 | pinctrl-0 = <&uart1_pins_b>; |
| 73 | status = "okay"; |
| 74 | }; |
| 75 | |
| 76 | i2c0: i2c@01c2ac00 { |
| 77 | pinctrl-names = "default"; |
| 78 | pinctrl-0 = <&i2c0_pins_a>; |
| 79 | status = "okay"; |
| 80 | }; |
| 81 | |
| 82 | i2c1: i2c@01c2b000 { |
| 83 | pinctrl-names = "default"; |
| 84 | pinctrl-0 = <&i2c1_pins_a>; |
| 85 | status = "okay"; |
| 86 | }; |
| 87 | |
| 88 | i2c2: i2c@01c2b400 { |
| 89 | pinctrl-names = "default"; |
| 90 | pinctrl-0 = <&i2c2_pins_a>; |
| 91 | status = "okay"; |
| 92 | }; |
| 93 | }; |
| 94 | |
| 95 | leds { |
| 96 | compatible = "gpio-leds"; |
| 97 | pinctrl-names = "default"; |
| 98 | pinctrl-0 = <&led_pins_olinuxinom>; |
| 99 | |
| 100 | power { |
| 101 | label = "a13-olinuxino-micro:green:power"; |
| 102 | gpios = <&pio 6 9 0>; |
| 103 | default-state = "on"; |
| 104 | }; |
| 105 | }; |
Hans de Goede | a83447f | 2014-03-01 20:26:33 +0100 | [diff] [blame] | 106 | |
| 107 | reg_usb1_vbus: usb1-vbus { |
| 108 | pinctrl-0 = <&usb1_vbus_pin_olinuxinom>; |
| 109 | gpio = <&pio 6 11 0>; |
| 110 | status = "okay"; |
| 111 | }; |
Hans de Goede | 52e86b3 | 2013-12-15 20:23:36 +0100 | [diff] [blame] | 112 | }; |