linux/drivers/soc/mediatek
AngeloGioacchino Del Regno 40d59dc92e
soc: mediatek: mtk-svs: Subtract offset from regs_v2 to avoid conflict
The svs_regs_v2 array of registers was offsetted by 0xc00 because the
SVS node was supposed to have the same iostart as the thermal sensors.
That's wrong for two reasons:
 1. Two different devices cannot have the same iostart in devicetree,
    as those would technically be the same device otherwise; and
 2. SVS and Thermal Sensor (be it LVTS or AUXADC thermal) are not the
    same IP, and those two do obviously have a different iospace.

Even though there already are users of this register array, the only
one that declares a devicetree node for SVS is MT8183 - but it never
actually worked because the "tzts1" thermal zone missed thermal trips,
hence this driver's probe always failed on that SoC.

Knowing this - it is safe to say that keeping compatibility with older
device trees is pointless, hence simply subtract the 0xc00 offset from
the register offset array.

Link: https://lore.kernel.org/r/20231121125044.78642-3-angelogioacchino.delregno@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
2023-12-11 11:36:12 +01:00
..
Kconfig pmdomain: mediatek: Move Kconfig options to the pmdomain subsystem 2023-10-04 23:41:18 +02:00
Makefile soc: mediatek: Move power-domain drivers to the genpd dir 2023-07-11 15:30:09 +02:00
mt8167-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8173-mmsys.h soc: mediatek: mtk-mmsys: Split out MT8173 mmsys DDP routing table 2023-04-02 19:01:40 +02:00
mt8183-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8186-mmsys.h soc: mediatek: Add all settings to mtk_mmsys_ddp_dpi_fmt_config func 2022-11-08 19:25:30 +01:00
mt8188-mmsys.h soc: mediatek: Add MT8188 VDOSYS reset bit map 2023-12-11 11:36:12 +01:00
mt8192-mmsys.h soc: mediatek: add DDP_DOMPONENT_DITHER0 enum for mt8195 vdosys0 2022-04-22 14:38:53 +02:00
mt8195-mmsys.h soc: mediatek: mmsys: add config api for RSZ switching and DCM 2023-03-06 14:35:44 +01:00
mt8365-mmsys.h soc: mediatek: mt8365-mmsys: add DPI/HDMI display path 2022-06-17 12:25:57 +02:00
mtk-cmdq-helper.c soc: mediatek: Explicitly include correct DT includes 2023-08-12 10:31:01 +02:00
mtk-devapc.c soc/mediatek: mtk-devapc: Convert to platform remove callback returning void 2023-10-14 23:27:25 +02:00
mtk-infracfg.c soc: mediatek: mtk-infracfg: Disable ACP on MT8192 2022-03-01 08:21:28 +01:00
mtk-mmsys.c soc: mediatek: Add MT8188 VDOSYS reset bit map 2023-12-11 11:36:12 +01:00
mtk-mmsys.h soc: mediatek: Support reset bit mapping in mmsys driver 2023-12-11 11:36:12 +01:00
mtk-mutex.c soc: mediatek: Support MT8188 VDOSYS1 Padding in mtk-mmsys 2023-12-11 11:36:12 +01:00
mtk-pmic-wrap.c soc: mediatek: Explicitly include correct DT includes 2023-08-12 10:31:01 +02:00
mtk-regulator-coupler.c soc: mediatek: Introduce mediatek-regulator-coupler driver 2023-01-30 11:27:49 +01:00
mtk-svs.c soc: mediatek: mtk-svs: Subtract offset from regs_v2 to avoid conflict 2023-12-11 11:36:12 +01:00