Path: blob/master/Documentation/devicetree/bindings/gpio/aspeed,ast2400-gpio.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/gpio/aspeed,ast2400-gpio.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Aspeed GPIO controller78maintainers:9- Andrew Jeffery <andrew@codeconstruct.com.au>1011properties:12compatible:13enum:14- aspeed,ast2400-gpio15- aspeed,ast2500-gpio16- aspeed,ast2600-gpio17- aspeed,ast2700-gpio1819reg:20maxItems: 12122clocks:23maxItems: 124description: The clock to use for debounce timings2526gpio-controller: true27gpio-line-names:28minItems: 1229maxItems: 2323031gpio-ranges: true3233"#gpio-cells":34const: 23536interrupts:37maxItems: 13839interrupt-controller: true4041"#interrupt-cells":42const: 24344ngpios:45minimum: 1246maximum: 2324748patternProperties:49"-hog(-[0-9]+)?$":50type: object51required:52- gpio-hog5354required:55- compatible56- reg57- interrupts58- interrupt-controller59- "#interrupt-cells"60- gpio-controller61- "#gpio-cells"6263allOf:64- if:65properties:66compatible:67contains:68const: aspeed,ast2400-gpio69then:70properties:71gpio-line-names:72minItems: 22073maxItems: 22074ngpios:75const: 22076- if:77properties:78compatible:79contains:80const: aspeed,ast2500-gpio81then:82properties:83gpio-line-names:84minItems: 23285maxItems: 23286ngpios:87const: 23288- if:89properties:90compatible:91contains:92const: aspeed,ast2600-gpio93then:94properties:95gpio-line-names:96minItems: 3697maxItems: 20898ngpios:99enum: [ 36, 208 ]100required:101- ngpios102- if:103properties:104compatible:105contains:106const: aspeed,ast2700-gpio107then:108properties:109gpio-line-names:110minItems: 12111maxItems: 216112ngpios:113enum: [ 12, 216 ]114required:115- ngpios116117additionalProperties: false118119examples:120- |121gpio@1e780000 {122compatible = "aspeed,ast2400-gpio";123reg = <0x1e780000 0x1000>;124interrupts = <20>;125interrupt-controller;126#interrupt-cells = <2>;127gpio-controller;128#gpio-cells = <2>;129};130- |131gpio: gpio@1e780000 {132compatible = "aspeed,ast2500-gpio";133reg = <0x1e780000 0x200>;134interrupts = <20>;135interrupt-controller;136#interrupt-cells = <2>;137gpio-controller;138#gpio-cells = <2>;139gpio-ranges = <&pinctrl 0 0 232>;140};141- |142#include <dt-bindings/clock/ast2600-clock.h>143#include <dt-bindings/interrupt-controller/arm-gic.h>144#include <dt-bindings/interrupt-controller/irq.h>145gpio0: gpio@1e780000 {146compatible = "aspeed,ast2600-gpio";147reg = <0x1e780000 0x400>;148clocks = <&syscon ASPEED_CLK_APB2>;149interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;150interrupt-controller;151#interrupt-cells = <2>;152#gpio-cells = <2>;153gpio-controller;154gpio-ranges = <&pinctrl 0 0 208>;155ngpios = <208>;156};157gpio1: gpio@1e780800 {158compatible = "aspeed,ast2600-gpio";159reg = <0x1e780800 0x800>;160clocks = <&syscon ASPEED_CLK_APB1>;161interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;162interrupt-controller;163#interrupt-cells = <2>;164gpio-controller;165#gpio-cells = <2>;166gpio-ranges = <&pinctrl 0 208 36>;167ngpios = <36>;168};169170171