Commit f695e8d8 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

dt-bindings: pinctrl: qcom,msm8953: 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 avatarBjorn Andersson <andersson@kernel.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221016170035.35014-23-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent ce4762ae
...@@ -20,29 +20,13 @@ properties: ...@@ -20,29 +20,13 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
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-reserved-ranges: true gpio-reserved-ranges: 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
patternProperties: patternProperties:
"-state$": "-state$":
...@@ -59,7 +43,7 @@ $defs: ...@@ -59,7 +43,7 @@ $defs:
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: "/schemas/pinctrl/pincfg-node.yaml" $ref: qcom,tlmm-common.yaml#/$defs/qcom-tlmm-state
properties: properties:
pins: pins:
...@@ -121,40 +105,24 @@ $defs: ...@@ -121,40 +105,24 @@ $defs:
uim_batt, us_emitter, us_euro, wcss_bt, wcss_fm, wcss_wlan, uim_batt, us_emitter, us_euro, wcss_bt, wcss_fm, wcss_wlan,
wcss_wlan0, wcss_wlan1, wcss_wlan2, wsa_en, wsa_io, wsa_irq ] wcss_wlan0, wcss_wlan1, wcss_wlan2, wsa_en, wsa_io, wsa_irq ]
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
- function
additionalProperties: false additionalProperties: false
allOf: allOf:
- $ref: "pinctrl.yaml#" - $ref: /schemas/pinctrl/qcom,tlmm-common.yaml#
required: required:
- compatible - compatible
- reg - reg
- 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