mirror of https://gitee.com/openkylin/linux.git
arm64: dts: rockchip: Clean up gpio-keys nodes
Drop superfluous #address-cells and #size-cells. Use KEY_POWER define for 116. Rename sub-nodes to avoid new dtc warnings. Reported-by: Julien Chauveau <chauveau.julien@gmail.com> Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Julien Chauveau <chauveau.julien@gmail.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
This commit is contained in:
parent
33e84ad032
commit
479d75b760
|
@ -40,6 +40,7 @@
|
|||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include <dt-bindings/pwm/pwm.h>
|
||||
#include "rk3368.dtsi"
|
||||
|
||||
|
@ -105,16 +106,14 @@ emmc_pwrseq: emmc-pwrseq {
|
|||
|
||||
keys: gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pwr_key>;
|
||||
|
||||
button@0 {
|
||||
power {
|
||||
wakeup-source;
|
||||
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
|
||||
label = "GPIO Power";
|
||||
linux,code = <116>;
|
||||
linux,code = <KEY_POWER>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@
|
|||
|
||||
/dts-v1/;
|
||||
#include "rk3368.dtsi"
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
/ {
|
||||
model = "Rockchip R88";
|
||||
|
@ -65,16 +66,14 @@ emmc_pwrseq: emmc-pwrseq {
|
|||
|
||||
keys: gpio-keys {
|
||||
compatible = "gpio-keys";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pwr_key>;
|
||||
|
||||
button@0 {
|
||||
power {
|
||||
wakeup-source;
|
||||
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
|
||||
label = "GPIO Power";
|
||||
linux,code = <116>;
|
||||
linux,code = <KEY_POWER>;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue