Skip to content

Commit 79d770a

Browse files
krzklinusw
authored andcommitted
dt-bindings: pinctrl: qcom: drop common properties
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. In few places move the "required:" block to bottom, to match convention. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20231208215534.195854-9-krzysztof.kozlowski@linaro.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 6bd410f commit 79d770a

37 files changed

+95
-376
lines changed

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ properties:
2626
interrupts:
2727
maxItems: 1
2828

29-
interrupt-controller: true
30-
"#interrupt-cells": true
31-
gpio-controller: true
32-
"#gpio-cells": true
33-
gpio-ranges: true
34-
wakeup-parent: true
35-
3629
gpio-reserved-ranges:
3730
minItems: 1
3831
maxItems: 27
@@ -100,7 +93,7 @@ required:
10093
- compatible
10194
- reg
10295

103-
additionalProperties: false
96+
unevaluatedProperties: false
10497

10598
examples:
10699
- |

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +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-
wakeup-parent: true
32-
3326
gpio-reserved-ranges:
3427
minItems: 1
3528
maxItems: 35
@@ -103,7 +96,7 @@ required:
10396
- compatible
10497
- reg
10598

106-
additionalProperties: false
99+
unevaluatedProperties: false
107100

108101
examples:
109102
- |

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +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-
wakeup-parent: true
32-
3326
gpio-reserved-ranges:
3427
minItems: 1
3528
maxItems: 33
@@ -97,7 +90,7 @@ required:
9790
- compatible
9891
- reg
9992

100-
additionalProperties: false
93+
unevaluatedProperties: false
10194

10295
examples:
10396
- |

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,7 @@ properties:
2525
interrupts:
2626
maxItems: 1
2727

28-
interrupt-controller: true
29-
"#interrupt-cells": true
30-
gpio-controller: true
3128
gpio-reserved-ranges: true
32-
"#gpio-cells": true
33-
gpio-ranges: true
34-
wakeup-parent: true
35-
36-
required:
37-
- compatible
38-
- reg
39-
40-
additionalProperties: false
4129

4230
patternProperties:
4331
"-state$":
@@ -110,6 +98,12 @@ $defs:
11098
required:
11199
- pins
112100

101+
required:
102+
- compatible
103+
- reg
104+
105+
unevaluatedProperties: false
106+
113107
examples:
114108
- |
115109
#include <dt-bindings/interrupt-controller/arm-gic.h>

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +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-
wakeup-parent: true
32-
3326
gpio-reserved-ranges:
3427
minItems: 1
3528
maxItems: 86
@@ -92,7 +85,7 @@ required:
9285
- compatible
9386
- reg
9487

95-
additionalProperties: false
88+
unevaluatedProperties: false
9689

9790
examples:
9891
- |

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,7 @@ properties:
2525
interrupts:
2626
maxItems: 1
2727

28-
interrupt-controller: true
29-
"#interrupt-cells": true
30-
gpio-controller: true
3128
gpio-reserved-ranges: true
32-
"#gpio-cells": true
33-
gpio-ranges: true
34-
wakeup-parent: true
35-
36-
required:
37-
- compatible
38-
- reg
39-
40-
additionalProperties: false
4129

4230
patternProperties:
4331
"-state$":
@@ -108,6 +96,12 @@ $defs:
10896
required:
10997
- pins
11098

99+
required:
100+
- compatible
101+
- reg
102+
103+
unevaluatedProperties: false
104+
111105
examples:
112106
- |
113107
#include <dt-bindings/interrupt-controller/arm-gic.h>

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +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-
wakeup-parent: true
32-
3326
gpio-reserved-ranges:
3427
minItems: 1
3528
maxItems: 61
@@ -114,7 +107,7 @@ required:
114107
- compatible
115108
- reg
116109

117-
additionalProperties: false
110+
unevaluatedProperties: false
118111

119112
examples:
120113
- |

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +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-
wakeup-parent: true
32-
3326
gpio-reserved-ranges:
3427
minItems: 1
3528
maxItems: 76
@@ -108,7 +101,7 @@ required:
108101
- compatible
109102
- reg
110103

111-
additionalProperties: false
104+
unevaluatedProperties: false
112105

113106
examples:
114107
- |

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +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-
wakeup-parent: true
32-
3326
gpio-reserved-ranges:
3427
minItems: 1
3528
maxItems: 73
@@ -124,7 +117,7 @@ required:
124117
- compatible
125118
- reg
126119

127-
additionalProperties: false
120+
unevaluatedProperties: false
128121

129122
examples:
130123
- |

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +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-
wakeup-parent: true
32-
3326
gpio-reserved-ranges:
3427
minItems: 1
3528
maxItems: 73
@@ -104,7 +97,7 @@ required:
10497
- compatible
10598
- reg
10699

107-
additionalProperties: false
100+
unevaluatedProperties: false
108101

109102
examples:
110103
- |

0 commit comments

Comments
 (0)