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" |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 15 | |
| 16 | / { |
| 17 | model = "Cubietech Cubieboard"; |
Maxime Ripard | 68136b1 | 2012-12-12 17:08:23 +0100 | [diff] [blame] | 18 | compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10"; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 19 | |
Maxime Ripard | b74aec1 | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 20 | soc@01c00000 { |
Stefan Roese | e5a84ba | 2013-05-30 03:49:24 +0000 | [diff] [blame] | 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 | |
Emilio López | 7e36210 | 2013-01-28 08:27:44 -0300 | [diff] [blame] | 36 | pinctrl@01c20800 { |
| 37 | led_pins_cubieboard: led_pins@0 { |
| 38 | allwinner,pins = "PH20", "PH21"; |
| 39 | allwinner,function = "gpio_out"; |
| 40 | allwinner,drive = <1>; |
| 41 | allwinner,pull = <0>; |
| 42 | }; |
| 43 | }; |
| 44 | |
Maxime Ripard | b00adbe | 2013-03-18 10:54:49 +0100 | [diff] [blame] | 45 | uart0: serial@01c28000 { |
Emilio López | 23b5cf3 | 2013-03-08 08:18:56 -0300 | [diff] [blame] | 46 | pinctrl-names = "default"; |
| 47 | pinctrl-0 = <&uart0_pins_a>; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 48 | status = "okay"; |
| 49 | }; |
Emilio López | f51cb49 | 2013-05-02 09:37:46 -0300 | [diff] [blame] | 50 | |
| 51 | i2c0: i2c@01c2ac00 { |
| 52 | pinctrl-names = "default"; |
| 53 | pinctrl-0 = <&i2c0_pins_a>; |
| 54 | status = "okay"; |
| 55 | }; |
| 56 | |
| 57 | i2c1: i2c@01c2b000 { |
| 58 | pinctrl-names = "default"; |
| 59 | pinctrl-0 = <&i2c1_pins_a>; |
| 60 | status = "okay"; |
| 61 | }; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 62 | }; |
Emilio López | 7e36210 | 2013-01-28 08:27:44 -0300 | [diff] [blame] | 63 | |
| 64 | leds { |
| 65 | compatible = "gpio-leds"; |
| 66 | pinctrl-names = "default"; |
| 67 | pinctrl-0 = <&led_pins_cubieboard>; |
| 68 | |
| 69 | blue { |
Emilio López | b961418 | 2013-07-22 22:19:01 -0300 | [diff] [blame] | 70 | label = "cubieboard:blue:usr"; |
Emilio López | 7e36210 | 2013-01-28 08:27:44 -0300 | [diff] [blame] | 71 | gpios = <&pio 7 21 0>; /* LED1 */ |
| 72 | }; |
| 73 | |
| 74 | green { |
Emilio López | b961418 | 2013-07-22 22:19:01 -0300 | [diff] [blame] | 75 | label = "cubieboard:green:usr"; |
Emilio López | 7e36210 | 2013-01-28 08:27:44 -0300 | [diff] [blame] | 76 | gpios = <&pio 7 20 0>; /* LED2 */ |
| 77 | linux,default-trigger = "heartbeat"; |
| 78 | }; |
| 79 | }; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 80 | }; |