Skip to content

Commit b22794c

Browse files
krzklinusw
authored andcommitted
dt-bindings: pinctrl: qcom: drop common properties and allow wakeup-parent
Drop common properties already defined in referenced common Qualcomm SoC TLMM bindings and use "unevaluatedProperties: false". This makes the binding smaller and easier to review. Additionally this allows now "wakeup-parent" property coming from common TLMM bindings. In few places move the "required:" block to bottom, to match convention. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20231208215534.195854-10-krzysztof.kozlowski@linaro.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 79d770a commit b22794c

File tree

6 files changed

+11
-46
lines changed

6 files changed

+11
-46
lines changed

Documentation/devicetree/bindings/pinctrl/qcom,ipq6018-pinctrl.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ properties:
2222
interrupts:
2323
maxItems: 1
2424

25-
interrupt-controller: true
26-
"#interrupt-cells": true
27-
gpio-controller: true
28-
"#gpio-cells": true
29-
gpio-ranges: true
30-
3125
patternProperties:
3226
"-state$":
3327
oneOf:
@@ -100,7 +94,7 @@ required:
10094
- compatible
10195
- reg
10296

103-
additionalProperties: false
97+
unevaluatedProperties: false
10498

10599
examples:
106100
- |

Documentation/devicetree/bindings/pinctrl/qcom,mdm9615-pinctrl.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ properties:
2323
interrupts:
2424
maxItems: 1
2525

26-
interrupt-controller: true
27-
'#interrupt-cells': true
28-
gpio-controller: true
29-
'#gpio-cells': true
30-
gpio-ranges: true
31-
32-
required:
33-
- compatible
34-
- reg
35-
36-
additionalProperties: false
37-
3826
patternProperties:
3927
"-state$":
4028
oneOf:
@@ -74,6 +62,12 @@ $defs:
7462
required:
7563
- pins
7664

65+
required:
66+
- compatible
67+
- reg
68+
69+
unevaluatedProperties: false
70+
7771
examples:
7872
- |
7973
#include <dt-bindings/interrupt-controller/arm-gic.h>

Documentation/devicetree/bindings/pinctrl/qcom,msm8226-pinctrl.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ properties:
2323
interrupts:
2424
maxItems: 1
2525

26-
interrupt-controller: true
27-
"#interrupt-cells": true
28-
gpio-controller: true
29-
"#gpio-cells": true
30-
gpio-ranges: true
31-
3226
gpio-reserved-ranges:
3327
maxItems: 1
3428

@@ -82,7 +76,7 @@ required:
8276
- compatible
8377
- reg
8478

85-
additionalProperties: false
79+
unevaluatedProperties: false
8680

8781
examples:
8882
- |

Documentation/devicetree/bindings/pinctrl/qcom,msm8953-pinctrl.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ properties:
2222
interrupts:
2323
maxItems: 1
2424

25-
interrupt-controller: true
26-
"#interrupt-cells": true
27-
gpio-controller: true
2825
gpio-reserved-ranges: true
29-
"#gpio-cells": true
30-
gpio-ranges: true
3126

3227
patternProperties:
3328
"-state$":
@@ -117,7 +112,7 @@ required:
117112
- compatible
118113
- reg
119114

120-
additionalProperties: false
115+
unevaluatedProperties: false
121116

122117
examples:
123118
- |

Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinctrl.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ properties:
2323
interrupts:
2424
maxItems: 1
2525

26-
interrupt-controller: true
27-
"#interrupt-cells": true
28-
gpio-controller: true
29-
"#gpio-cells": true
30-
gpio-ranges: true
31-
3226
gpio-reserved-ranges:
3327
maxItems: 1
3428

@@ -102,7 +96,7 @@ required:
10296
- compatible
10397
- reg
10498

105-
additionalProperties: false
99+
unevaluatedProperties: false
106100

107101
examples:
108102
- |

Documentation/devicetree/bindings/pinctrl/qcom,sdx65-tlmm.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ properties:
2222
interrupts:
2323
maxItems: 1
2424

25-
interrupt-controller: true
26-
"#interrupt-cells": true
27-
gpio-controller: true
28-
"#gpio-cells": true
29-
gpio-ranges: true
30-
3125
gpio-reserved-ranges:
3226
maxItems: 1
3327

@@ -122,7 +116,7 @@ required:
122116
- compatible
123117
- reg
124118

125-
additionalProperties: false
119+
unevaluatedProperties: false
126120

127121
examples:
128122
- |

0 commit comments

Comments
 (0)