[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 --- 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/drivers/spi/spi-davinci.c

[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 --- drivers/spi/spi-davinci.c | 78 --- 1 file changed, 46 insertions(+), 32 deletions(-) diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c index

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

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

[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

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

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

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

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

<    1   2   3