TI FPC202 dual port controller with expanded IOs

Schema identifier ($id): "http://devicetree.org/schemas/misc/ti,fpc202.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Romain Gantois <romain.gantois@bootlin.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/i2c/i2c-atr.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,fpc202"

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

enable-gpios — not listed as required here #

Specifier for the GPIO connected to the EN pin.

Maximum number of items (maxItems): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^i2c@[0-1]$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/i2c/i2c-controller.yaml#

Downstream device ports 0 and 1

Properties and child nodes (properties) #

reg — required here

Maximum number of items (maxItems): 1

Downstream port ID

Required in this object (required): "#address-cells", "#size-cells", "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "#address-cells", "#size-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    i2c-atr@f {
        compatible = "ti,fpc202";
        reg = <0xf>;
        #address-cells = <1>;
        #size-cells = <0>;

        gpio-controller;
        #gpio-cells = <2>;

        i2c@0 {
            #address-cells = <1>;
            #size-cells = <0>;
            reg = <0>;
        };

        i2c@1 {
            #address-cells = <1>;
            #size-cells = <0>;
            reg = <1>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page