1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (c) 2021 T-Chip Intelligent Technology Co., Ltd
6 #include <dt-bindings/input/input.h>
8 #include "rk3328-roc-cc.dts"
11 model = "Firefly ROC-RK3328-PC";
12 compatible = "firefly,roc-rk3328-pc", "rockchip,rk3328";
15 compatible = "adc-keys";
16 io-channels = <&saradc 0>;
17 io-channel-names = "buttons";
18 keyup-threshold-microvolt = <1750000>;
20 /* This button is unpopulated out of the factory. */
23 linux,code = <KEY_VENDOR>;
24 press-threshold-microvolt = <10000>;
29 compatible = "gpio-ir-receiver";
30 gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_LOW>;
31 linux,rc-map-name = "rc-khadas";
32 pinctrl-names = "default";
33 pinctrl-0 = <&ir_int>;
36 sdio_pwrseq: sdio-pwrseq {
37 compatible = "mmc-pwrseq-simple";
38 pinctrl-names = "default";
39 pinctrl-0 = <&wifi_en>, <&wifi_host_wake>;
40 reset-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_LOW>;
45 mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>;
49 mali-supply = <&vdd_logic>;
55 rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
60 sdio_per_pin: sdio-per-pin {
61 rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_down>;
67 rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
70 wifi_host_wake: wifi-host-wake {
71 rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none_4ma>;
75 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
79 rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
85 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>;
89 interrupt-parent = <&gpio0>;
90 interrupts = <RK_PA2 IRQ_TYPE_LEVEL_LOW>;
94 vref-supply = <&vcc_18>;
99 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
103 gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
107 gpios = <&gpio0 RK_PD3 GPIO_ACTIVE_HIGH>;
108 pinctrl-names = "default";
109 pinctrl-0 = <&sdio_per_pin>;