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

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

Add arch timer node to enable arch-timer support. MT8135 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
d186a394 4562c910

+27
+27
arch/arm/boot/dts/mt8135.dtsi
··· 46 46 cpus { 47 47 #address-cells = <1>; 48 48 #size-cells = <0>; 49 + enable-method = "mediatek,mt81xx-tz-smp"; 49 50 50 51 cpu0: cpu@0 { 51 52 device_type = "cpu"; ··· 73 72 }; 74 73 }; 75 74 75 + reserved-memory { 76 + #address-cells = <2>; 77 + #size-cells = <2>; 78 + ranges; 79 + 80 + trustzone-bootinfo@80002000 { 81 + compatible = "mediatek,trustzone-bootinfo"; 82 + reg = <0 0x80002000 0 0x1000>; 83 + }; 84 + }; 85 + 76 86 clocks { 77 87 #address-cells = <2>; 78 88 #size-cells = <2>; ··· 107 95 #clock-cells = <0>; 108 96 clock-frequency = <26000000>; 109 97 }; 98 + }; 99 + 100 + timer { 101 + compatible = "arm,armv7-timer"; 102 + interrupt-parent = <&gic>; 103 + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | 104 + IRQ_TYPE_LEVEL_LOW)>, 105 + <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | 106 + IRQ_TYPE_LEVEL_LOW)>, 107 + <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | 108 + IRQ_TYPE_LEVEL_LOW)>, 109 + <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | 110 + IRQ_TYPE_LEVEL_LOW)>; 111 + clock-frequency = <13000000>; 112 + arm,cpu-registers-not-fw-configured; 110 113 }; 111 114 112 115 soc {