• Zhiyong Tao's avatar
    regulator: dt-bindings: mt6358: Add MT6366 PMIC · c631494a
    Zhiyong Tao authored
    The MediaTek MT6366 PMIC is similar to the MT6358 PMIC. It is designed
    to be paired with the MediaTek MT8186 SoC. It has 9 buck regulators and
    29 LDO regulators, not counting ones that feed internally and basically
    have no controls. The regulators are named after their intended usage
    for the SoC and system design, thus not named generically as ldoX or
    dcdcX, but as vcn33 or vgpu.
    
    The differences compared to the MT6358 are minimal:
    - Regulators removed: VCAMA1, VCAMA2, VCAMD, VCAMIO, VLDO28
    - Regulators added: VM18, VMDDR, VSRAM_CORE
    
    Both PMIC models contain a chip ID register at the same address that
    can be used to differentiate the actual model. Thus, even though the
    MT6366 is not fully backward compatible with the MT6358, it still falls
    back on the MT6358 compatible string. It is up to the implementation
    to use the chip ID register as a probing mechanism.
    
    Update the MT6358 regulator binding and add entries for all the MT6366's
    regulators and their supplies. The regulator node names follow a cleaned
    up style without type prefixes and with underscores replaced with hyphens.
    Signed-off-by: default avatarZhiyong Tao <zhiyong.tao@mediatek.com>
    [wens@chromium.org: major rework and added commit message]
    Signed-off-by: default avatarChen-Yu Tsai <wenst@chromium.org>
    Reviewed-by: default avatarRob Herring <robh@kernel.org>
    Link: https://lore.kernel.org/r/20230928085537.3246669-6-wenst@chromium.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
    c631494a
mediatek,mt6358-regulator.yaml 7.69 KB