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

[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

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

[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.dtsi | 8

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-node/20210406

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

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

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

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 17:06:29 +0

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

[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

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

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

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 Her

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

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

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

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

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 v5 1/2] dt-bindings: regulator: add support for MT6392

2020-10-27 Thread Fabien Parent
Hi Mark, On Mon, Oct 26, 2020 at 9:36 PM Mark Brown wrote: > > On Mon, Oct 26, 2020 at 07:38:14PM +0100, Fabien Parent wrote: > > On Mon, Oct 26, 2020 at 6:24 PM Mark Brown wrote: > > > > > .name = "mt6392-regulator", > > > >

[PATCH 3/3] arm64: dts: mediatek: add MT8167 pumpkin board dts

2020-10-27 Thread Fabien Parent
. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/Makefile | 1 + .../boot/dts/mediatek/mt8167-pumpkin.dts | 20 +++ 2 files changed, 21 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt8167-pumpkin.dts diff --git a/arch/arm64/boot/dts

[PATCH 2/3] arm64: dts: mediatek: add dtsi for MT8167

2020-10-27 Thread Fabien Parent
with MT8516 but provides multimedia IPs to it. This commit is just adding the basic dtsi file with the support of the following IOs: GPIO, Clocks. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8167-pinfunc.h | 744 ++ arch/arm64/boot/dts/mediatek/mt8167.dtsi | 61

[PATCH 1/3] dt-bindings: arm64: dts: mediatek: Add mt8167-pumpkin board

2020-10-27 Thread Fabien Parent
Add binding documentation for the MT8167 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 v6 RESEND 3/3] mfd: mt6397: Add support for MT6392 pmic

2020-10-27 Thread Fabien Parent
Update the MT6397 MFD driver to support the MT6392 PMIC. Signed-off-by: Fabien Parent --- V6: * Update copyrights V5: * Rebased * removed mt6392-regulator compatible. This will be send in another series to make this series easier to merge. V4: * Use

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

2020-10-27 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 --- v6: * No changes v5: * rebased * Rename MT6397/MT6392/MT6323 into MT63XX to make it more readable when the list of support PMIC

[PATCH v6 RESEND 1/3] dt-bindings: mfd: mt6397: Add bindings for MT6392 PMIC

2020-10-27 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 --- V6: * No changes V5: * Rebased, removed regulator documentation because it will be send later on in another patch series V4

Re: [PATCH v2 5/5] drm/mediatek: Add support for main DDP path on MT8167

2020-10-27 Thread Fabien Parent
Hi Chun-Kuang, On Fri, Oct 23, 2020 at 5:52 PM Chun-Kuang Hu wrote: > > Hi, Fabien: > > Fabien Parent 於 2020年10月23日 週五 下午9:31寫道: > > > > Add the main (DSI) drm display path for MT8167. > > > > Signed-off-by: Fabien Parent > > --- > > > >

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

2020-10-27 Thread Fabien Parent
Add binding documentation for MT8167 SoC. Signed-off-by: Fabien Parent --- .../devicetree/bindings/arm/mediatek/mediatek,mmsys.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mmsys.txt b/Documentation/devicetree/bindings

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

2020-10-27 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 --- This patch depends on the patch series "soc: mediatek: Prepare MMSYS for DDP routing using tables"

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

2020-10-27 Thread Fabien Parent
Add power domains dt-bindings for MT8167. Signed-off-by: Fabien Parent --- This patch depends on the SCPSYS PM domains driver [0]. v2: * Implement on top of new SCPSYS PM domains driver [0] [0] https://patchwork.kernel.org/project/linux-mediatek/list/?series=370737 .../power

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

2020-10-27 Thread Fabien Parent
Add the needed board data to support mt8167 SoC. Signed-off-by: Fabien Parent --- This patch depends on the SCPSYS PM domains driver [0]. v2: * Implement on top of new SCPSYS PM domains driver [0] [0] https://patchwork.kernel.org/project/linux-mediatek/list/?series=370737 drivers/soc

Re: [PATCH v3 05/16] soc: mediatek: pm_domains: Make bus protection generic

2020-10-27 Thread Fabien Parent
> - ret = mtk_infracfg_set_bus_protection(pd->infracfg, > - bpd[i].bus_prot_mask, > - > bpd[i].bus_prot_reg_update); [snip] > - ret =

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

2020-10-26 Thread Fabien Parent
Hi Mark, On Mon, Oct 26, 2020 at 6:24 PM Mark Brown wrote: > > On Mon, Oct 26, 2020 at 06:18:35PM +0100, Fabien Parent wrote: > > On Mon, Oct 26, 2020 at 1:13 PM Mark Brown wrote: > > > > On Sat, Oct 24, 2020 at 10:03:03PM +0200, Fabien Parent wrote: > &

Re: [PATCH 2/2] clocksource: mediatek: add clk13m and bus clock support

2020-10-26 Thread Fabien Parent
Hi Rob, On Mon, Oct 26, 2020 at 2:30 PM Rob Herring wrote: > > On Sat, Oct 17, 2020 at 05:38:57PM +0200, Fabien Parent wrote: > > Some MediaTek SoC like MT8516 need to enable additional clocks > > for the GPT timer. Enable them if present. > > > >

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

2020-10-26 Thread Fabien Parent
Hi Mark, On Mon, Oct 26, 2020 at 1:13 PM Mark Brown wrote: > > On Sat, Oct 24, 2020 at 10:03:03PM +0200, Fabien Parent wrote: > > > +Required properties: > > +- compatible: "mediatek,mt6392-regulator" > > This is no longer used by the driver, should be unnee

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

2020-10-24 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 --- V5: * Removed unneeded code * Fix indentation

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

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

[PATCH v2 1/5] dt-bindings: display: mediatek: disp: add documentation for MT8167 SoC

2020-10-23 Thread Fabien Parent
Add binding documentation for the MT8167 SoC Signed-off-by: Fabien Parent Reviewed-by: Chun-Kuang Hu --- Changelog: V2: No change .../devicetree/bindings/display/mediatek/mediatek,disp.txt| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree

[PATCH v2 5/5] drm/mediatek: Add support for main DDP path on MT8167

2020-10-23 Thread Fabien Parent
Add the main (DSI) drm display path for MT8167. Signed-off-by: Fabien Parent --- Changelog: V2: No change drivers/gpu/drm/mediatek/mtk_drm_drv.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek

[PATCH v2 2/5] dt-bindings: display: mediatek: dsi: add documentation for MT8167 SoC

2020-10-23 Thread Fabien Parent
Add binding documentation for the MT8167 SoC. Signed-off-by: Fabien Parent --- Changelog: V2: removed part that added a new clock .../devicetree/bindings/display/mediatek/mediatek,dsi.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree

[PATCH v2 4/5] drm/mediatek: add DDP support for MT8167

2020-10-23 Thread Fabien Parent
Add DDP support for MT8167 SoC. Signed-off-by: Fabien Parent --- Changelog: V2: don't set DDP_MUTEX_SOF_DSI{1,2,3} since they are not available on MT8167 drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 47 ++ 1 file changed, 47 insertions(+) diff --git a/drivers/gpu/drm

[PATCH v2 3/5] drm/mediatek: add disp-color MT8167 support

2020-10-23 Thread Fabien Parent
Add support for disp-color on MT8167 SoC. Signed-off-by: Fabien Parent Reviewed-by: Chun-Kuang Hu --- Changelog: V2: No change drivers/gpu/drm/mediatek/mtk_disp_color.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_color.c b/drivers/gpu/drm

[PATCH v2 0/5] Add DRM/DSI support for MT8167 SoC

2020-10-23 Thread Fabien Parent
: removed 3 patches Fabien Parent (5): dt-bindings: display: mediatek: disp: add documentation for MT8167 SoC dt-bindings: display: mediatek: dsi: add documentation for MT8167 SoC drm/mediatek: add disp-color MT8167 support drm/mediatek: add DDP support for MT8167 drm/mediatek: Add support

[PATCH] mmc: host: mtk-sd: enable recheck_sdio_irq for MT8516 SoC

2020-10-23 Thread Fabien Parent
MT8516 SoC suffers from sometimes losing SDIO IRQs, this makes SDIO devices sometimes unstable. Make use of the new property recheck_sdio_irq to fix the SDIO stability issues on MT8516. Signed-off-by: Fabien Parent --- drivers/mmc/host/mtk-sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH 4/8] drm/mediatek: dsi: add pdata variable to start clk in HS mode

2020-10-22 Thread Fabien Parent
Hi Chun-Kuang, On Wed, Oct 21, 2020 at 7:07 PM Chun-Kuang Hu wrote: > > Hi, Fabien: > > Fabien Parent 於 2020年10月21日 週三 上午1:43寫道: > > > > On MT8167, DSI seems to work fine only if we start the clk in HS mode. > > If we don't start the clk in HS but try to switch lat

Re: [PATCH 2/8] dt-bindings: display: mediatek: dsi: add documentation for MT8167 SoC

2020-10-21 Thread Fabien Parent
Hi Chun-Kuang, On Wed, Oct 21, 2020 at 7:01 PM Chun-Kuang Hu wrote: > > Hi, Fabien: > > Fabien Parent 於 2020年10月21日 週三 上午1:43寫道: > > > > Add binding documentation for the MT8167 SoC. The SoC needs > > an additional clock compared to the already supported So

[PATCH 1/3] dt-bindings: thermal: mediatek: make resets property optional

2020-10-21 Thread Fabien Parent
MT8516 Thermal IP does not support reset. Make the resets property optional in order to be able to support MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/thermal/mediatek-thermal.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/3] thermal: mtk_thermal: make device_reset optional

2020-10-21 Thread Fabien Parent
MT8516 does not support thermal reset. Use device_reset_optional instead of device_reset. Signed-off-by: Fabien Parent --- drivers/thermal/mtk_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/mtk_thermal.c b/drivers/thermal/mtk_thermal.c index

[PATCH 2/3] dt-bindings: thermal: mediatek: add documentation for MT8516 SoC

2020-10-21 Thread Fabien Parent
Add binding documentation for the MediaTek MT8516 SoC. The SoC thermal IP is similar to MT2701. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/thermal/mediatek-thermal.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/mediatek

[PATCH 3/8] drm/mediatek: add disp-color MT8167 support

2020-10-20 Thread Fabien Parent
Add support for disp-color on MT8167 SoC. Signed-off-by: Fabien Parent --- drivers/gpu/drm/mediatek/mtk_disp_color.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_disp_color.c b/drivers/gpu/drm/mediatek/mtk_disp_color.c index 3ae9c810845b..a1227cefbf31

[PATCH 6/8] drm/mediatek: dsi: add support for MT8167 SoC

2020-10-20 Thread Fabien Parent
Add platform data to support the MT8167 SoC. Signed-off-by: Fabien Parent --- drivers/gpu/drm/mediatek/mtk_dsi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 08786734df8e..d90dd0f83292 100644

[PATCH 1/8] dt-bindings: display: mediatek: disp: add documentation for MT8167 SoC

2020-10-20 Thread Fabien Parent
Add binding documentation for the MT8167 SoC Signed-off-by: Fabien Parent --- .../devicetree/bindings/display/mediatek/mediatek,disp.txt| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,disp.txt b

[PATCH 7/8] drm/mediatek: add DDP support for MT8167

2020-10-20 Thread Fabien Parent
Add DDP support for MT8167 SoC. Signed-off-by: Fabien Parent --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 014c1bbe1df2

[PATCH 5/8] drm/mediatek: dsi: add support for mipi26m clk

2020-10-20 Thread Fabien Parent
MT8167 SoC needs an additional clock to be enabled. Add support for the mipi26m clk. Signed-off-by: Fabien Parent --- drivers/gpu/drm/mediatek/mtk_dsi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index

[PATCH 8/8] drm/mediatek: Add support for main DDP path on MT8167

2020-10-20 Thread Fabien Parent
Add the main (DSI) drm display path for MT8167. Signed-off-by: Fabien Parent --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index

[PATCH 4/8] drm/mediatek: dsi: add pdata variable to start clk in HS mode

2020-10-20 Thread Fabien Parent
On MT8167, DSI seems to work fine only if we start the clk in HS mode. If we don't start the clk in HS but try to switch later to HS, the display does not work. This commit adds a platform data variable to be used to start the DSI clk in HS mode at power on. Signed-off-by: Fabien Parent

[PATCH 2/8] dt-bindings: display: mediatek: dsi: add documentation for MT8167 SoC

2020-10-20 Thread Fabien Parent
Add binding documentation for the MT8167 SoC. The SoC needs an additional clock compared to the already supported SoC: mipi26m. Signed-off-by: Fabien Parent --- .../devicetree/bindings/display/mediatek/mediatek,dsi.txt | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 0/8] Add DRM/DSI support for MT8167 SoC.

2020-10-20 Thread Fabien Parent
This series adds support for DSI on the MT8167 SoC. HDMI is not yet supported as secondary display path. mmsys is not supported by this series and will be sent in a seperate series based on [0]. [0] https://patchwork.kernel.org/project/linux-mediatek/list/?series=360447 Fabien Parent (8): dt

[PATCH 2/5] pwm: pwm-mediatek: always use bus clock

2020-10-19 Thread Fabien Parent
the SoC I don't have the datasheet (MT2712, MT7622, MT7623, MT7628, MT7629) I kept the behavior to be the same as before this change. Signed-off-by: Fabien Parent --- drivers/pwm/pwm-mediatek.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm

[PATCH 4/5] arm64: dts: mediatek: mt8183: add pwm node

2020-10-19 Thread Fabien Parent
MT8183 SoC has 4 PWMs. Add the pwm node in order to support them. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi

[PATCH 3/5] pwm: pwm-mediatek: Add MT8183 SoC support

2020-10-19 Thread Fabien Parent
Add PWM support for the MT8183 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 108881619aea..9052b500b8f0 100644 --- a/drivers/pwm/pwm-mediatek.c +++ b

[PATCH 1/5] dt-bindings: pwm: pwm-mediatek: Add documentation for MT8183 SoC

2020-10-19 Thread Fabien Parent
Add binding documentation for the MT8183 SoC. 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/devicetree/bindings/pwm/pwm

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

2020-10-19 Thread Fabien Parent
Enable the pwm driver and set the pinctrl for PWM A line. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-evb.dts b/arch/arm64/boot/dts/mediatek/mt8183-evb.dts

[PATCH 0/5] Add PWM support for MT8183 EVB

2020-10-19 Thread Fabien Parent
This patch series adds PWM to MT8183 EVB. MT8183 has 4 PWM channels. Fabien Parent (5): dt-bindings: pwm: pwm-mediatek: Add documentation for MT8183 SoC pwm: pwm-mediatek: always use bus clock pwm: pwm-mediatek: Add MT8183 SoC support arm64: dts: mediatek: mt8183: add pwm node arm64

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

2020-10-18 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

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

2020-10-18 Thread Fabien Parent
Hi Andy On Sun, Oct 18, 2020 at 8:33 PM Andy Shevchenko wrote: > > On Sun, Oct 18, 2020 at 9:31 PM Andy Shevchenko > wrote: > > > > On Sun, Oct 18, 2020 at 8:16 PM Fabien Parent wrote: > > > > > > dev_comp field is used in a couple of places but it is

[PATCH] arm64: dts: mediatek: mt8183: fix gce incorrect mbox-cells value

2020-10-18 Thread Fabien Parent
e31bc7 ("arm64: dts: add gce node for mt8183") Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 102105871d

[PATCH] dt-bindings: mailbox: mtk-gce: fix incorrect mbox-cells value

2020-10-18 Thread Fabien Parent
As the binding documentation says, #mbox-cells must have a value of 2, but the example use a value 3. The MT8173 device tree correctly use mbox-cells = <2>. This commit fixes the example. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/mailbox/mtk-gce.txt | 2 +-

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

2020-10-18 Thread Fabien Parent
Hi Jonathan, On Sun, Oct 18, 2020 at 12:07 PM Jonathan Cameron wrote: > > On Tue, 13 Oct 2020 17:37:12 +0200 > Matthias Brugger wrote: > > > On 12/10/2020 21:46, Fabien Parent wrote: > > > dev_comp field is used in a couple of places but it is never set. This > &

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

2020-10-18 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 2/2] clocksource: mediatek: add clk13m and bus clock support

2020-10-17 Thread Fabien Parent
Some MediaTek SoC like MT8516 need to enable additional clocks for the GPT timer. Enable them if present. Signed-off-by: Fabien Parent --- drivers/clocksource/timer-mediatek.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/clocksource/timer-mediatek.c b/drivers

[PATCH 1/2] dt-bindings: timer: mtk-timer: add optional 13m and bus clock

2020-10-17 Thread Fabien Parent
The timer IP on MT8516 requires two clocks to be enabled. Add both clocks. Signed-off-by: Fabien Parent --- .../devicetree/bindings/timer/mediatek,mtk-timer.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/timer/mediatek,mtk-timer.txt b

[PATCH] dt-bindings: pwm: mtk-disp: add MT8167 SoC binding

2020-10-16 Thread Fabien Parent
Add binding for MT8167 SoC. The IP is compatible with MT8173. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mtk-disp.txt b/Documentation/devicetree/bindings

[PATCH 1/2] dt-bindings: nvmem: mtk-efuse: add documentation for MT8516 SoC

2020-10-16 Thread Fabien Parent
Add binding documentation for MT8516 SoCs. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/nvmem/mtk-efuse.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/mtk-efuse.txt b/Documentation/devicetree/bindings/nvmem/mtk-efuse.txt

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

2020-10-16 Thread Fabien Parent
Add node to support e-fuses on MT8516 Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts/mediatek/mt8516.dtsi index 89af661e7f63..18ddea519be2 100644

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

2020-10-15 Thread Fabien Parent
Add support the APDMA IP on MT8516. APDMA is a DMA controller for UARTs. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 27 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts

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

2020-10-15 Thread Fabien Parent
Add bindings to APDMA for MT8516 SoC. MT8516 is compatible with MT6577. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt b/Documentation

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

2020-10-14 Thread Fabien Parent
Hi Chun-Kuang, On Wed, Oct 14, 2020 at 6:25 PM Fabien Parent wrote: > > Hi Chun-Kuang, > > On Wed, Oct 14, 2020 at 3:00 PM Chun-Kuang Hu wrote: > > > > Hi, Fabien: > > > > Fabien Parent 於 2020年10月14日 週三 上午2:19寫道: > > > > > > Add

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

2020-10-14 Thread Fabien Parent
Hi Chun-Kuang, On Wed, Oct 14, 2020 at 3:00 PM Chun-Kuang Hu wrote: > > Hi, Fabien: > > Fabien Parent 於 2020年10月14日 週三 上午2:19寫道: > > > > Add support for HDMI on MT8167. HDMI on MT8167 is similar to > > MT8173/MT2701 execpt for the two registers: SYS_CFG1C and SY

[PATCH 1/2] arm64: dts: mediatek: mt8516: rename usb phy

2020-10-14 Thread Fabien Parent
The USB phy node is named usb0_phy but there is only one phy with 2 ports on MT8516. Rename the phy to make it more obvious it can also support the usb1 node. The usb1 node will be added in a follow-up commit. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 2

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

2020-10-14 Thread Fabien Parent
The MT8516 has 2 USB instances. Add support for the second USB instance. usb1 can only work in host mode. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi

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

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

  1   2   3   >