[v3 10/10] MAINTAINERS: update Mediatek Soc entry

2018-04-27 Thread matthias . bgg
From: Matthias Brugger Mediatek SoCs include several soc specific drivers as well as a mfd device. Add these to the maintainers file. Signed-off-by: Matthias Brugger --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS

[v3 01/10] dt-bindings: mediatek: mmsys: Add support for mfd

2018-04-27 Thread matthias . bgg
From: Matthias Brugger Add binding description for the mmsys mfd for some Mediatek devices. mmsys has some registers to control clock gates (which is used in the clk driver) and some registers to set the routing and enable the differnet blocks of the display subsystem.

[v3 07/10] drm/mediatek: Add mfd support for mt8173

2018-04-27 Thread matthias . bgg
From: Matthias Brugger Use the MFD device for SoC mt8173. Probing via devicetree is no longer needed for any SoC, so delete it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_drv.c

[v3 03/10] mfd: mtk-mmsys: Add mmsys driver

2018-04-27 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds a MFD device to probe both drivers from the same device tree compatible. Signed-off-by: Matthias Brugger --- drivers/mfd/Kconfig | 9 ++

[v3 08/10] clk: mediatek: mt8173-mm: switch to mfd device

2018-04-27 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt8173.c | 19

[v3 06/10] mfd: mtk-mmsys: Add mt8173 nodes

2018-04-27 Thread matthias . bgg
From: Matthias Brugger Add devices for the mt8173 SoC. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/mfd/mtk-mmsys.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

[v3 00/10] arm/arm64: mediatek: Fix mmsys device probing

2018-04-27 Thread matthias . bgg
From: Matthias Brugger Changes since v2: - fix kconfig typo (shame on me) - delete __initconst from mm_clocks as converted to a platform driver Changes since v1: - add binding documentation - ddp: use regmap_update_bits - ddp: ignore EPROBE_DEFER on clock probing - mfd:

[v3 05/10] clk: mediatek: mt2701-mm: switch to mfd device

2018-04-27 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt2701-mm.c | 10

[v3 09/10] drm: mediatek: Omit warning on probe defers

2018-04-27 Thread matthias . bgg
From: Matthias Brugger When probe through the MFD, it can happen that the clock drivers wasn't probed before the ddp driver gets invoked. The driver used to omit a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by:

[v3 02/10] drm/mediatek: Use regmap for register access

2018-04-27 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 ++--

[v3 04/10] drm/mediatek: mt2701: switch to mfd probing.

2018-04-27 Thread matthias . bgg
From: Matthias Brugger With the mtk-mmsys MFD device in place, we switch the probing for mt2701 from device-tree to mfd. Signed-off-by: Matthias Brugger --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 +++--- 1 file changed, 23

[PATCH v4--to=ulrich.hecht+rene...@gmail.com 4/5] drm/mediatek: Add support for mmsys through a pdev

2018-07-17 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds an initailization path through a platform device for the clock part, so that both drivers get probed from the same device tree compatible. Signed-off-by: Matthias Brugger ---

[PATCH v4--to=ulrich.hecht+rene...@gmail.com 1/5] drm/mediatek: Use regmap for register access

2018-07-17 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +-- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 38

[PATCH v4--to=ulrich.hecht+rene...@gmail.com 5/5] drm: mediatek: Omit warning on probe defers

2018-07-17 Thread matthias . bgg
From: Matthias Brugger It can happen that the clock drivers wasn't probed before the ddp driver gets invoked. The driver used to omit a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger Acked-by: CK Hu ---

[PATCH v4--to=ulrich.hecht+rene...@gmail.com 2/5] clk: mediatek: mt2701-mmsys: switch to platform device probing

2018-07-17 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt2701-mm.c | 42 1 file changed, 30 insertions(+),

[PATCH v4--to=ulrich.hecht+rene...@gmail.com 3/5] clk: mediatek: mt8173: switch mmsys to platform device probing

2018-07-17 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt8173.c | 51 ++- 1 file changed, 44 insertions(+), 7

arm/arm64: mediatek: Fix mmsys device probing

2018-07-17 Thread matthias . bgg
Changes since v3: - use platform device to probe clock driver - add Acked-by CK Hu for the probe deferred patch Changes since v2: - fix kconfig typo (shame on me) - delete __initconst from mm_clocks as converted to a platform driver Changes since v1: - add binding documentation - ddp: use

[resend PATCH v4 0/5] arm/arm64: mediatek: Fix mmsys device probing

2018-07-17 Thread matthias . bgg
Changes since v3: - use platform device to probe clock driver - add Acked-by CK Hu for the probe deferred patch Changes since v2: - fix kconfig typo (shame on me) - delete __initconst from mm_clocks as converted to a platform driver Changes since v1: - add binding documentation - ddp: use

[resend PATCH v4 1/5] drm/mediatek: Use regmap for register access

2018-07-17 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +-- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 38

[resend PATCH v4 4/5] drm/mediatek: Add support for mmsys through a pdev

2018-07-17 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds an initailization path through a platform device for the clock part, so that both drivers get probed from the same device tree compatible. Signed-off-by: Matthias Brugger ---

[resend PATCH v4 3/5] clk: mediatek: mt8173: switch mmsys to platform device probing

2018-07-17 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt8173.c | 51 ++- 1 file changed, 44 insertions(+), 7

[resend PATCH v4 5/5] drm: mediatek: Omit warning on probe defers

2018-07-17 Thread matthias . bgg
From: Matthias Brugger It can happen that the clock drivers wasn't probed before the ddp driver gets invoked. The driver used to omit a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger Acked-by: CK Hu ---

[resend PATCH v4 2/5] clk: mediatek: mt2701-mmsys: switch to platform device probing

2018-07-17 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt2701-mm.c | 42 1 file changed, 30 insertions(+),

[v2 10/10] MAINTAINERS: update Mediatek Soc entry

2018-04-23 Thread matthias . bgg
From: Matthias Brugger Mediatek SoCs include several soc specific drivers as well as a mfd device. Add these to the maintainers file. Signed-off-by: Matthias Brugger --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS

[v2 07/10] drm/mediatek: Add mfd support for mt8173

2018-04-23 Thread matthias . bgg
From: Matthias Brugger Use the MFD device for SoC mt8173. Probing via devicetree is no longer needed for any SoC, so delete it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_drv.c

[v2 08/10] clk: mediatek: mt8173-mm: switch to mfd device

2018-04-23 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt8173.c | 17

[v2 09/10] drm: mediatek: Omit warning on probe defers

2018-04-23 Thread matthias . bgg
From: Matthias Brugger When probe through the MFD, it can happen that the clock drivers wasn't probed before the ddp driver gets invoked. The driver used to omit a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by:

[v2 00/10] arm/arm64: mediatek: Fix mmsys device probing

2018-04-23 Thread matthias . bgg
From: Matthias Brugger Changes since v1: - add binding documentation - ddp: use regmap_update_bits - ddp: ignore EPROBE_DEFER on clock probing - mfd: delete mmsys_private - add Reviewed-by and Acked-by tags --- MMSYS in Mediatek SoCs has some registers to control clock gates

[v2 03/10] mfd: mtk-mmsys: Add mmsys driver

2018-04-23 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds a MFD device to probe both drivers from the same device tree compatible. Signed-off-by: Matthias Brugger --- drivers/mfd/Kconfig | 9 ++

[v2 04/10] drm/mediatek: mt2701: switch to mfd probing.

2018-04-23 Thread matthias . bgg
From: Matthias Brugger With the mtk-mmsys MFD device in place, we switch the probing for mt2701 from device-tree to mfd. Signed-off-by: Matthias Brugger --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 +++--- 1 file changed, 23

[v2 06/10] mfd: mtk-mmsys: Add mt8173 nodes

2018-04-23 Thread matthias . bgg
From: Matthias Brugger Add devices for the mt8173 SoC. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/mfd/mtk-mmsys.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

[v2 05/10] clk: mediatek: mt2701-mm: switch to mfd device

2018-04-23 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt2701-mm.c | 10

[v2 01/10] dt-bindings: mediatek: mmsys: Add support for mfd

2018-04-23 Thread matthias . bgg
From: Matthias Brugger Add binding description for the mmsys mfd for some Mediatek devices. mmsys has some registers to control clock gates (which is used in the clk driver) and some registers to set the routing and enable the differnet blocks of the display subsystem.

[v2 02/10] drm/mediatek: Use regmap for register access

2018-04-23 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 ++--

[v2 resend 10/10] MAINTAINERS: update Mediatek Soc entry

2018-04-24 Thread matthias . bgg
From: Matthias Brugger Mediatek SoCs include several soc specific drivers as well as a mfd device. Add these to the maintainers file. Signed-off-by: Matthias Brugger --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS

[v2 resend 09/10] drm: mediatek: Omit warning on probe defers

2018-04-24 Thread matthias . bgg
From: Matthias Brugger When probe through the MFD, it can happen that the clock drivers wasn't probed before the ddp driver gets invoked. The driver used to omit a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by:

[v2 resend 08/10] clk: mediatek: mt8173-mm: switch to mfd device

2018-04-24 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt8173.c | 17

[v2 resend 05/10] clk: mediatek: mt2701-mm: switch to mfd device

2018-04-24 Thread matthias . bgg
From: Matthias Brugger As the new mfd device is in place, switch probing for the MMSYS to support invocation from the mfd device. Signed-off-by: Matthias Brugger Acked-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt2701-mm.c | 10

[v2 resend 06/10] mfd: mtk-mmsys: Add mt8173 nodes

2018-04-24 Thread matthias . bgg
From: Matthias Brugger Add devices for the mt8173 SoC. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/mfd/mtk-mmsys.c | 14 ++ 1 file changed, 14 insertions(+) diff --git

[v2 resend 00/10] arm/arm64: mediatek: Fix mmsys device probing

2018-04-24 Thread matthias . bgg
From: Matthias Brugger Changes since v1: - add binding documentation - ddp: use regmap_update_bits - ddp: ignore EPROBE_DEFER on clock probing - mfd: delete mmsys_private - add Reviewed-by and Acked-by tags --- MMSYS in Mediatek SoCs has some registers to control clock gates

[v2 resend 04/10] drm/mediatek: mt2701: switch to mfd probing.

2018-04-24 Thread matthias . bgg
From: Matthias Brugger With the mtk-mmsys MFD device in place, we switch the probing for mt2701 from device-tree to mfd. Signed-off-by: Matthias Brugger --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 +++--- 1 file changed, 23

[v2 resend 02/10] drm/mediatek: Use regmap for register access

2018-04-24 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 ++--

[v2 resend 01/10] dt-bindings: mediatek: mmsys: Add support for mfd

2018-04-24 Thread matthias . bgg
From: Matthias Brugger Add binding description for the mmsys mfd for some Mediatek devices. mmsys has some registers to control clock gates (which is used in the clk driver) and some registers to set the routing and enable the differnet blocks of the display subsystem.

[v2 resend 03/10] mfd: mtk-mmsys: Add mmsys driver

2018-04-24 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds a MFD device to probe both drivers from the same device tree compatible. Signed-off-by: Matthias Brugger --- drivers/mfd/Kconfig | 9 ++

[v2 resend 07/10] drm/mediatek: Add mfd support for mt8173

2018-04-24 Thread matthias . bgg
From: Matthias Brugger Use the MFD device for SoC mt8173. Probing via devicetree is no longer needed for any SoC, so delete it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_drv.c

[PATCH v5 07/12] dt-bindings: clock: mediatek: delete mmsys clocks

2018-11-16 Thread matthias . bgg
From: Matthias Brugger Some SoCs will now load the clock part of mmsys via a platform device from the dsiplay driver. Remove the compatible from the clock bindings description. Signed-off-by: Matthias Brugger --- .../devicetree/bindings/arm/mediatek/mediatek,mmsys.txt| 3 --- 1 file

[PATCH v5 12/12] clk: mediatek: mt6797: Probe with new compatible

2018-11-16 Thread matthias . bgg
From: Matthias Brugger The clock node is now a child of the mmsys node. Update the driver to support this and thenew compatible in the driver. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6797-mm.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH v5 10/12] arm64: dts: mt6797: Use the new mmsys clock compatible

2018-11-16 Thread matthias . bgg
From: Matthias Brugger Move the clock part of mmsys in a child node. Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt6797.dtsi | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt6797.dtsi

[PATCH v5 00/12] arm/arm64: mediatek: Fix mmsys device probing

2018-11-16 Thread matthias . bgg
From: Matthias Brugger This is version four of the series. The biggest change are the last four patches which introduce how this should be handled in the future. Instead of creating the platform device in the DRM driver the device tree has in the mmsys memory range a child node to probe the

[PATCH v5 02/12] clk: mediatek: mt2701-mmsys: switch to platform device probing

2018-11-16 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt2701-mm.c | 42 1 file changed, 30 insertions(+),

[PATCH v5 01/12] drm/mediatek: Use regmap for register access

2018-11-16 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 50

[PATCH v5 09/12] arm64: dts: mt2712e: Use the new mmsys clock compatible

2018-11-16 Thread matthias . bgg
From: Matthias Brugger Move the clock part of the mmsys in a child node. Signed-off-by: Matthias Brugger --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi

[PATCH v5 08/12] dt-bindings: mediatek: Change the binding for mmsys clocks

2018-11-16 Thread matthias . bgg
From: Matthias Brugger On SoCs with no publical available HW or no working graphic stack we change the devicetree binding for the mmsys clock part. This way we don't need to register a platform device explicitly in the drm driver. Instead we can create a mmsys child which invokes the clock

[PATCH v5 11/12] clk: mediatek: mt2712e: Probe with new compatible

2018-11-16 Thread matthias . bgg
From: Matthias Brugger The clock node is now a child of the mmsys node. Update the driver to support this and thenew compatible in the driver. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt2712-mm.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH v5 06/12] drm/mediatek: update dt-bindings

2018-11-16 Thread matthias . bgg
From: Matthias Brugger Add mmsys bindings description. Signed-off-by: Matthias Brugger --- .../display/mediatek/mediatek,disp.txt| 30 +++ 1 file changed, 17 insertions(+), 13 deletions(-) diff --git

[PATCH v5 05/12] drm: mediatek: Omit warning on probe defers

2018-11-16 Thread matthias . bgg
From: Matthias Brugger It can happen that the mmsys clock drivers aren't probed before the platform driver gets invoked. The platform driver used to print a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger ---

[PATCH v5 03/12] clk: mediatek: mt8173: switch mmsys to platform device probing

2018-11-16 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt8173.c | 51 ++- 1 file changed, 44 insertions(+), 7

[PATCH v5 04/12] drm/mediatek: Add support for mmsys through a pdev

2018-11-16 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds an initailization path through a platform device for the clock part, so that both drivers get probed from the same device tree compatible. Signed-off-by: Matthias Brugger ---

[PATCH v6 03/12] drm/mediatek: Use regmap for register access

2019-12-07 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 50

[PATCH v6 06/12] clk: mediatek: mt2701: switch mmsys to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt2701-mm.c | 41 1 file changed, 29 insertions(+),

[PATCH v6 08/12] clk: mediatek: mt6779: switch mmsys to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Singed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6779-mm.c | 41 +++- 1 file changed, 28 insertions(+),

[PATCH v6 09/12] clk: mediatek: mt6797: switch to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6797-mm.c | 43 +++- 1 file changed, 29 insertions(+),

[PATCH v6 05/12] media: mtk-mdp: Check return value of of_clk_get

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Check the return value of of_clk_get and print an error message if not EPROBE_DEFER. Signed-off-by: Matthias Brugger --- drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_comp.c

[PATCH v6 00/12] arm/arm64: mediatek: Fix mmsys device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger This is version five of the series. It's a long time this wasn't worked on, so as a reminder, version four can be found here: https://patchwork.kernel.org/cover/10686247/ The biggest changes this new version does, is to implement the clock probing through a platform

[PATCH v6 02/12] dt-bindings: mediatek: Add compatible for mt7623

2019-12-07 Thread matthias . bgg
From: Matthias Brugger MediaTek mt7623 uses the mt2701 binings as fallback. Document this in the binding description. Signed-off-by: Matthias Brugger --- .../devicetree/bindings/display/mediatek/mediatek,disp.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v6 01/12] dt-bindings: display: mediatek: Add mmsys binding description

2019-12-07 Thread matthias . bgg
From: Matthias Brugger The MediaTek DRM has a block called mmsys, which sets the routing and enalbes the different blocks. This patch adds one line for the mmsys bindings description. Signed-off-by: Matthias Brugger --- .../display/mediatek/mediatek,disp.txt| 28 ++- 1

[PATCH v6 11/12] clk: mediatek: mt8173: switch mmsys to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt8173.c | 51 ++- 1 file changed, 44 insertions(+), 7

[PATCH v6 12/12] drm/mediatek: Add support for mmsys through a pdev

2019-12-07 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds an initailization path through a platform device for the clock part, so that both drivers get probed from the same device tree compatible. Signed-off-by: Matthias Brugger ---

[PATCH v6 10/12] clk: mediatek: mt8183: switch mmsys to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Singed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt8183-mm.c | 39 +++- 1 file changed, 27 insertions(+),

[PATCH v6 04/12] drm: mediatek: Omit warning on probe defers

2019-12-07 Thread matthias . bgg
From: Matthias Brugger It can happen that the mmsys clock drivers aren't probed before the platform driver gets invoked. The platform driver used to print a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger ---

[PATCH v6 07/12] clk: mediatek: mt2712e: switch to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt2712-mm.c | 39 +++- 1 file changed, 27 insertions(+),

[resend PATCH v6 05/12] media: mtk-mdp: Check return value of of_clk_get

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Check the return value of of_clk_get and print an error message if not EPROBE_DEFER. Signed-off-by: Matthias Brugger --- drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_comp.c

[resend PATCH v6 02/12] dt-bindings: mediatek: Add compatible for mt7623

2019-12-07 Thread matthias . bgg
From: Matthias Brugger MediaTek mt7623 uses the mt2701 binings as fallback. Document this in the binding description. Signed-off-by: Matthias Brugger --- .../devicetree/bindings/display/mediatek/mediatek,disp.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

[resend PATCH v6 04/12] drm: mediatek: Omit warning on probe defers

2019-12-07 Thread matthias . bgg
From: Matthias Brugger It can happen that the mmsys clock drivers aren't probed before the platform driver gets invoked. The platform driver used to print a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger ---

[resend PATCH v6 06/12] clk: mediatek: mt2701: switch mmsys to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt2701-mm.c | 41 1 file changed, 29 insertions(+),

[resend PATCH v6 00/12] arm/arm64: mediatek: Fix mmsys device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger [reseding due to wrong mail of Stephen] This is version five of the series. It's a long time this wasn't worked on, so as a reminder, version four can be found here: https://patchwork.kernel.org/cover/10686247/ The biggest changes this new version does, is to implement

[resend PATCH v6 01/12] dt-bindings: display: mediatek: Add mmsys binding description

2019-12-07 Thread matthias . bgg
From: Matthias Brugger The MediaTek DRM has a block called mmsys, which sets the routing and enalbes the different blocks. This patch adds one line for the mmsys bindings description. Signed-off-by: Matthias Brugger --- .../display/mediatek/mediatek,disp.txt| 28 ++- 1

[resend PATCH v6 12/12] drm/mediatek: Add support for mmsys through a pdev

2019-12-07 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds an initailization path through a platform device for the clock part, so that both drivers get probed from the same device tree compatible. Signed-off-by: Matthias Brugger ---

[resend PATCH v6 10/12] clk: mediatek: mt8183: switch mmsys to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Singed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt8183-mm.c | 39 +++- 1 file changed, 27 insertions(+),

[resend PATCH v6 07/12] clk: mediatek: mt2712e: switch to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt2712-mm.c | 39 +++- 1 file changed, 27 insertions(+),

[resend PATCH v6 09/12] clk: mediatek: mt6797: switch to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6797-mm.c | 43 +++- 1 file changed, 29 insertions(+),

[resend PATCH v6 08/12] clk: mediatek: mt6779: switch mmsys to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Singed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6779-mm.c | 41 +++- 1 file changed, 28 insertions(+),

[resend PATCH v6 11/12] clk: mediatek: mt8173: switch mmsys to platform device probing

2019-12-07 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt8173.c | 51 ++- 1 file changed, 44 insertions(+), 7

[resend PATCH v6 03/12] drm/mediatek: Use regmap for register access

2019-12-07 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 50

[PATCH v7 12/13] clk: mediatek: mt8173: switch mmsys to platform device probing

2020-02-13 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- Changes in v7: - add blank line after declaration - free clk_data->clks as well - get rid of private data

[PATCH v7 03/13] dt-bindings: mediatek: Add compatible for mt7623

2020-02-13 Thread matthias . bgg
From: Matthias Brugger MediaTek mt7623 uses the mt2701 bindings as fallback. Document this in the binding description. Signed-off-by: Matthias Brugger Acked-by: Rob Herring --- Changes in v7: - fix typo in commit message - add Rob's ack Changes in v6: None Changes in v5: None Changes in

[PATCH v7 08/13] clk: mediatek: mt2712e: switch to platform device probing

2020-02-13 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- Changes in v7: - free clk_data->clks as well - get rid of private data structure Changes in v6: None

[PATCH v7 11/13] clk: mediatek: mt8183: switch mmsys to platform device probing

2020-02-13 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- Changes in v7: - free clk_data->clks as well - get rid of private data structure Changes in v6: None

[PATCH v7 07/13] clk: mediatek: mt2701: switch mmsys to platform device probing

2020-02-13 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- Changes in v7: - free clk_data->clks as well - get rid of private data structure Changes in v6: None

[PATCH v7 09/13] clk: mediatek: mt6779: switch mmsys to platform device probing

2020-02-13 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- Changes in v7: - free clk_data->clks as well - get rid of private data structure Changes in v6: None

[PATCH v7 10/13] clk: mediatek: mt6797: switch to platform device probing

2020-02-13 Thread matthias . bgg
From: Matthias Brugger Switch probing for the MMSYS to support invocation to a plain paltform device. The driver will be probed by the DRM subsystem. Signed-off-by: Matthias Brugger --- Changes in v7: - free clk_data->clks as well - get rid of private data structure Changes in v6: None

[PATCH v7 05/13] drm: mediatek: Omit warning on probe defers

2020-02-13 Thread matthias . bgg
From: Matthias Brugger It can happen that the mmsys clock drivers aren't probed before the platform driver gets invoked. The platform driver used to print a warning that the driver failed to get the clocks. Omit this error on the defered probe path. Signed-off-by: Matthias Brugger Reviewed-by:

[PATCH v7 13/13] drm/mediatek: Add support for mmsys through a pdev

2020-02-13 Thread matthias . bgg
From: Matthias Brugger The MMSYS subsystem includes clocks and drm components. This patch adds an initailization path through a platform device for the clock part, so that both drivers get probed from the same device tree compatible. Signed-off-by: Matthias Brugger Reviewed-by: Enric Balletbo

[PATCH v7 06/13] media: mtk-mdp: Check return value of of_clk_get

2020-02-13 Thread matthias . bgg
From: Matthias Brugger Check the return value of of_clk_get and print an error message if not EPROBE_DEFER. Signed-off-by: Matthias Brugger --- Changes in v7: - fix check of return value of of_clk_get - fix identation Changes in v6: None Changes in v5: None Changes in v4: None Changes in

[PATCH v7 02/13] dt-bindings: display: mediatek: Add mmsys binding description

2020-02-13 Thread matthias . bgg
From: Matthias Brugger The MediaTek DRM has a block called mmsys, which sets the routing and enables the different blocks. This patch adds one line for the mmsys bindings description and changes the mmsys description to use the generic form of referring to a specific Soc. Signed-off-by:

[PATCH v7 00/13] arm/arm64: mediatek: Fix mmsys device probing

2020-02-13 Thread matthias . bgg
From: Matthias Brugger This is version seven of the series. The biggest change is, that I added a first patch that actually moves the mmsys binding from arm/mediatek to display/mediatek, as in effect the mmsys is part of the display subsystem. Since version five, the clock probing is

[PATCH v7 01/13] dt-bindings: arm: move mmsys description to display

2020-02-13 Thread matthias . bgg
From: Matthias Brugger The mmsys block provides registers and clocks for the display subsystem. The binding description should therefore live together with the rest of the display descriptions. Move it to display/mediatek. Signed-off-by: Matthias Brugger --- Changes in v7: - move the binding

[PATCH v7 04/13] drm/mediatek: Use regmap for register access

2020-02-13 Thread matthias . bgg
From: Matthias Brugger The mmsys memory space is shared between the drm and the clk driver. Use regmap to access it. Signed-off-by: Matthias Brugger Reviewed-by: Philipp Zabel Reviewed-by: CK Hu --- Changes in v7: - add R-by from CK Changes in v6: None Changes in v5: None Changes in v4:

[PATCH] drm/mediatek: Delete not used of_device_get_match_data

2020-05-18 Thread matthias . bgg
From: Matthias Brugger The driver will be loaded by via a platform device. So we will need to get the device_node from the parent device. Depending on this we will set the driver data. As all this is done later already, just delete the call to of_device_get_match_data. Signed-off-by: Matthias