dt-bindings: pinctrl: cy8x95x0: Minor fix & update
Subsystems (3)
PATCH v2 1/1 dt-bindings: pinctrl: cy8x95x0: Minor fix & update
Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio reserved ranges.
Add input-enable property to allow configuring a pin as input. Rearrange allOf
Update example.
--- .../bindings/pinctrl/cypress,cy8c95x0.yaml | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml +23 -5
@@ -45,7 +45,8 @@ properties: maxItems: 1 gpio-reserved-ranges: - maxItems: 1 + minItems: 1 + maxItems: 60 vdd-supply: description:
@@ -85,6 +86,8 @@ patternProperties: bias-disable: true + input-enable: true + output-high: true output-low: true
@@ -101,6 +104,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: pinctrl.yaml# + required: - compatible - reg
@@ -112,9 +118,6 @@ required: additionalProperties: false -allOf: - - $ref: pinctrl.yaml# - examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h>
@@ -133,6 +136,21 @@ examples: interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; vdd-supply = <&p3v3>; - gpio-reserved-ranges = <5 1>; + gpio-reserved-ranges = <1 2>, <6 1>, <10 1>, <15 1>; + + pinctrl-0 = <&U62160_pins>, <&U62160_ipins>; + pinctrl-names = "default"; + U62160_pins: cfg-pins { + pins = "gp03", "gp16", "gp20", "gp50", "gp51"; + function = "gpio"; + input-enable; + bias-pull-up; + }; + U62160_ipins: icfg-pins { + pins = "gp04", "gp17", "gp21", "gp52", "gp53"; + function = "gpio"; + input-enable; + bias-pull-up; + }; }; };
base-commit: 861c0981648f5b64c86fd028ee622096eb7af05a
Signature · 1 line
2.42.0
Quoted 4 lines · Naresh Solanki
Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio reserved ranges.
Add input-enable property to allow configuring a pin as input. Rearrange allOf
Why?
Quoted 31 lines
Update example.
Signed-off-by Naresh Solanki <[email protected]>--- .../bindings/pinctrl/cypress,cy8c95x0.yaml | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml +4
-1@@ -45,7 +45,8 @@ properties: maxItems: 1 gpio-reserved-ranges: - maxItems: 1 + minItems: 1 + maxItems: 60 vdd-supply: description:@@ -85,6 +86,8 @@ patternProperties: bias-disable: true + input-enable: true + output-high: true output-low: true
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml patternProperties: · line 109
Quoted 6 lines
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml +3
-0@@ -101,6 +104,9 @@ patternProperties: additionalProperties: false +allOf: + - $ref: pinctrl.yaml# +
That's not a correct placement.
Quoted 14 lines
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml +0
-3required: - compatible - reg@@ -112,9 +118,6 @@ required: additionalProperties: false -allOf: - - $ref: pinctrl.yaml# - examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h>
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml examples: · line 144
Quoted 10 lines
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml +6
-1@@ -133,6 +136,21 @@ examples: interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; vdd-supply = <&p3v3>; - gpio-reserved-ranges = <5 1>; + gpio-reserved-ranges = <1 2>, <6 1>, <10 1>, <15 1>; + + pinctrl-0 = <&U62160_pins>, <&U62160_ipins>; + pinctrl-names = "default"; + U62160_pins: cfg-pins { + pins = "gp03", "gp16", "gp20", "gp50", "gp51";
Your indentation is totally broken.
Best regards,
Krzysztof
Hi Krzysztof,
Quoted 8 lines · Krzysztof Kozlowski
Quoted 4 lines · Naresh Solanki
Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio reserved ranges.
Add input-enable property to allow configuring a pin as input. Rearrange allOfWhy?
allOf is aligned with other implementations.
Quoted 33 lines
Quoted 33 lines
Update example.
Signed-off-by Naresh Solanki <[email protected]>--- .../bindings/pinctrl/cypress,cy8c95x0.yaml | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-)Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml +4
-1@@ -45,7 +45,8 @@ properties: maxItems: 1 gpio-reserved-ranges: - maxItems: 1 + minItems: 1 + maxItems: 60 vdd-supply: description:@@ -85,6 +86,8 @@ patternProperties: bias-disable: true + input-enable: true + output-high: true output-low: true@@ -101,6 +104,9 @@ patternProperties:
Quoted 7 lines
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml patternProperties: · line 109
Quoted 5 lines
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml +3
-0additionalProperties: false +allOf: + - $ref: pinctrl.yaml# +That's not a correct placement.
ok. Will remove this specific change.
Quoted 19 lines
Quoted 19 lines
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml +0
-4required: - compatible - reg@@ -112,9 +118,6 @@ required: additionalProperties: false -allOf: - - $ref: pinctrl.yaml# - examples: - | #include <dt-bindings/interrupt-controller/arm-gic.h>@@ -133,6 +136,21 @@ examples: interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>; interrupt-controller; vdd-supply = <&p3v3>; - gpio-reserved-ranges = <5 1>;
Quoted 8 lines
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml examples: · line 144
Quoted 6 lines
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml +6
-0+ gpio-reserved-ranges = <1 2>, <6 1>, <10 1>, <15 1>; + + pinctrl-0 = <&U62160_pins>, <&U62160_ipins>; + pinctrl-names = "default"; + U62160_pins: cfg-pins { + pins = "gp03", "gp16", "gp20", "gp50", "gp51";Your indentation is totally broken.
sorry I missed checking on this before sending the patch for review. will fix it to use two space for indentation.
Regards,
Naresh
Quoted 5 lines
Best regards,
Krzysztof
Quoted 5 lines · Naresh Solanki
Hi Krzysztof,
Quoted 1 line · Krzysztof Kozlowski
Quoted 8 lines
Quoted 7 lines · Naresh Solanki
Quoted 4 lines
Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio reserved ranges.
Add input-enable property to allow configuring a pin as input. Rearrange allOfWhy?
allOf is aligned with other implementations.
Which ones? example-schema and other implementations have it in different place. If you align some parts of the code, please align to match the correct code, not other incorrect. How to find it? example-schema is the reference, recent commits are also sometimes good indication.
Best regards,
Krzysztof
Hi Krzysztof,
Quoted 13 lines · Krzysztof Kozlowski
Quoted 11 lines · Naresh Solanki
Hi Krzysztof,
Quoted 7 lines · Krzysztof Kozlowski
Quoted 4 lines · Naresh Solanki
Update maxItems to 60 for gpio-reserved-ranges to allow multiple gpio reserved ranges.
Add input-enable property to allow configuring a pin as input. Rearrange allOf
Quoted 8 lines
Quoted 2 lines
Quoted 1 line
Why?
allOf is aligned with other implementations.
Which ones? example-schema and other implementations have it in different place. If you align some parts of the code, please align to match the correct code, not other incorrect. How to find it? example-schema is the reference, recent commits are also sometimes good indication.
Yes your right. Will align with example-schema. Thanks.
Regards,
Naresh
Quoted 4 lines
Best regards,
Krzysztof