Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: mt8127: enable basic SMP bringup for mt8127

Add arch timer node to enable arch-timer support. MT8127 firmware
doesn't correctly setup arch-timer frequency and CNTVOFF, add
properties to workaround this.

This also set cpu enable-method to enable SMP.

Signed-off-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>

authored by

Yingjoe Chen and committed by
Matthias Brugger
060646a2 d186a394

+27
+27
arch/arm/boot/dts/mt8127.dtsi
··· 23 23 cpus { 24 24 #address-cells = <1>; 25 25 #size-cells = <0>; 26 + enable-method = "mediatek,mt81xx-tz-smp"; 26 27 27 28 cpu@0 { 28 29 device_type = "cpu"; ··· 46 45 reg = <0x3>; 47 46 }; 48 47 48 + }; 49 + 50 + reserved-memory { 51 + #address-cells = <2>; 52 + #size-cells = <2>; 53 + ranges; 54 + 55 + trustzone-bootinfo@80002000 { 56 + compatible = "mediatek,trustzone-bootinfo"; 57 + reg = <0 0x80002000 0 0x1000>; 58 + }; 49 59 }; 50 60 51 61 clocks { ··· 82 70 clock-frequency = <26000000>; 83 71 #clock-cells = <0>; 84 72 }; 73 + }; 74 + 75 + timer { 76 + compatible = "arm,armv7-timer"; 77 + interrupt-parent = <&gic>; 78 + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | 79 + IRQ_TYPE_LEVEL_LOW)>, 80 + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | 81 + IRQ_TYPE_LEVEL_LOW)>, 82 + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | 83 + IRQ_TYPE_LEVEL_LOW)>, 84 + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | 85 + IRQ_TYPE_LEVEL_LOW)>; 86 + clock-frequency = <13000000>; 87 + arm,cpu-registers-not-fw-configured; 85 88 }; 86 89 87 90 soc {