]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
device-tree: gpio: Add clk support to xilinx soft gpio IP
authorMichal Simek <michal.simek@xilinx.com>
Mon, 13 Feb 2017 13:28:07 +0000 (14:28 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 15 Mar 2018 13:17:33 +0000 (14:17 +0100)
Specify clock properties in binding.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Documentation/devicetree/bindings/gpio/gpio-xilinx.txt

index 63bf4becd5f07c55668848317106325be1b1c9bb..ca619e5c86e137e1661f3381ee34e9d7e051adff 100644 (file)
@@ -13,6 +13,8 @@ Required properties:
 - gpio-controller : Marks the device node as a GPIO controller.
 
 Optional properties:
+- clock-names : Should be "axi_clk"
+- clocks: Input clock specifier. Refer to common clock bindings.
 - interrupts : Interrupt mapping for GPIO IRQ.
 - interrupt-parent : Phandle for the interrupt controller that
   services interrupts for this device.
@@ -32,6 +34,8 @@ gpio: gpio@40000000 {
        #gpio-cells = <2>;
        compatible = "xlnx,xps-gpio-1.00.a";
        gpio-controller ;
+       clock-names = "axi_clk";
+       clocks = <&clkc 71>;
        interrupt-parent = <&microblaze_0_intc>;
        interrupts = < 6 2 >;
        reg = < 0x40000000 0x10000 >;