[PATCH 3/4] soc: mediatek: add mt8183 pwrap support

2018-09-19 Thread Hsin-Hsiung Wang
MT6358 is a new power management IC and it is used for mt8183 SoCs. To define mt6358_regs for pmic register mapping and pmic_mt6358 for accessing register. Adding one more interrupt and wdt source. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 195

[PATCH 1/4] dt-bindings: mediatek: add compatible for mt8183 pwrap

2018-09-19 Thread Hsin-Hsiung Wang
This adds dt-binding documentation of pwrap for Mediatek MT8183 SoC Platform. Signed-off-by: Hsin-Hsiung Wang --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt b

[PATCH 0/4] Add PMIC wrapper support for Mediatek MT8183 SoC IC

2018-09-19 Thread Hsin-Hsiung Wang
This series adds support for a new PMIC MT6358 and a new SoC MT8183 to the pmic-wrap driver. Hsin-Hsiung Wang (4): dt-bindings: mediatek: add compatible for mt8183 pwrap soc: mediatek: use group of bits for pwrap capability soc: mediatek: add mt8183 pwrap support arm64: dts: mediatek: add

[PATCH 2/4] soc: mediatek: use group of bits for pwrap capability

2018-09-19 Thread Hsin-Hsiung Wang
Use group of bits for pwrap capability instead of elements of structure. This patch is preparing for adding mt8183 pwrap support. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 248 ++- 1 file changed, 129 insertions(+), 119 deletions

[PATCH 4/4] arm64: dts: mediatek: add pwrap device node for mt8183

2018-09-19 Thread Hsin-Hsiung Wang
add pwrap device node for mt8183. Signed-off-by: Hsin-Hsiung Wang --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index c22a2dc..fa67d781 100644

[PATCH v5 7/8] regulator: mt6359: Add support for MT6359P regulator

2021-01-22 Thread Hsin-Hsiung Wang
The MT6359P is a eco version for MT6359 regulator. We add support based on MT6359 regulator driver. Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - add the regulators_node support. --- drivers/regulator/mt6359-regulator.c | 379 - include/linux/mfd/mt6359p

[PATCH v5 2/8] rtc: mt6397: refine RTC_TC_MTH

2021-01-22 Thread Hsin-Hsiung Wang
This patch adds RTC_TC_MTH_MASK to support new chips. Signed-off-by: Yuchen Huang Signed-off-by: Hsin-Hsiung Wang Acked-by: Alexandre Belloni --- changes since v4: no changes --- drivers/rtc/rtc-mt6397.c | 2 +- include/linux/mfd/mt6397/rtc.h | 1 + 2 files changed, 2 insertions(+), 1

[PATCH v5 3/8] dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC

2021-01-22 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - remove unused compatible name. --- Documentation/devicetree/bindings/mfd/mt6397.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b

[PATCH v5 8/8] arm64: dts: mt6359: add PMIC MT6359 related nodes

2021-01-22 Thread Hsin-Hsiung Wang
From: Wen Su add PMIC MT6359 related nodes which is for MT6779 platform Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - add pmic MT6359 support in the MT8192 evb dts. --- arch/arm64/boot/dts/mediatek/mt6359.dtsi| 298 arch/arm64/boot/dts

[PATCH v5 4/8] dt-bindings: regulator: Add document for MT6359 regulator

2021-01-22 Thread Hsin-Hsiung Wang
add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: Hsin-Hsiung Wang --- changes since v4: fix yamllint errors in dt-binding document. --- .../bindings/regulator/mt6359-regulator.yaml | 169 ++ 1 file changed, 169 insertions(+) create mode 100644 Documentation

[PATCH v5 1/8] mfd: mt6358: refine interrupt code

2021-01-22 Thread Hsin-Hsiung Wang
This patch refines the interrupt related code to support new chips. Signed-off-by: Hsin-Hsiung Wang Acked-for-MFD-by: Lee Jones --- changes since v4: no changes --- drivers/mfd/mt6358-irq.c| 65 +++-- include/linux/mfd/mt6358/core.h | 8 ++-- 2 files

[PATCH v5 5/8] mfd: Add support for the MediaTek MT6359 PMIC

2021-01-22 Thread Hsin-Hsiung Wang
of the pwrap. Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - remove unused compatible name in the mt6359 mfd cells. --- drivers/mfd/mt6358-irq.c | 24 ++ drivers/mfd/mt6397-core.c| 26 ++ include/linux/mfd/mt6359/core.h | 133 +++ include/linux/mfd/mt6359

[PATCH v5 6/8] regulator: mt6359: Add support for MT6359 regulator

2021-01-22 Thread Hsin-Hsiung Wang
From: Wen Su The MT6359 is a regulator found on boards based on MediaTek MT6779 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - add enable

[PATCH v5 0/8] Add Support for MediaTek PMIC MT6359

2021-01-22 Thread Hsin-Hsiung Wang
for the regulator_config. - add the regulators_node support. - add pmic MT6359 support in the MT8192 evb dts. Hsin-Hsiung Wang (6): mfd: mt6358: refine interrupt code rtc: mt6397: refine RTC_TC_MTH dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC dt-bindings: regulator: Add document

[PATCH v3 0/2] Add SPMI support for Mediatek MT6873/8192 SoC IC

2020-10-15 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the spmi driver. changes since v2: - update binding document in DT schema format. Hsin-Hsiung Wang (2): dt-bindings: spmi: document binding for the Mediatek SPMI controller spmi: mediatek: Add support for MT6873/8192 .../bindings/spmi

[PATCH v3 1/2] dt-bindings: spmi: document binding for the Mediatek SPMI controller

2020-10-15 Thread Hsin-Hsiung Wang
This adds documentation for the SPMI controller found on Mediatek SoCs. Signed-off-by: Hsin-Hsiung Wang --- .../bindings/spmi/spmi-mtk-pmif.yaml | 71 +++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/spmi-mtk-pmif.yaml

[PATCH v3 2/2] spmi: mediatek: Add support for MT6873/8192

2020-10-15 Thread Hsin-Hsiung Wang
add spmi support for MT6873/8192. Signed-off-by: Hsin-Hsiung Wang --- drivers/spmi/Kconfig | 9 + drivers/spmi/Makefile| 1 + drivers/spmi/spmi-mtk-pmif.c | 474 +++ 3 files changed, 484 insertions(+) create mode 100644 drivers/spmi/spmi-mtk

[PATCH v4 1/2] dt-bindings: spmi: document binding for the Mediatek SPMI controller

2020-10-16 Thread Hsin-Hsiung Wang
This adds documentation for the SPMI controller found on Mediatek SoCs. Signed-off-by: Hsin-Hsiung Wang --- .../bindings/spmi/mtk,spmi-mtk-pmif.yaml | 70 +++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml

[PATCH v4 0/2] Add SPMI support for Mediatek MT6873/8192 SoC IC

2020-10-16 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the spmi driver. changes since v3: - update correct maintainer of the binding document. - modify debug messages in the mtk spmi probe function. - enable the sys clk and timer clk for spmi driver. Hsin-Hsiung Wang (2): dt-bindings: spmi

[PATCH v4 2/2] spmi: mediatek: Add support for MT6873/8192

2020-10-16 Thread Hsin-Hsiung Wang
add spmi support for MT6873/8192. Signed-off-by: Hsin-Hsiung Wang --- drivers/spmi/Kconfig | 9 + drivers/spmi/Makefile| 1 + drivers/spmi/spmi-mtk-pmif.c | 490 +++ 3 files changed, 500 insertions(+) create mode 100644 drivers/spmi/spmi-mtk

Re: [PATCH v2 1/2] dt-bindings: spmi: document binding for the Mediatek SPMI controller

2020-09-08 Thread Hsin-Hsiung Wang
Hi, On Tue, 2020-09-08 at 14:49 -0600, Rob Herring wrote: > On Fri, Aug 21, 2020 at 06:44:36PM +0800, Hsin-Hsiung Wang wrote: > > This adds documentation for the SPMI controller found on Mediatek SoCs. > > > > Signed-off-by: Hsin-Hsiung Wang > > --- > > .../

Re: [PATCH 1/8] mfd: mt6358: refine interrupt code

2020-08-03 Thread Hsin-hsiung Wang
Hi, On Mon, 2020-07-27 at 16:48 +0100, Lee Jones wrote: > On Thu, 23 Jul 2020, Hsin-Hsiung Wang wrote: > > > This patch refines the interrupt related code to support new chips. > > Refines in what way? > > What makes this better? > Thanks for the comment.

[PATCH 0/3] Add support for MT6315 regulator

2020-08-03 Thread Hsin-Hsiung Wang
This patch series add support for MediaTek PMIC MT6315 regulator driver, which adds MT6315 related buck voltage data to the driver. Hsin-Hsiung Wang (3): spmi: Add driver shutdown support regulator: bindings: Add document for MT6315 regulator regulator: mt6315: Add support for MT6315

[PATCH 1/3] spmi: Add driver shutdown support

2020-08-03 Thread Hsin-Hsiung Wang
Add new shutdown() method. Use it in the standard driver model style. Signed-off-by: Hsin-Hsiung Wang --- drivers/spmi/spmi.c | 12 drivers/spmi/spmi.c | 12 include/linux/spmi.h | 1 + 2 files changed, 13 insertions(+) diff --git a/drivers/spmi/spmi.c b/drivers

[PATCH 2/3] regulator: bindings: Add document for MT6315 regulator

2020-08-03 Thread Hsin-Hsiung Wang
Add device tree binding information for mt6315 regulator driver. Example bindings for mt6315 are added. Signed-off-by: Hsin-Hsiung Wang --- .../bindings/regulator/mt6315-regulator.txt| 45 ++ 1 file changed, 45 insertions(+) create mode 100644 Documentation

[PATCH 3/3] regulator: mt6315: Add support for MT6315 regulator

2020-08-03 Thread Hsin-Hsiung Wang
The MT6315 is a regulator found on boards based on MediaTek MT8192 and probably other SoCs. It connects as a slave to SoC using SPMI. Signed-off-by: Hsin-Hsiung Wang --- drivers/regulator/Kconfig | 10 + drivers/regulator/Makefile | 1 + drivers/regulator

[PATCH v3 4/4] soc: mediatek: pwrap: add pwrap driver for MT6873/8192 SoCs

2020-09-21 Thread Hsin-Hsiung Wang
MT6873/8192 are highly integrated SoCs and use PMIC_MT6359 for power management. This patch adds pwrap master driver to access PMIC_MT6359. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 29 + 1 file changed, 29 insertions(+) diff --git

[PATCH v3 0/4] Add PMIC wrapper support for Mediatek MT6873/8192 SoC IC

2020-09-21 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the pmic-wrap driver. changes since v2: - refine some coding style about PWRAP_CAP_ARB capacity for better code quality Hsin-Hsiung Wang (4): soc: mediatek: pwrap: use BIT() macro soc: mediatek: pwrap: add arbiter capability dt-bindings

[PATCH v3 2/4] soc: mediatek: pwrap: add arbiter capability

2020-09-21 Thread Hsin-Hsiung Wang
Add arbiter capability for pwrap driver. This patch is preparing for adding mt6873/8192 pwrap support. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 57 ++-- 1 file changed, 48 insertions(+), 9 deletions(-) diff --git a/drivers/soc

[PATCH v3 1/4] soc: mediatek: pwrap: use BIT() macro

2020-09-21 Thread Hsin-Hsiung Wang
Use a better BIT() marco for the bit definition. No functional changes, cleanup only. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk

[PATCH v3 3/4] dt-bindings: mediatek: add compatible for MT6873/8192 pwrap

2020-09-21 Thread Hsin-Hsiung Wang
This adds dt-binding documentation of pwrap for Mediatek MT6873/8192 SoCs Platform. Signed-off-by: Hsin-Hsiung Wang Acked-by: Rob Herring --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc

[PATCH v2 0/8] Add Support for MediaTek PMIC MT6359

2020-09-21 Thread Hsin-Hsiung Wang
=306579 changes since v1: - replace struct regulator_linear_range with struct linear_range for regulator drivers. Hsin-Hsiung Wang (5): mfd: mt6358: refine interrupt code dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC mfd: Add support for the MediaTek MT6359 PMIC regulator

[PATCH v2 8/8] arm64: dts: mt6359: add PMIC MT6359 related nodes

2020-09-21 Thread Hsin-Hsiung Wang
From: Wen Su add PMIC MT6359 related nodes which is for MT6779 platform Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- arch/arm64/boot/dts/mediatek/mt6359.dtsi | 296 +++ 1 file changed, 296 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek

[PATCH v2 4/8] mfd: Add support for the MediaTek MT6359 PMIC

2020-09-21 Thread Hsin-Hsiung Wang
of the pwrap. Signed-off-by: Hsin-Hsiung Wang Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6358-irq.c | 24 ++ drivers/mfd/mt6397-core.c| 23 ++ include/linux/mfd/mt6359/core.h | 133 + include/linux/mfd/mt6359/registers.h | 529

[PATCH v2 3/8] dt-bindings: regulator: Add document for MT6359 regulator

2020-09-21 Thread Hsin-Hsiung Wang
From: Wen Su add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang Reviewed-by: Rob Herring --- .../bindings/regulator/mt6359-regulator.txt| 58 ++ 1 file changed, 58 insertions(+) create mode 100644

[PATCH v2 6/8] regulator: mt6359: Set the enable time for LDOs

2020-09-21 Thread Hsin-Hsiung Wang
Add the enable time for LDOs. This patch is preparing for adding mt6359p regulator support. Signed-off-by: Hsin-Hsiung Wang Acked-by: Mark Brown --- drivers/regulator/mt6359-regulator.c | 65 +++- 1 file changed, 42 insertions(+), 23 deletions(-) diff --git

[PATCH v2 1/8] mfd: mt6358: refine interrupt code

2020-09-21 Thread Hsin-Hsiung Wang
This patch refines the interrupt related code to support new chips. Signed-off-by: Hsin-Hsiung Wang --- drivers/mfd/mt6358-irq.c| 65 - include/linux/mfd/mt6358/core.h | 8 ++--- 2 files changed, 41 insertions(+), 32 deletions(-) diff --git

[PATCH v2 5/8] regulator: mt6359: Add support for MT6359 regulator

2020-09-21 Thread Hsin-Hsiung Wang
From: Wen Su The MT6359 is a regulator found on boards based on MediaTek MT6779 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang Acked-by: Mark Brown --- drivers

[PATCH v2 7/8] regulator: mt6359: Add support for MT6359P regulator

2020-09-21 Thread Hsin-Hsiung Wang
The MT6359P is a eco version for MT6359 regulator. We add support based on MT6359 regulator driver. Signed-off-by: Hsin-Hsiung Wang Acked-by: Mark Brown --- drivers/regulator/mt6359-regulator.c | 413 - include/linux/mfd/mt6359p/registers.h | 246

[PATCH v2 2/8] dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC

2020-09-21 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/mt6397.txt | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH v5 1/4] dt-bindings: spmi: modify the constraint 'maxItems' to 'minItems'

2020-12-22 Thread Hsin-Hsiung Wang
The constraint of 'maxItem: 1' might be larger than 1, so we modify it to 'minItem: 0'. Signed-off-by: Hsin-Hsiung Wang --- Documentation/devicetree/bindings/spmi/spmi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spmi/spmi.yaml b

[PATCH v5 0/4] Add SPMI support for Mediatek MT6873/8192 SoC IC

2020-12-22 Thread Hsin-Hsiung Wang
' to 'minItems: 0'. - fix the error of the binding document. - refine the mtk spmi driver for the bettery quality. - add spmi node into MT8192 dtsi. Hsin-Hsiung Wang (4): dt-bindings: spmi: modify the constraint 'maxItems' to 'minItems' dt-bindings: spmi: document binding for the Mediatek SPMI

[PATCH v5 4/4] arm64: dts: mt8192: add spmi node

2020-12-22 Thread Hsin-Hsiung Wang
Add spmi node to SOC MT8192. Signed-off-by: Hsin-Hsiung Wang --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 69d45c7b31f1..6dc8aa97acc3

[PATCH v5 2/4] dt-bindings: spmi: document binding for the Mediatek SPMI controller

2020-12-22 Thread Hsin-Hsiung Wang
This adds documentation for the SPMI controller found on Mediatek SoCs. Signed-off-by: Hsin-Hsiung Wang --- .../bindings/spmi/mtk,spmi-mtk-pmif.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/mtk,spmi-mtk-pmif.yaml

[PATCH v5 3/4] spmi: mediatek: Add support for MT6873/8192

2020-12-22 Thread Hsin-Hsiung Wang
Add spmi support for MT6873/8192. Signed-off-by: Hsin-Hsiung Wang --- drivers/spmi/Kconfig | 9 + drivers/spmi/Makefile| 1 + drivers/spmi/spmi-mtk-pmif.c | 504 +++ 3 files changed, 514 insertions(+) create mode 100644 drivers/spmi/spmi-mtk

[PATCH v3 1/3] dt-bindings: regulator: document binding for MT6315 regulator

2020-12-23 Thread Hsin-Hsiung Wang
Add device tree binding information for MT6315 regulator driver. Example bindings for MT6315 are added. Signed-off-by: Hsin-Hsiung Wang --- .../bindings/regulator/mt6315-regulator.yaml | 71 +++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree

[PATCH v3 2/3] regulator: mt6315: Add support for MT6315 regulator

2020-12-23 Thread Hsin-Hsiung Wang
The MT6315 is a regulator found on boards based on MediaTek MT8192 and probably other SoCs. It connects as a slave to SoC using SPMI. Signed-off-by: Hsin-Hsiung Wang --- drivers/regulator/Kconfig | 10 + drivers/regulator/Makefile | 1 + drivers/regulator

[PATCH v3 3/3] arm64: dts: mt8192: add mt6315 regulator nodes

2020-12-23 Thread Hsin-Hsiung Wang
Add MT6315 regulator nodes to MT8192 evaluation board. Signed-off-by: Hsin-Hsiung Wang --- arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 46 + 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-evb.dts b/arch/arm64/boot/dts/mediatek/mt8192

[PATCH v3 0/3] Add support for MT6315 regulator

2020-12-23 Thread Hsin-Hsiung Wang
=d40c2d4ed62df64ce603c208bceff25245380157 changes since v2: - fix the error of binding document. - refine the mt6315 regulator for better code quality. - add mt6315 regulator node into mt8192-evb.dts. Hsin-Hsiung Wang (3): dt-bindings: regulator: document binding for MT6315 regulator regulator: mt6315: Add support

Re: [PATCH v4 3/9] dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC

2020-12-17 Thread Hsin-hsiung Wang
Hi, On Thu, 2020-12-17 at 13:28 -0600, Rob Herring wrote: > On Wed, 16 Dec 2020 15:47:01 +0800, Hsin-Hsiung Wang wrote: > > This adds compatible for the MediaTek MT6359 PMIC. > > > > Signed-off-by: Hsin-Hsiung Wang > > --- > > Documentation/devicetree/bindings/

Re: [PATCH v3 5/8] regulator: mt6359: Add support for MT6359 regulator

2020-12-15 Thread Hsin-hsiung Wang
Hi, On Tue, 2020-11-24 at 17:07 +, Mark Brown wrote: > On Mon, Nov 23, 2020 at 11:48:07AM +0800, Hsin-Hsiung Wang wrote: > > > +static int mt6359_get_linear_voltage_sel(struct regulator_dev *rdev) > > +{ > > + struct mt6359_regulator_info *info = rdev_get_drvdat

Re: [PATCH v3 5/8] regulator: mt6359: Add support for MT6359 regulator

2020-12-15 Thread Hsin-hsiung Wang
Hi, On Tue, 2020-12-15 at 11:56 +, Mark Brown wrote: > On Tue, Dec 15, 2020 at 05:23:08PM +0800, Hsin-hsiung Wang wrote: > > On Tue, 2020-11-24 at 17:07 +, Mark Brown wrote: > > > > This looks like it could just be regmap_get_voltage_sel_regmap()? > > > O

Re: [PATCH v2 3/8] dt-bindings: regulator: Add document for MT6359 regulator

2020-12-15 Thread Hsin-hsiung Wang
Hi, On Wed, 2020-09-23 at 17:24 +0100, Mark Brown wrote: > On Mon, Sep 21, 2020 at 07:48:10PM +0800, Hsin-Hsiung Wang wrote: > > > +Required properties: > > +- compatible: "mediatek,mt6359-regulator" > > The compatible isn't used by the driver (which is

[PATCH v4 1/9] mfd: mt6358: refine interrupt code

2020-12-15 Thread Hsin-Hsiung Wang
This patch refines the interrupt related code to support new chips. Signed-off-by: Hsin-Hsiung Wang Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6358-irq.c| 65 +++-- include/linux/mfd/mt6358/core.h | 8 ++-- 2 files changed, 41 insertions(+), 32 deletions

[PATCH v4 2/9] rtc: mt6397: refine RTC_TC_MTH

2020-12-15 Thread Hsin-Hsiung Wang
This patch adds RTC_TC_MTH_MASK to support new chips. Signed-off-by: Yuchen Huang Signed-off-by: Hsin-Hsiung Wang --- drivers/rtc/rtc-mt6397.c | 2 +- include/linux/mfd/mt6397/rtc.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-mt6397.c b/drivers

[PATCH v4 0/9] Add Support for MediaTek PMIC MT6359

2020-12-15 Thread Hsin-Hsiung Wang
of mt6359_get_linear_voltage_sel(). Hsin-Hsiung Wang (7): mfd: mt6358: refine interrupt code rtc: mt6397: refine RTC_TC_MTH dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC dt-bindings: regulator: Add document for MT6359 regulator mfd: Add support for the MediaTek MT6359 PMIC regulator

[PATCH v4 8/9] regulator: mt6359: Add support for MT6359P regulator

2020-12-15 Thread Hsin-Hsiung Wang
The MT6359P is a eco version for MT6359 regulator. We add support based on MT6359 regulator driver. Signed-off-by: Hsin-Hsiung Wang --- drivers/regulator/mt6359-regulator.c | 377 - include/linux/mfd/mt6359p/registers.h | 249 ++ include/linux

[PATCH v4 3/9] dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC

2020-12-15 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang --- Documentation/devicetree/bindings/mfd/mt6397.txt | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b/Documentation/devicetree/bindings

[PATCH v4 4/9] dt-bindings: regulator: Add document for MT6359 regulator

2020-12-15 Thread Hsin-Hsiung Wang
add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: Hsin-Hsiung Wang --- .../bindings/regulator/mt6359-regulator.yaml | 169 ++ 1 file changed, 169 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt6359-regulator.yaml diff --git

[PATCH v4 9/9] arm64: dts: mt6359: add PMIC MT6359 related nodes

2020-12-15 Thread Hsin-Hsiung Wang
From: Wen Su add PMIC MT6359 related nodes which is for MT6779 platform Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- arch/arm64/boot/dts/mediatek/mt6359.dtsi | 298 +++ 1 file changed, 298 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6359

[PATCH v4 5/9] mfd: Add support for the MediaTek MT6359 PMIC

2020-12-15 Thread Hsin-Hsiung Wang
of the pwrap. Signed-off-by: Hsin-Hsiung Wang --- drivers/mfd/mt6358-irq.c | 24 ++ drivers/mfd/mt6397-core.c| 28 ++ include/linux/mfd/mt6359/core.h | 133 +++ include/linux/mfd/mt6359/registers.h | 529 +++ include/linux/mfd/mt6397/core.h

[PATCH v4 7/9] regulator: mt6359: Set the enable time for LDOs

2020-12-15 Thread Hsin-Hsiung Wang
Add the enable time for LDOs. This patch is preparing for adding mt6359p regulator support. Signed-off-by: Hsin-Hsiung Wang Acked-by: Mark Brown --- drivers/regulator/mt6359-regulator.c | 65 ++-- 1 file changed, 42 insertions(+), 23 deletions(-) diff --git a/drivers

[PATCH v4 6/9] regulator: mt6359: Add support for MT6359 regulator

2020-12-15 Thread Hsin-Hsiung Wang
From: Wen Su The MT6359 is a regulator found on boards based on MediaTek MT6779 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- drivers/regulator/Kconfig

[PATCH v2 3/3] regulator: mt6315: Add support for MT6315 regulator

2020-10-20 Thread Hsin-Hsiung Wang
The MT6315 is a regulator found on boards based on MediaTek MT8192 and probably other SoCs. It connects as a slave to SoC using SPMI. Signed-off-by: Hsin-Hsiung Wang --- drivers/regulator/Kconfig | 10 + drivers/regulator/Makefile | 1 + drivers/regulator

[PATCH v2 2/3] dt-bindings: regulator: document binding for MT6315 regulator

2020-10-20 Thread Hsin-Hsiung Wang
Add device tree binding information for MT6315 regulator driver. Example bindings for MT6315 are added. Signed-off-by: Hsin-Hsiung Wang --- .../regulator/mtk,mt6315-regulator.yaml | 88 +++ include/dt-bindings/regulator/mtk,mt6315.h| 17 2 files changed, 105

[PATCH v2 0/3] Add support for MT6315 regulator

2020-10-20 Thread Hsin-Hsiung Wang
the regulator registration of combined buck in probe. Hsin-Hsiung Wang (3): spmi: Add driver shutdown support dt-bindings: regulator: document binding for MT6315 regulator regulator: mt6315: Add support for MT6315 regulator .../regulator/mtk,mt6315-regulator.yaml | 88 + drivers/regulator

[PATCH v2 1/3] spmi: Add driver shutdown support

2020-10-20 Thread Hsin-Hsiung Wang
Add new shutdown() method. Use it in the standard driver model style. Signed-off-by: Hsin-Hsiung Wang --- drivers/spmi/spmi.c | 9 + include/linux/spmi.h | 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/spmi/spmi.c b/drivers/spmi/spmi.c index c16b60f645a4..161a48ca4acc

[PATCH v3 2/8] dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC

2020-11-22 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/mt6397.txt | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH v3 0/8] Add Support for MediaTek PMIC MT6359

2020-11-22 Thread Hsin-Hsiung Wang
schema format. - remove unused compatible name. - update correct registers for VBBCK and VA09. Hsin-Hsiung Wang (6): mfd: mt6358: refine interrupt code dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC dt-bindings: regulator: Add document for MT6359 regulator mfd: Add support

[PATCH v3 8/8] arm64: dts: mt6359: add PMIC MT6359 related nodes

2020-11-22 Thread Hsin-Hsiung Wang
From: Wen Su add PMIC MT6359 related nodes which is for MT6779 platform Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- arch/arm64/boot/dts/mediatek/mt6359.dtsi | 295 +++ 1 file changed, 295 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6359

[PATCH v3 6/8] regulator: mt6359: Set the enable time for LDOs

2020-11-22 Thread Hsin-Hsiung Wang
Add the enable time for LDOs. This patch is preparing for adding mt6359p regulator support. Signed-off-by: Hsin-Hsiung Wang Acked-by: Mark Brown --- drivers/regulator/mt6359-regulator.c | 65 ++-- 1 file changed, 42 insertions(+), 23 deletions(-) diff --git a/drivers

[PATCH v3 3/8] dt-bindings: regulator: Add document for MT6359 regulator

2020-11-22 Thread Hsin-Hsiung Wang
add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: Hsin-Hsiung Wang --- .../bindings/regulator/mt6359-regulator.yaml | 145 ++ 1 file changed, 145 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt6359-regulator.yaml diff --git

[PATCH v3 4/8] mfd: Add support for the MediaTek MT6359 PMIC

2020-11-22 Thread Hsin-Hsiung Wang
of the pwrap. Signed-off-by: Hsin-Hsiung Wang Acked-for-MFD-by: Lee Jones --- drivers/mfd/mt6358-irq.c | 24 ++ drivers/mfd/mt6397-core.c| 23 ++ include/linux/mfd/mt6359/core.h | 133 +++ include/linux/mfd/mt6359/registers.h | 529 +++ include

[PATCH v3 7/8] regulator: mt6359: Add support for MT6359P regulator

2020-11-22 Thread Hsin-Hsiung Wang
The MT6359P is a eco version for MT6359 regulator. We add support based on MT6359 regulator driver. Signed-off-by: Hsin-Hsiung Wang --- drivers/regulator/mt6359-regulator.c | 413 - include/linux/mfd/mt6359p/registers.h | 249 + include/linux/regulator

[PATCH v3 5/8] regulator: mt6359: Add support for MT6359 regulator

2020-11-22 Thread Hsin-Hsiung Wang
From: Wen Su The MT6359 is a regulator found on boards based on MediaTek MT6779 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang Acked-by: Mark Brown --- drivers

[PATCH v3 1/8] mfd: mt6358: refine interrupt code

2020-11-22 Thread Hsin-Hsiung Wang
This patch refines the interrupt related code to support new chips. Signed-off-by: Hsin-Hsiung Wang --- drivers/mfd/mt6358-irq.c| 65 +++-- include/linux/mfd/mt6358/core.h | 8 ++-- 2 files changed, 41 insertions(+), 32 deletions(-) diff --git a/drivers/mfd

Re: [PATCH v3 2/4] soc: mediatek: pwrap: add arbiter capability

2020-11-18 Thread Hsin-Hsiung Wang
Hi, On Mon, 2020-09-21 at 18:48 +0200, Matthias Brugger wrote: > > On 21/09/2020 13:03, Hsin-Hsiung Wang wrote: > > Add arbiter capability for pwrap driver. > > Can you provide a bit more verbose commit message, please. > Thanks for reviewing. I will update it in next p

Re: [PATCH v3 4/4] soc: mediatek: pwrap: add pwrap driver for MT6873/8192 SoCs

2020-11-18 Thread Hsin-Hsiung Wang
Hi, On Tue, 2020-09-22 at 17:49 +0800, Fei Shao wrote: > On Mon, Sep 21, 2020 at 11:03 AM Hsin-Hsiung Wang > wrote: > > > > MT6873/8192 are highly integrated SoCs and use PMIC_MT6359 for > > power management. This patch adds pwrap master driver to > > access P

[PATCH v4 0/5] Add PMIC wrapper support for Mediatek MT6873/8192 SoC IC

2020-11-18 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the pmic-wrap driver. changes since v3: - refine some coding style about PWRAP_CAP_ARB capacity for better code quality. - make struct pwrap_mt6873 const. - add pwrap node into Mediatek MT8192 dtsi. Hsin-Hsiung Wang (5): soc: mediatek: pwrap

[PATCH v4 2/5] soc: mediatek: pwrap: add arbiter capability

2020-11-18 Thread Hsin-Hsiung Wang
Add arbiter capability for pwrap driver. The arbiter capability uses new design to judge the priority and latency for multi-channel. This patch is preparing for adding mt6873/8192 pwrap support. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 57

[PATCH v4 1/5] soc: mediatek: pwrap: use BIT() macro

2020-11-18 Thread Hsin-Hsiung Wang
Use a better BIT() marco for the bit definition. No functional changes, cleanup only. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk

[PATCH v4 5/5] arm64: dts: mt8192: add pwrap node

2020-11-18 Thread Hsin-Hsiung Wang
Add pwrap node to SOC MT8192. Signed-off-by: Hsin-Hsiung Wang --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 69d45c7..9a40d19 100644

[PATCH v4 4/5] soc: mediatek: pwrap: add pwrap driver for MT6873/8192 SoCs

2020-11-18 Thread Hsin-Hsiung Wang
MT6873/8192 are highly integrated SoCs and use PMIC_MT6359 for power management. This patch adds pwrap master driver to access PMIC_MT6359. Signed-off-by: Hsin-Hsiung Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 29 + 1 file changed, 29 insertions(+) diff --git

[PATCH v4 3/5] dt-bindings: mediatek: add compatible for MT6873/8192 pwrap

2020-11-18 Thread Hsin-Hsiung Wang
This adds dt-binding documentation of pwrap for Mediatek MT6873/8192 SoCs Platform. Signed-off-by: Hsin-Hsiung Wang Acked-by: Rob Herring --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc

[PATCH 2/2] spmi: mediatek: Add support for MT6873/8192

2020-08-21 Thread Hsin-Hsiung Wang
add spmi support for MT6873/8192. Signed-off-by: Hsin-Hsiung Wang --- drivers/spmi/Kconfig | 9 + drivers/spmi/Makefile| 1 + drivers/spmi/spmi-mtk-pmif.c | 479 +++ 3 files changed, 489 insertions(+) create mode 100644 drivers/spmi

[PATCH 1/2] dt-bindings: spmi: document binding for the Mediatek SPMI controller

2020-08-21 Thread Hsin-Hsiung Wang
This adds documentation for the SPMI controller found on Mediatek SoCs. Signed-off-by: Hsin-Hsiung Wang --- .../devicetree/bindings/spmi/spmi-mtk-pmif.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/spmi-mtk

[PATCH 0/2] Add SPMI support for Mediatek MT6873/8192 SoC IC

2020-08-21 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the spmi driver. Hsin-Hsiung Wang (2): dt-bindings: spmi: document binding for the Mediatek SPMI controller spmi: mediatek: Add support for MT6873/8192 .../devicetree/bindings/spmi/spmi-mtk-pmif.txt | 33 ++ drivers/spmi/Kconfig

[PATCH v2 1/2] dt-bindings: spmi: document binding for the Mediatek SPMI controller

2020-08-21 Thread Hsin-Hsiung Wang
This adds documentation for the SPMI controller found on Mediatek SoCs. Signed-off-by: Hsin-Hsiung Wang --- .../devicetree/bindings/spmi/spmi-mtk-pmif.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/spmi/spmi-mtk

[PATCH v2 2/2] spmi: mediatek: Add support for MT6873/8192

2020-08-21 Thread Hsin-Hsiung Wang
add spmi support for MT6873/8192. Signed-off-by: Hsin-Hsiung Wang --- drivers/spmi/Kconfig | 9 + drivers/spmi/Makefile| 1 + drivers/spmi/spmi-mtk-pmif.c | 474 +++ 3 files changed, 484 insertions(+) create mode 100644 drivers/spmi

[PATCH v2 0/2] Add SPMI support for Mediatek MT6873/8192 SoC IC

2020-08-21 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the spmi driver. changes since v1: - remove unused function. - fix correct coding style for debug message. - fix the build fail for the error return value. Hsin-Hsiung Wang (2): dt-bindings: spmi: document binding for the Mediatek SPMI

Re: [PATCH v4 2/5] soc: mediatek: pwrap: add arbiter capability

2021-02-04 Thread Hsin-hsiung Wang
Hi, On Mon, 2020-12-21 at 10:33 +0800, Nicolas Boichat wrote: > On Wed, Nov 18, 2020 at 8:08 PM Hsin-Hsiung Wang > wrote: > > > > Add arbiter capability for pwrap driver. > > The arbiter capability uses new design to judge the priority and latency > > for

Re: [PATCH v4 4/5] soc: mediatek: pwrap: add pwrap driver for MT6873/8192 SoCs

2021-02-04 Thread Hsin-hsiung Wang
Hi, On Mon, 2020-12-21 at 10:42 +0800, Nicolas Boichat wrote: > On Wed, Nov 18, 2020 at 8:08 PM Hsin-Hsiung Wang > wrote: > > > > MT6873/8192 are highly integrated SoCs and use PMIC_MT6359 for > > power management. This patch adds pwrap master driver to > > access P

[PATCH RESEND v5 8/8] arm64: dts: mt6359: add PMIC MT6359 related nodes

2021-01-29 Thread Hsin-Hsiung Wang
From: Wen Su add PMIC MT6359 related nodes which is for MT6779 platform Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - add pmic MT6359 support in the MT8192 evb dts. --- arch/arm64/boot/dts/mediatek/mt6359.dtsi| 298 arch/arm64/boot/dts

[PATCH RESEND v5 3/8] dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC

2021-01-29 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - remove unused compatible name. --- Documentation/devicetree/bindings/mfd/mt6397.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b

[PATCH RESEND v5 6/8] regulator: mt6359: Add support for MT6359 regulator

2021-01-29 Thread Hsin-Hsiung Wang
From: Wen Su The MT6359 is a regulator found on boards based on MediaTek MT6779 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - add enable

Re: [PATCH v3 04/10] dt-bindings: mfd: Add compatible for the MediaTek MT6358 PMIC

2019-08-02 Thread Hsin-hsiung Wang
Hi Nicolas, On Tue, 2019-05-07 at 14:24 +0900, Nicolas Boichat wrote: > On Fri, May 3, 2019 at 6:34 PM Hsin-Hsiung Wang > wrote: > > ... > > This adds compatible for the MediaTek MT6358 PMIC. > > > > Acked-for-MFD-by: Lee Jones > > Signed-off-by: Hsin-Hsi

[PATCH v4 06/10] mfd: Add support for the MediaTek MT6358 PMIC

2019-08-04 Thread Hsin-Hsiung Wang
of the pwrap. Signed-off-by: Hsin-Hsiung Wang --- drivers/mfd/Makefile | 3 +- drivers/mfd/mt6358-irq.c | 229 drivers/mfd/mt6397-core.c| 52 ++- include/linux/mfd/mt6358/core.h | 158 include

[PATCH v4 05/10] regulator: Add document for MT6358 regulator

2019-08-04 Thread Hsin-Hsiung Wang
add dt-binding document for MediaTek MT6358 PMIC Reviewed-by: Rob Herring Signed-off-by: Hsin-Hsiung Wang --- .../bindings/regulator/mt6358-regulator.txt| 358 + 1 file changed, 358 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator

[PATCH v4 03/10] mfd: mt6397: modify suspend/resume behavior

2019-08-04 Thread Hsin-Hsiung Wang
Some pmics don't need backup interrupt settings, so we change to use pm notifier for the pmics which are necessary to store settings. Signed-off-by: Hsin-Hsiung Wang --- drivers/mfd/mt6397-core.c | 89 + drivers/mfd/mt6397-irq.c| 33

[PATCH v4 09/10] rtc: mt6397: fix alarm register overwrite

2019-08-04 Thread Hsin-Hsiung Wang
From: Ran Bi Alarm registers high byte was reserved for other functions. This add mask in alarm registers operation functions. This also fix error condition in interrupt handler. Fixes: fc2979118f3f ("rtc: mediatek: Add MT6397 RTC driver") Signed-off-by: Ran Bi --- drivers/rtc/rtc-mt6397.c |

  1   2   3   >