+
+ io-domains {
+ compatible = "rockchip,rk3366-io-voltage-domain";
+ rockchip,grf = <&grf>;
+
+ lcdc-supply = <&vcc_io>;
+ dvpts-supply = <&vcc_18>;
+ wifibt-supply = <&vccio_wl>;
+ audio-supply = <&vcc_io>;
+ sdcard-supply = <&vccio_sd>;
+ tphdsor-supply = <&vcc_io>;
+ };
+
+ dwc_control_usb: dwc-control-usb {
+ compatible = "rockchip,rk3368-dwc-control-usb";
+ rockchip,grf = <&grf>;
+ grf-offset = <0x049c>; /* GRF_SOC_STATUS for USB2.0 OTG */
+ interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "otg_id", "otg_bvalid",
+ "otg_linestate", "host0_linestate";
+ clocks = <&cru SCLK_USBPHY480M>;
+ clock-names = "usbphy_480m";
+
+ usb_bc {
+ compatible = "inno,phy";
+ regbase = &dwc_control_usb;
+ rk_usb,bvalid = <0x49c 23 1>;
+ rk_usb,iddig = <0x49c 26 1>;
+ rk_usb,vdmsrcen = <0x718 12 1>;
+ rk_usb,vdpsrcen = <0x718 11 1>;
+ rk_usb,rdmpden = <0x718 10 1>;
+ rk_usb,idpsrcen = <0x718 9 1>;
+ rk_usb,idmsinken = <0x718 8 1>;
+ rk_usb,idpsinken = <0x718 7 1>;
+ rk_usb,dpattach = <0x498 31 1>;
+ rk_usb,cpdet = <0x498 30 1>;
+ rk_usb,dcpattach = <0x498 29 1>;
+ };
+ };
+
+ i2c@2 {
+ compatible = "i2c-gpio";
+ gpios = <&gpio5 15 GPIO_ACTIVE_HIGH>, /* sda */
+ <&gpio5 16 GPIO_ACTIVE_HIGH>; /* scl */
+ i2c-gpio,delay-us = <2>; /* ~100 kHz */
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c2_gpio>;
+ status = "disabled";
+ };
+
+ i2c@4 {
+ compatible = "i2c-gpio";
+ gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>, /* sda */
+ <&gpio5 8 GPIO_ACTIVE_HIGH>; /* scl */
+ i2c-gpio,delay-us = <2>; /* ~100 kHz */
+ #address-cells = <1>;
+ #size-cells = <0>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c4_gpio>;
+ status = "okay";
+
+ gt9xx: gt9xx@14 {
+ compatible = "goodix,gt9xx";
+ reg = <0x14>;
+ touch-gpio = <&gpio5 11 IRQ_TYPE_LEVEL_LOW>;
+ reset-gpio = <&gpio5 10 GPIO_ACTIVE_HIGH>;
+ max-x = <1200>;
+ max-y = <1900>;
+ tp-size = <911>;
+ tp-supply = <&vcc_tp>;
+ status = "okay";
+ };
+ };
+
+ sdio_pwrseq: sdio-pwrseq {
+ compatible = "mmc-pwrseq-simple";
+ clocks = <&rk818 1>;
+ clock-names = "ext_clock";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wifi_enable_h>;
+
+ /*
+ * On the module itself this is one of these (depending
+ * on the actual card populated):
+ * - SDIO_RESET_L_WL_REG_ON
+ * - PDN (power down when low)
+ */
+ reset-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; /* GPIO0_B6 */
+ };
+
+ wireless-wlan {
+ compatible = "wlan-platdata";
+ rockchip,grf = <&grf>;
+ wifi_chip_type = "ap6335";
+ sdio_vref = <1800>;
+ WIFI,host_wake_irq = <&gpio3 20 GPIO_ACTIVE_HIGH>; /* GPIO3_c4 */
+ status = "okay";
+ };
+
+ wireless-bluetooth {
+ compatible = "bluetooth-platdata";
+ //wifi-bt-power-toggle;
+ uart_rts_gpios = <&gpio3 11 GPIO_ACTIVE_LOW>; /* GPIO3_b3 */
+ pinctrl-names = "default","rts_gpio";
+ pinctrl-0 = <&uart0_rts>;
+ pinctrl-1 = <&uart0_rts_gpio>;
+ //BT,power_gpio = <&gpio3 19 GPIO_ACTIVE_HIGH>; /* GPIO3_c3 */
+ BT,reset_gpio = <&gpio3 19 GPIO_ACTIVE_HIGH>; /* GPIO3_c3 */
+ BT,wake_gpio = <&gpio3 18 GPIO_ACTIVE_HIGH>; /* GPIO3_c2 */
+ BT,wake_host_irq = <&gpio3 21 GPIO_ACTIVE_HIGH>; /* GPIO3_c5 */
+ status = "okay";
+ };
+};
+
+&tsadc {
+ status = "okay";
+};
+
+&nandc0 {
+ status = "okay"; /* enable both for emmc and nand */