]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: zynqmp: Add fclk bindings for VPK120 clocks
authorSaeed Nowshadi <saeed.nowshadi@xilinx.com>
Fri, 2 Jul 2021 23:23:54 +0000 (16:23 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 7 Jul 2021 06:15:47 +0000 (08:15 +0200)
Add Xilinx fclk bindings for clocks on VPK120 board so they could be
referenced through sysfs interface.

Signed-off-by: Saeed Nowshadi <saeed.nowshadi@xilinx.com>
arch/arm/dts/zynqmp-vpk120-revA.dts

index c2f5d9b96e08ff7175a7e22c27c6ba0531a09725..ed56cf859f5efc5f12e7c14279b17d49cab8366f 100644 (file)
                reg = <0x0 0x0 0x0 0x80000000>;
        };
 
+       si570_user1_fmc_clk: si570_user1_fmc_clk {
+               status = "okay";
+               compatible = "xlnx,fclk";
+               clocks = <&user_si570_1>;
+       };
+
+       si570_ref_clk: si570_ref_clk {
+               status = "okay";
+               compatible = "xlnx,fclk";
+               clocks = <&ref_clk>;
+       };
+
+       si570_lpddr4_clk3: si570_lpddr4_clk3 {
+               status = "okay";
+               compatible = "xlnx,fclk";
+               clocks = <&lpddr4_clk3>;
+       };
+
+       si570_lpddr4_clk2: si570_lpddr4_clk2 {
+               status = "okay";
+               compatible = "xlnx,fclk";
+               clocks = <&lpddr4_clk2>;
+       };
+
+       si570_lpddr4_clk1: si570_lpddr4_clk1 {
+               status = "okay";
+               compatible = "xlnx,fclk";
+               clocks = <&lpddr4_clk1>;
+       };
+
        gpio-keys {
                compatible = "gpio-keys";
                autorepeat;
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <6>;
-                       si570_1: clock-generator@5d { /* USER C0 SI570 - u205 */
+                       user_si570_1: clock-generator@5f { /* USER C0 SI570 - u205 */
                                #clock-cells = <0>;
                                compatible = "silabs,si570";
-                               reg = <0x5d>;
+                               reg = <0x5f>;
                                temperature-stability = <50>;
-                               factory-fout = <300000000>; // FIXME not in schematics
-                               clock-frequency = <300000000>;
+                               factory-fout = <100000000>;
+                               clock-frequency = <100000000>;
                                clock-output-names = "fmc_si570";
                        };
 
                                compatible = "st,24c128", "atmel,24c128";
                                reg = <0x54>; /* & 0x5c */
                        };
-                       si570_ref_clk: clock-generator@5d { /* u32 */
+                       ref_clk: clock-generator@5d { /* u32 */
                                #clock-cells = <0>;
                                compatible = "silabs,si570";
                                reg = <0x5d>;