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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> > ---
> > .../
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.
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
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
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
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
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
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
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
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
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
=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
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
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
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
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
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
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
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
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
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
' 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
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
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
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
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
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
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
=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
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 - 100 of 236 matches
Mail list logo