]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: imx6ul: use nvmem-cells for cpu speed grading
authorAnson Huang <Anson.Huang@nxp.com>
Fri, 14 Sep 2018 02:59:21 +0000 (10:59 +0800)
committerShawn Guo <shawnguo@kernel.org>
Wed, 26 Sep 2018 09:15:12 +0000 (17:15 +0800)
On i.MX6UL, accessing OCOTP directly is wrong because the ocotp clock
needs to be enabled first, so use the nvmem-cells binding instead.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6ul.dtsi

index 7d4dae4995d0ec1553b2eb84983b731b25803e61..083d3446c41d0cd49a3c4dc042538ed810ae34f0 100644 (file)
@@ -89,6 +89,8 @@
                                      "pll1_sys";
                        arm-supply = <&reg_arm>;
                        soc-supply = <&reg_soc>;
+                       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>;
+                               };
                        };
 
                        lcdif: lcdif@21c8000 {