DS4520 I2C GPIO expander
Schema identifier ($id): "http://devicetree.org/schemas/gpio/adi,ds4520-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Okan Sahin <okan.sahin@analog.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "adi,ds4520-gpio"
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 #
Exact value (const): 2
ngpios — required here #
Minimum value (minimum): 1
Maximum value (maximum): 9
Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "ngpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
gpio@50 {
compatible = "adi,ds4520-gpio";
reg = <0x50>;
ngpios = <9>;
gpio-controller;
#gpio-cells = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)