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

arm64: dts: mt8183: Add the mmsys reset bit to reset the dsi0

Reset the DSI hardware is needed to prevent different settings between
the bootloader and the kernel.

While here, also remove the undocumented and also not used
'mediatek,syscon-dsi' property.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210930103105.v4.5.I933f1532d7a1b2910843a9644c86a7d94a4b44e1@changeid
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>

authored by

Enric Balletbo i Serra and committed by
Matthias Brugger
4bdb00ed 7fdb1bc3

+5 -1
+2 -1
arch/arm64/boot/dts/mediatek/mt8183.dtsi
··· 1319 1319 compatible = "mediatek,mt8183-mmsys", "syscon"; 1320 1320 reg = <0 0x14000000 0 0x1000>; 1321 1321 #clock-cells = <1>; 1322 + #reset-cells = <1>; 1322 1323 mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>, 1323 1324 <&gce 1 CMDQ_THR_PRIO_HIGHEST>; 1324 1325 mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0 0x1000>; ··· 1434 1433 reg = <0 0x14014000 0 0x1000>; 1435 1434 interrupts = <GIC_SPI 236 IRQ_TYPE_LEVEL_LOW>; 1436 1435 power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; 1437 - mediatek,syscon-dsi = <&mmsys 0x140>; 1438 1436 clocks = <&mmsys CLK_MM_DSI0_MM>, 1439 1437 <&mmsys CLK_MM_DSI0_IF>, 1440 1438 <&mipi_tx0>; 1441 1439 clock-names = "engine", "digital", "hs"; 1440 + resets = <&mmsys MT8183_MMSYS_SW0_RST_B_DISP_DSI0>; 1442 1441 phys = <&mipi_tx0>; 1443 1442 phy-names = "dphy"; 1444 1443 };
+3
include/dt-bindings/reset/mt8183-resets.h
··· 80 80 81 81 #define MT8183_INFRACFG_SW_RST_NUM 128 82 82 83 + /* MMSYS resets */ 84 + #define MT8183_MMSYS_SW0_RST_B_DISP_DSI0 25 85 + 83 86 #define MT8183_TOPRGU_MM_SW_RST 1 84 87 #define MT8183_TOPRGU_MFG_SW_RST 2 85 88 #define MT8183_TOPRGU_VENC_SW_RST 3