[PATCH v2 1/2] dt-bindings: clock: mediatek: add bindings for MT8167 clocks

2020-09-18 Thread Fabien Parent
Add binding documentation for topckgen, apmixedsys, infracfg, audsys, imgsys, mfgcfg, vdecsys on MT8167 SoC. Signed-off-by: Fabien Parent Reviewed-by: Rob Herring --- ChangeLog: V2: no changes .../arm/mediatek/mediatek,apmixedsys.txt | 1 + .../bindings/arm/mediatek/mediatek

[PATCH v2 2/2] clk: mediatek: Add MT8167 clock support

2020-09-18 Thread Fabien Parent
Add the following clock support for MT8167 SoC: topckgen, apmixedsys, infracfg, audsys, imgsys, mfgcfg, vdecsys. Signed-off-by: Fabien Parent --- ChangeLog: V2: removed unused variable reported by kernel test robot drivers/clk/mediatek/Kconfig | 48 + drivers/clk

Re: [PATCH 03/12] arm64: dts: mediatek: Add mt8173 power domain controller

2020-09-18 Thread Fabien Parent
Hi Enric, > - scpsys: power-controller@10006000 { > - compatible = "mediatek,mt8173-scpsys"; > - #power-domain-cells = <1>; This change generates a lot of warning when compiling the MT8173 device-trees. Warning (power_domains_property):

Re: [PATCH v5 1/2] dt-bindings: regulator: add support for MT6392

2020-10-28 Thread Fabien Parent
On Wed, Oct 28, 2020 at 1:33 PM Mark Brown wrote: > > You should be using the of_node from the parent device to find the > regulators set, look at how other drivers do this. Thanks for the help. I got it to work. I will send a new revision of the patches.

Re: [PATCH 10/12] clk: mediatek: Clean up the pll_en_bit from en_mask on MT8183

2020-10-28 Thread Fabien Parent
Hi Weiyi, The clock driver for MT8167 has been merged in v5.10-rc1. Can you also apply the change to that driver. Thank you Fabien On Fri, Oct 23, 2020 at 2:44 AM Weiyi Lu wrote: > > remove pll_en_bit(bit0) from en_mask to make en_mask a pure en_mask > that only used for pll dividers. > >

[PATCH] iio: adc: mediatek: fix unset field

2020-10-12 Thread Fabien Parent
dev_comp field is used in a couple of places but it is never set. This results in kernel oops when dereferencing a NULL pointer. Set the `dev_comp` field correctly in the probe function. Fixes: 6d97024dce23 ("iio: adc: mediatek: mt6577-auxadc, add mt6765 support") Signed-off-by: Fab

[PATCH 1/2] dt-bindings: iio: adc: auxadc: add doc for MT8516 SoC

2020-10-12 Thread Fabien Parent
Add documentation for the auxadc binding for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt b/Documentation/devicetree

[PATCH 2/2] arm64: dts: mediatek: mt8516: add auxadc node

2020-10-12 Thread Fabien Parent
Add node for the auxadc IP. The IP is compatible with the one found in MT8173 SoC. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts/mediatek

Re: [PATCH 2/2] arm64: dts: mediatek: mt8516: add auxadc node

2020-10-13 Thread Fabien Parent
Hi Matthias, > Any reason you don't enable the status in the pumpkin dts? No particular reasons. I looked at what other MTK SoC did for this IP, and half went with the status to be disabled and the other half went with an enabled status. So I went the mt8183 way since it is the last MTK SoC to

[PATCH 2/2] cpufreq: blacklist mt8516 in cpufreq-dt-platdev

2020-10-13 Thread Fabien Parent
Add MT8516 to cpufreq-dt-platdev blacklist since the actual scaling is handled by the 'mediatek-cpufreq' driver. Signed-off-by: Fabien Parent --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq

[PATCH 1/2] cpufreq: mediatek: Add support for mt8167

2020-10-13 Thread Fabien Parent
Add compatible string for mediatek mt8167 Signed-off-by: Fabien Parent --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + drivers/cpufreq/mediatek-cpufreq.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index

[PATCH 1/2] drm/mediatek: mtk_hdmi: move 2 registers address into of_data

2020-10-13 Thread Fabien Parent
On MT8167, the two registers SYS_CFG1C and SYS_CFG20 don't have the same address as on MT8173. Add OF data in order to store the address of these two registers. Signed-off-by: Fabien Parent --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 45 ++--- 1 file changed, 34 insertions

[PATCH 2/2] drm/mediatek: mtk_hdmi: add MT8167 support for HDMI

2020-10-13 Thread Fabien Parent
Add support for HDMI on MT8167. HDMI on MT8167 is similar to MT8173/MT2701 execpt for the two registers: SYS_CFG1C and SYS_CFG20 Signed-off-by: Fabien Parent --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 7 +++ drivers/gpu/drm/mediatek/mtk_hdmi_regs.h | 2 ++ 2 files changed, 9 insertions

Re: [PATCH 2/2] drm/mediatek: mtk_hdmi: add MT8167 support for HDMI

2020-10-13 Thread Fabien Parent
On Tue, Oct 13, 2020 at 7:28 PM Fabien Parent wrote: > > Add support for HDMI on MT8167. HDMI on MT8167 is similar to > MT8173/MT2701 execpt for the two registers: SYS_CFG1C and SYS_CFG20 > > Signed-off-by: Fabien Parent > --- > drivers/gpu/drm/mediatek/mtk_hdmi.c |

[PATCH v2 1/2] drm/mediatek: mtk_hdmi: move 2 registers address into of_data

2020-10-13 Thread Fabien Parent
On MT8167, the two registers SYS_CFG1C and SYS_CFG20 don't have the same address as on MT8173. Add OF data in order to store the address of these two registers. Signed-off-by: Fabien Parent --- Changelog: v2: no changes drivers/gpu/drm/mediatek/mtk_hdmi.c | 45 ++--- 1

[PATCH v2 2/2] drm/mediatek: mtk_hdmi: add MT8167 support for HDMI

2020-10-13 Thread Fabien Parent
Add support for HDMI on MT8167. HDMI on MT8167 is similar to MT8173/MT2701 execpt for the two registers: SYS_CFG1C and SYS_CFG20 Signed-off-by: Fabien Parent --- Changelog: v2: fix name of pdata structure drivers/gpu/drm/mediatek/mtk_hdmi.c | 7 +++ drivers/gpu/drm/mediatek

[PATCH 2/2] pwm: pwm-mediatek: Add MT8516 SoC support

2019-08-05 Thread Fabien Parent
Add the compatible and the platform data to support PWM on the MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/pwm/pwm-mediatek.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index eb6674ce995f..6697e30811e7 100644

[PATCH 1/2] dt-bindings: pwm: pwm-mediatek: Add documentation for MT8516

2019-08-05 Thread Fabien Parent
Add the device-tree documentation for the PWM IP on the MediaTek MT8516 SoCs. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/pwm/pwm-mediatek.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation

[PATCH] cpufreq: mediatek-cpufreq: Add compatible for MT8516

2019-08-06 Thread Fabien Parent
Add the compatible for MT8516 in order to take advantage of the MediaTek CPUFreq driver for Mediatek's MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/cpufreq/mediatek-cpufreq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq

[PATCH v2] i2c: i2c-mt65xx: fix NULL ptr dereference

2019-09-30 Thread Fabien Parent
add a call to i2c_check_quirks which will check whether the quirks pointer is set, and if so will check if the IP has the NO_ZERO_LEN quirk. Fixes: abf4923e97c3 ("i2c: mediatek: disable zero-length transfers for mt8183") Signed-off-by: Fabien Parent --- v2: * use i2c_check_quirks

[PATCH] clocksource: mediatek: fix error handling

2019-09-19 Thread Fabien Parent
/0x9c [0.040060] timer_probe+0x6c/0xe0 [0.040507] time_init+0x14/0x44 [0.040932] start_kernel+0x2d0/0x46c This commit remove the calls to timer_of_cleanup when timer_of_init fails since it is unnecessary and actually cause warnings to be printed. Signed-off-by: Fabien Parent

[PATCH] i2c: i2c-mt65xx: fix NULL ptr dereference

2019-09-25 Thread Fabien Parent
dd a check on the quirk pointer before dereferencing it. Fixes: abf4923e97c3 ("i2c: mediatek: disable zero-length transfers for mt8183") Signed-off-by: Fabien Parent --- drivers/i2c/busses/i2c-mt65xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2

[PATCH 1/2] mfd: mt6397: Use PLATFORM_DEVID_NONE macro instead of -1

2019-06-18 Thread Fabien Parent
Use the correct macro when adding the MFD devices instead of using directly '-1' value. Signed-off-by: Fabien Parent --- drivers/mfd/mt6397-core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index

[PATCH 2/2] mfd: mt6397: use DEFINE_RES_* helpers to define RTC resources

2019-06-18 Thread Fabien Parent
Use the DEFINE_RES_{MEM,IRQ} to define the RTC reosurce for the MT6397 PMIC. Signed-off-by: Fabien Parent --- drivers/mfd/mt6397-core.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 190ed86ad93e

Re: [PATCH v3 4/5] mfd: mt6397: Add support for MT6392 pmic

2019-06-19 Thread Fabien Parent
On Mon, Jun 3, 2019 at 11:37 AM Lee Jones wrote: > > On Wed, 15 May 2019, Fabien Parent wrote: > > > Update the MT6397 MFD driver to support the MT6392 PMIC. > > > > Signed-off-by: Fabien Parent > > --- > > > > V3: > > * No change > &g

[PATCH v4 1/7] dt-bindings: regulator: add support for MT6392

2019-06-19 Thread Fabien Parent
Add binding documentation of the regulator for MT6392 SoCs. Signed-off-by: Fabien Parent Reviewed-by: Rob Herring --- v4: * No change v3: * No change v2: * Use 'pmic' as node name for the pmic. * Use 'regulators' as node name for the regulators * use

[PATCH v4 5/7] regulator: mt6392: Add support for MT6392 regulator

2019-06-19 Thread Fabien Parent
The MT6392 is a regulator found on boards based on the MediaTek MT8167, MT8516, and probably other SoCs. It is a so called PMIC and connectcts as a slave to a SoC using SPI, wrapped inside PWRAP. Signed-off-by: Fabien Parent --- V4: * No change V3: * fix regulator's of_match

[PATCH v4 3/7] dt-bindings: input: mtk-pmic-keys: add MT6392 binding definition

2019-06-19 Thread Fabien Parent
Add the binding documentation of the mtk-pmic-keys for the MT6392 PMICs. Signed-off-by: Fabien Parent Reviewed-by: Rob Herring --- v4: * Patch was previously sent separately but merge to this patch series since there is a hard dependency on the MFD patch

[PATCH v4 7/7] arm64: dts: mt6392: Add PMIC mt6392 dtsi

2019-06-19 Thread Fabien Parent
Add the regulator nodes for the MT6392 PMIC. Signed-off-by: Fabien Parent --- V4: * No change V3: * No change V2: * Use 'pmic' as node name for the pmic. * Use 'regulators' as node name for the regulators * use dash instead of underscore for regulator's

[PATCH v4 0/7] mt6392: Add support for MediaTek MT6392 PMIC

2019-06-19 Thread Fabien Parent
This patch series aims at bringing support for the MediaTek MT6392 PMIC. This PMIC is used on the MT8516 Pumpkin board. This patch series adds support for the following features: * PMIC keys * regulator * RTC Fabien Parent (7): dt-bindings: regulator: add support for MT6392 dt-bindings

[PATCH v4 4/7] mfd: mt6397: Add support for MT6392 pmic

2019-06-19 Thread Fabien Parent
Update the MT6397 MFD driver to support the MT6392 PMIC. Signed-off-by: Fabien Parent --- V4: * Use DEFINE_RES_* macro to define RTC ressources. * Use PLATFORM_DEVID_NONE instead of -1 value when registering devices. V3: * No change V2: * Pass IRQ comain to fix

[PATCH v4 6/7] input: keyboard: mtk-pmic-keys: add MT6392 support

2019-06-19 Thread Fabien Parent
Add support for MT6392 PMIC's keys. Signed-off-by: Fabien Parent Acked-by: Dmitry Torokhov --- V4: * Patch was previously sent separately but merge to this patch series since there is a hard dependency on the MFD patch. --- drivers/input/keyboard/mtk-pmic-keys.c | 14

[PATCH v4 2/7] dt-bindings: mfd: mt6397: Add bindings for MT6392 PMIC

2019-06-19 Thread Fabien Parent
Add the currently supported bindings for the MT6392 PMIC. Signed-off-by: Fabien Parent Reviewed-by: Rob Herring Acked-for-MFD-by: Lee Jones --- V4: * No change V3: * No change V2: * New patch --- Documentation/devicetree/bindings/mfd/mt6397.txt | 12

[PATCH RESEND v2] i2c: i2c-mt65xx: fix NULL ptr dereference

2019-10-18 Thread Fabien Parent
add a call to i2c_check_quirks which will check whether the quirks pointer is set, and if so will check if the IP has the NO_ZERO_LEN quirk. Fixes: abf4923e97c3 ("i2c: mediatek: disable zero-length transfers for mt8183") Signed-off-by: Fabien Parent Reviewed-by: Cengiz Can Reviewed-by:

[PATCH RESEND] mfd: mt6397: Use PLATFORM_DEVID_NONE macro instead of -1

2019-10-20 Thread Fabien Parent
Use the correct macro when adding the MFD devices instead of using directly '-1' value. Signed-off-by: Fabien Parent Reviewed-by: Matthias Brugger --- drivers/mfd/mt6397-core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/mfd/mt6397-core.c b/drivers

Re: [PATCH 1/3] mfd: cros: add charger port count command definition

2018-06-04 Thread Fabien Parent
On Mon, Jun 4, 2018 at 1:59 AM, Lee Jones wrote: > On Tue, 29 May 2018, Fabien Parent wrote: > >> A new more command has been added to the ChromeOS embedded controller >> that allows to get the number of charger port count. Unlike >> EC_CMD_USB_PD_PORTS, this n

Re: [PATCH 0/3] power: supply: cros: add support for dedicated port and expose connected ports

2018-06-04 Thread Fabien Parent
+ Lee Jones for the mfd patch. On Tue, May 29, 2018 at 8:17 PM, Fabien Parent wrote: > Dear all, > > This patch series adds support for an optional dedicated port > to the ChromeOS power supply driver and adds a new property that expose > when a power supply is connected. The se

[PATCH v2 0/3] power: supply: cros: add support for dedicated port and expose connected ports

2018-08-10 Thread Fabien Parent
ypec: tcpm: Add sink side support for PPS) * https://lkml.org/lkml/2018/4/18/229 ([RESEND PATCH v5 4/7] mfd: cros_ec_dev: Register cros-ec-rtc driver as a subdevice.) Best Regards, Fabien V2: * Rebased to fixed apply issue with patch #2 Fabien Parent (3): mfd: cros: add charger port cou

[PATCH v2 2/3] power: supply: cros: add support for dedicated port

2018-08-10 Thread Fabien Parent
-by: Fabien Parent --- V1 -> V2: * Rebased --- drivers/power/supply/cros_usbpd-charger.c | 115 +++--- 1 file changed, 101 insertions(+), 14 deletions(-) diff --git a/drivers/power/supply/cros_usbpd-charger.c b/drivers/power/supply/cros_usbpd-charger.c index 688a16bacfbb..fe1502715

[PATCH v2 3/3] power: supply: cros: add property to detect connected ports

2018-08-10 Thread Fabien Parent
is connected or not. Signed-off-by: Fabien Parent --- V1 -> V2: * No change --- drivers/power/supply/cros_usbpd-charger.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/power/supply/cros_usbpd-charger.c b/drivers/power/supply/cros_usbpd-charger.c index fe1502715

[PATCH v2 1/3] mfd: cros: add charger port count command definition

2018-08-10 Thread Fabien Parent
charger driver. Signed-off-by: Fabien Parent Acked-for-MFD-by: Lee Jones --- V1 -> V2: * No change --- include/linux/mfd/cros_ec_commands.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h index 0d926492a

[PATCH] pinctrl: mediatek: Add MT8516 Pinctrl driver

2019-04-16 Thread Fabien Parent
This commit adds the pinctrl driver for the MediaTek's MT8516 SoC. Signed-off-by: Fabien Parent --- v2: * Don't assign anything to eint_regs since the registers are similar to the default provided by the common pinctrl driver. --- drivers/pinctrl/mediatek/Kconfig

Re: [PATCH 19/24] dt-bindings: spi: spi-mt65xx: add support for MT8516

2019-04-18 Thread Fabien Parent
On Tue, Apr 16, 2019 at 10:25 AM lei liu wrote: > > On Tue, 2019-04-16 at 09:55 +0200, Matthias Brugger wrote: > > > > On 23/03/2019 22:16, Fabien Parent wrote: > > > Add binding documentation of spi-mt65xx for MT8516 SoC. > > > > > > Signed-off-by:

[PATCH 2/2] input: keyboard: mtk-pmic-keys: add MT6392 support

2019-05-13 Thread Fabien Parent
Add support for MT6392 PMIC's keys. Signed-off-by: Fabien Parent --- drivers/input/keyboard/mtk-pmic-keys.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/input/keyboard/mtk-pmic-keys.c b/drivers/input/keyboard/mtk-pmic-keys.c index 8e6ebab05ab4..aaf68cbf7e5b

[PATCH 1/2] dt-bindings: input: mtk-pmic-keys: add MT6392 binding definition

2019-05-13 Thread Fabien Parent
Add the binding documentation of the mtk-pmic-keys for the MT6392 PMICs. Signed-off-by: Fabien Parent --- .../devicetree/bindings/input/mtk-pmic-keys.txt | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/input/mtk-pmic

[PATCH v2 0/5] mt6392: Add support for MediaTek MT6392 PMIC

2019-05-13 Thread Fabien Parent
This patch series aims at bringing support for the MediaTek MT6392 PMIC. This PMIC is used on the MT8516 Pumpkin board. This patch series adds support for the following features: * PMIC keys * regulator * RTC Fabien Parent (5): dt-bindings: regulator: add support for MT6392 regulator

[PATCH v2 1/5] dt-bindings: regulator: add support for MT6392

2019-05-13 Thread Fabien Parent
Add binding documentation of the regulator for MT6392 SoCs. Signed-off-by: Fabien Parent --- v2: * Use 'pmic' as node name for the pmic. * Use 'regulators' as node name for the regulators * use dash instead of underscore for regulator's node names. --- .../bindings

[PATCH v2 3/5] dt-bindings: mfd: mt6397: Add bindings for MT6392 PMIC

2019-05-13 Thread Fabien Parent
Add the currently supported bindings for the MT6392 PMIC. Signed-off-by: Fabien Parent --- V2: * New patch --- Documentation/devicetree/bindings/mfd/mt6397.txt | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd

[PATCH v2 2/5] regulator: mt6392: Add support for MT6392 regulator

2019-05-13 Thread Fabien Parent
The MT6392 is a regulator found on boards based on the MediaTek MT8167, MT8516, and probably other SoCs. It is a so called PMIC and connectcts as a slave to a SoC using SPI, wrapped inside PWRAP. Signed-off-by: Fabien Parent --- V2: * no changes --- drivers/regulator/Kconfig

[PATCH v2 5/5] arm64: dts: mt6392: Add PMIC mt6392 dtsi

2019-05-13 Thread Fabien Parent
Add the regulator nodes for the MT6392 PMIC. Signed-off-by: Fabien Parent --- V2: * Use 'pmic' as node name for the pmic. * Use 'regulators' as node name for the regulators * use dash instead of underscore for regulator's node names. --- arch/arm64/boot/dts/mediatek

[PATCH v2 4/5] mfd: mt6397: Add support for MT6392 pmic

2019-05-13 Thread Fabien Parent
Update the MT6397 MFD driver to support the MT6392 PMIC. Signed-off-by: Fabien Parent --- V2: * Pass IRQ comain to fix invalid MFD devices IRQs. * Remove resources and mfd cells for device we don't support. * Rename IRQ names to follow what's done for MT6397

[PATCH v3 3/5] dt-bindings: mfd: mt6397: Add bindings for MT6392 PMIC

2019-05-15 Thread Fabien Parent
Add the currently supported bindings for the MT6392 PMIC. Signed-off-by: Fabien Parent Reviewed-by: Rob Herring --- V3: * No change V2: * New patch --- Documentation/devicetree/bindings/mfd/mt6397.txt | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff

[PATCH v3 4/5] mfd: mt6397: Add support for MT6392 pmic

2019-05-15 Thread Fabien Parent
Update the MT6397 MFD driver to support the MT6392 PMIC. Signed-off-by: Fabien Parent --- V3: * No change V2: * Pass IRQ comain to fix invalid MFD devices IRQs. * Remove resources and mfd cells for device we don't support. * Rename IRQ names to follow what's

[PATCH v3 1/5] dt-bindings: regulator: add support for MT6392

2019-05-15 Thread Fabien Parent
Add binding documentation of the regulator for MT6392 SoCs. Signed-off-by: Fabien Parent Reviewed-by: Rob Herring --- v3: * No change v2: * Use 'pmic' as node name for the pmic. * Use 'regulators' as node name for the regulators * use dash instead of underscore

[PATCH v3 0/5] mt6392: Add support for MediaTek MT6392 PMIC

2019-05-15 Thread Fabien Parent
This patch series aims at bringing support for the MediaTek MT6392 PMIC. This PMIC is used on the MT8516 Pumpkin board. This patch series adds support for the following features: * PMIC keys * regulator * RTC Fabien Parent (5): dt-bindings: regulator: add support for MT6392 regulator

[PATCH v3 2/5] regulator: mt6392: Add support for MT6392 regulator

2019-05-15 Thread Fabien Parent
The MT6392 is a regulator found on boards based on the MediaTek MT8167, MT8516, and probably other SoCs. It is a so called PMIC and connectcts as a slave to a SoC using SPI, wrapped inside PWRAP. Signed-off-by: Fabien Parent --- V3: * fix regulator's of_match following the renaming

[PATCH v3 5/5] arm64: dts: mt6392: Add PMIC mt6392 dtsi

2019-05-15 Thread Fabien Parent
Add the regulator nodes for the MT6392 PMIC. Signed-off-by: Fabien Parent --- V3: * No change V2: * Use 'pmic' as node name for the pmic. * Use 'regulators' as node name for the regulators * use dash instead of underscore for regulator's node names. --- arch

[PATCH 4/5] ASoC: mediatek: mt8516: Add ADDA DAI driver

2019-05-02 Thread Fabien Parent
Add the ADDA DAI driver for the MediaTek MT8516 SoC. Signed-off-by: Fabien Parent --- sound/soc/mediatek/mt8516/Makefile| 3 +- sound/soc/mediatek/mt8516/mt8516-afe-common.h | 18 + sound/soc/mediatek/mt8516/mt8516-dai-adda.c | 316 ++ 3 files changed, 336

[PATCH 3/5] ASoC: mediatek: Add MT8516 PCM driver

2019-05-02 Thread Fabien Parent
This commit adds the PCM driver for the MediaTek MT8516 SoC. Signed-off-by: Fabien Parent --- sound/soc/mediatek/Kconfig | 10 + sound/soc/mediatek/Makefile | 1 + sound/soc/mediatek/mt8516/Makefile | 6 + sound/soc/mediatek/mt8516/mt8516-afe-pcm.c

[PATCH 1/5] ASoC: mediatek: make agent_disable, msb & hd fields optional

2019-05-02 Thread Fabien Parent
Not every SoC have the following registers: agent_disable_reg, msg_reg, and hd_reg. Make them optional in order to allow more SoC to use the common DAI FE code. Signed-off-by: Fabien Parent --- sound/soc/mediatek/common/mtk-afe-fe-dai.c | 23 +- 1 file changed, 14 insertions

[PATCH 5/5] ASoC: mediatek: mt8516: register ADDA DAI

2019-05-02 Thread Fabien Parent
Register the ADDA DAI driver into the MT8516 PCM driver. Signed-off-by: Fabien Parent --- sound/soc/mediatek/mt8516/mt8516-afe-pcm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/mediatek/mt8516/mt8516-afe-pcm.c b/sound/soc/mediatek/mt8516/mt8516-afe-pcm.c index 84fbb5dbbd14

[PATCH 2/5] dt-bindings: sound: Add MT8516 AFE PCM bindings

2019-05-02 Thread Fabien Parent
Add documentation for the bindings of the MT8516 AFE PCM driver. Signed-off-by: Fabien Parent --- .../bindings/sound/mt8516-afe-pcm.txt | 28 +++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/mt8516-afe-pcm.txt diff --git

[PATCH 0/5] ASoC: mediatek: Add basic PCM driver for MT8516

2019-05-02 Thread Fabien Parent
This patch series add a basic PCM driver for MediaTek MT8516 with only support for ADDA Playback & Recording for now. Fabien Parent (5): ASoC: mediatek: make agent_disable, msb & hd fields optional dt-bindings: sound: Add MT8516 AFE PCM bindings ASoC: mediatek: Add MT8516 PCM drive

[PATCH 2/2] clk: mediatek: add audsys clock driver for MT8516

2019-05-02 Thread Fabien Parent
Add audsys clock driver for MediaTek MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/clk/mediatek/Kconfig | 6 +++ drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8516-aud.c | 65 +++ 3 files changed, 72 insertions(+) create mode

[PATCH 1/2] dt-bindings: mediatek: audsys: add support for MT8516

2019-05-02 Thread Fabien Parent
Add AUDSYS device tree bindings documentation for MediaTek MT8516 SoC. Signed-off-by: Fabien Parent --- .../bindings/arm/mediatek/mediatek,audsys.txt | 1 + include/dt-bindings/clock/mt8516-clk.h | 17 + 2 files changed, 18 insertions(+) diff --git a/Documentation

[PATCH v2] ASoC: mediatek: mt8516: register ADDA DAI

2019-05-02 Thread Fabien Parent
Register the ADDA DAI driver into the MT8516 PCM driver. Signed-off-by: Fabien Parent --- This patch depends on patch serie: [PATCH 0/5] ASoC: mediatek: Add basic PCM driver for MT8516 v2: * Register ADDA before memif to fix ordering issue. --- sound/soc/mediatek/mt8516

[PATCH v2] mmc: mtk-sd: check for valid optional memory resource

2019-04-03 Thread Fabien Parent
'top_base' memory region is optional. Check that the resource is valid before using it. This avoid getting a "invalid resource" error message printed by the kernel. Signed-off-by: Fabien Parent --- V2: Fix invalid condition: check against 'res' variable instead of 'ret'. --

[PATCH 12/24] dt-bindings: mediatek: infracfg: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of infracfg for MT8516 SoC. Signed-off-by: Fabien Parent --- .../bindings/arm/mediatek/mediatek,infracfg.txt | 1 + include/dt-bindings/clock/mt8516-clk.h | 9 + 2 files changed, 10 insertions(+) diff --git a/Documentation

[PATCH 01/24] dt-bindings: regulator: add support for MT6392

2019-03-23 Thread Fabien Parent
Add binding documentation of the regulator for MT6392 SoCs. Signed-off-by: Fabien Parent --- .../bindings/regulator/mt6392-regulator.txt | 220 ++ 1 file changed, 220 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt6392-regulator.txt diff

[PATCH 00/24] arm64: mediatek: add support for Pumpkin MT8516 board

2019-03-23 Thread Fabien Parent
analog in), serial over USB, and an expansion header. This patch series adds the basic board support to be able to boot on the eMMC of the MT8516 based Pumpkin board. The board is using a MT6392 PMIC. Fabien Parent (24): dt-bindings: regulator: add support for MT6392 regulator: mt6392: Add

[PATCH 04/24] soc: mediatek: pwrap: add missing check on rstc

2019-03-23 Thread Fabien Parent
The variable rstc is set only when the SoC PWRAP have the PWRAP_CAP_RESET capability. Check whether rstc is set before using it to avoid errors. Signed-off-by: Fabien Parent --- drivers/soc/mediatek/mtk-pmic-wrap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 16/24] pinctrl: mediatek: Add MT8516 Pinctrl driver

2019-03-23 Thread Fabien Parent
Signed-off-by: Fabien Parent --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt8516.c | 384 ++ drivers/pinctrl/mediatek/pinctrl-mtk-mt8516.h | 1182 + 4 files changed

[PATCH 21/24] dt-bindings: irq: mtk,sysirq: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of mediatek,sysirq for MT8516 SoC. Signed-off-by: Fabien Parent --- .../bindings/interrupt-controller/mediatek,sysirq.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek

[PATCH 19/24] dt-bindings: spi: spi-mt65xx: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of spi-mt65xx for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/spi/spi-mt65xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/spi/spi-mt65xx.txt b/Documentation/devicetree/bindings/spi/spi

[PATCH 23/24] arm64: dts: mediatek: add dtsi for MT8516

2019-03-23 Thread Fabien Parent
-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516-pinfunc.h | 663 ++ arch/arm64/boot/dts/mediatek/mt8516.dtsi | 409 +++ 2 files changed, 1072 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8516-pinfunc.h create mode 100644 arch/arm64/boot/dts

[PATCH 20/24] dt-bindings: serial: mtk-uart: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of mtk-uart for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/serial/mtk-uart.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/mtk-uart.txt b/Documentation/devicetree/bindings/serial/mtk

[PATCH 11/24] dt-bindings: mediatek: topckgen: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of topckgen for MT8516 SoC. Signed-off-by: Fabien Parent --- .../arm/mediatek/mediatek,topckgen.txt| 1 + include/dt-bindings/clock/mt8516-clk.h| 192 ++ 2 files changed, 193 insertions(+) create mode 100644 include/dt-bindings/clock

[PATCH 02/24] regulator: mt6392: Add support for MT6392 regulator

2019-03-23 Thread Fabien Parent
The MT6392 is a regulator found on boards based on the MediaTek MT8167, MT8516, and probably other SoCs. It is a so called PMIC and connectcts as a slave to a SoC using SPI, wrapped inside PWRAP. Signed-off-by: Fabien Parent --- drivers/regulator/Kconfig | 9 + drivers

[PATCH 07/24] arm64: dts: mt6392: Add PMIC mt6392 dtsi

2019-03-23 Thread Fabien Parent
Add the regulator nodes for the MT6392 PMIC. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt6392.dtsi | 208 +++ 1 file changed, 208 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6392.dtsi diff --git a/arch/arm64/boot/dts/mediatek/mt6392

[PATCH 15/24] dt-bindings: pinctrl: pinctrl-mt65xx: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of pinctrl-mt65xx for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-mt65xx.txt b/Documentation/devicetree

[PATCH 03/24] dt-bindings: pwrap: mediatek: add pwrap support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of pwrap for MT8516 SoCs. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt b/Documentation/devicetree/bindings/soc

[PATCH 09/24] mmc: mtk-sd: check for valid optional memory resource

2019-03-23 Thread Fabien Parent
'top_base' memory region is optional. Check that the resource is valid before using it. This avoid getting a "invalid resource" error message printed by the kernel. Signed-off-by: Fabien Parent --- drivers/mmc/host/mtk-sd.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletion

[PATCH 18/24] dt-bindings: timer: mtk-timer: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of mtk-timer for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt b/Documentation/devicetree

[PATCH 08/24] dt-bindings: mmc: mtk-sd: add mtk-sd support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of mtk-sd for MT8516 SoCs. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/mmc/mtk-sd.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.txt b/Documentation/devicetree/bindings/mmc/mtk-sd.txt index

[PATCH 22/24] dt-bindings: i2c: i2c-mtk: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of i2c-mtk for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/i2c/i2c-mtk.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mtk.txt b/Documentation/devicetree/bindings/i2c/i2c-mtk.txt

[PATCH 24/24] arm64: dts: mediatek: add pumpkin board dts

2019-03-23 Thread Fabien Parent
together. This commit is adding the basic boot support for the Pumpkin MT8516 board on the eMMC. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../boot/dts/mediatek/mt8516-pumpkin.dts | 19 ++ .../boot/dts/mediatek/pumpkin-common.dtsi | 210

[PATCH 17/24] dt-bindings: wdog: mtk-wdt: add support for MT851

2019-03-23 Thread Fabien Parent
Add binding documentation of mtk-wdt for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog

[PATCH 14/24] clk: mediatek: add clock driver for MT8516

2019-03-23 Thread Fabien Parent
Add the clock driver for the MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/clk/mediatek/Kconfig | 9 + drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt8516.c | 815 ++ 3 files changed, 825 insertions(+) create mode 100644 drivers

[PATCH 13/24] dt-bindings: mediatek: apmixedsys: add support for MT8516

2019-03-23 Thread Fabien Parent
Add binding documentation of apmixedsys for MT8516 SoC. Signed-off-by: Fabien Parent --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 + include/dt-bindings/clock/mt8516-clk.h | 10 ++ 2 files changed, 11 insertions(+) diff --git a/Documentation

[PATCH 06/24] mfd: mt6397: Add support for MT6397 pmic

2019-03-23 Thread Fabien Parent
Update the MT6397 MFD driver to support the MT6392 PMIC. Signed-off-by: Fabien Parent --- drivers/mfd/mt6397-core.c| 96 ++ include/linux/mfd/mt6392/core.h | 42 +++ include/linux/mfd/mt6392/registers.h | 487 +++ 3 files changed, 625 insertions

[PATCH 05/24] soc: mediatek: pwrap: add support for MT8516 pwrap

2019-03-23 Thread Fabien Parent
Add the code to support the pwrap IP on the MediaTek MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/soc/mediatek/mtk-pmic-wrap.c | 106 +++ 1 file changed, 106 insertions(+) diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c

[PATCH 10/24] mmc: mtk-sd: add support for MT8516

2019-03-23 Thread Fabien Parent
Add the MSDC configuration for the MT8516 SoC. Signed-off-by: Fabien Parent --- drivers/mmc/host/mtk-sd.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 573aa127d00b..51139275b1b2 100644 --- a/drivers/mmc/host/mtk

Re: [PATCH 09/24] mmc: mtk-sd: check for valid optional memory resource

2019-03-24 Thread Fabien Parent
On Sun, Mar 24, 2019 at 4:34 AM Yingjoe Chen wrote: > > On Sat, 2019-03-23 at 22:15 +0100, Fabien Parent wrote: > > 'top_base' memory region is optional. Check that the resource is valid > > before using it. This avoid getting a "invalid resource" error messa

[PATCH 0/3] power: supply: cros: add support for dedicated port and expose connected ports

2018-05-29 Thread Fabien Parent
ypec: tcpm: Add sink side support for PPS) * https://lkml.org/lkml/2018/4/18/229 ([RESEND PATCH v5 4/7] mfd: cros_ec_dev: Register cros-ec-rtc driver as a subdevice.) Best Regards, Fabien Fabien Parent (3): mfd: cros: add charger port count command definition power: supply: cros: a

[PATCH 3/3] power: supply: cros: add property to detect connected ports

2018-05-29 Thread Fabien Parent
is connected or not. Signed-off-by: Fabien Parent --- drivers/power/supply/cros_usbpd-charger.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/power/supply/cros_usbpd-charger.c b/drivers/power/supply/cros_usbpd-charger.c index 808688a6586c..d44ab35670ab 100644 --- a/drivers

[PATCH 1/3] mfd: cros: add charger port count command definition

2018-05-29 Thread Fabien Parent
charger driver. Signed-off-by: Fabien Parent --- include/linux/mfd/cros_ec_commands.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h index 0d926492ac3a..e3187f8bdb7e 100644 --- a/include/linux/mfd

[PATCH 2/3] power: supply: cros: add support for dedicated port

2018-05-29 Thread Fabien Parent
-by: Fabien Parent --- drivers/power/supply/cros_usbpd-charger.c | 115 +++--- 1 file changed, 101 insertions(+), 14 deletions(-) diff --git a/drivers/power/supply/cros_usbpd-charger.c b/drivers/power/supply/cros_usbpd-charger.c index 3a0c96fd1bc1..808688a6586c 100644 --- a/drivers/power

Re: [PATCH 2/3] power: supply: cros: add support for dedicated port

2018-06-13 Thread Fabien Parent
Hi, Making sure this patch and the next one [1] are not being forgotten. [1] https://patchwork.kernel.org/patch/10437565/ On Wed, May 30, 2018 at 5:17 AM, Fabien Parent wrote: > ChromeOS devices can have one optional dedicated port. > The Dedicated port is unique and similar to the

[PATCH] ARM: dts: da850-lcdk: Add ethernet0 alias to DT

2016-11-24 Thread Fabien Parent
In order to avoid Linux generating a random mac address on every boot, add an ethernet0 alias that will allow u-boot to patch the dtb with the MAC address programmed into the EEPROM. Signed-off-by: Fabien Parent --- arch/arm/boot/dts/da850-lcdk.dts | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] ARM: davinci: da850-evm: fix read access to SPI flash

2017-01-17 Thread Fabien Parent
the FAST_READ command can be used to read data. This commit specifies in the DTS that we should use FAST_READ command instead of the READ command. Signed-off-by: Fabien Parent --- arch/arm/boot/dts/da850-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch

<    1   2   3   >