From 2b55c83e68068887db9e49de8e81b1b4a267a4f2 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Fri, 11 Nov 2016 22:43:08 +0100 Subject: treewide: dts: use keycode defines from input dt-binding All compiled device tree files not mentioned are binary identical to the former ones. Fix the obvious decimal/hex confusion for the power key of ramips/M2M.dts. Due to the include of the input binding header, the BTN_* node names in: - ramips/GL-MT300A.dts - ramips/GL-MT300N.dts - ramips/GL-MT750.dts - ramips/Timecloud.dts will be changed by the compiler to the numerical equivalent. Move the binding include of lantiq boards to the file where they are used the first time to hint the user where the values do come from. Signed-off-by: Mathias Kresin --- target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts | 6 ++++-- target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts | 8 +++++--- target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts | 6 ++++-- 3 files changed, 13 insertions(+), 7 deletions(-) (limited to 'target/linux/oxnas/files/arch/arm') diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts index 4dc969c1fd..712c03e425 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-akitio.dts @@ -9,6 +9,8 @@ /dts-v1/; #include "ox820.dtsi" +#include + / { model = "Akitio MyCloud mini"; @@ -75,12 +77,12 @@ power { label = "power"; gpios = <&GPIOA 11 1>; - linux,code = <116>; + linux,code = ; }; reset { label = "reset"; gpios = <&GPIOB 6 1>; - linux,code = <0x198>; + linux,code = ; }; }; diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts index b5c79dede3..1312fd63b5 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-kd20.dts @@ -9,6 +9,8 @@ /dts-v1/; #include "ox820.dtsi" +#include + / { model = "Shuttle KD20"; @@ -91,17 +93,17 @@ power { label = "power"; gpios = <&GPIOA 10 1>; - linux,code = <116>; + linux,code = ; }; reset { label = "reset"; gpios = <&GPIOA 11 1>; - linux,code = <0x198>; + linux,code = ; }; eject1 { label = "eject1"; gpios = <&GPIOA 5 1>; - linux,code = <161>; + linux,code = ; }; eject2 { label = "eject2"; diff --git a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts index a0704bb348..a8112c947c 100644 --- a/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts +++ b/target/linux/oxnas/files/arch/arm/boot/dts/ox820-stg212.dts @@ -10,6 +10,8 @@ #include "ox820.dtsi" +#include + / { model = "MitraStar Technology Corp. STG-212"; @@ -57,12 +59,12 @@ reset { label = "reset"; gpios = <&GPIOB 11 1>; - linux,code = <0x198>; + linux,code = ; }; copy { label = "copy"; gpios = <&GPIOB 13 1>; - linux,code = <0x85>; + linux,code = ; }; }; -- cgit v1.2.3