Path: blob/main/sys/contrib/device-tree/Bindings/gpio/brcm,bcm6345-gpio.txt
48375 views
Bindings for the Broadcom's brcm,bcm6345-gpio memory-mapped GPIO controllers.12These bindings can be used on any BCM63xx SoC. However, BCM6338 and BCM63453are the only ones which don't need a pinctrl driver.4BCM6338 have 8-bit data and dirout registers, where GPIO state can be read5and/or written, and the direction changed from input to output.6BCM6345 have 16-bit data and dirout registers, where GPIO state can be read7and/or written, and the direction changed from input to output.89Required properties:10- compatible: should be "brcm,bcm6345-gpio"11- reg-names: must contain12"dat" - data register13"dirout" - direction (output) register14- reg: address + size pairs describing the GPIO register sets;15order must correspond with the order of entries in reg-names16- #gpio-cells: must be set to 2. The first cell is the pin number and17the second cell is used to specify the gpio polarity:180 = active high191 = active low20- gpio-controller: Marks the device node as a gpio controller.2122Optional properties:23- native-endian: use native endian memory.2425Examples:26- BCM6338:27gpio: gpio-controller@fffe0407 {28compatible = "brcm,bcm6345-gpio";29reg-names = "dirout", "dat";30reg = <0xfffe0407 1>, <0xfffe040f 1>;3132#gpio-cells = <2>;33gpio-controller;34};3536- BCM6345:37gpio: gpio-controller@fffe0406 {38compatible = "brcm,bcm6345-gpio";39reg-names = "dirout", "dat";40reg = <0xfffe0406 2>, <0xfffe040a 2>;41native-endian;4243#gpio-cells = <2>;44gpio-controller;45};464748