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 | |
| 20 | aliases { |
| 21 | serial0 = &uart0; |
| 22 | serial1 = &uart1; |
| 23 | }; |
| 24 | |
| 25 | chosen { |
| 26 | bootargs = "earlyprintk console=ttyS0,115200"; |
| 27 | }; |
| 28 | |
Maxime Ripard | 69144e3 | 2013-03-13 20:07:37 +0100 | [diff] [blame] | 29 | soc@01c20000 { |
Emilio López | 7e36210 | 2013-01-28 08:27:44 -0300 | [diff] [blame] | 30 | pinctrl@01c20800 { |
| 31 | led_pins_cubieboard: led_pins@0 { |
| 32 | allwinner,pins = "PH20", "PH21"; |
| 33 | allwinner,function = "gpio_out"; |
| 34 | allwinner,drive = <1>; |
| 35 | allwinner,pull = <0>; |
| 36 | }; |
| 37 | }; |
| 38 | |
Maxime Ripard | b00adbe | 2013-03-18 10:54:49 +0100 | [diff] [blame] | 39 | uart0: serial@01c28000 { |
Emilio López | 23b5cf3 | 2013-03-08 08:18:56 -0300 | [diff] [blame] | 40 | pinctrl-names = "default"; |
| 41 | pinctrl-0 = <&uart0_pins_a>; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 42 | status = "okay"; |
| 43 | }; |
Emilio López | f51cb49 | 2013-05-02 09:37:46 -0300 | [diff] [blame^] | 44 | |
| 45 | i2c0: i2c@01c2ac00 { |
| 46 | pinctrl-names = "default"; |
| 47 | pinctrl-0 = <&i2c0_pins_a>; |
| 48 | status = "okay"; |
| 49 | }; |
| 50 | |
| 51 | i2c1: i2c@01c2b000 { |
| 52 | pinctrl-names = "default"; |
| 53 | pinctrl-0 = <&i2c1_pins_a>; |
| 54 | status = "okay"; |
| 55 | }; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 56 | }; |
Emilio López | 7e36210 | 2013-01-28 08:27:44 -0300 | [diff] [blame] | 57 | |
| 58 | leds { |
| 59 | compatible = "gpio-leds"; |
| 60 | pinctrl-names = "default"; |
| 61 | pinctrl-0 = <&led_pins_cubieboard>; |
| 62 | |
| 63 | blue { |
| 64 | label = "cubieboard::blue"; |
| 65 | gpios = <&pio 7 21 0>; /* LED1 */ |
| 66 | }; |
| 67 | |
| 68 | green { |
| 69 | label = "cubieboard::green"; |
| 70 | gpios = <&pio 7 20 0>; /* LED2 */ |
| 71 | linux,default-trigger = "heartbeat"; |
| 72 | }; |
| 73 | }; |
Stefan Roese | f055f1f | 2012-11-19 12:09:42 +0100 | [diff] [blame] | 74 | }; |