Delta Networks TN48M CPLD controller

Schema identifier ($id): "http://devicetree.org/schemas/mfd/delta,tn48m-cpld.yaml#"

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

Maintainers (maintainers): "Robert Marko <robert.marko@sartura.hr>"

Lattice CPLD onboard the TN48M switches is used for system management.

It provides information about the hardware model, revision, PSU status etc.

It is also being used as a GPIO expander and reset controller for the switch MAC-s and other peripherals.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "delta,tn48m-cpld"

reg — required here #

I2C device address.

Maximum number of items (maxItems): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

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

Properties matching a name pattern (patternProperties) #

^gpio(@[0-9a-f]+)?$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/gpio/delta,tn48m-gpio.yaml

^reset-controller?$ — name matches this regular expression #

Shared schema rule ($ref): /schemas/reset/delta,tn48m-reset.yaml

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>;

    cpld@41 {
        compatible = "delta,tn48m-cpld";
        reg = <0x41>;
        #address-cells = <1>;
        #size-cells = <0>;

        gpio@31 {
            compatible = "delta,tn48m-gpo";
            reg = <0x31>;
            gpio-controller;
            #gpio-cells = <2>;
        };

        gpio@3a {
            compatible = "delta,tn48m-gpi";
            reg = <0x3a>;
            gpio-controller;
            #gpio-cells = <2>;
        };

        gpio@40 {
            compatible = "delta,tn48m-gpi";
            reg = <0x40>;
            gpio-controller;
            #gpio-cells = <2>;
        };

        reset-controller {
          compatible = "delta,tn48m-reset";
          #reset-cells = <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