dt-bindings: input: Update documentation for clps711x-keypad
Subsystems (2)
PATCH 2/2 dt-bindings: input: Update documentation for clps711x-keypad
Since the driver switched to using the syscon_regmap_lookup_by_phandle() function, we need to specify the phandle for the driver. This patch updates the driver binding documentation for these changes.
--- Documentation/devicetree/bindings/input/clps711x-keypad.txt | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/input/clps711x-keypad.txt +2 -0
@@ -6,6 +6,7 @@ Required Properties: - poll-interval: Poll interval time in milliseconds. - linux,keymap: The definition can be found at bindings/input/matrix-keymap.txt. +- syscon: Phandle that points to the CPU syscon1 node. Optional Properties: - autorepeat: Enable autorepeat feature.
@@ -17,6 +18,7 @@ Example: poll-interval = <120>; row-gpios = <&porta 0 0>, <&porta 1 0>; + syscon = <&syscon1>; linux,keymap = < MATRIX_KEY(0, 0, KEY_UP)
Signature · 1 line
2.10.2
Rob Herring
maintainerQuoted 3 lines · Alexander Shiyan
Since the driver switched to using the
syscon_regmap_lookup_by_phandle()function, we need to specify the phandle for the driver. This patch updates the driver binding documentation for these changes.
That's not a backwards compatible change. Is that okay for all users of this platform(s)? If so, say why.
Quoted 11 lines
Signed-off-by Alexander Shiyan <[email protected]>--- Documentation/devicetree/bindings/input/clps711x-keypad.txt | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/input/clps711x-keypad.txt +0
-0
Documentation/devicetree/bindings/input/clps711x-keypad.txt Required Properties: · line 9
Quoted 4 lines
Documentation/devicetree/bindings/input/clps711x-keypad.txt +1
-0@@ -6,6 +6,7 @@ Required Properties: - poll-interval: Poll interval time in milliseconds. - linux,keymap: The definition can be found at bindings/input/matrix-keymap.txt. +- syscon: Phandle that points to the CPU syscon1 node.
What does this provide? If the keypad registers are a sub-block of the syscon1, then you should make this node a child node.
Quoted 14 lines
Documentation/devicetree/bindings/input/clps711x-keypad.txt +1
-0Optional Properties: - autorepeat: Enable autorepeat feature.@@ -17,6 +18,7 @@ Example: poll-interval = <120>; row-gpios = <&porta 0 0>, <&porta 1 0>; + syscon = <&syscon1>; linux,keymap = < MATRIX_KEY(0, 0, KEY_UP)Signature · 1 line
2.10.2
Quoted 6 lines
Четверг, 3 января 2019, 23:59 +03:00 от Rob Herring <[email protected]>:
Quoted 3 lines · Alexander Shiyan
Since the driver switched to using the
syscon_regmap_lookup_by_phandle()function, we need to specify the phandle for the driver. This patch updates the driver binding documentation for these changes.
...
Quoted 4 lines
Quoted 4 lines
Documentation/devicetree/bindings/input/clps711x-keypad.txt +0
-0
Quoted 8 lines
Documentation/devicetree/bindings/input/clps711x-keypad.txt Required Properties: · line 9
Quoted 5 lines
Documentation/devicetree/bindings/input/clps711x-keypad.txt +1
-0@@ -6,6 +6,7 @@ Required Properties: - poll-interval: Poll interval time in milliseconds. - linux,keymap: The definition can be found at bindings/input/matrix-keymap.txt. +- syscon: Phandle that points to the CPU syscon1 node.What does this provide? If the keypad registers are a sub-block of the syscon1, then you should make this node a child node.
Syscon does not populate child devices.
---
Rob Herring
maintainerQuoted 21 lines · Alexander Shiyan
Quoted 7 lines
Четверг, 3 января 2019, 23:59 +03:00 от Rob Herring <[email protected]>:
Quoted 3 lines · Alexander Shiyan
Since the driver switched to using the
syscon_regmap_lookup_by_phandle()function, we need to specify the phandle for the driver. This patch updates the driver binding documentation for these changes....
Quoted 4 lines
Quoted 4 lines
Documentation/devicetree/bindings/input/clps711x-keypad.txt +0
-0Quoted 8 lines
Documentation/devicetree/bindings/input/clps711x-keypad.txt Required Properties: · line 9
Quoted 5 lines
Documentation/devicetree/bindings/input/clps711x-keypad.txt +1
-0@@ -6,6 +6,7 @@ Required Properties: - poll-interval: Poll interval time in milliseconds. - linux,keymap: The definition can be found at bindings/input/matrix-keymap.txt. +- syscon: Phandle that points to the CPU syscon1 node.What does this provide? If the keypad registers are a sub-block of the syscon1, then you should make this node a child node.
Quoted 1 line
Syscon does not populate child devices.
I don't have any context of what syscon1 looks like. Maybe it needs simple-mfd or a driver for the syscon.
Rob
Quoted 1 line
Понедельник, 21 января 2019, 19:25 +03:00 от Rob Herring <[email protected]>:
...
Quoted 18 lines
Quoted 18 lines
Quoted 4 lines · Alexander Shiyan
Quoted 3 lines
Since the driver switched to using the
syscon_regmap_lookup_by_phandle()function, we need to specify the phandle for the driver. This patch updates the driver binding documentation for these changes....
Quoted 12 lines
Documentation/devicetree/bindings/input/clps711x-keypad.txt Required Properties: · line 9
Quoted 9 lines
Documentation/devicetree/bindings/input/clps711x-keypad.txt +1
-0@@ -6,6 +6,7 @@ Required Properties: - poll-interval: Poll interval time in milliseconds. - linux,keymap: The definition can be found at bindings/input/matrix-keymap.txt. +- syscon: Phandle that points to the CPU syscon1 node.What does this provide? If the keypad registers are a sub-block of the syscon1, then you should make this node a child node.
Quoted 4 lines
Quoted 1 line
Syscon does not populate child devices.
I don't have any context of what syscon1 looks like. Maybe it needs simple-mfd or a driver for the syscon.
The SYSCON1 on this processor is already being processed by the mfd/syscon driver, so it is represents in DTS, as shown below:
...
syscon1: syscon@80000100 {
compatible = "syscon";
reg = <0x80000100 0x80>;
};
...
keypad: keypad {
compatible = "cirrus,ep7209-keypad";
syscon = <&syscon1>;
status = "disabled";
};Maybe I need to expand the example section in the DT-bindings so that we can see it?
---