Hans de Goede | dcadf59 | 2014-03-01 20:26:37 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 - Hans de Goede <hdegoede@redhat.com> |
| 3 | * |
| 4 | * The code contained herein is licensed under the GNU General Public |
| 5 | * License. You may obtain a copy of the GNU General Public License |
| 6 | * Version 2 or later at the following locations: |
| 7 | * |
| 8 | * http://www.opensource.org/licenses/gpl-license.html |
| 9 | * http://www.gnu.org/copyleft/gpl.html |
| 10 | */ |
| 11 | |
| 12 | /dts-v1/; |
| 13 | /include/ "sun4i-a10.dtsi" |
| 14 | /include/ "sunxi-common-regulators.dtsi" |
| 15 | |
| 16 | / { |
| 17 | model = "Olimex A10-OLinuXino-LIME"; |
| 18 | compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10"; |
| 19 | |
| 20 | soc@01c00000 { |
| 21 | emac: ethernet@01c0b000 { |
| 22 | pinctrl-names = "default"; |
| 23 | pinctrl-0 = <&emac_pins_a>; |
| 24 | phy = <&phy1>; |
| 25 | status = "okay"; |
| 26 | }; |
| 27 | |
| 28 | mdio@01c0b080 { |
| 29 | status = "okay"; |
| 30 | |
| 31 | phy1: ethernet-phy@1 { |
| 32 | reg = <1>; |
| 33 | }; |
| 34 | }; |
| 35 | |
Hans de Goede | c0955a8 | 2014-05-02 17:57:20 +0200 | [diff] [blame^] | 36 | mmc0: mmc@01c0f000 { |
| 37 | pinctrl-names = "default"; |
| 38 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
| 39 | bus-width = <4>; |
| 40 | cd-gpios = <&pio 7 1 0>; /* PH1 */ |
| 41 | cd-inverted; |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
Hans de Goede | dcadf59 | 2014-03-01 20:26:37 +0100 | [diff] [blame] | 45 | usbphy: phy@01c13400 { |
| 46 | usb1_vbus-supply = <®_usb1_vbus>; |
| 47 | usb2_vbus-supply = <®_usb2_vbus>; |
| 48 | status = "okay"; |
| 49 | }; |
| 50 | |
| 51 | ehci0: usb@01c14000 { |
| 52 | status = "okay"; |
| 53 | }; |
| 54 | |
| 55 | ohci0: usb@01c14400 { |
| 56 | status = "okay"; |
| 57 | }; |
| 58 | |
| 59 | ahci: sata@01c18000 { |
| 60 | target-supply = <®_ahci_5v>; |
| 61 | status = "okay"; |
| 62 | }; |
| 63 | |
| 64 | ehci1: usb@01c1c000 { |
| 65 | status = "okay"; |
| 66 | }; |
| 67 | |
| 68 | ohci1: usb@01c1c400 { |
| 69 | status = "okay"; |
| 70 | }; |
| 71 | |
| 72 | pinctrl@01c20800 { |
| 73 | ahci_pwr_pin_olinuxinolime: ahci_pwr_pin@1 { |
| 74 | allwinner,pins = "PC3"; |
| 75 | allwinner,function = "gpio_out"; |
| 76 | allwinner,drive = <0>; |
| 77 | allwinner,pull = <0>; |
| 78 | }; |
| 79 | |
| 80 | led_pins_olinuxinolime: led_pins@0 { |
| 81 | allwinner,pins = "PH2"; |
| 82 | allwinner,function = "gpio_out"; |
| 83 | allwinner,drive = <1>; |
| 84 | allwinner,pull = <0>; |
| 85 | }; |
| 86 | }; |
| 87 | |
| 88 | uart0: serial@01c28000 { |
| 89 | pinctrl-names = "default"; |
| 90 | pinctrl-0 = <&uart0_pins_a>; |
| 91 | status = "okay"; |
| 92 | }; |
| 93 | }; |
| 94 | |
| 95 | leds { |
| 96 | compatible = "gpio-leds"; |
| 97 | pinctrl-names = "default"; |
| 98 | pinctrl-0 = <&led_pins_olinuxinolime>; |
| 99 | |
| 100 | green { |
| 101 | label = "a10-olinuxino-lime:green:usr"; |
| 102 | gpios = <&pio 7 2 0>; |
| 103 | default-state = "on"; |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | reg_ahci_5v: ahci-5v { |
| 108 | pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>; |
| 109 | gpio = <&pio 2 3 0>; |
| 110 | status = "okay"; |
| 111 | }; |
| 112 | |
| 113 | reg_usb1_vbus: usb1-vbus { |
| 114 | status = "okay"; |
| 115 | }; |
| 116 | |
| 117 | reg_usb2_vbus: usb2-vbus { |
| 118 | status = "okay"; |
| 119 | }; |
| 120 | }; |