1 // SPDX-License-Identifier: GPL-2.0-only
2 // Copyright (C) 2013 Philipp Zabel
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 model = "Zealz GK802";
11 compatible = "zealz,imx6q-gk802", "fsl,imx6q";
18 device_type = "memory";
19 reg = <0x10000000 0x40000000>;
23 compatible = "simple-bus";
27 reg_3p3v: regulator@0 {
28 compatible = "regulator-fixed";
30 regulator-name = "3P3V";
31 regulator-min-microvolt = <3300000>;
32 regulator-max-microvolt = <3300000>;
38 compatible = "gpio-keys";
42 gpios = <&gpio3 16 1>;
43 linux,code = <KEY_RESTART>;
50 ddc-i2c-bus = <&i2c3>;
56 pinctrl-names = "default";
57 pinctrl-0 = <&pinctrl_i2c2>;
58 clock-frequency = <100000>;
61 /* SDMC DM2016 1024 bit EEPROM + 128 bit OTP */
63 compatible = "sdmc,dm2016";
68 /* External I2C via HDMI */
70 pinctrl-names = "default";
71 pinctrl-0 = <&pinctrl_i2c3>;
72 clock-frequency = <100000>;
77 pinctrl-names = "default";
78 pinctrl-0 = <&pinctrl_hog>;
83 /* Recovery button, active-low */
84 MX6QDL_PAD_EIM_D16__GPIO3_IO16 0x100b1
85 /* RTL8192CU enable GPIO, active-low */
86 MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x1b0b0
90 pinctrl_i2c2: i2c2grp {
92 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
93 MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
97 pinctrl_i2c3: i2c3grp {
99 MX6QDL_PAD_GPIO_5__I2C3_SCL 0x4001b8b1
100 MX6QDL_PAD_GPIO_16__I2C3_SDA 0x4001b8b1
104 pinctrl_uart4: uart4grp {
106 MX6QDL_PAD_KEY_COL0__UART4_TX_DATA 0x1b0b1
107 MX6QDL_PAD_KEY_ROW0__UART4_RX_DATA 0x1b0b1
111 pinctrl_usdhc3: usdhc3grp {
113 MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
114 MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
115 MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
116 MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
117 MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
118 MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
122 pinctrl_usdhc4: usdhc4grp {
124 MX6QDL_PAD_SD4_CMD__SD4_CMD 0x17059
125 MX6QDL_PAD_SD4_CLK__SD4_CLK 0x10059
126 MX6QDL_PAD_SD4_DAT0__SD4_DATA0 0x17059
127 MX6QDL_PAD_SD4_DAT1__SD4_DATA1 0x17059
128 MX6QDL_PAD_SD4_DAT2__SD4_DATA2 0x17059
129 MX6QDL_PAD_SD4_DAT3__SD4_DATA3 0x17059
140 pinctrl-names = "default";
141 pinctrl-0 = <&pinctrl_uart4>;
145 /* External USB-A port (USBOTG) */
147 disable-over-current;
151 /* Internal USB port (USBH1), connected to RTL8192CU */
153 disable-over-current;
157 /* External microSD */
159 pinctrl-names = "default";
160 pinctrl-0 = <&pinctrl_usdhc3>;
162 cd-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
163 vmmc-supply = <®_3p3v>;
167 /* Internal microSD */
169 pinctrl-names = "default";
170 pinctrl-0 = <&pinctrl_usdhc4>;
172 vmmc-supply = <®_3p3v>;