]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: sama7g5: switch to PMC bindings
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 2 Jun 2020 12:26:12 +0000 (15:26 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Thu, 7 Jan 2021 07:44:15 +0000 (09:44 +0200)
Get rid of software defined MCK and switch to PMC bindings
for IPs currently present in device tree.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
arch/arm/dts/sama7g5.dtsi
arch/arm/dts/sama7g5ek-u-boot.dtsi

index 623680624478dd403ffc3226fc2516a04bb6db6e..a41306431ac076d3facc5db2aabb8aaa45b7e4c9 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include "skeleton.dtsi"
+#include <dt-bindings/clk/at91.h>
 
 / {
        model = "Microchip SAMA7G5 family SoC";
                        compatible = "fixed-clock";
                        #clock-cells = <0>;
                };
-
-               mck: mck {
-                       compatible = "fixed-clock";
-                       #clock-cells = <0>;
-                       clock-frequency = <200000000>;
-               };
        };
 
        ahb {
                        sdmmc1: sdio-host@e1208000 {
                                compatible = "microchip,sama7g5-sdhci";
                                reg = <0xe1208000 0x300>;
-                               clocks = <&mck>, <&mck>, <&mck>;
-                               clock-names = "hclock", "multclk", "baseclk";
+                               clocks = <&pmc PMC_TYPE_PERIPHERAL 81>, <&pmc PMC_TYPE_GCK 81>;
+                               clock-names = "hclock", "multclk";
                                status = "disabled";
                        };
 
                        uart0: serial@e1824200 {
                                compatible = "atmel,at91sam9260-usart";
                                reg = <0xe1824200 0x200>;
-                               clocks = <&mck>;
+                               clocks = <&pmc PMC_TYPE_PERIPHERAL 41>;
                                clock-names = "usart";
                                status = "disabled";
                        };
index 428b98c3033f6b065d2023f9306d96853e62dcb1..95d9c3bff2cce2217dc49013aff54e80050c310a 100644 (file)
@@ -47,7 +47,3 @@
        u-boot,dm-pre-reloc;
 };
 
-&mck {
-       u-boot,dm-pre-reloc;
-};
-