Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2013 Maxime Ripard |
| 3 | * |
| 4 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
| 5 | * |
| 6 | * The code contained herein is licensed under the GNU General Public |
| 7 | * License. You may obtain a copy of the GNU General Public License |
| 8 | * Version 2 or later at the following locations: |
| 9 | * |
| 10 | * http://www.opensource.org/licenses/gpl-license.html |
| 11 | * http://www.gnu.org/copyleft/gpl.html |
| 12 | */ |
| 13 | |
| 14 | /dts-v1/; |
| 15 | /include/ "sun7i-a20.dtsi" |
| 16 | |
| 17 | / { |
| 18 | model = "Cubietech Cubieboard2"; |
| 19 | compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20"; |
| 20 | |
| 21 | soc@01c00000 { |
Maxime Ripard | 0547433 | 2013-09-11 11:10:08 +0200 | [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 | |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 37 | pinctrl@01c20800 { |
| 38 | led_pins_cubieboard2: led_pins@0 { |
| 39 | allwinner,pins = "PH20", "PH21"; |
| 40 | allwinner,function = "gpio_out"; |
| 41 | allwinner,drive = <0>; |
| 42 | allwinner,pull = <0>; |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | uart0: serial@01c28000 { |
| 47 | pinctrl-names = "default"; |
| 48 | pinctrl-0 = <&uart0_pins_a>; |
| 49 | status = "okay"; |
| 50 | }; |
Maxime Ripard | ce0106c | 2013-08-31 23:12:58 +0200 | [diff] [blame^] | 51 | |
| 52 | i2c0: i2c@01c2ac00 { |
| 53 | pinctrl-names = "default"; |
| 54 | pinctrl-0 = <&i2c0_pins_a>; |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
| 58 | i2c1: i2c@01c2b000 { |
| 59 | pinctrl-names = "default"; |
| 60 | pinctrl-0 = <&i2c1_pins_a>; |
| 61 | status = "okay"; |
| 62 | }; |
Maxime Ripard | 82abe52 | 2013-07-25 12:19:16 +0200 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | leds { |
| 66 | compatible = "gpio-leds"; |
| 67 | pinctrl-names = "default"; |
| 68 | pinctrl-0 = <&led_pins_cubieboard2>; |
| 69 | |
| 70 | blue { |
| 71 | label = "cubieboard2:blue:usr"; |
| 72 | gpios = <&pio 7 21 0>; |
| 73 | }; |
| 74 | |
| 75 | green { |
| 76 | label = "cubieboard2:green:usr"; |
| 77 | gpios = <&pio 7 20 0>; |
| 78 | }; |
| 79 | }; |
| 80 | }; |