dt-bindings: input: Convert TI Keypad Controller to DT schema
Subsystems (3)
PATCH 1/1 dt-bindings: input: Convert TI Keypad Controller to DT schema
Convert the Texas Instruments Keypad Controller bindings to DT schema.
During the conversion, the following updates were made:
- Corrected the documented property 'linux,keypad-no-autorepeat' to 'linux,input-no-autorepeat'. The old text binding documented the property incorrectly. The standard input subsystem property is 'linux,input-no-autorepeat', which is actively used in device trees and parsed by the kernel.
- Added the 'reg-names' property ("mpu"), which was omitted from the original text binding but is actively used in devide trees.
- Omitted 'keypad,num-rows' and 'keypad,num-columns' from the required list. The original text binding stated these were required but enforcing them causes validation failures.
--- .../devicetree/bindings/input/omap-keypad.txt | 28 --------- .../bindings/input/ti,omap4-keypad.yaml | 57 +++++++++++++++++++ 2 files changed, 57 insertions(+), 28 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/omap-keypad.txt create mode 100644 Documentation/devicetree/bindings/input/ti,omap4-keypad.yaml
Documentation/devicetree/bindings/input/omap-keypad.txt deleted +0 -28
@@ -1,28 +0,0 @@ -* TI's Keypad Controller device tree bindings - -TI's Keypad controller is used to interface a SoC with a matrix-type -keypad device. The keypad controller supports multiple row and column lines. -A key can be placed at each intersection of a unique row and a unique column. -The keypad controller can sense a key-press and key-release and report the -event using a interrupt to the cpu. - -This binding is based on the matrix-keymap binding with the following -changes: - -keypad,num-rows and keypad,num-columns are required. - -Required SoC Specific Properties: -- compatible: should be one of the following - - "ti,omap4-keypad": For controllers compatible with omap4 keypad - controller. - -Optional Properties specific to linux: -- linux,keypad-no-autorepeat: do no enable autorepeat feature. - -Example: - keypad@4ae1c000{ - compatible = "ti,omap4-keypad"; - keypad,num-rows = <2>; - keypad,num-columns = <8>; - linux,keypad-no-autorepeat; - };
Documentation/devicetree/bindings/input/ti,omap4-keypad.yaml new file +57 -0
57 lines not on this page · raw message
Signature · 1 line
2.43.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] Properties strictly required by the hardware and driver ('keypad,num-rows'…
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Properties strictly required by the hardware and driver ('keypad,num-rows', 'keypad,num-columns', 'interrupts', and 'linux,keymap') are omitted from the 'required:' list, allowing non-functional device trees to silently pass validation. --
--- Patch [1]: [PATCH] dt-bindings: input: Convert TI Keypad Controller to DT schema --- commit 31e1662350e854e7b96beb7e7de83fc2b0d265e2
Author: Eduard Bostina <[email protected]>
dt-bindings: input: Convert TI Keypad Controller to DT schema
This commit converts the Texas Instruments Keypad Controller bindings to DT schema format. It updates the autorepeat property name, adds the reg-names property, and omits the keypad row and column properties from the required list to prevent validation failures.
Quoted 4 lines
Documentation/devicetree/bindings/input/ti,omap4-keypad.yaml new file +0
-0
[ ... ]
Documentation/devicetree/bindings/input/ti,omap4-keypad.yaml line 41
Quoted 3 lines
Documentation/devicetree/bindings/input/ti,omap4-keypad.yaml new file +3
-0+required: + - compatible + - reg
[Severity: Medium]
The commit message mentions that keypad,num-rows and keypad,num-columns were omitted from this required list because enforcing them causes validation failures. Should these properties, along with interrupts and linux,keymap, be included here to accurately reflect the driver's probing requirements?
Omitting them allows non-functional device tree nodes to silently pass schema validation. At runtime, the omap4-keypad driver will unconditionally fail to probe via platform_get_irq(), matrix_keypad_parse_properties(), and matrix_keypad_build_keymap() when these properties are missing.
Would it be better to enforce the strict hardware and driver requirements in the schema, and instead fix the incomplete device tree nodes that are failing validation?
Quoted 2 lines
Documentation/devicetree/bindings/input/ti,omap4-keypad.yaml new file +2
-0+ +unevaluatedProperties: false
[ ... ]
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Rob Herring
maintainerQuoted 30 lines · On Wed, Jul 08, 2026 at 12:41:11PM +0000, [email protected] wrote:
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Properties strictly required by the hardware and driver ('keypad,num-rows', 'keypad,num-columns', 'interrupts', and 'linux,keymap') are omitted from the 'required:' list, allowing non-functional device trees to silently pass validation. ----- Patch [1]: [PATCH] dt-bindings: input: Convert TI Keypad Controller to DT schema --- commit
31e1662350e854e7b96beb7e7de83fc2b0d265e2
Author: Eduard Bostina <[email protected]>dt-bindings: input: Convert TI Keypad Controller to DT schema
This commit converts the Texas Instruments Keypad Controller bindings to DT schema format. It updates the autorepeat property name, adds the reg-names property, and omits the keypad row and column properties from the required list to prevent validation failures.
Quoted 4 lines
Documentation/devicetree/bindings/input/ti,omap4-keypad.yaml new file +0
-0[ ... ]
Documentation/devicetree/bindings/input/ti,omap4-keypad.yaml line 41
Quoted 3 lines
Documentation/devicetree/bindings/input/ti,omap4-keypad.yaml new file +3
-0+required: + - compatible + - reg[Severity: Medium]
The commit message mentions that keypad,num-rows and keypad,num-columns were omitted from this required list because enforcing them causes validation failures. Should these properties, along with interrupts and linux,keymap, be included here to accurately reflect the driver's probing requirements?
Quoted 8 lines
Omitting them allows non-functional device tree nodes to silently pass schema validation. At runtime, the omap4-keypad driver will unconditionally fail to probe via
platform_get_irq(),matrix_keypad_parse_properties(), andmatrix_keypad_build_keymap()when these properties are missing.Would it be better to enforce the strict hardware and driver requirements in the schema, and instead fix the incomplete device tree nodes that are failing validation?
Yes. sashiko is right.
Rob