MLK-21549-2 ARM: dts: imx6sll: use nvmem-cells for cpu speed grading
authorVipul Kumar <vipul_kumar@mentor.com>
Sun, 28 Apr 2019 08:05:36 +0000 (13:35 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 09:11:49 +0000 (12:11 +0300)
Use the nvmem-cells binding to read ocotp for imx6sll evk.

Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
arch/arm/boot/dts/imx6sll.dtsi

index e9d506a..f09f74b 100644 (file)
@@ -72,6 +72,8 @@
                                 <&clks IMX6SLL_CLK_PLL1_SYS>;
                        clock-names = "arm", "pll2_pfd2_396m", "step",
                                      "pll1_sw", "pll1_sys";
+                       nvmem-cells = <&cpu_speed_grade>;
+                       nvmem-cell-names = "speed_grade";
                };
        };
 
                                tempmon_temp_grade: temp-grade@20 {
                                        reg = <0x20 4>;
                                };
+
+                               cpu_speed_grade: speed-grade@10 {
+                                       reg = <0x10 4>;
+                               };
                        };
 
                        audmux: audmux@21d8000 {