[PATCH 2/2] spi: davinci: enable DMA when channels are defined in DT

2017-02-06 Thread Fabien Parent
are not defined in it. Signed-off-by: Fabien Parent <fpar...@baylibre.com> --- drivers/spi/spi-davinci.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c index cb80c1d3f86a..b73072ae8adb 100644 --- a/drivers/spi/spi-davinci.c +++ b/d

[PATCH 1/2] spi: davinci: Use SPI framework to handle DMA mapping

2017-02-06 Thread Fabien Parent
to handle the DMA mapping of buffers coming from an upper layer. Signed-off-by: Fabien Parent <fpar...@baylibre.com> --- drivers/spi/spi-davinci.c | 78 --- 1 file changed, 46 insertions(+), 32 deletions(-) diff --git a/drivers/spi/spi-davinci.c b/d

[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 <fpar...@baylibre.com> --- arch/arm/boot/dts/da850-evm.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/bo

[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 <fpar...@baylibre.com> --- arch/arm/boot/dts/da850-lcdk.dts | 1 + 1 file chan

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

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

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

[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

[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 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 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] 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 v2 RESEND 1/2] dt-bindings: clock: mediatek: add bindings for MT8167 clocks

2020-10-12 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 RESEND 2/2] clk: mediatek: Add MT8167 clock support

2020-10-12 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 v5 3/3] mfd: mt6397: Add support for MT6392 pmic

2020-10-12 Thread Fabien Parent
On Tue, Sep 8, 2020 at 3:53 PM Lee Jones wrote: > > On Mon, 07 Sep 2020, Fabien Parent wrote: > > > Update the MT6397 MFD driver to support the MT6392 PMIC. > > > > Signed-off-by: Fabien Parent > > --- > > > > V5: > > * Reba

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

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

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

2020-10-12 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 3/3] mfd: mt6397: Add support for MT6392 pmic

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

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

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

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

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

[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

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

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

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

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

[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

[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

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 v3 3/3] iommu/mediatek: add support for MT8167

2020-09-06 Thread Fabien Parent
Add support for the IOMMU on MT8167 Signed-off-by: Fabien Parent --- V3: * use LEGACY_IVRP_PADDR flag instead of using a platform data member V2: * removed if based on m4u_plat, and using instead the new has_legacy_ivrp_paddr member that was introduced in patch 2

[PATCH v3 1/3] dt-bindings: iommu: Add binding for MediaTek MT8167 IOMMU

2020-09-06 Thread Fabien Parent
This commit adds IOMMU binding documentation and larb port definitions for the MT8167 SoC. Signed-off-by: Fabien Parent Acked-by: Rob Herring --- V3: Added mt8167-larb-port.h file for iommu port definitions V2: no change --- .../bindings/iommu/mediatek,iommu.txt | 1 + include/dt

[PATCH v3 2/3] iommu/mediatek: add flag for legacy ivrp paddr

2020-09-06 Thread Fabien Parent
Add a new flag in order to select which IVRP_PADDR format is used by an SoC. Signed-off-by: Fabien Parent --- v3: set LEGACY_IVRP_PADDR as a flag instead of platform data v2: new patch --- drivers/iommu/mtk_iommu.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v3 3/3] iommu/mediatek: add support for MT8167

2020-09-06 Thread Fabien Parent
On Sun, Sep 6, 2020 at 5:19 PM Fabien Parent wrote: > > Add support for the IOMMU on MT8167 > > Signed-off-by: Fabien Parent > --- > > V3: > * use LEGACY_IVRP_PADDR flag instead of using a platform data member Forgot to mention a change here: .larbid_remap has be

[PATCH 2/2] soc: mediatek: add SCPSYS power dmain for MT8167 SoC

2020-09-06 Thread Fabien Parent
Add SCPSYS power domain support for MT8167 SoC. Signed-off-by: Fabien Parent --- drivers/soc/mediatek/mtk-scpsys.c | 99 +++ include/linux/soc/mediatek/infracfg.h | 8 +++ 2 files changed, 107 insertions(+) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers

[PATCH 1/2] dt-bindings: mediatek: add MT8167 power dt-bindings

2020-09-06 Thread Fabien Parent
Add the SCPSYS binding documentation for MediaTek MT8167 SoCs. Signed-off-by: Fabien Parent --- .../devicetree/bindings/soc/mediatek/scpsys.txt| 3 +++ include/dt-bindings/power/mt8167-power.h | 14 ++ 2 files changed, 17 insertions(+) create mode 100644 include/dt

[PATCH 1/2] dt-bindings: mediatek: Add binding for MT8167 SMI

2020-09-06 Thread Fabien Parent
Add device tree bindings documentation for MT8167 SMI. Signed-off-by: Fabien Parent --- .../bindings/memory-controllers/mediatek,smi-common.txt| 3 ++- .../bindings/memory-controllers/mediatek,smi-larb.txt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git

[PATCH 2/2] memory: mtk-smi: add support for MT8167

2020-09-06 Thread Fabien Parent
Add support for the SMI IP on MT8167 Signed-off-by: Fabien Parent --- drivers/memory/mtk-smi.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c index c21262502581..691e4c344cf8 100644 --- a/drivers/memory/mtk-smi.c

Re: [PATCH v3 3/3] iommu/mediatek: add support for MT8167

2020-09-07 Thread Fabien Parent
> > +static const struct mtk_iommu_plat_data mt8167_data = { > > + .m4u_plat = M4U_MT8167, > > + .flags= HAS_4GB_MODE | RESET_AXI | HAS_LEGACY_IVRP_PADDR, > > The 4GB mode flow was improved at[1] which has just been applied. > > If you add 4gb_mode flag but don't have

[PATCH v4 3/3] iommu/mediatek: add support for MT8167

2020-09-07 Thread Fabien Parent
Add support for the IOMMU on MT8167 Signed-off-by: Fabien Parent --- V4; * Removed HAS_4GB_MODE flag since this SoC does not seem to support it V3: * use LEGACY_IVRP_PADDR flag instead of using a platform data member V2: * removed if based on m4u_plat, and using instead

[PATCH v4 2/3] iommu/mediatek: add flag for legacy ivrp paddr

2020-09-07 Thread Fabien Parent
Add a new flag in order to select which IVRP_PADDR format is used by an SoC. Signed-off-by: Fabien Parent Reviewed-by: Yong Wu --- v4: no change v3: set LEGACY_IVRP_PADDR as a flag instead of platform data v2: new patch --- drivers/iommu/mtk_iommu.c | 6 -- 1 file changed, 4 insertions

[PATCH v4 1/3] dt-bindings: iommu: Add binding for MediaTek MT8167 IOMMU

2020-09-07 Thread Fabien Parent
This commit adds IOMMU binding documentation and larb port definitions for the MT8167 SoC. Signed-off-by: Fabien Parent Acked-by: Rob Herring --- V4: * Added path to mt8167 larb header file * Added Honghui Zhang in copyright header V3: Added mt8167-larb-port.h file for iommu

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

2020-09-07 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 --- v5: * rebased * Rename MT6397/MT6392/MT6323 into MT63XX to make it more readable when the list of support PMIC increase * Removed

[PATCH v5 3/3] mfd: mt6397: Add support for MT6392 pmic

2020-09-07 Thread Fabien Parent
Update the MT6397 MFD driver to support the MT6392 PMIC. Signed-off-by: Fabien Parent --- V5: * Rebased * removed mt6392-regulator compatible. This will be send in another series to make this series easier to merge. V4: * Use DEFINE_RES_* macro to define RTC

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

2020-09-07 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 --- V5: * Rebased, removed regulator documentation because it will be send later on in another patch series V4: * No change V3

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

2020-09-07 Thread Fabien Parent
Add the following clock support for MT8167 SoC: topckgen, apmixedsys, infracfg, audsys, imgsys, mfgcfg, mmsys, vdecsys. Signed-off-by: Fabien Parent --- drivers/clk/mediatek/Kconfig | 48 + drivers/clk/mediatek/Makefile|6 + drivers/clk/mediatek/clk-mt8167-aud.c

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

2020-09-07 Thread Fabien Parent
Add binding documentation for topckgen, apmixedsys, infracfg, audsys, imgsys, mfgcfg, mmsys, vdecsys on MT8167 SoC. Signed-off-by: Fabien Parent --- .../arm/mediatek/mediatek,apmixedsys.txt | 1 + .../bindings/arm/mediatek/mediatek,audsys.txt | 1 + .../bindings/arm/mediatek/mediatek

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

2020-09-07 Thread Fabien Parent
Hi Chun-Kuang, > Why don't you add compatible of "mediatek,mt8167-mmsys"? I forgot to remove 'mmsys' from the commit message. I decided to add the documentation as part of the series that add support for MT8167 to drivers/soc/mediatek/mtk-mmsys.c. If you think it would be better to document it

[PATCH 2/2] pinctrl: mediatek: Add MT8167 Pinctrl driver

2020-09-07 Thread Fabien Parent
This commit adds the pinctrl driver for the MediaTek's MT8167 SoC. Signed-off-by: Fabien Parent --- drivers/pinctrl/mediatek/Kconfig |7 + drivers/pinctrl/mediatek/Makefile |1 + drivers/pinctrl/mediatek/pinctrl-mt8167.c | 362 + drivers/pinctrl

[PATCH 1/2] pinctrl: mt65xx: add OF bindings for MT8167

2020-09-07 Thread Fabien Parent
Add binding documentation of pinctrl-mt65xx for MT8167 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

  1   2   3   >