sun4i-a10-cubieboard.dts revision c0955a86f4af4fef7965bfcd41a9642a3f67486b
1/* 2 * Copyright 2012 Stefan Roese 3 * Stefan Roese <sr@denx.de> 4 * 5 * The code contained herein is licensed under the GNU General Public 6 * License. You may obtain a copy of the GNU General Public License 7 * Version 2 or later at the following locations: 8 * 9 * http://www.opensource.org/licenses/gpl-license.html 10 * http://www.gnu.org/copyleft/gpl.html 11 */ 12 13/dts-v1/; 14/include/ "sun4i-a10.dtsi" 15/include/ "sunxi-common-regulators.dtsi" 16 17/ { 18 model = "Cubietech Cubieboard"; 19 compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10"; 20 21 soc@01c00000 { 22 emac: ethernet@01c0b000 { 23 pinctrl-names = "default"; 24 pinctrl-0 = <&emac_pins_a>; 25 phy = <&phy1>; 26 status = "okay"; 27 }; 28 29 mdio@01c0b080 { 30 status = "okay"; 31 32 phy1: ethernet-phy@1 { 33 reg = <1>; 34 }; 35 }; 36 37 mmc0: mmc@01c0f000 { 38 pinctrl-names = "default"; 39 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; 40 bus-width = <4>; 41 cd-gpios = <&pio 7 1 0>; /* PH1 */ 42 cd-inverted; 43 status = "okay"; 44 }; 45 46 usbphy: phy@01c13400 { 47 usb1_vbus-supply = <®_usb1_vbus>; 48 usb2_vbus-supply = <®_usb2_vbus>; 49 status = "okay"; 50 }; 51 52 ehci0: usb@01c14000 { 53 status = "okay"; 54 }; 55 56 ohci0: usb@01c14400 { 57 status = "okay"; 58 }; 59 60 ahci: sata@01c18000 { 61 target-supply = <®_ahci_5v>; 62 status = "okay"; 63 }; 64 65 ehci1: usb@01c1c000 { 66 status = "okay"; 67 }; 68 69 ohci1: usb@01c1c400 { 70 status = "okay"; 71 }; 72 73 pinctrl@01c20800 { 74 led_pins_cubieboard: led_pins@0 { 75 allwinner,pins = "PH20", "PH21"; 76 allwinner,function = "gpio_out"; 77 allwinner,drive = <1>; 78 allwinner,pull = <0>; 79 }; 80 }; 81 82 uart0: serial@01c28000 { 83 pinctrl-names = "default"; 84 pinctrl-0 = <&uart0_pins_a>; 85 status = "okay"; 86 }; 87 88 i2c0: i2c@01c2ac00 { 89 pinctrl-names = "default"; 90 pinctrl-0 = <&i2c0_pins_a>; 91 status = "okay"; 92 }; 93 94 i2c1: i2c@01c2b000 { 95 pinctrl-names = "default"; 96 pinctrl-0 = <&i2c1_pins_a>; 97 status = "okay"; 98 }; 99 }; 100 101 leds { 102 compatible = "gpio-leds"; 103 pinctrl-names = "default"; 104 pinctrl-0 = <&led_pins_cubieboard>; 105 106 blue { 107 label = "cubieboard:blue:usr"; 108 gpios = <&pio 7 21 0>; /* LED1 */ 109 }; 110 111 green { 112 label = "cubieboard:green:usr"; 113 gpios = <&pio 7 20 0>; /* LED2 */ 114 linux,default-trigger = "heartbeat"; 115 }; 116 }; 117 118 reg_ahci_5v: ahci-5v { 119 status = "okay"; 120 }; 121 122 reg_usb1_vbus: usb1-vbus { 123 status = "okay"; 124 }; 125 126 reg_usb2_vbus: usb2-vbus { 127 status = "okay"; 128 }; 129}; 130