Aspeed SGPIO controller

Schema identifier ($id): "http://devicetree.org/schemas/gpio/aspeed,sgpio.yaml#"

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

Maintainers (maintainers): "Andrew Jeffery <andrew@aj.id.au>"

This SGPIO controller is for ASPEED AST2400, AST2500, AST2600 and AST2700 SoC, AST2700 have two sgpio master both with 256 pins, AST2600 have two sgpio master one with 128 pins another one with 80 pins, AST2500/AST2400 have one sgpio master with 80 pins. Each of the Serial GPIO pins can be programmed to support the following options - Support interrupt option for each input port and various interrupt sensitivity option (level-high, level-low, edge-high, edge-low) - Support reset tolerance option for each output port - Directly connected to APB bus and its shift clock is from APB bus clock divided by a programmable value. - Co-work with external signal-chained TTL components (74LV165/74LV595)

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "aspeed,ast2400-sgpio", "aspeed,ast2500-sgpio", "aspeed,ast2600-sgpiom", "aspeed,ast2700-sgpiom"

reg — required here #

Maximum number of items (maxItems): 1

gpio-controller — required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 160

Maximum number of items (maxItems): 256

#gpio-cells — required here #

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

clocks — required here #

Maximum number of items (maxItems): 1

ngpios — required here #

true — No constraints added by this property rule.

bus-frequency — required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible", "reg", "gpio-controller", "#gpio-cells", "interrupts", "interrupt-controller", "#interrupt-cells", "ngpios", "clocks", "bus-frequency"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/aspeed-clock.h>
sgpio: sgpio@1e780200 {
    #gpio-cells = <2>;
    compatible = "aspeed,ast2500-sgpio";
    gpio-controller;
    interrupts = <40>;
    reg = <0x1e780200 0x0100>;
    clocks = <&syscon ASPEED_CLK_APB>;
    interrupt-controller;
    #interrupt-cells = <2>;
    ngpios = <80>;
    bus-frequency = <12000000>;
};

Source notes #

Annotations retained from the schema source

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

Line 38: Each SGPIO is represented as a pair of input and output GPIOs

Edit this page