dt-bindings: input: use generic node names
Devicetree specification expects nodes to have generic names, if possible, so replace custom ones with something generic. For gpio-keys, the more popular format is "key-xxx" instead of "xxx-key", so choose the first one. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Jeff LaBundy <jeff@labundy.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220524093136.7980-1-krzysztof.kozlowski@linaro.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
433302dd87
commit
4fda8a2df8
@ -57,7 +57,7 @@ examples:
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
mpr121@5a {
|
touchkey@5a {
|
||||||
compatible = "fsl,mpr121-touchkey";
|
compatible = "fsl,mpr121-touchkey";
|
||||||
reg = <0x5a>;
|
reg = <0x5a>;
|
||||||
interrupt-parent = <&gpio1>;
|
interrupt-parent = <&gpio1>;
|
||||||
@ -77,7 +77,7 @@ examples:
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
mpr121@5a {
|
touchkey@5a {
|
||||||
compatible = "fsl,mpr121-touchkey";
|
compatible = "fsl,mpr121-touchkey";
|
||||||
reg = <0x5a>;
|
reg = <0x5a>;
|
||||||
poll-interval = <20>;
|
poll-interval = <20>;
|
||||||
|
@ -127,13 +127,13 @@ examples:
|
|||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
autorepeat;
|
autorepeat;
|
||||||
|
|
||||||
up {
|
key-up {
|
||||||
label = "GPIO Key UP";
|
label = "GPIO Key UP";
|
||||||
linux,code = <103>;
|
linux,code = <103>;
|
||||||
gpios = <&gpio1 0 1>;
|
gpios = <&gpio1 0 1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
down {
|
key-down {
|
||||||
label = "GPIO Key DOWN";
|
label = "GPIO Key DOWN";
|
||||||
linux,code = <108>;
|
linux,code = <108>;
|
||||||
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
|
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
|
||||||
|
@ -475,7 +475,7 @@ examples:
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
iqs269a@44 {
|
touch@44 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
@ -751,7 +751,7 @@ examples:
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
iqs626a@44 {
|
touch@44 {
|
||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ examples:
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
|
|
||||||
cap1188@28 {
|
touch@28 {
|
||||||
compatible = "microchip,cap1188";
|
compatible = "microchip,cap1188";
|
||||||
interrupt-parent = <&gpio1>;
|
interrupt-parent = <&gpio1>;
|
||||||
interrupts = <0 0>;
|
interrupts = <0 0>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user