Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: pinctrl: cy8c95x0: Update gpio-reserved-ranges

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.
Also update example.

Signed-off-by: Naresh Solanki <naresh.solanki@9elements.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240206112501.715042-1-naresh.solanki@9elements.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Naresh Solanki and committed by
Linus Walleij
8e4cc358 7ac57288

+22 -2
+22 -2
Documentation/devicetree/bindings/pinctrl/cypress,cy8c95x0.yaml
··· 45 45 maxItems: 1 46 46 47 47 gpio-reserved-ranges: 48 - maxItems: 1 48 + minItems: 1 49 + maxItems: 60 49 50 50 51 vdd-supply: 51 52 description: ··· 85 84 bias-pull-up: true 86 85 87 86 bias-disable: true 87 + 88 + input-enable: true 88 89 89 90 output-high: true 90 91 ··· 136 133 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>; 137 134 interrupt-controller; 138 135 vdd-supply = <&p3v3>; 139 - gpio-reserved-ranges = <5 1>; 136 + gpio-reserved-ranges = <1 2>, <6 1>, <10 1>, <15 1>; 137 + 138 + pinctrl-0 = <&U62160_pins>, <&U62160_ipins>; 139 + pinctrl-names = "default"; 140 + 141 + U62160_pins: cfg-pins { 142 + pins = "gp03", "gp16", "gp20", "gp50", "gp51"; 143 + function = "gpio"; 144 + input-enable; 145 + bias-pull-up; 146 + }; 147 + 148 + U62160_ipins: icfg-pins { 149 + pins = "gp04", "gp17", "gp21", "gp52", "gp53"; 150 + function = "gpio"; 151 + input-enable; 152 + bias-pull-up; 153 + }; 140 154 }; 141 155 };