WIFI,host_wake_irq = <&gpio0 28 GPIO_ACTIVE_HIGH>;
status = "okay";
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwr_key>;
+
+ power_key: power-key {
+ label = "GPIO Key Power";
+ gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
+ linux,code = <116>;
+ debounce-interval = <100>;
+ wakeup-source;
+ };
+ };
};
&gpu {
};
};
+ keys {
+ pwr_key: pwr-key {
+ rockchip,pins = <3 23 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
};
&sdio {
regulator-always-on;
};
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwr_key>;
+
+ power_key: power-key {
+ label = "GPIO Key Power";
+ gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
+ linux,code = <116>;
+ debounce-interval = <100>;
+ wakeup-source;
+ };
+ };
};
&cpu0 {
rockchip,pins = <3 20 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
+
+ keys {
+ pwr_key: pwr-key {
+ rockchip,pins = <3 23 RK_FUNC_GPIO &pcfg_pull_up>;
+ };
+ };
};
&pwm1 {
WIFI,host_wake_irq = <&gpio0 28 GPIO_ACTIVE_HIGH>;
status = "okay";
};
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ autorepeat;
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwr_key &bt_key &mute_key>;
+
+ power_key {
+ label = "GPIO Key Power";
+ gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
+ linux,code = <116>;
+ debounce-interval = <100>;
+ wakeup-source;
+ };
+
+ bt_key {
+ label = "Blutooth Key";
+ gpios = <&gpio3 31 GPIO_ACTIVE_HIGH>;
+ linux,code = <237>;
+ debounce-interval = <100>;
+ };
+
+ mute_key {
+ label = "Mute Key";
+ gpios = <&gpio3 20 GPIO_ACTIVE_HIGH>;
+ linux,code = <113>;
+ debounce-interval = <100>;
+ };
+ };
};
&gpu {
status = "disabled";
};
-&power_key {
- gpios = <&gpio1 18 GPIO_ACTIVE_HIGH>;
-};
-
&i2c0 {
status = "okay";
pwr_key: pwr-key {
rockchip,pins = <1 18 RK_FUNC_GPIO &pcfg_pull_down>;
};
+
+ bt_key: bt-key {
+ rockchip,pins = <3 31 RK_FUNC_GPIO &pcfg_pull_down>;
+ };
+
+ mute_key: mute-key {
+ rockchip,pins = <3 20 RK_FUNC_GPIO &pcfg_pull_down>;
+ };
};
pmic {
compatible = "arm,psci-1.0";
method = "smc";
};
-
- gpio_keys {
- compatible = "gpio-keys";
- #address-cells = <1>;
- #size-cells = <0>;
- autorepeat;
-
- pinctrl-names = "default";
- pinctrl-0 = <&pwr_key>;
-
- power_key: power-key {
- label = "GPIO Key Power";
- gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
- linux,code = <116>;
- debounce-interval = <100>;
- wakeup-source;
- };
- };
};
&cpu0 {
supports-sdio;
};
-&pinctrl {
- keys {
- pwr_key: pwr-key {
- rockchip,pins = <3 23 RK_FUNC_GPIO &pcfg_pull_up>;
- };
- };
-};
-
&tsadc {
rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */
status = "okay";