Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 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/; |
Maxime Ripard | 68136b1 | 2012-12-12 17:08:23 +0100 | [diff] [blame] | 14 | /include/ "sun4i-a10.dtsi" |
Oliver Schinagl | 248bd1e | 2014-03-01 20:26:21 +0100 | [diff] [blame] | 15 | /include/ "sunxi-common-regulators.dtsi" |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | model = "Cubietech Cubieboard"; |
Maxime Ripard | 68136b1 | 2012-12-12 17:08:23 +0100 | [diff] [blame] | 19 | compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10"; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 20 | |
Maxime Ripard | b74aec1 | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 21 | soc@01c00000 { |
Stefan Roese | e5a84ba | 2013-05-30 03:49:24 +0000 | [diff] [blame] | 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 | |
Roman Byshko | f28f9eb | 2014-03-01 20:26:27 +0100 | [diff] [blame^] | 37 | usbphy: phy@01c13400 { |
| 38 | usb1_vbus-supply = <®_usb1_vbus>; |
| 39 | usb2_vbus-supply = <®_usb2_vbus>; |
| 40 | status = "okay"; |
| 41 | }; |
| 42 | |
| 43 | ehci0: usb@01c14000 { |
| 44 | status = "okay"; |
| 45 | }; |
| 46 | |
| 47 | ohci0: usb@01c14400 { |
| 48 | status = "okay"; |
| 49 | }; |
| 50 | |
Oliver Schinagl | 248bd1e | 2014-03-01 20:26:21 +0100 | [diff] [blame] | 51 | ahci: sata@01c18000 { |
| 52 | target-supply = <®_ahci_5v>; |
| 53 | status = "okay"; |
| 54 | }; |
| 55 | |
Roman Byshko | f28f9eb | 2014-03-01 20:26:27 +0100 | [diff] [blame^] | 56 | ehci1: usb@01c1c000 { |
| 57 | status = "okay"; |
| 58 | }; |
| 59 | |
| 60 | ohci1: usb@01c1c400 { |
| 61 | status = "okay"; |
| 62 | }; |
| 63 | |
Emilio López | 7e36210 | 2013-01-28 08:27:44 -0300 | [diff] [blame] | 64 | pinctrl@01c20800 { |
| 65 | led_pins_cubieboard: led_pins@0 { |
| 66 | allwinner,pins = "PH20", "PH21"; |
| 67 | allwinner,function = "gpio_out"; |
| 68 | allwinner,drive = <1>; |
| 69 | allwinner,pull = <0>; |
| 70 | }; |
| 71 | }; |
| 72 | |
Maxime Ripard | b00adbe | 2013-03-18 10:54:49 +0100 | [diff] [blame] | 73 | uart0: serial@01c28000 { |
Emilio López | 23b5cf3 | 2013-03-08 08:18:56 -0300 | [diff] [blame] | 74 | pinctrl-names = "default"; |
| 75 | pinctrl-0 = <&uart0_pins_a>; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 76 | status = "okay"; |
| 77 | }; |
Emilio López | f51cb49 | 2013-05-02 09:37:46 -0300 | [diff] [blame] | 78 | |
| 79 | i2c0: i2c@01c2ac00 { |
| 80 | pinctrl-names = "default"; |
| 81 | pinctrl-0 = <&i2c0_pins_a>; |
| 82 | status = "okay"; |
| 83 | }; |
| 84 | |
| 85 | i2c1: i2c@01c2b000 { |
| 86 | pinctrl-names = "default"; |
| 87 | pinctrl-0 = <&i2c1_pins_a>; |
| 88 | status = "okay"; |
| 89 | }; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 90 | }; |
Emilio López | 7e36210 | 2013-01-28 08:27:44 -0300 | [diff] [blame] | 91 | |
| 92 | leds { |
| 93 | compatible = "gpio-leds"; |
| 94 | pinctrl-names = "default"; |
| 95 | pinctrl-0 = <&led_pins_cubieboard>; |
| 96 | |
| 97 | blue { |
Emilio López | b961418 | 2013-07-22 22:19:01 -0300 | [diff] [blame] | 98 | label = "cubieboard:blue:usr"; |
Emilio López | 7e36210 | 2013-01-28 08:27:44 -0300 | [diff] [blame] | 99 | gpios = <&pio 7 21 0>; /* LED1 */ |
| 100 | }; |
| 101 | |
| 102 | green { |
Emilio López | b961418 | 2013-07-22 22:19:01 -0300 | [diff] [blame] | 103 | label = "cubieboard:green:usr"; |
Emilio López | 7e36210 | 2013-01-28 08:27:44 -0300 | [diff] [blame] | 104 | gpios = <&pio 7 20 0>; /* LED2 */ |
| 105 | linux,default-trigger = "heartbeat"; |
| 106 | }; |
| 107 | }; |
Oliver Schinagl | 248bd1e | 2014-03-01 20:26:21 +0100 | [diff] [blame] | 108 | |
| 109 | reg_ahci_5v: ahci-5v { |
| 110 | status = "okay"; |
| 111 | }; |
Roman Byshko | f28f9eb | 2014-03-01 20:26:27 +0100 | [diff] [blame^] | 112 | |
| 113 | reg_usb1_vbus: usb1-vbus { |
| 114 | status = "okay"; |
| 115 | }; |
| 116 | |
| 117 | reg_usb2_vbus: usb2-vbus { |
| 118 | status = "okay"; |
| 119 | }; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 120 | }; |