]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: fsl-ls1088a: import CPU definition from Linux kernel
authorMathew McBride <matt@traverse.com.au>
Wed, 12 Apr 2023 07:38:21 +0000 (07:38 +0000)
committerPeng Fan <peng.fan@nxp.com>
Fri, 5 May 2023 01:46:03 +0000 (09:46 +0800)
This is required for Linux to boot using the same FDT as
U-Boot (such as passing the control FDT to bootefi).

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Tested-by: Ioana Ciornei <ioana.ciornei@nxp.com> # on LS1088A-RDB
arch/arm/dts/fsl-ls1088a.dtsi

index 85316ddb667a5f2e120f35304ecaaca8a742166e..dc6241e20d99fe50f0b636a53594013482cd6bdf 100644 (file)
        #address-cells = <2>;
        #size-cells = <2>;
 
+       cpus {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               /* We have 2 clusters having 4 Cortex-A53 cores each */
+               cpu0: cpu@0 {
+                       device_type = "cpu";
+                       compatible = "arm,cortex-a53";
+                       reg = <0x0>;
+                       clocks = <&clockgen QORIQ_CLK_CMUX 0>;
+                       cpu-idle-states = <&CPU_PH20>;
+                       #cooling-cells = <2>;
+               };
+
+               cpu1: cpu@1 {
+                       device_type = "cpu";
+                       compatible = "arm,cortex-a53";
+                       reg = <0x1>;
+                       clocks = <&clockgen QORIQ_CLK_CMUX 0>;
+                       cpu-idle-states = <&CPU_PH20>;
+                       #cooling-cells = <2>;
+               };
+
+               cpu2: cpu@2 {
+                       device_type = "cpu";
+                       compatible = "arm,cortex-a53";
+                       reg = <0x2>;
+                       clocks = <&clockgen QORIQ_CLK_CMUX 0>;
+                       cpu-idle-states = <&CPU_PH20>;
+                       #cooling-cells = <2>;
+               };
+
+               cpu3: cpu@3 {
+                       device_type = "cpu";
+                       compatible = "arm,cortex-a53";
+                       reg = <0x3>;
+                       clocks = <&clockgen QORIQ_CLK_CMUX 0>;
+                       cpu-idle-states = <&CPU_PH20>;
+                       #cooling-cells = <2>;
+               };
+
+               cpu4: cpu@100 {
+                       device_type = "cpu";
+                       compatible = "arm,cortex-a53";
+                       reg = <0x100>;
+                       clocks = <&clockgen QORIQ_CLK_CMUX 1>;
+                       cpu-idle-states = <&CPU_PH20>;
+                       #cooling-cells = <2>;
+               };
+
+               cpu5: cpu@101 {
+                       device_type = "cpu";
+                       compatible = "arm,cortex-a53";
+                       reg = <0x101>;
+                       clocks = <&clockgen QORIQ_CLK_CMUX 1>;
+                       cpu-idle-states = <&CPU_PH20>;
+                       #cooling-cells = <2>;
+               };
+
+               cpu6: cpu@102 {
+                       device_type = "cpu";
+                       compatible = "arm,cortex-a53";
+                       reg = <0x102>;
+                       clocks = <&clockgen QORIQ_CLK_CMUX 1>;
+                       cpu-idle-states = <&CPU_PH20>;
+                       #cooling-cells = <2>;
+               };
+
+               cpu7: cpu@103 {
+                       device_type = "cpu";
+                       compatible = "arm,cortex-a53";
+                       reg = <0x103>;
+                       clocks = <&clockgen QORIQ_CLK_CMUX 1>;
+                       cpu-idle-states = <&CPU_PH20>;
+                       #cooling-cells = <2>;
+               };
+
+               CPU_PH20: cpu-ph20 {
+                       compatible = "arm,idle-state";
+                       idle-state-name = "PH20";
+                       arm,psci-suspend-param = <0x0>;
+                       entry-latency-us = <1000>;
+                       exit-latency-us = <1000>;
+                       min-residency-us = <3000>;
+               };
+       };
+
        gic: interrupt-controller@6000000 {
                compatible = "arm,gic-v3";
                #interrupt-cells = <3>;