Path: blob/master/Documentation/devicetree/bindings/gpio/gpio-mvebu.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/gpio/gpio-mvebu.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Marvell EBU GPIO controller78maintainers:9- Thomas Petazzoni <thomas.petazzoni@free-electrons.com>10- Andrew Lunn <andrew@lunn.ch>1112properties:13compatible:14oneOf:15- enum:16- marvell,armada-8k-gpio17- marvell,orion-gpio1819- items:20- enum:21- marvell,mv78200-gpio22- marvell,armada-370-gpio23- const: marvell,orion-gpio2425- description: Deprecated binding26items:27- const: marvell,armadaxp-gpio28- const: marvell,orion-gpio29deprecated: true3031reg:32description: |33Address and length of the register set for the device. Not used for34marvell,armada-8k-gpio.3536A second entry can be provided, for the PWM function using the GPIO Blink37Counter on/off registers.38minItems: 139maxItems: 24041reg-names:42items:43- const: gpio44- const: pwm45minItems: 14647offset:48$ref: /schemas/types.yaml#/definitions/uint3249description: Offset in the register map for the gpio registers (in bytes)5051interrupts:52description: |53The list of interrupts that are used for all the pins managed by this54GPIO bank. There can be more than one interrupt (example: 1 interrupt55per 8 pins on Armada XP, which means 4 interrupts per bank of 3256GPIOs).57minItems: 158maxItems: 45960interrupt-controller: true6162"#interrupt-cells":63const: 26465gpio-controller: true6667ngpios:68minimum: 169maximum: 327071"#gpio-cells":72const: 27374gpio-ranges:75maxItems: 17677marvell,pwm-offset:78$ref: /schemas/types.yaml#/definitions/uint3279description: Offset in the register map for the pwm registers (in bytes)8081"#pwm-cells":82description:83The first cell is the GPIO line number. The second cell is the period84in nanoseconds.85const: 28687clocks:88description:89Clock(s) used for PWM function.90items:91- description: Core clock92- description: AXI bus clock93minItems: 19495clock-names:96items:97- const: core98- const: axi99minItems: 1100101patternProperties:102"^(.+-hog(-[0-9]+)?)$":103type: object104105required:106- gpio-hog107108required:109- compatible110- gpio-controller111- ngpios112- "#gpio-cells"113114allOf:115- if:116properties:117compatible:118contains:119const: marvell,armada-8k-gpio120then:121required:122- offset123else:124required:125- reg126127unevaluatedProperties: false128129examples:130- |131gpio@d0018100 {132compatible = "marvell,armadaxp-gpio", "marvell,orion-gpio";133reg = <0xd0018100 0x40>, <0xd0018800 0x30>;134ngpios = <32>;135gpio-controller;136#gpio-cells = <2>;137interrupt-controller;138#interrupt-cells = <2>;139interrupts = <16>, <17>, <18>, <19>;140};141142- |143gpio@18140 {144compatible = "marvell,armada-370-gpio", "marvell,orion-gpio";145reg = <0x18140 0x40>, <0x181c8 0x08>;146reg-names = "gpio", "pwm";147ngpios = <17>;148gpio-controller;149#gpio-cells = <2>;150#pwm-cells = <2>;151interrupt-controller;152#interrupt-cells = <2>;153interrupts = <87>, <88>, <89>;154clocks = <&coreclk 0>;155};156157158