diff options
Diffstat (limited to 'arch/arm/boot/dts/sun4i-a10-pcduino.dts')
-rw-r--r-- | arch/arm/boot/dts/sun4i-a10-pcduino.dts | 68 |
1 files changed, 65 insertions, 3 deletions
diff --git a/arch/arm/boot/dts/sun4i-a10-pcduino.dts b/arch/arm/boot/dts/sun4i-a10-pcduino.dts index ce5994597407..9d1e5482cf82 100644 --- a/arch/arm/boot/dts/sun4i-a10-pcduino.dts +++ b/arch/arm/boot/dts/sun4i-a10-pcduino.dts | |||
@@ -47,8 +47,12 @@ | |||
47 | */ | 47 | */ |
48 | 48 | ||
49 | /dts-v1/; | 49 | /dts-v1/; |
50 | /include/ "sun4i-a10.dtsi" | 50 | #include "sun4i-a10.dtsi" |
51 | /include/ "sunxi-common-regulators.dtsi" | 51 | #include "sunxi-common-regulators.dtsi" |
52 | |||
53 | #include <dt-bindings/gpio/gpio.h> | ||
54 | #include <dt-bindings/input/input.h> | ||
55 | #include <dt-bindings/pinctrl/sun4i-a10.h> | ||
52 | 56 | ||
53 | / { | 57 | / { |
54 | model = "LinkSprite pcDuino"; | 58 | model = "LinkSprite pcDuino"; |
@@ -62,6 +66,22 @@ | |||
62 | status = "okay"; | 66 | status = "okay"; |
63 | }; | 67 | }; |
64 | 68 | ||
69 | pinctrl@01c20800 { | ||
70 | led_pins_pcduino: led_pins@0 { | ||
71 | allwinner,pins = "PH15", "PH16"; | ||
72 | allwinner,function = "gpio_out"; | ||
73 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | ||
74 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; | ||
75 | }; | ||
76 | |||
77 | key_pins_pcduino: key_pins@0 { | ||
78 | allwinner,pins = "PH17", "PH18", "PH19"; | ||
79 | allwinner,function = "gpio_in"; | ||
80 | allwinner,drive = <SUN4I_PINCTRL_10_MA>; | ||
81 | allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; | ||
82 | }; | ||
83 | }; | ||
84 | |||
65 | mdio@01c0b080 { | 85 | mdio@01c0b080 { |
66 | status = "okay"; | 86 | status = "okay"; |
67 | 87 | ||
@@ -75,7 +95,7 @@ | |||
75 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; | 95 | pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; |
76 | vmmc-supply = <®_vcc3v3>; | 96 | vmmc-supply = <®_vcc3v3>; |
77 | bus-width = <4>; | 97 | bus-width = <4>; |
78 | cd-gpios = <&pio 7 1 0>; /* PH1 */ | 98 | cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ |
79 | cd-inverted; | 99 | cd-inverted; |
80 | status = "okay"; | 100 | status = "okay"; |
81 | }; | 101 | }; |
@@ -124,6 +144,48 @@ | |||
124 | }; | 144 | }; |
125 | }; | 145 | }; |
126 | 146 | ||
147 | leds { | ||
148 | compatible = "gpio-leds"; | ||
149 | pinctrl-names = "default"; | ||
150 | pinctrl-0 = <&led_pins_pcduino>; | ||
151 | |||
152 | tx { | ||
153 | label = "pcduino:green:tx"; | ||
154 | gpios = <&pio 7 15 GPIO_ACTIVE_LOW>; | ||
155 | }; | ||
156 | |||
157 | rx { | ||
158 | label = "pcduino:green:rx"; | ||
159 | gpios = <&pio 7 16 GPIO_ACTIVE_LOW>; | ||
160 | }; | ||
161 | }; | ||
162 | |||
163 | gpio_keys { | ||
164 | compatible = "gpio-keys"; | ||
165 | pinctrl-names = "default"; | ||
166 | pinctrl-0 = <&key_pins_pcduino>; | ||
167 | #address-cells = <1>; | ||
168 | #size-cells = <0>; | ||
169 | |||
170 | button@0 { | ||
171 | label = "Key Back"; | ||
172 | linux,code = <KEY_BACK>; | ||
173 | gpios = <&pio 7 17 GPIO_ACTIVE_LOW>; | ||
174 | }; | ||
175 | |||
176 | button@1 { | ||
177 | label = "Key Home"; | ||
178 | linux,code = <KEY_HOME>; | ||
179 | gpios = <&pio 7 18 GPIO_ACTIVE_LOW>; | ||
180 | }; | ||
181 | |||
182 | button@2 { | ||
183 | label = "Key Menu"; | ||
184 | linux,code = <KEY_MENU>; | ||
185 | gpios = <&pio 7 19 GPIO_ACTIVE_LOW>; | ||
186 | }; | ||
187 | }; | ||
188 | |||
127 | reg_usb1_vbus: usb1-vbus { | 189 | reg_usb1_vbus: usb1-vbus { |
128 | status = "okay"; | 190 | status = "okay"; |
129 | }; | 191 | }; |