Path: blob/master/Documentation/devicetree/bindings/gpio/aspeed,sgpio.yaml
52660 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/gpio/aspeed,sgpio.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Aspeed SGPIO controller78maintainers:9- Andrew Jeffery <andrew@aj.id.au>1011description:12This SGPIO controller is for ASPEED AST2400, AST2500, AST2600 and AST2700 SoC,13AST2700 have two sgpio master both with 256 pins,14AST2600 have two sgpio master one with 128 pins another one with 80 pins,15AST2500/AST2400 have one sgpio master with 80 pins. Each of the Serial16GPIO pins can be programmed to support the following options17- Support interrupt option for each input port and various interrupt18sensitivity option (level-high, level-low, edge-high, edge-low)19- Support reset tolerance option for each output port20- Directly connected to APB bus and its shift clock is from APB bus clock21divided by a programmable value.22- Co-work with external signal-chained TTL components (74LV165/74LV595)2324properties:25compatible:26enum:27- aspeed,ast2400-sgpio28- aspeed,ast2500-sgpio29- aspeed,ast2600-sgpiom30- aspeed,ast2700-sgpiom3132reg:33maxItems: 13435gpio-controller: true3637# Each SGPIO is represented as a pair of input and output GPIOs38gpio-line-names:39minItems: 16040maxItems: 2564142'#gpio-cells':43const: 24445interrupts:46maxItems: 14748interrupt-controller: true4950'#interrupt-cells':51const: 25253clocks:54maxItems: 15556ngpios: true5758bus-frequency: true5960required:61- compatible62- reg63- gpio-controller64- '#gpio-cells'65- interrupts66- interrupt-controller67- '#interrupt-cells'68- ngpios69- clocks70- bus-frequency7172additionalProperties: false7374examples:75- |76#include <dt-bindings/clock/aspeed-clock.h>77sgpio: sgpio@1e780200 {78#gpio-cells = <2>;79compatible = "aspeed,ast2500-sgpio";80gpio-controller;81interrupts = <40>;82reg = <0x1e780200 0x0100>;83clocks = <&syscon ASPEED_CLK_APB>;84interrupt-controller;85#interrupt-cells = <2>;86ngpios = <80>;87bus-frequency = <12000000>;88};899091