mples/rust/rust_driver_platform.rs | 49 +++
> 26 files changed, 2140 insertions(+)
> create mode 100644 rust/helpers/device.c
> create mode 100644 rust/helpers/io.c
> create mode 100644 rust/helpers/pci.c
> create mode 100644 rust/helpers/platform.c
> create mode 100644 rust/helpers/rcu.c
> create mode 100644 rust/kernel/device_id.rs
> create mode 100644 rust/kernel/devres.rs
> create mode 100644 rust/kernel/driver.rs
> create mode 100644 rust/kernel/io.rs
> create mode 100644 rust/kernel/of.rs
> create mode 100644 rust/kernel/pci.rs
> create mode 100644 rust/kernel/platform.rs
> create mode 100644 rust/kernel/revocable.rs
> create mode 100644 rust/kernel/sync/rcu.rs
> create mode 100644 samples/rust/rust_driver_pci.rs
> create mode 100644 samples/rust/rust_driver_platform.rs
>
>
> base-commit: fac04efc5c793dccbd07e2d59af9f90b7fc0dca4
> --
> 2.47.1
>
Tested on arm64 as dependency for my own series:
https://lkml.org/lkml/2024/12/18/1358
Tested-by: 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
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-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 --
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
>
> Signe
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.
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",
> > > >
.
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
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
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
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
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
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
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
> > ---
> >
> >
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
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"
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
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
> - ret = mtk_infracfg_set_bus_protection(pd->infracfg,
> - bpd[i].bus_prot_mask,
> -
> bpd[i].bus_prot_reg_update);
[snip]
> - ret = mtk_infracfg_clear_bus_protect
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:
>
&
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.
> >
> >
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
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
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'
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
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
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
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/gp
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
: 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
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
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 switc
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 SoC:
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 a
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
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
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
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
--- a
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
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
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
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
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 P
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
a
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
l 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/d
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
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
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
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
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
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
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
ls.
Fixes: d3c306e31bc7 ("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.dts
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 +-
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
> &
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
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
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
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
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
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
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
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
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 su
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
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
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
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
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 ++-
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 |
1 - 100 of 223 matches
Mail list logo