summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorAlexandre Mergnat <amergnat@baylibre.com>2026-11-02 15:54:17 +0000
committerMark Brown <broonie@kernel.org>2026-11-02 18:02:21 +0000
commit7318d3833067e4edb7c2a9bc244e8818b1597ff2 (patch)
treefa4964d3fc49064658285ef73c2f43b99b573482 /tools/lib/python
parent6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 (diff)
regulator: mt6363: Use 8-bit register values
The registers are 8 bits wide, but the regulator regmap uses 16-bit values, so every access also covers the next register. On little-endian CPUs, each regmap_write() also writes zero to the next register: disabling VS2 or a VBUCK rail through its clear register 0x212 also clears the enable bits of VS1, VS3 and three VSRAM rails in 0x213. Change the regmap values to 8 bits. Store the BUCK and TMA keys as __le16 so that the low byte goes to the first key register on any CPU, as it did on little-endian CPUs. Fixes: 3c36965df808 ("regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators") Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com> Link: https://patch.msgid.link/20261102-rgp-67-mt6363-regulator-fixes-v1-1-420789a3113e@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions