Maxime Ripard | d0f2677 | 2013-06-09 10:41:22 +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/ "sun5i-a10s.dtsi" |
Hans de Goede | 72f4e49 | 2014-03-01 20:26:32 +0100 | [diff] [blame^] | 16 | /include/ "sunxi-common-regulators.dtsi" |
Maxime Ripard | d0f2677 | 2013-06-09 10:41:22 +0200 | [diff] [blame] | 17 | |
| 18 | / { |
| 19 | model = "Olimex A10s-Olinuxino Micro"; |
| 20 | compatible = "olimex,a10s-olinuxino-micro", "allwinner,sun5i-a10s"; |
| 21 | |
Maxime Ripard | 9e19929 | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 22 | soc@01c00000 { |
Maxime Ripard | d0f2677 | 2013-06-09 10:41:22 +0200 | [diff] [blame] | 23 | emac: ethernet@01c0b000 { |
| 24 | pinctrl-names = "default"; |
| 25 | pinctrl-0 = <&emac_pins_a>; |
| 26 | phy = <&phy1>; |
| 27 | status = "okay"; |
| 28 | }; |
| 29 | |
| 30 | mdio@01c0b080 { |
| 31 | status = "okay"; |
| 32 | |
| 33 | phy1: ethernet-phy@1 { |
| 34 | reg = <1>; |
| 35 | }; |
| 36 | }; |
| 37 | |
Hans de Goede | 72f4e49 | 2014-03-01 20:26:32 +0100 | [diff] [blame^] | 38 | usbphy: phy@01c13400 { |
| 39 | usb1_vbus-supply = <®_usb1_vbus>; |
| 40 | status = "okay"; |
| 41 | }; |
| 42 | |
| 43 | ehci0: usb@01c14000 { |
| 44 | status = "okay"; |
| 45 | }; |
| 46 | |
| 47 | ohci0: usb@01c14400 { |
| 48 | status = "okay"; |
| 49 | }; |
| 50 | |
Maxime Ripard | d0f2677 | 2013-06-09 10:41:22 +0200 | [diff] [blame] | 51 | pinctrl@01c20800 { |
| 52 | led_pins_olinuxino: led_pins@0 { |
| 53 | allwinner,pins = "PE3"; |
| 54 | allwinner,function = "gpio_out"; |
| 55 | allwinner,drive = <1>; |
| 56 | allwinner,pull = <0>; |
| 57 | }; |
Hans de Goede | 72f4e49 | 2014-03-01 20:26:32 +0100 | [diff] [blame^] | 58 | |
| 59 | usb1_vbus_pin_olinuxino_m: usb1_vbus_pin@0 { |
| 60 | allwinner,pins = "PB10"; |
| 61 | allwinner,function = "gpio_out"; |
| 62 | allwinner,drive = <0>; |
| 63 | allwinner,pull = <0>; |
| 64 | }; |
Maxime Ripard | d0f2677 | 2013-06-09 10:41:22 +0200 | [diff] [blame] | 65 | }; |
| 66 | |
| 67 | uart0: serial@01c28000 { |
| 68 | pinctrl-names = "default"; |
| 69 | pinctrl-0 = <&uart0_pins_a>; |
| 70 | status = "okay"; |
| 71 | }; |
| 72 | |
| 73 | uart2: serial@01c28800 { |
| 74 | pinctrl-names = "default"; |
| 75 | pinctrl-0 = <&uart2_pins_a>; |
| 76 | status = "okay"; |
| 77 | }; |
| 78 | |
| 79 | uart3: serial@01c28c00 { |
| 80 | pinctrl-names = "default"; |
| 81 | pinctrl-0 = <&uart3_pins_a>; |
| 82 | status = "okay"; |
| 83 | }; |
Emilio López | d6c451d | 2013-07-07 18:31:58 -0300 | [diff] [blame] | 84 | |
| 85 | i2c0: i2c@01c2ac00 { |
| 86 | pinctrl-names = "default"; |
| 87 | pinctrl-0 = <&i2c0_pins_a>; |
| 88 | status = "okay"; |
| 89 | }; |
| 90 | |
| 91 | i2c1: i2c@01c2b000 { |
| 92 | pinctrl-names = "default"; |
| 93 | pinctrl-0 = <&i2c1_pins_a>; |
| 94 | status = "okay"; |
Emilio López | bdbfd8e | 2013-07-07 18:31:59 -0300 | [diff] [blame] | 95 | |
| 96 | at24@50 { |
| 97 | compatible = "at,24c16"; |
| 98 | pagesize = <16>; |
| 99 | reg = <0x50>; |
| 100 | read-only; |
| 101 | }; |
Emilio López | d6c451d | 2013-07-07 18:31:58 -0300 | [diff] [blame] | 102 | }; |
| 103 | |
| 104 | i2c2: i2c@01c2b400 { |
| 105 | pinctrl-names = "default"; |
| 106 | pinctrl-0 = <&i2c2_pins_a>; |
| 107 | status = "okay"; |
| 108 | }; |
Maxime Ripard | d0f2677 | 2013-06-09 10:41:22 +0200 | [diff] [blame] | 109 | }; |
| 110 | |
| 111 | leds { |
| 112 | compatible = "gpio-leds"; |
| 113 | pinctrl-names = "default"; |
| 114 | pinctrl-0 = <&led_pins_olinuxino>; |
| 115 | |
| 116 | green { |
| 117 | label = "a10s-olinuxino-micro:green:usr"; |
| 118 | gpios = <&pio 4 3 0>; |
| 119 | default-state = "on"; |
| 120 | }; |
| 121 | }; |
Hans de Goede | 72f4e49 | 2014-03-01 20:26:32 +0100 | [diff] [blame^] | 122 | |
| 123 | reg_usb1_vbus: usb1-vbus { |
| 124 | pinctrl-0 = <&usb1_vbus_pin_olinuxino_m>; |
| 125 | gpio = <&pio 1 10 0>; |
| 126 | status = "okay"; |
| 127 | }; |
Maxime Ripard | d0f2677 | 2013-06-09 10:41:22 +0200 | [diff] [blame] | 128 | }; |