Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 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/; |
Maxime Ripard | 68136b1 | 2012-12-12 17:08:23 +0100 | [diff] [blame] | 15 | /include/ "sun5i-a13.dtsi" |
Roman Byshko | 4703bc8 | 2014-03-01 20:26:31 +0100 | [diff] [blame] | 16 | /include/ "sunxi-common-regulators.dtsi" |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Olimex A13-Olinuxino"; |
Maxime Ripard | 68136b1 | 2012-12-12 17:08:23 +0100 | [diff] [blame] | 20 | compatible = "olimex,a13-olinuxino", "allwinner,sun5i-a13"; |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 21 | |
Maxime Ripard | 278fe8b | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 22 | soc@01c00000 { |
Hans de Goede | 31064bb | 2014-05-02 17:57:22 +0200 | [diff] [blame] | 23 | mmc0: mmc@01c0f000 { |
| 24 | pinctrl-names = "default"; |
| 25 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino>; |
Hans de Goede | b4d6c77 | 2014-05-11 09:46:55 +0200 | [diff] [blame^] | 26 | vmmc-supply = <®_vcc3v3>; |
Hans de Goede | 31064bb | 2014-05-02 17:57:22 +0200 | [diff] [blame] | 27 | bus-width = <4>; |
| 28 | cd-gpios = <&pio 6 0 0>; /* PG0 */ |
| 29 | cd-inverted; |
| 30 | status = "okay"; |
| 31 | }; |
| 32 | |
Roman Byshko | 4703bc8 | 2014-03-01 20:26:31 +0100 | [diff] [blame] | 33 | usbphy: phy@01c13400 { |
| 34 | usb1_vbus-supply = <®_usb1_vbus>; |
| 35 | status = "okay"; |
| 36 | }; |
| 37 | |
| 38 | ehci0: usb@01c14000 { |
| 39 | status = "okay"; |
| 40 | }; |
| 41 | |
| 42 | ohci0: usb@01c14400 { |
| 43 | status = "okay"; |
| 44 | }; |
| 45 | |
Maxime Ripard | bfef081 | 2013-01-08 22:35:17 +0100 | [diff] [blame] | 46 | pinctrl@01c20800 { |
Hans de Goede | 31064bb | 2014-05-02 17:57:22 +0200 | [diff] [blame] | 47 | mmc0_cd_pin_olinuxino: mmc0_cd_pin@0 { |
| 48 | allwinner,pins = "PG0"; |
| 49 | allwinner,function = "gpio_in"; |
| 50 | allwinner,drive = <0>; |
| 51 | allwinner,pull = <1>; |
| 52 | }; |
| 53 | |
Maxime Ripard | bfef081 | 2013-01-08 22:35:17 +0100 | [diff] [blame] | 54 | led_pins_olinuxino: led_pins@0 { |
| 55 | allwinner,pins = "PG9"; |
| 56 | allwinner,function = "gpio_out"; |
| 57 | allwinner,drive = <1>; |
| 58 | allwinner,pull = <0>; |
| 59 | }; |
Roman Byshko | 4703bc8 | 2014-03-01 20:26:31 +0100 | [diff] [blame] | 60 | |
| 61 | usb1_vbus_pin_olinuxino: usb1_vbus_pin@0 { |
| 62 | allwinner,pins = "PG11"; |
| 63 | allwinner,function = "gpio_out"; |
| 64 | allwinner,drive = <0>; |
| 65 | allwinner,pull = <0>; |
| 66 | }; |
Maxime Ripard | bfef081 | 2013-01-08 22:35:17 +0100 | [diff] [blame] | 67 | }; |
| 68 | |
Maxime Ripard | b00adbe | 2013-03-18 10:54:49 +0100 | [diff] [blame] | 69 | uart1: serial@01c28400 { |
Maxime Ripard | c54729e | 2013-01-18 22:30:39 +0100 | [diff] [blame] | 70 | pinctrl-names = "default"; |
| 71 | pinctrl-0 = <&uart1_pins_b>; |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 72 | status = "okay"; |
| 73 | }; |
Maxime Ripard | 351617c | 2013-03-10 13:37:10 +0100 | [diff] [blame] | 74 | |
| 75 | i2c0: i2c@01c2ac00 { |
| 76 | pinctrl-names = "default"; |
| 77 | pinctrl-0 = <&i2c0_pins_a>; |
| 78 | status = "okay"; |
| 79 | }; |
| 80 | |
| 81 | i2c1: i2c@01c2b000 { |
| 82 | pinctrl-names = "default"; |
| 83 | pinctrl-0 = <&i2c1_pins_a>; |
| 84 | status = "okay"; |
| 85 | }; |
| 86 | |
| 87 | i2c2: i2c@01c2b400 { |
| 88 | pinctrl-names = "default"; |
| 89 | pinctrl-0 = <&i2c2_pins_a>; |
| 90 | status = "okay"; |
| 91 | }; |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 92 | }; |
Maxime Ripard | bfef081 | 2013-01-08 22:35:17 +0100 | [diff] [blame] | 93 | |
| 94 | leds { |
| 95 | compatible = "gpio-leds"; |
| 96 | pinctrl-names = "default"; |
| 97 | pinctrl-0 = <&led_pins_olinuxino>; |
| 98 | |
| 99 | power { |
| 100 | gpios = <&pio 6 9 0>; |
| 101 | default-state = "on"; |
| 102 | }; |
| 103 | }; |
Roman Byshko | 4703bc8 | 2014-03-01 20:26:31 +0100 | [diff] [blame] | 104 | |
| 105 | reg_usb1_vbus: usb1-vbus { |
| 106 | pinctrl-0 = <&usb1_vbus_pin_olinuxino>; |
| 107 | gpio = <&pio 6 11 0>; |
| 108 | status = "okay"; |
| 109 | }; |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 110 | }; |