ARM: dts: artpec: use clock binding header
authorLars Persson <lars.persson@axis.com>
Tue, 23 Aug 2016 14:00:50 +0000 (16:00 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 13 Sep 2016 14:04:28 +0000 (16:04 +0200)
Use defines from the clock binding header as clock indexes.

Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/artpec6.dtsi

index 3fac4c4d000753a6501402dad8716130abfa9781..db41b52ecccf5aaf1d1d61b3426897020ae68dad 100644 (file)
@@ -41,6 +41,7 @@
  */
 
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/clock/axis,artpec6-clkctrl.h>
 #include "skeleton.dtsi"
 
 / {
                compatible = "arm,cortex-a9-global-timer";
                reg = <0xfaf00200 0x20>;
                interrupts = <GIC_PPI 11 0xf01>;
-               clocks = <&clkctrl 1>;
+               clocks = <&clkctrl ARTPEC6_CLK_CPU_PERIPH>;
        };
 
        timer@faf00600 {
                compatible = "arm,cortex-a9-twd-timer";
                reg = <0xfaf00600 0x20>;
                interrupts = <GIC_PPI 13 0xf04>;
-               clocks = <&clkctrl 1>;
+               clocks = <&clkctrl ARTPEC6_CLK_CPU_PERIPH>;
                status = "disabled";
        };
 
                ethernet: ethernet@f8010000 {
                        clock-names = "phy_ref_clk", "apb_pclk";
                        clocks = <&eth_phy_ref_clk>,
-                               <&clkctrl 4>;
+                               <&clkctrl ARTPEC6_CLK_ETH_ACLK>;
                        compatible = "snps,dwc-qos-ethernet-4.10";
                        interrupt-parent = <&intc>;
                        interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0xf8036000 0x1000>;
                        interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&clkctrl 13>,
-                               <&clkctrl 12>;
+                       clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
+                               <&clkctrl ARTPEC6_CLK_UART_PCLK>;
                        clock-names = "uart_clk", "apb_pclk";
                        status = "disabled";
                };
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0xf8037000 0x1000>;
                        interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&clkctrl 13>,
-                               <&clkctrl 12>;
+                       clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
+                               <&clkctrl ARTPEC6_CLK_UART_PCLK>;
                        clock-names = "uart_clk", "apb_pclk";
                        status = "disabled";
                };
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0xf8038000 0x1000>;
                        interrupts = <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&clkctrl 13>,
-                               <&clkctrl 12>;
+                       clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
+                               <&clkctrl ARTPEC6_CLK_UART_PCLK>;
                        clock-names = "uart_clk", "apb_pclk";
                        status = "disabled";
                };
                        compatible = "arm,pl011", "arm,primecell";
                        reg = <0xf8039000 0x1000>;
                        interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
-                       clocks = <&clkctrl 13>,
-                               <&clkctrl 12>;
+                       clocks = <&clkctrl ARTPEC6_CLK_UART_REFCLK>,
+                               <&clkctrl ARTPEC6_CLK_UART_PCLK>;
                        clock-names = "uart_clk", "apb_pclk";
                        status = "disabled";
                };