Path: blob/main/sys/contrib/device-tree/Bindings/gpio/gpio-atlas7.txt
48378 views
CSR SiRFatlas7 GPIO controller bindings12Required properties:3- compatible : "sirf,atlas7-gpio"4- reg : Address range of the pinctrl registers5- interrupts : Interrupts used by every GPIO group6- gpio-banks : How many gpio banks on this controller7- gpio-controller : Indicates this device is a GPIO controller8- interrupt-controller : Marks the device node as an interrupt controller910The GPIO controller also acts as an interrupt controller. It uses the default11two cells specifier as described in Documentation/devicetree/bindings/12interrupt-controller/interrupts.txt.1314Example:1516gpio_0: gpio_mediam@17040000 {17compatible = "sirf,atlas7-gpio";18reg = <0x17040000 0x1000>;19interrupts = <0 13 0>, <0 14 0>;2021#gpio-cells = <2>;22#interrupt-cells = <2>;2324gpio-controller;25interrupt-controller;2627gpio-banks = <2>;28gpio-ranges = <&pinctrl 0 0 0>,29<&pinctrl 32 0 0>;30gpio-ranges-group-names = "lvds_gpio_grp",31"uart_nand_gpio_grp";32};3334leds {35compatible = "gpio-leds";3637led1 {38gpios = <&gpio_1 15 0>;39...40};4142led2 {43gpios = <&gpio_2 34 0>;44...45};46};4748Please refer to gpio.txt in this directory for details of the common49gpio properties used by devices.505152