ARM: dts: OX820: Update with dt-bindings includes
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 4 Jan 2017 08:24:30 +0000 (09:24 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 4 Jan 2017 09:31:34 +0000 (10:31 +0100)
Add OX820 dt-bindings includes files for clocks and resets, replace
resets numbers by human readable defines.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
arch/arm/boot/dts/ox820.dtsi

index e40f282a023a1f607d66e9b0cd711c143a45ab20..459207536a46654246517adfdd62cd6a38629202 100644 (file)
@@ -8,6 +8,8 @@
 
 /include/ "skeleton.dtsi"
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/clock/oxsemi,ox820.h>
+#include <dt-bindings/reset/oxsemi,ox820.h>
 
 / {
        compatible = "oxsemi,ox820";
@@ -83,8 +85,8 @@
                nandc: nand-controller@41000000 {
                        compatible = "oxsemi,ox820-nand";
                        reg = <0x41000000 0x100000>;
-                       clocks = <&stdclk 11>;
-                       resets = <&reset 15>;
+                       clocks = <&stdclk CLK_820_NAND>;
+                       resets = <&reset RESET_NAND>;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        status = "disabled";
                        mac-address = [000000000000]; /* Filled in by U-Boot */
                        phy-mode = "rgmii";
 
-                       clocks = <&stdclk 9>, <&gmacclk>;
+                       clocks = <&stdclk CLK_820_ETHA>, <&gmacclk>;
                        clock-names = "gmac", "stmmaceth";
-                       resets = <&reset 6>;
+                       resets = <&reset RESET_MAC>;
 
                        /* Regmap for sys registers */
                        oxsemi,sys-ctrl = <&sys>;
                               no-loopback-test;
                               status = "disabled";
                               clocks = <&sysclk>;
-                              resets = <&reset 17>;
+                              resets = <&reset RESET_UART1>;
                        };
 
                        uart1: serial@300000 {
                               no-loopback-test;
                               status = "disabled";
                               clocks = <&sysclk>;
-                              resets = <&reset 18>;
+                              resets = <&reset RESET_UART2>;
                        };
 
                        rps@400000 {