]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: dts: stm32: Duplicate cpu0-opp-table node into stm32mp15-u-boot.dtsi
authorMarek Vasut <marex@denx.de>
Sat, 5 Oct 2024 01:15:48 +0000 (03:15 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Wed, 16 Oct 2024 18:12:35 +0000 (20:12 +0200)
The cpu0-opp-table {} node does not exist in upstream Linux stm32mp151.dtsi
file, in order to enable conversion to OF_UPSTREAM, duplicate the node from
current U-Boot stm32mp151.dtsi into stm32mp15-u-boot.dtsi. This makes STM32
DTs buildable even with OF_UPSTREAM enabled. No functional change, since the
current U-Boot stm32mp151.dtsi already contains the cpu0-opp-table {} node,
stm32mp15-u-boot.dtsi is applied at the end, and does not bring in any new
content.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/dts/stm32mp15-u-boot.dtsi

index fe56f05616a04c8400ac01e5cd1290125e0c1078..66d4c40c6a87a577e6ebdcb0bc8c7ea7b5bc04e2 100644 (file)
                        status = "okay";
                };
        };
+
+       cpu0_opp_table: cpu0-opp-table {
+               compatible = "operating-points-v2";
+               opp-shared;
+               bootph-pre-ram;
+               opp-650000000 {
+                       bootph-pre-ram;
+                       opp-hz = /bits/ 64 <650000000>;
+                       opp-microvolt = <1200000>;
+                       opp-supported-hw = <0x1>;
+               };
+               opp-800000000 {
+                       bootph-pre-ram;
+                       opp-hz = /bits/ 64 <800000000>;
+                       opp-microvolt = <1350000>;
+                       opp-supported-hw = <0x2>;
+               };
+       };
 };
 
 &bsec {
        bootph-all;
 };
 
-&cpu0_opp_table {
-       bootph-pre-ram;
-       opp-650000000 {
-               bootph-pre-ram;
-       };
-       opp-800000000 {
-               bootph-pre-ram;
-       };
+&cpu0 {
+       nvmem-cells = <&part_number_otp>;
+       nvmem-cell-names = "part_number";
+       operating-points-v2 = <&cpu0_opp_table>;
 };
 
 &gpioa {