2 * Copyright 2015 Hans de Goede <hdegoede@redhat.com>
4 * This file is dual-licensed: you can use it either under the terms
5 * of the GPL or the X11 license, at your option. Note that this dual
6 * licensing only applies to this file, and not this project as a
9 * a) This file is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This file is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
21 * b) Permission is hereby granted, free of charge, to any person
22 * obtaining a copy of this software and associated documentation
23 * files (the "Software"), to deal in the Software without
24 * restriction, including without limitation the rights to use,
25 * copy, modify, merge, publish, distribute, sublicense, and/or
26 * sell copies of the Software, and to permit persons to whom the
27 * Software is furnished to do so, subject to the following
30 * The above copyright notice and this permission notice shall be
31 * included in all copies or substantial portions of the Software.
33 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40 * OTHER DEALINGS IN THE SOFTWARE.
44 #include "sun4i-a10.dtsi"
45 #include "sunxi-common-regulators.dtsi"
46 #include <dt-bindings/gpio/gpio.h>
47 #include <dt-bindings/input/input.h>
48 #include <dt-bindings/interrupt-controller/irq.h>
51 model = "iNet-9F Rev 03";
52 compatible = "inet-tek,inet9f-rev03", "allwinner,sun4i-a10";
59 stdout-path = "serial0:115200n8";
63 compatible = "gpio-keys-polled";
67 label = "Left Joystick Left";
69 linux,input-type = <EV_ABS>;
70 linux,input-value = <0xffffffff>; /* -1 */
71 gpios = <&pio 0 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA6 */
75 label = "Left Joystick Right";
77 linux,input-type = <EV_ABS>;
78 linux,input-value = <1>;
79 gpios = <&pio 0 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA5 */
83 label = "Left Joystick Up";
85 linux,input-type = <EV_ABS>;
86 linux,input-value = <0xffffffff>; /* -1 */
87 gpios = <&pio 0 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA8 */
91 label = "Left Joystick Down";
93 linux,input-type = <EV_ABS>;
94 linux,input-value = <1>;
95 gpios = <&pio 0 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA9 */
99 label = "Right Joystick Left";
100 linux,code = <ABS_Z>;
101 linux,input-type = <EV_ABS>;
102 linux,input-value = <0xffffffff>; /* -1 */
103 gpios = <&pio 0 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA1 */
106 right-joystick-right {
107 label = "Right Joystick Right";
108 linux,code = <ABS_Z>;
109 linux,input-type = <EV_ABS>;
110 linux,input-value = <1>;
111 gpios = <&pio 0 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA0 */
115 label = "Right Joystick Up";
116 linux,code = <ABS_RZ>;
117 linux,input-type = <EV_ABS>;
118 linux,input-value = <0xffffffff>; /* -1 */
119 gpios = <&pio 0 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA3 */
122 right-joystick-down {
123 label = "Right Joystick Down";
124 linux,code = <ABS_RZ>;
125 linux,input-type = <EV_ABS>;
126 linux,input-value = <1>;
127 gpios = <&pio 0 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA4 */
132 linux,code = <ABS_HAT0X>;
133 linux,input-type = <EV_ABS>;
134 linux,input-value = <0xffffffff>; /* -1 */
135 gpios = <&pio 7 23 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH23 */
139 label = "DPad Right";
140 linux,code = <ABS_HAT0X>;
141 linux,input-type = <EV_ABS>;
142 linux,input-value = <1>;
143 gpios = <&pio 7 24 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH24 */
148 linux,code = <ABS_HAT0Y>;
149 linux,input-type = <EV_ABS>;
150 linux,input-value = <0xffffffff>; /* -1 */
151 gpios = <&pio 7 25 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH25 */
156 linux,code = <ABS_HAT0Y>;
157 linux,input-type = <EV_ABS>;
158 linux,input-value = <1>;
159 gpios = <&pio 7 26 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH26 */
164 linux,code = <BTN_X>;
165 gpios = <&pio 0 16 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA16 */
170 linux,code = <BTN_Y>;
171 gpios = <&pio 0 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA14 */
176 linux,code = <BTN_A>;
177 gpios = <&pio 0 17 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA17 */
182 linux,code = <BTN_B>;
183 gpios = <&pio 0 15 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA15 */
187 label = "Select Button";
188 linux,code = <BTN_SELECT>;
189 gpios = <&pio 0 11 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA11 */
193 label = "Start Button";
194 linux,code = <BTN_START>;
195 gpios = <&pio 0 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA12 */
199 label = "Top Left Button";
200 linux,code = <BTN_TL>;
201 gpios = <&pio 7 22 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PH22 */
205 label = "Top Right Button";
206 linux,code = <BTN_TR>;
207 gpios = <&pio 0 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PA13 */
213 cpu-supply = <®_dcdc2>;
229 #include "axp209.dtsi"
236 compatible = "bosch,bma250";
238 interrupt-parent = <&pio>;
239 interrupts = <7 0 IRQ_TYPE_EDGE_RISING>; /* PH0 / EINT0 */
246 ft5406ee8: touchscreen@38 {
247 compatible = "edt,edt-ft5406";
249 interrupt-parent = <&pio>;
250 interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>;
251 touchscreen-size-x = <800>;
252 touchscreen-size-y = <480>;
257 vref-supply = <®_ldo2>;
262 linux,code = <KEY_MENU>;
269 linux,code = <KEY_VOLUMEUP>;
275 label = "Volume Down";
276 linux,code = <KEY_VOLUMEDOWN>;
283 linux,code = <KEY_HOMEPAGE>;
290 linux,code = <KEY_ESC>;
297 vmmc-supply = <®_vcc3v3>;
299 cd-gpios = <&pio 7 1 GPIO_ACTIVE_LOW>; /* PH1 */
309 regulator-min-microvolt = <1000000>;
310 regulator-max-microvolt = <1400000>;
311 regulator-name = "vdd-cpu";
316 regulator-min-microvolt = <1250000>;
317 regulator-max-microvolt = <1250000>;
318 regulator-name = "vdd-int-dll";
322 regulator-name = "vdd-rtc";
327 regulator-min-microvolt = <3000000>;
328 regulator-max-microvolt = <3000000>;
329 regulator-name = "avcc";
341 pinctrl-names = "default";
342 pinctrl-0 = <&uart0_pb_pins>;
352 usb0_id_det-gpios = <&pio 7 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PH4 */
353 usb0_vbus_det-gpios = <&pio 7 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PH5 */
354 usb0_vbus-supply = <®_usb0_vbus>;
355 usb2_vbus-supply = <®_usb2_vbus>;