Commit 3c84d8c2 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

dt-bindings: pinctrl: qcom,sm6115: use common TLMM schema

Reference common Qualcomm TLMM pin controller schema, to bring common
properties, other pinctrl schemas and additional checks, like function
required only for GPIOs.
Reviewed-by: default avatarIskren Chernev <iskren.chernev@gmail.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20221017230012.47878-6-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent 4412a0e5
...@@ -27,30 +27,13 @@ properties: ...@@ -27,30 +27,13 @@ properties:
- const: south - const: south
- const: east - const: east
interrupts: interrupts: true
description: Specifies the TLMM summary IRQ
maxItems: 1
interrupt-controller: true interrupt-controller: true
"#interrupt-cells": true
'#interrupt-cells':
description:
Specifies the PIN numbers and Flags, as defined in defined in
include/dt-bindings/interrupt-controller/irq.h
const: 2
gpio-controller: true gpio-controller: true
"#gpio-cells": true
'#gpio-cells': gpio-ranges: true
description: Specifying the pin number and flags, as defined in
include/dt-bindings/gpio/gpio.h
const: 2
gpio-ranges:
maxItems: 1
gpio-reserved-ranges: true gpio-reserved-ranges: true
wakeup-parent: true wakeup-parent: true
#PIN CONFIGURATION NODES #PIN CONFIGURATION NODES
...@@ -69,6 +52,7 @@ patternProperties: ...@@ -69,6 +52,7 @@ patternProperties:
description: description:
Pinctrl node's client devices use subnodes for desired pin configuration. Pinctrl node's client devices use subnodes for desired pin configuration.
Client device subnodes use below standard properties. Client device subnodes use below standard properties.
$ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
properties: properties:
pins: pins:
...@@ -101,50 +85,25 @@ patternProperties: ...@@ -101,50 +85,25 @@ patternProperties:
uim2_present, uim2_reset, usb_phy, vfr_1, vsense_trigger, uim2_present, uim2_reset, usb_phy, vfr_1, vsense_trigger,
wlan1_adc0, elan1_adc1 ] wlan1_adc0, elan1_adc1 ]
drive-strength:
enum: [2, 4, 6, 8, 10, 12, 14, 16]
default: 2
description:
Selects the drive strength for the specified pins, in mA.
bias-pull-down: true bias-pull-down: true
bias-pull-up: true bias-pull-up: true
bias-disable: true bias-disable: true
drive-strength: true
output-high: true output-high: true
output-low: true output-low: true
required: required:
- pins - pins
allOf:
- $ref: "qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state"
- if:
properties:
pins:
pattern: "^gpio([0-9]|[1-9][0-9]|10[0-9]|11[0-2])$"
then:
required:
- function
additionalProperties: false additionalProperties: false
allOf: allOf:
- $ref: "pinctrl.yaml#" - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
required: required:
- compatible - compatible
- reg - reg
- reg-names - reg-names
- interrupts
- interrupt-controller
- '#interrupt-cells'
- gpio-controller
- '#gpio-cells'
- gpio-ranges
additionalProperties: false additionalProperties: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment