Cypress CY8C95X0 I2C GPIO expander
Schema identifier ($id): "http://devicetree.org/schemas/pinctrl/cypress,cy8c95x0.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Patrick Rudolph <patrick.rudolph@9elements.com>"
This supports the 20/40/60 pin Cypress CYC95x0 GPIO I2C expanders. Pin function configuration is performed on a per-pin basis.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "cypress,cy8c9520", "cypress,cy8c9540", "cypress,cy8c9560"
reg — required here #
Maximum number of items (maxItems): 1
gpio-controller — required here #
true — No constraints added by this property rule.
#gpio-cells — required here #
The first cell is the GPIO number and the second cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
Exact value (const): 2
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — required here #
Exact value (const): 2
gpio-line-names — not listed as required here #
true — No constraints added by this property rule.
gpio-ranges — not listed as required here #
Maximum number of items (maxItems): 1
gpio-reserved-ranges — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 60
vdd-supply — not listed as required here #
Optional power supply.
reset-gpios — not listed as required here #
GPIO connected to the XRES pin
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
-pins$ — name matches this regular expression #
Value type (type): "object"
Pinctrl node's client devices use subnodes for desired pin configuration. Client device subnodes use below standard properties.
Shared schema rule ($ref): pincfg-node.yaml#
Properties and child nodes (properties) #
pins — required here
List of gpio pins affected by the properties specified in this subnode.
Array item rules (items)
String pattern (
pattern):"^gp([0-7][0-7])$"
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 60
function — required here
Specify the alternative function to be configured for the specified pins.
Allowed values (enum): "gpio", "pwm"
bias-pull-down — not listed as required here
true — No constraints added by this property rule.
bias-pull-up — not listed as required here
true — No constraints added by this property rule.
bias-disable — not listed as required here
true — No constraints added by this property rule.
input-enable — not listed as required here
true — No constraints added by this property rule.
output-high — not listed as required here
true — No constraints added by this property rule.
output-low — not listed as required here
true — No constraints added by this property rule.
drive-push-pull — not listed as required here
true — No constraints added by this property rule.
drive-open-drain — not listed as required here
true — No constraints added by this property rule.
drive-open-source — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "pins", "function"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-controller", "#interrupt-cells", "gpio-controller", "#gpio-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pinctrl.yaml#
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pinctrl@20 {
compatible = "cypress,cy8c9520";
reg = <0x20>;
gpio-controller;
#gpio-cells = <2>;
#interrupt-cells = <2>;
interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
vdd-supply = <&p3v3>;
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;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)