Re: [RESEND v2 4/4] arm64: dts: mt6359: add PMIC MT6359 related nodes

2020-06-22 Thread Wen Su
Hi Matthias, On Mon, 2020-06-22 at 12:12 +0200, Matthias Brugger wrote: > > On 22/06/2020 08:40, Wen Su wrote: > > From: "Wen Su" > > > > add PMIC MT6359 related nodes which is for MT6779 platform > > > > Signed-off-by: Wen Su > > ---

[RESEND v2 3/4] regulator: mt6359: Add support for MT6359 regulator

2020-06-21 Thread Wen Su
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 --- drivers/regulator/Kconfig | 9

[RESEND v2 4/4] arm64: dts: mt6359: add PMIC MT6359 related nodes

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

[RESEND v2 0/4] Add Support for MediaTek PMIC MT6359 Regulator

2020-06-21 Thread Wen Su
This patchset add support to MT6359 PMIC regulator. MT6359 is primary PMIC for MT6779 platform. Changes since v2: - remove open coding in the mt6359 regulator for volt_table type regulators - refine coding style in the mt6359 regulator to avoid using ternery operator - remove unnecessary reject op

[RESEND v2 1/4] dt-bindings: regulator: Add document for MT6359 regulator

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

[RESEND v2 2/4] mfd: Add for PMIC MT6359 registers definition

2020-06-21 Thread Wen Su
From: "Wen Su" This adds MediaTek PMIC MT6359 registers definition for the following sub modules: - Regulator - RTC - Interrupt Signed-off-by: Wen Su Acked-for-MFD-by: Lee Jones --- include/linux/mfd/mt6359/registers.h | 531 +++ 1 file ch

Re: [RESEND v2 2/4] mfd: Add for PMIC MT6359 registers definition

2020-06-16 Thread Wen Su
. Thanks On Fri, 2020-02-21 at 10:39 +0800, Wen Su wrote: > From: "Wen Su" > > This adds MediaTek PMIC MT6359 registers definition for the > following sub modules: > > - Regulator > - RTC > - Interrupt > > Signed-off-by: Wen Su > Acked-for-MFD-by: L

[PATCH 3/4] regulator: mt6359: Add support for MT6359 regulator

2019-10-16 Thread Wen Su
struct regulator_dev *rdev; + int i; + + for (i = 0; i < MT6359_MAX_REGULATOR; i++) { + config.dev = &pdev->dev; + config.driver_data = &mt6359_regulators[i]; + config.regmap = mt6397->regmap; + + rdev = devm_regulator

[PATCH 2/4] mfd: Add for PMIC MT6359 registers definition

2019-10-16 Thread Wen Su
From: "wen.su" This adds MediaTek PMIC MT6359 registers definition for the following sub modules: - Regulator - RTC - Interrupt Signed-off-by: wen.su --- include/linux/mfd/mt6359/registers.h | 531 +++ 1 file changed, 531 insertions(+) create mode 100644 inclu

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

2019-10-16 Thread Wen Su
From: "wen.su" add PMIC MT6359 related nodes which is for MT6779 platform Signed-off-by: wen.su --- arch/arm64/boot/dts/mediatek/mt6359.dtsi | 312 +++ 1 file changed, 312 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6359.dtsi diff --git a/arch/

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

2019-10-16 Thread Wen Su
From: "wen.su" add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: wen.su --- .../bindings/regulator/mt6359-regulator.txt| 59 ++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt6359-regulator.txt diff

[PATCH 0/4] Add Support for MediaTek PMIC MT6359 Regulator

2019-10-16 Thread Wen Su
This patchset add support to MT6359 PMIC regulator. MT6359 is primary PMIC for MT6779 platform. wen.su (4): dt-bindings: regulator: Add document for MT6359 regulator mfd: Add for PMIC MT6359 registers definition regulator: mt6359: Add support for MT6359 regulator arm64: dts: mt6359: add P