input: samsung-keypad: let device core setup the default pin configuration
Subsystems (4)
PATCH 1/1 input: samsung-keypad: let device core setup the default pin configuration
With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings is removed.
Signed-off-by Thomas Abraham <[email protected]>
--- .../devicetree/bindings/input/samsung-keypad.txt | 25 ++-------- drivers/input/keyboard/samsung-keypad.c | 52 +------------------- 2 files changed, 7 insertions(+), 70 deletions(-)
Documentation/devicetree/bindings/input/samsung-keypad.txt +5 -20
@@ -25,14 +25,6 @@ Required Board Specific Properties: - samsung,keypad-num-columns: Number of column lines connected to the keypad controller. -- row-gpios: List of gpios used as row lines. The gpio specifier for - this property depends on the gpio controller to which these row lines - are connected. - -- col-gpios: List of gpios used as column lines. The gpio specifier for - this property depends on the gpio controller to which these column - lines are connected. - - Keys represented as child nodes: Each key connected to the keypad controller is represented as a child node to the keypad controller device node and should include the following properties.
@@ -41,6 +33,9 @@ Required Board Specific Properties: - linux,code: the key-code to be reported when the key is pressed and released. +- pinctrl-0: Should specify pin control groups used for this controller. +- pinctrl-names: Should contain only one value - "default". + Optional Properties specific to linux: - linux,keypad-no-autorepeat: do no enable autorepeat feature. - linux,keypad-wakeup: use any event on keypad as wakeup event.
@@ -55,18 +50,8 @@ Example: samsung,keypad-num-columns = <8>; linux,input-no-autorepeat; linux,input-wakeup; - - row-gpios = <&gpx2 0 3 3 0 - &gpx2 1 3 3 0>; - - col-gpios = <&gpx1 0 3 0 0 - &gpx1 1 3 0 0 - &gpx1 2 3 0 0 - &gpx1 3 3 0 0 - &gpx1 4 3 0 0 - &gpx1 5 3 0 0 - &gpx1 6 3 0 0 - &gpx1 7 3 0 0>; + pinctrl-names = "default"; + pinctrl-0 = <&keypad_rows &keypad_columns>; key_1 { keypad,row = <0>;
drivers/input/keyboard/samsung-keypad.c +2 -50
79 lines not on this page · raw message
Signature · 1 line
1.6.6.rc2
Quoted 5 lines · Thomas Abraham
With device core now able to setup the default pin configuration, the pin configuration code based on the deprecated Samsung specific gpio bindings is removed.
Signed-off-by Thomas Abraham <[email protected]>
Acked-by Linus Walleij <[email protected]>
Yours,
Linus Walleij