mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 20:23:57 +08:00
48c926cd34
Improve the binding example by removing all the leading zeros to fix the following dtc warnings: Warning (unit_address_format): Node /XXX unit name should not have leading 0s Converted using the following command: perl -p -i -e 's/\@0+([0-9a-f])/\@$1/g' `find ./Documentation/devicetree/bindings "*.txt"` Some unnecessary changes were manually fixed. Signed-off-by: Marco Franchi <marco.franchi@nxp.com> Signed-off-by: Rob Herring <robh@kernel.org>
46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
ImgTec TZ1090 PDC GPIO Controller
|
|
|
|
Required properties:
|
|
- compatible: Compatible property value should be "img,tz1090-pdc-gpio".
|
|
|
|
- reg: Physical base address of the controller and length of memory mapped
|
|
region. This starts at and cover the SOC_GPIO_CONTROL registers.
|
|
|
|
- gpio-controller: Specifies that the node is a gpio controller.
|
|
|
|
- #gpio-cells: Should be 2. The syntax of the gpio specifier used by client
|
|
nodes should have the following values.
|
|
<[phandle of the gpio controller node]
|
|
[PDC gpio number]
|
|
[gpio flags]>
|
|
|
|
Values for gpio specifier:
|
|
- GPIO number: a value in the range 0 to 6.
|
|
- GPIO flags: bit field of flags, as defined in <dt-bindings/gpio/gpio.h>.
|
|
Only the following flags are supported:
|
|
GPIO_ACTIVE_HIGH
|
|
GPIO_ACTIVE_LOW
|
|
|
|
Optional properties:
|
|
- gpio-ranges: Mapping to pin controller pins (as described in
|
|
Documentation/devicetree/bindings/gpio/gpio.txt)
|
|
|
|
- interrupts: Individual syswake interrupts (other GPIOs cannot interrupt)
|
|
|
|
|
|
Example:
|
|
|
|
pdc_gpios: gpio-controller@2006500 {
|
|
gpio-controller;
|
|
#gpio-cells = <2>;
|
|
|
|
compatible = "img,tz1090-pdc-gpio";
|
|
reg = <0x02006500 0x100>;
|
|
|
|
interrupt-parent = <&pdc>;
|
|
interrupts = <8 IRQ_TYPE_NONE>, /* Syswake 0 */
|
|
<9 IRQ_TYPE_NONE>, /* Syswake 1 */
|
|
<10 IRQ_TYPE_NONE>; /* Syswake 2 */
|
|
gpio-ranges = <&pdc_pinctrl 0 0 7>;
|
|
};
|