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

2021-04-12 Thread Hsin-hsiung Wang
Hi Maintainers, Gentle pin for this patch. Thanks. On Sun, 2021-03-14 at 02:00 +0800, Hsin-Hsiung Wang wrote: > Add spmi support for MT6873/8192. > > Signed-off-by: Hsin-Hsiung Wang > --- > changes since v6: > - remove unused spinlock. > - remove redundant check for slave

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

2021-03-31 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 v6: - update the regulator node. --- arch/arm64/boot/dts/mediatek/mt6359.dtsi| 298 arch/arm64/boot/dts/mediatek/mt8192

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

2021-03-31 Thread Hsin-Hsiung Wang
of the pwrap. Signed-off-by: Hsin-Hsiung Wang Acked-for-MFD-by: Lee Jones --- changes since v6: - no change. --- drivers/mfd/mt6358-irq.c | 24 ++ drivers/mfd/mt6397-core.c| 24 ++ include/linux/mfd/mt6359/core.h | 133 +++ include/linux/mfd/mt6359/registers.h

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

2021-03-31 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 --- changes since v6: - no change. --- drivers/regulator/mt6359-regulator.c | 379 - include/linux/mfd/mt6359p

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

2021-03-31 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 --- changes

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

2021-03-31 Thread Hsin-Hsiung Wang
add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: Hsin-Hsiung Wang --- changes since v6: - fix yaml error. --- .../bindings/regulator/mt6359-regulator.yaml | 385 ++ 1 file changed, 385 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator

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

2021-03-31 Thread Hsin-Hsiung Wang
://patchwork.kernel.org/project/linux-mediatek/list/?series=306579 [2] https://patchwork.kernel.org/project/linux-mediatek/list/?series=447127 changes since v6: - fix yaml error. - update dts node. Hsin-Hsiung Wang (6): mfd: mt6358: refine interrupt code rtc: mt6397: refine RTC_TC_MTH dt-bindings

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

2021-03-31 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 v6: - no change. --- drivers/mfd/mt6358-irq.c| 65 +++-- include/linux/mfd/mt6358/core.h | 8 ++-- 2 files

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

2021-03-31 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 v6: - no change. --- drivers/rtc/rtc-mt6397.c | 2 +- include/linux/mfd/mt6397/rtc.h | 1 + 2 files changed, 2 insertions(+), 1

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

2021-03-31 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang Acked-by: Rob Herring --- changes since v6: - no change. --- Documentation/devicetree/bindings/mfd/mt6397.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt

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

2021-03-29 Thread Hsin-hsiung Wang
Hi, On Mon, 2021-03-29 at 17:24 +0200, Matthias Brugger wrote: > > On 15/03/2021 18:35, Hsin-Hsiung Wang wrote: > > From: Wen Su > > > > add PMIC MT6359 related nodes which is for MT6779 platform > > > > Signed-off-by: Wen Su > > Signed-off-by: Hsin

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

2021-03-29 Thread Hsin-hsiung Wang
Hi, On Tue, 2021-03-16 at 15:28 -0600, Rob Herring wrote: > On Tue, Mar 16, 2021 at 01:35:53AM +0800, Hsin-Hsiung Wang wrote: > > add dt-binding document for MediaTek MT6359 PMIC > > > > Signed-off-by: Hsin-Hsiung Wang > > --- > > changes since v5: > >

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

2021-03-17 Thread Hsin-hsiung Wang
Hi, Rob I am very grateful for the reviewing which addressed my yaml errors. I will check my codebase first and fix the error in the next patch. Thanks. On Tue, 2021-03-16 at 15:28 -0600, Rob Herring wrote: > On Tue, Mar 16, 2021 at 01:35:53AM +0800, Hsin-Hsiung Wang wrote: > > add d

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

2021-03-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 --- changes since v5: - update file date. --- arch/arm64/boot/dts/mediatek/mt6359.dtsi| 298 arch/arm64/boot/dts/mediatek/mt8192-evb.dts

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

2021-03-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 --- changes since v5: - no change. --- drivers/regulator/mt6359-regulator.c | 379 - include/linux/mfd/mt6359p/registers.h | 249

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

2021-03-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 Acked-by: Alexandre Belloni --- changes since v5: - no change. --- drivers/rtc/rtc-mt6397.c | 2 +- include/linux/mfd/mt6397/rtc.h | 1 + 2 files changed, 2 insertions(+), 1

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

2021-03-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 --- changes since v5: - no change. --- drivers/mfd/mt6358-irq.c| 65 +++-- include/linux/mfd/mt6358/core.h | 8 ++-- 2 files

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

2021-03-15 Thread Hsin-Hsiung Wang
of the pwrap. Signed-off-by: Hsin-Hsiung Wang Acked-for-MFD-by: Lee Jones --- changes since v5: - refine the code structure. - update file date. --- drivers/mfd/mt6358-irq.c | 24 ++ drivers/mfd/mt6397-core.c| 24 ++ include/linux/mfd/mt6359/core.h | 133

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

2021-03-15 Thread Hsin-Hsiung Wang
add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - no change. --- .../bindings/regulator/mt6359-regulator.yaml | 169 ++ 1 file changed, 169 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator

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

2021-03-15 Thread Hsin-Hsiung Wang
=306579 changes since v5: - rebase to Linux 5.12. - refine the code structure. - update the file date. 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 v6 3/8] dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC

2021-03-15 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang Acked-by: Rob Herring --- changes since v5: - no change. --- Documentation/devicetree/bindings/mfd/mt6397.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt

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

2021-03-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 --- changes since v5: - update

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

2021-03-15 Thread Hsin-hsiung Wang
Hi, Sir On Mon, 2021-03-15 at 08:22 -0600, Rob Herring wrote: > On Sun, 14 Mar 2021 02:00:51 +0800, Hsin-Hsiung Wang wrote: > > This adds documentation for the SPMI controller found on Mediatek SoCs. > > > > Signed-off-by: Hsin-Hsiung Wang > > Reviewed-by: Rob Herring

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

2021-03-13 Thread Hsin-Hsiung Wang
Add spmi support for MT6873/8192. Signed-off-by: Hsin-Hsiung Wang --- changes since v6: - remove unused spinlock. - remove redundant check for slave id. --- drivers/spmi/Kconfig | 10 + drivers/spmi/Makefile| 2 + drivers/spmi/spmi-mtk-pmif.c | 465

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

2021-03-13 Thread Hsin-Hsiung Wang
Add spmi node to SOC MT8192. Signed-off-by: Hsin-Hsiung Wang --- changes since v6: - no changes. --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192

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

2021-03-13 Thread Hsin-Hsiung Wang
spmi driver for batter code. Hsin-Hsiung Wang (4): dt-bindings: spmi: modify the constraint 'maxItems' to 'minItems' dt-bindings: spmi: document binding for the Mediatek SPMI controller spmi: mediatek: Add support for MT6873/8192 arm64: dts: mt8192: add spmi node .../bindings/spmi/mtk,spmi

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

2021-03-13 Thread Hsin-Hsiung Wang
This adds documentation for the SPMI controller found on Mediatek SoCs. Signed-off-by: Hsin-Hsiung Wang Reviewed-by: Rob Herring --- changes since v6: - no changes. --- .../bindings/spmi/mtk,spmi-mtk-pmif.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode 100644

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

2021-03-13 Thread Hsin-Hsiung Wang
The constraint of 'maxItem: 1' might be larger than 1, so we modify it to 'minItem: 1'. Signed-off-by: Hsin-Hsiung Wang Acked-by: Rob Herring --- changes since v6: - no change. --- Documentation/devicetree/bindings/spmi/spmi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

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

2021-03-13 Thread Hsin-hsiung Wang
Hi, On Mon, 2021-02-08 at 14:21 -0800, Stephen Boyd wrote: > Quoting Hsin-Hsiung Wang (2021-02-06 21:19:13) > > diff --git a/drivers/spmi/Kconfig b/drivers/spmi/Kconfig > > index a53bad541f1a..418848840999 100644 > > --- a/drivers/spmi/Kconfig > > +++ b/drivers/spmi/

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

2021-03-12 Thread Hsin-hsiung Wang
On Mon, 2021-03-01 at 10:21 +, Lee Jones wrote: > On Fri, 29 Jan 2021, Hsin-Hsiung Wang wrote: > > > The MT6359P is a eco version for MT6359 regulator. > > We add support based on MT6359 regulator driver. > > > > Signed-off-by: Hsin-Hsiung Wang > >

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

2021-03-12 Thread Hsin-hsiung Wang
Hi, On Mon, 2021-03-01 at 10:20 +, Lee Jones wrote: > On Fri, 29 Jan 2021, Hsin-Hsiung Wang wrote: > > > This adds support for the MediaTek MT6359 PMIC. This is a > > multifunction device with the following sub modules: > > > > - Codec > > -

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

2021-03-12 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 --- changes since v5: - no change. --- drivers/soc/mediatek/mtk-pmic-wrap.c | 29 1 file

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

2021-03-12 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. The design with arbiter support cannot change the watchdog timer. This patch is preparing for adding mt6873/8192 pwrap support. Signed-off-by: Hsin-Hsiung Wang

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

2021-03-12 Thread Hsin-Hsiung Wang
Add pwrap node to SOC MT8192. Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - no change. --- 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

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

2021-03-12 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the pmic-wrap driver. This series is based on Weiyi's patches[1]. [1] https://patchwork.kernel.org/project/linux-mediatek/patch/1608642587-15634-7-git-send-email-weiyi...@mediatek.com/ changes since v5: - rebase to Linux 5.12 Hsin-Hsiung Wang

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

2021-03-12 Thread Hsin-Hsiung Wang
Use a better BIT() marco for the bit definition. No functional changes, cleanup only. Signed-off-by: Hsin-Hsiung Wang Reviewed-by: Nicolas Boichat --- changes since v5: - no change. --- drivers/soc/mediatek/mtk-pmic-wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

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

2021-03-12 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 --- changes since v5: - no change. --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + 1 file changed, 1 insertion(+) diff --git

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

2021-02-06 Thread Hsin-Hsiung Wang
Add MT6315 regulator nodes to MT8192 evaluation board. Signed-off-by: Hsin-Hsiung Wang --- changes since v3: - update the dts node. --- arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 46 + 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192

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

2021-02-06 Thread Hsin-Hsiung Wang
document. - refine the mt6315 regulator for better code quality. - update mt6315 regulator node in the mt8192-evb.dts. Hsin-Hsiung Wang (3): dt-bindings: regulator: document binding for MT6315 regulator regulator: mt6315: Add support for MT6315 regulator arm64: dts: mt8192: add mt6315 regulator

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

2021-02-06 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 --- changes since v3: - refine the mt6315 regulator for better code quality. - remove unused registers. --- drivers/regulator

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

2021-02-06 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 --- changes since v3: - correct the yaml file name. - remove unused description. - update the example. --- .../bindings/regulator/mt6315-regulator.yaml | 69

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

2021-02-06 Thread Hsin-Hsiung Wang
This adds documentation for the SPMI controller found on Mediatek SoCs. Signed-off-by: Hsin-Hsiung Wang Reviewed-by: Rob Herring --- changes since v5: no changes --- .../bindings/spmi/mtk,spmi-mtk-pmif.yaml | 74 +++ 1 file changed, 74 insertions(+) create mode 100644

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

2021-02-06 Thread Hsin-Hsiung Wang
Add spmi support for MT6873/8192. Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - add a newline at end of Makefile. - refine the spmi-mtk-pmif driver for better code quality. --- drivers/spmi/Kconfig | 9 + drivers/spmi/Makefile| 2 + drivers/spmi/spmi-mtk-pmif.c

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

2021-02-06 Thread Hsin-Hsiung Wang
Add spmi node to SOC MT8192. Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - fix the build error of MT8192.dtsi. --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64

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

2021-02-06 Thread Hsin-Hsiung Wang
The constraint of 'maxItem: 1' might be larger than 1, so we modify it to 'minItem: 1'. Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - update the constraint of minItem to 1. --- Documentation/devicetree/bindings/spmi/spmi.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

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

2021-02-06 Thread Hsin-Hsiung Wang
-pmif driver for better code quality. - fix the build error about MT8192.dtsi Hsin-Hsiung Wang (4): dt-bindings: spmi: modify the constraint 'maxItems' to 'minItems' dt-bindings: spmi: document binding for the Mediatek SPMI controller spmi: mediatek: Add support for MT6873/8192 arm64: dts

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

2021-02-04 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 --- changes since v4: no changes --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + 1 file changed, 1 insertion(+) diff --git

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

2021-02-04 Thread Hsin-Hsiung Wang
Add pwrap node to SOC MT8192. Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - update correct pwrap node in the Mediatek MT8192 dtsi. --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b

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

2021-02-04 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 --- changes since v4: no changes --- drivers/soc/mediatek/mtk-pmic-wrap.c | 29 1 file changed

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

2021-02-04 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. The design with arbiter support cannot change the watchdog timer. This patch is preparing for adding mt6873/8192 pwrap support. Signed-off-by: Hsin-Hsiung Wang

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

2021-02-04 Thread Hsin-Hsiung Wang
Use a better BIT() marco for the bit definition. No functional changes, cleanup only. Signed-off-by: Hsin-Hsiung Wang Reviewed-by: Nicolas Boichat --- changes since v4: no changes --- drivers/soc/mediatek/mtk-pmic-wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

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

2021-02-04 Thread Hsin-Hsiung Wang
This series adds support for new SoC MT6873/8192 to the pmic-wrap driver. changes since v4: - refine code about PWRAP_CAP_ARB capacity for better code quality. - update correct pwrap node in the Mediatek MT8192 dtsi. Hsin-Hsiung Wang (5): soc: mediatek: pwrap: use BIT() macro soc: mediatek

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 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 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 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

[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 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 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 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 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 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 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 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 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

[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 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 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 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 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

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/

[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 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 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 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 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 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

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

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 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

[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

[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 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 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 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 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 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 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

  1   2   3   >