[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
ails. Signed-off-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 688

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

2018-08-10 Thread Fabien Parent
; to reflect whether a port 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_u

[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 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
ails. Signed-off-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

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 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: add s

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

2018-05-29 Thread Fabien Parent
; to reflect whether a port 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..d44

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

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] 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/mediat

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

[PATCH] arm64: dts: mediatek: fix reset GPIO level on pumpkin

2021-02-23 Thread Fabien Parent
The tca6416 chip is active low. Fix the reset-gpios value. Fixes: e2a8fa1e0faa ("arm64: dts: mediatek: fix tca6416 reset GPIOs in pumpkin") Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/pumpkin-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

Re: [PATCH 1/2] dt-bindings: mediatek: mmsys: add mt1867 binding

2021-02-23 Thread Fabien Parent
Hi Matthias, Pinging you in case you didn't see @Chun-Kuang Hu's question for you. Thanks, Best regards, Fabien On Sun, Jan 10, 2021 at 12:18 AM Chun-Kuang Hu wrote: > > Hi, Matthias: > > Rob Herring 於 2020年10月31日 週六 上午3:17寫道: > > > > On Tue, 27 Oct 2020 1

[PATCH] dt-bindings: arm64: dts: mediatek: Add mt8516-pumpkin board

2021-02-23 Thread Fabien Parent
Add binding documentation for the MT8516 Pumpkin board. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm

[PATCH 1/2] dt-bindings: arm64: dts: mediatek: Add mt8183-pumpkin board

2021-02-17 Thread Fabien Parent
Add binding documentation for the MT8183 Pumpkin board. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/arm/mediatek.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.yaml b/Documentation/devicetree/bindings/arm

[PATCH 2/2] arm64: dts: mt8183: add mt8183 pumpkin board

2021-02-17 Thread Fabien Parent
only port * 1 Jack for audio * RPI compatible header * MT7668 wiresless chip with Wi-Fi AC and BT 5 * Micro-HDMI port * 2 connectors for CSI cameras * 1 connector for DSI display * 1 JTAG port Signed-off-by: Fabien Parent --- arch/arm64

Re: [PATCH 2/5] arm64: dts: mediatek: mt8167: add smi_common node

2021-04-06 Thread Fabien Parent
o the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: > https://github.com/0day-ci/linux/commits/Fabien-Parent/arm64-dts-mediatek-mt8167-add-mmsys-nod

[PATCH v2 1/3] 📤 arm64: dts: mediatek: mt8167: add larb nodes

2021-04-06 Thread Fabien Parent
Add larb nodes for MT8167: * larb0 is used for display (dsi and hdmi) * larb1 is used for camera (csi) * larb2 is used for the video hardware decoder Signed-off-by: Fabien Parent --- Note: This series is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h

[PATCH v2 2/3] 📤 arm64: dts: mediatek: mt8167: add iommu node

2021-04-06 Thread Fabien Parent
Add node for the MT8167's IOMMU. Signed-off-by: Fabien Parent --- Note: This series is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=v5.12-next/dts64-2 V2: * Remove unneeded cell-index property arch/arm64/boot/dts/mediatek/mt8167.dts

[PATCH v2 3/3] 📤 arm64: dts: mediatek: mt8167: add some DRM nodes

2021-04-06 Thread Fabien Parent
Add all the DRM nodes required to get DSI to work on MT8167 SoC. Signed-off-by: Fabien Parent --- Note: This series is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=v5.12-next/dts64-2 V2: * No changes arch/arm64/boot/dts/mediatek/mt8167.dtsi

Re: [PATCH v2 1/3] 📤 arm64: dts: mediatek: mt8167: add larb nodes

2021-04-06 Thread Fabien Parent
Oops, some unicode character ended up in the patch. Removing them in v3 On Tue, Apr 6, 2021 at 1:32 PM Fabien Parent wrote: > > Add larb nodes for MT8167: > * larb0 is used for display (dsi and hdmi) > * larb1 is used for camera (csi) > * larb2 is used for the video hardware dec

[PATCH v3 1/3] arm64: dts: mediatek: mt8167: add larb nodes

2021-04-06 Thread Fabien Parent
Add larb nodes for MT8167: * larb0 is used for display (dsi and hdmi) * larb1 is used for camera (csi) * larb2 is used for the video hardware decoder Signed-off-by: Fabien Parent --- Note: This series is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h

[PATCH v3 2/3] arm64: dts: mediatek: mt8167: add iommu node

2021-04-06 Thread Fabien Parent
Add node for the MT8167's IOMMU. Signed-off-by: Fabien Parent --- Note: This series is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=v5.12-next/dts64-2 V3: * Removed unicode character in commit summary V2: * Remove unneeded cell-

[PATCH v3 3/3] arm64: dts: mediatek: mt8167: add some DRM nodes

2021-04-06 Thread Fabien Parent
Add all the DRM nodes required to get DSI to work on MT8167 SoC. Signed-off-by: Fabien Parent --- Note: This series is based on https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=v5.12-next/dts64-2 V3: * Removed unicode character in commit summary V2

[PATCH] arm64: dts: mediatek: mt8167: add power domains

2021-04-05 Thread Fabien Parent
Add support for the MT8167 power domains. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 68 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index

[PATCH v2 2/2] soc: mediatek: mmsys: Add support for MT8167 SoC

2021-04-05 Thread Fabien Parent
Add routing table for DSI on MT8167 SoC. The registers are mostly incompatible with the current defines, so new one for MT8167 are added. Signed-off-by: Fabien Parent --- V2: Rebased on top of [0] [0] https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=for-next

[PATCH v2 1/2] dt-bindings: mediatek: mmsys: add mt8167 binding

2021-04-05 Thread Fabien Parent
Add binding documentation for MT8167 SoC. Signed-off-by: Fabien Parent Reviewed-by: Chun-Kuang Hu Acked-by: Rob Herring --- V2: Rebased + fix typo in commit message. .../devicetree/bindings/arm/mediatek/mediatek,mmsys.txt | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH 2/5] arm64: dts: mediatek: mt8167: add smi_common node

2021-04-05 Thread Fabien Parent
Add the smi_common node. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 9d765034dfb0..4b951f81db9e 100644 --- a/arch

[PATCH 1/5] arm64: dts: mediatek: mt8167: add mmsys node

2021-04-05 Thread Fabien Parent
Add node for MMSYS. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 156fbdad01fb..9d765034dfb0 100644 --- a/arch/arm64

[PATCH 3/5] arm64: dts: mediatek: mt8167: add larb nodes

2021-04-05 Thread Fabien Parent
Add larb nodes for MT8167: * larb0 is used for display (dsi and hdmi) * larb1 is used for camera (csi) * larb2 is used for the video hardware decoder Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 33 1 file changed, 33 insertions(+) diff

[PATCH 5/5] arm64: dts: mediatek: mt8167: add some DRM nodes

2021-04-05 Thread Fabien Parent
Add all the DRM nodes required to get DSI to work on MT8167 SoC. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 149 +++ 1 file changed, 149 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek

[PATCH 4/5] arm64: dts: mediatek: mt8167: add iommu node

2021-04-05 Thread Fabien Parent
Add node for the MT8167's IOMMU. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8167.dtsi b/arch/arm64/boot/dts/mediatek/mt8167.dtsi index 9b352031c5f6..3ba03ca749b2 1

[PATCH v2 1/2] 📤 dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC

2020-12-09 Thread Fabien Parent
Add bindings to APDMA for MT8516 SoC. MT8516 is compatible with MT6577. Signed-off-by: Fabien Parent Reviewed-by: Matthias Brugger Acked-by: Rob Herring --- V2: no change Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH v2 2/2] 📤 arm64: dts: mediatek: mt8516: add support for APDMA

2020-12-09 Thread Fabien Parent
Add support the APDMA IP on MT8516. APDMA is a DMA controller for UARTs. Signed-off-by: Fabien Parent --- V2: Add missing dma-names properties on uart nodes arch/arm64/boot/dts/mediatek/mt8516.dtsi | 30 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot

[PATCH v3 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC

2020-12-09 Thread Fabien Parent
Add bindings to APDMA for MT8516 SoC. MT8516 is compatible with MT6577. Signed-off-by: Fabien Parent Reviewed-by: Matthias Brugger Acked-by: Rob Herring --- V3: remove unicode symbol that slips into patch summary V2: no change Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt | 1

[PATCH v3 2/2] arm64: dts: mediatek: mt8516: add support for APDMA

2020-12-09 Thread Fabien Parent
Add support the APDMA IP on MT8516. APDMA is a DMA controller for UARTs. Signed-off-by: Fabien Parent --- V3: remove unicode symbol that slips into patch summary V2: Add missing dma-names properties on uart nodes arch/arm64/boot/dts/mediatek/mt8516.dtsi | 30 1 file

Re: [PATCH v2 1/2] 📤 dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC

2020-12-09 Thread Fabien Parent
Sorry, resending without the unicode symbol in the title On Wed, Dec 9, 2020 at 12:44 PM Fabien Parent wrote: > > Add bindings to APDMA for MT8516 SoC. MT8516 is compatible with MT6577. > > Signed-off-by: Fabien Parent > Reviewed-by: Matthias Brugger > Acked-by: Rob Herring

Re: [PATCH v2 2/2] 📤 arm64: dts: mediatek: mt8516: add support for APDMA

2020-12-09 Thread Fabien Parent
Sorry, resending without the unicode symbol in the title On Wed, Dec 9, 2020 at 12:44 PM Fabien Parent wrote: > > Add support the APDMA IP on MT8516. APDMA is a DMA controller > for UARTs. > > Signed-off-by: Fabien Parent > --- > > V2: Add missing dma-names properties

[PATCH v2 1/2] arm64: dts: mediatek: mt8183: add pwm node

2020-12-09 Thread Fabien Parent
MT8183 SoC has 4 PWMs. Add the pwm node in order to support them. Signed-off-by: Fabien Parent --- V2: rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0 arch/arm64/boot/dts/mediatek/mt8183.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64

[PATCH v2 2/2] arm64: dts: mediatek: mt8183-evb: add PWM support

2020-12-09 Thread Fabien Parent
Enable the pwm driver and set the pinctrl for PWM A line. Signed-off-by: Fabien Parent --- V2: * rename pwm0 to pwm1 since disp-pwm has been merged in v5.11 as pwm0 * rename the pio node and labels to match the coding standard of this dts arch/arm64/boot/dts/mediatek/mt8183

[PATCH v3 2/2] soc: mediatek: pm-domains: Add support for mt8167

2020-12-09 Thread Fabien Parent
Add the needed board data to support mt8167 SoC. Signed-off-by: Fabien Parent Reviewed-by: Enric Balletbo i Serra --- This patch was made on top of https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=v5.10-next/soc v3: * s/MT8167_POWER_DOMAIN_DISP

[PATCH v3 1/2] dt-bindings: power: Add MT8167 power domains

2020-12-09 Thread Fabien Parent
Add power domains dt-bindings for MT8167. Signed-off-by: Fabien Parent Acked-by: Rob Herring --- This patch was made on top of https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/log/?h=v5.10-next/soc v3: * Remove MT8167_POWER_DOMAIN_DISP since it was an alias for

Re: [PATCH v4 2/4] dts: arm64: mt8183: Add Mediatek MDP3 nodes

2020-11-20 Thread Fabien Parent
Hi Daoyuan, > Depend on: >[1] https://lore.kernel.org/patchwork/patch/1164746/ >[2] https://patchwork.kernel.org/patch/11703299/ >[3] https://patchwork.kernel.org/patch/11283773/ Can you provide an updated list of dependencies because it seems this patch depends on more than the patch

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

2019-09-30 Thread Fabien Parent
t 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_q

[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
add 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/buss

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

2019-10-18 Thread Fabien Parent
t 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

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

[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

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

[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

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

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

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

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

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

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

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

[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

[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 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
: 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(+),

[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

  1   2   3   >