Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 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/; |
Maxime Ripard | 68136b1 | 2012-12-12 17:08:23 +0100 | [diff] [blame] | 15 | /include/ "sun5i-a13.dtsi" |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 16 | |
| 17 | / { |
| 18 | model = "Olimex A13-Olinuxino"; |
Maxime Ripard | 68136b1 | 2012-12-12 17:08:23 +0100 | [diff] [blame] | 19 | compatible = "olimex,a13-olinuxino", "allwinner,sun5i-a13"; |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 20 | |
Maxime Ripard | 278fe8b | 2013-08-03 16:07:36 +0200 | [diff] [blame] | 21 | soc@01c00000 { |
Maxime Ripard | bfef081 | 2013-01-08 22:35:17 +0100 | [diff] [blame] | 22 | pinctrl@01c20800 { |
| 23 | led_pins_olinuxino: led_pins@0 { |
| 24 | allwinner,pins = "PG9"; |
| 25 | allwinner,function = "gpio_out"; |
| 26 | allwinner,drive = <1>; |
| 27 | allwinner,pull = <0>; |
| 28 | }; |
| 29 | }; |
| 30 | |
Maxime Ripard | b00adbe | 2013-03-18 10:54:49 +0100 | [diff] [blame] | 31 | uart1: serial@01c28400 { |
Maxime Ripard | c54729e | 2013-01-18 22:30:39 +0100 | [diff] [blame] | 32 | pinctrl-names = "default"; |
| 33 | pinctrl-0 = <&uart1_pins_b>; |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 34 | status = "okay"; |
| 35 | }; |
Maxime Ripard | 351617c | 2013-03-10 13:37:10 +0100 | [diff] [blame] | 36 | |
| 37 | i2c0: i2c@01c2ac00 { |
| 38 | pinctrl-names = "default"; |
| 39 | pinctrl-0 = <&i2c0_pins_a>; |
| 40 | status = "okay"; |
| 41 | }; |
| 42 | |
| 43 | i2c1: i2c@01c2b000 { |
| 44 | pinctrl-names = "default"; |
| 45 | pinctrl-0 = <&i2c1_pins_a>; |
| 46 | status = "okay"; |
| 47 | }; |
| 48 | |
| 49 | i2c2: i2c@01c2b400 { |
| 50 | pinctrl-names = "default"; |
| 51 | pinctrl-0 = <&i2c2_pins_a>; |
| 52 | status = "okay"; |
| 53 | }; |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 54 | }; |
Maxime Ripard | bfef081 | 2013-01-08 22:35:17 +0100 | [diff] [blame] | 55 | |
| 56 | leds { |
| 57 | compatible = "gpio-leds"; |
| 58 | pinctrl-names = "default"; |
| 59 | pinctrl-0 = <&led_pins_olinuxino>; |
| 60 | |
| 61 | power { |
| 62 | gpios = <&pio 6 9 0>; |
| 63 | default-state = "on"; |
| 64 | }; |
| 65 | }; |
Maxime Ripard | d4da2eb | 2012-11-14 20:17:04 +0100 | [diff] [blame] | 66 | }; |