arm64: dts: rockchip: move rk3399-sapphire pwr_btn to daughterboard
authorVicente Bergas <vicencb@gmail.com>
Mon, 19 Feb 2018 23:11:02 +0000 (00:11 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 20 Feb 2018 09:35:31 +0000 (10:35 +0100)
The power button is located on the daughterboard.

Signed-off-by: Vicente Bergas <vicencb@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator.dts
arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi

index 024038ef4f5401476e32d0e82f5c6d537a2b9579..56952d1a3fb8bd271e4535f2638fe9f7e691f8e3 100644 (file)
@@ -41,7 +41,6 @@
  */
 
 /dts-v1/;
-#include <dt-bindings/input/input.h>
 #include "rk3399-sapphire.dtsi"
 
 / {
                };
        };
 
-       keys: gpio-keys {
-               compatible = "gpio-keys";
-               autorepeat;
-
-               power {
-                       debounce-interval = <100>;
-                       gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
-                       label = "GPIO Power";
-                       linux,code = <KEY_POWER>;
-                       linux,input-type = <1>;
-                       pinctrl-names = "default";
-                       pinctrl-0 = <&pwr_btn>;
-                       wakeup-source;
-               };
-       };
-
        rt5651-sound {
                compatible = "simple-audio-card";
                simple-audio-card,name = "realtek,rt5651-codec";
 };
 
 &pinctrl {
-       buttons {
-               pwr_btn: pwr-btn {
-                       rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
-               };
-       };
-
        sdio-pwrseq {
                wifi_enable_h: wifi-enable-h {
                        rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
index a4548e64d3a2783a214dff59f3f24be28aaa6c3c..e5b0369e197fc1d33aa51b987ff75421d2092fac 100644 (file)
@@ -41,6 +41,7 @@
  */
 
 #include "dt-bindings/pwm/pwm.h"
+#include "dt-bindings/input/input.h"
 #include "rk3399.dtsi"
 #include "rk3399-opp.dtsi"
 
                regulator-max-microvolt = <12000000>;
        };
 
+       keys: gpio-keys {
+               compatible = "gpio-keys";
+               autorepeat;
+
+               power {
+                       debounce-interval = <100>;
+                       gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
+                       label = "GPIO Power";
+                       linux,code = <KEY_POWER>;
+                       linux,input-type = <1>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&pwr_btn>;
+                       wakeup-source;
+               };
+       };
+
        /* switched by pmic_sleep */
        vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
                compatible = "regulator-fixed";
 };
 
 &pinctrl {
+       buttons {
+               pwr_btn: pwr-btn {
+                       rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
+               };
+       };
+
        pmic {
                pmic_int_l: pmic-int-l {
                        rockchip,pins =