Re: [PATCH 00/38] MediaTek devicetree/bindings warnings sanitization

2025-07-28 Thread AngeloGioacchino Del Regno
Il 25/07/25 15:52, Rob Herring ha scritto: On Thu, Jul 24, 2025 at 3:39 AM AngeloGioacchino Del Regno wrote: As Rob pointed out, MediaTek devicetrees are *poor* in the dtbs_check tests, and got an infinite load of warnings. This series starts attacking this situation. I didn't really

[PATCH 26/38] arm64: dts: mediatek: acelink-ew-7886cax: Remove unnecessary cells in spi-nand

2025-07-24 Thread AngeloGioacchino Del Regno
ned-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts b/arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts index 08b3b0827436..30

[PATCH 37/38] arm64: dts: mediatek: mt8395-kontron-i1200: Fix MT6360 regulator nodes

2025-07-24 Thread AngeloGioacchino Del Regno
"-SBC-i1200") Signed-off-by: AngeloGioacchino Del Regno --- .../mediatek/mt8395-kontron-3-5-sbc-i1200.dts| 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dts b/arch/arm64/boot/dts/mediatek/m

[PATCH 36/38] arm64: dts: mediatek: mt8195-cherry: Add missing regulators to rt5682

2025-07-24 Thread AngeloGioacchino Del Regno
Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi index d40f4c1b9766..b3761b80cac7 100644 --- a/

[PATCH 38/38] arm64: dts: mediatek: mt8516-pumpkin: Fix machine compatible

2025-07-24 Thread AngeloGioacchino Del Regno
This devicetree contained only the SoC compatible but lacked the machine specific one: add a "mediatek,mt8516-pumpkin" compatible to the list to fix dtbs_check warnings. Fixes: 9983822c8cf9 ("arm64: dts: mediatek: add pumpkin board dts") Signed-off-by: AngeloGioacchino Del Reg

[PATCH 34/38] arm64: dts: mediatek: mt8195: Fix ranges for jpeg enc/decoder nodes

2025-07-24 Thread AngeloGioacchino Del Regno
ot;jpeg-encoder@1a03" respectively, and change their children to use the newly defined ranges. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 30 +--- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/arch/arm

[PATCH 30/38] arm64: dts: mediatek: pumpkin-common: Fix pinctrl node names

2025-07-24 Thread AngeloGioacchino Del Regno
Fix the pinctrl node names to adhere to the bindings, as the main pin node is supposed to be named like "uart0-pins" and the pinmux node named like "pins-bus". Signed-off-by: AngeloGioacchino Del Regno --- .../boot/dts/mediatek/pumpkin-common.dtsi | 18 +-

[PATCH 35/38] arm64: dts: mediatek: mt8195-cherry: Move VBAT-supply to Tomato R1/R2

2025-07-24 Thread AngeloGioacchino Del Regno
Move the VBAT supply to mt8195-cherry-tomato-{r1,r2} as this power supply is named like that only for the Realtek RT5682i codec. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r1.dts | 1 + arch/arm64/boot/dts/mediatek/mt8195-cherry-tomato-r2

[PATCH 32/38] arm64: dts: mediatek: mt8183: Migrate to display controller OF graph

2025-07-24 Thread AngeloGioacchino Del Regno
to hook the display controller of the SoC to their specific output port(s). Signed-off-by: AngeloGioacchino Del Regno --- .../boot/dts/mediatek/mt8183-pumpkin.dts | 8 +- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 239 +- 2 files changed, 238 insertions(+), 9 deletions

[PATCH 33/38] arm64: dts: mediatek: mt8183-kukui: Move DSI panel node to machine dtsis

2025-07-24 Thread AngeloGioacchino Del Regno
readability, move the entire panel node declaration to each of the relevant Kukui machine dtsi: even though this introduces some duplication, the advantages in readability surclass that. Signed-off-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt8183-kukui-jacuzzi.dtsi| 5 .../dts

[PATCH 31/38] arm64: dts: mediatek: mt8183-pumpkin: Add power supply for CCI

2025-07-24 Thread AngeloGioacchino Del Regno
Add a power supply for the Cache Coherent Interconnect node as it is required to perform CPU DVFS because both are scaling together. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8183-pumpkin.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64

[PATCH 29/38] arm64: dts: mediatek: mt8183: Fix pinctrl node names

2025-07-24 Thread AngeloGioacchino Del Regno
Fix the pinctrl node names to adhere to the bindings, as the main pin node is supposed to be named like "uart0-pins" and the pinmux node named like "pins-bus". Signed-off-by: AngeloGioacchino Del Regno --- .../mediatek/mt8183-kukui-audio-da7219.dtsi | 4 +- .../mediate

[PATCH 27/38] arm64: dts: mediatek: mt7988a: Fix PCI-Express T-PHY node address

2025-07-24 Thread AngeloGioacchino Del Regno
range of t-phy. Fixes: ("f693e6ba55ae arm64: dts: mediatek: mt7988: Add t-phy for ssusb1") Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7988a.dtsi | 28 +++ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/arm6

[PATCH 28/38] arm64: dts: mediatek: mt8173: Fix pinctrl node names and cleanup

2025-07-24 Thread AngeloGioacchino Del Regno
Fix the pinctrl node names to adhere to the bindings, as the main pin node is supposed to be named like "uart0-pins" and the pinmux node named like "pins-bus". While at it, also cleanup all of the MTK_DRIVE_(x)mA by changing that to just the (x) number. Signed-off-by: Angelo

[PATCH 20/38] arm64: dts: mediatek: mt6795-xperia-m5: Fix mmc0 latch-ck value

2025-07-24 Thread AngeloGioacchino Del Regno
slot, SDIO") Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5

[PATCH 21/38] arm64: dts: mediatek: mt6795-sony-xperia-m5: Add pinctrl for mmc1/mmc2

2025-07-24 Thread AngeloGioacchino Del Regno
: AngeloGioacchino Del Regno --- .../dts/mediatek/mt6795-sony-xperia-m5.dts| 38 +++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts index 03cc48321a3f..fccb948cfa45 100644 --- a

[PATCH 24/38] arm64: dts: mediatek: mt7986a-bpi-r3: Fix SFP I2C node names

2025-07-24 Thread AngeloGioacchino Del Regno
The binding wants the node to be named "i2c-number", alternatively "i2c@address", but those are named "i2c-gpio-number" instead. Rename those to i2c-0, i2c-1 to adhere to the binding and suppress dtbs_check warnings. Signed-off-by: AngeloGioacchino Del Regno ---

[PATCH 25/38] arm64: dts: mediatek: mt7986a-bpi-r3: Set interrupt-parent to mdio switch

2025-07-24 Thread AngeloGioacchino Del Regno
check warning. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r

[PATCH 23/38] arm64: dts: mediatek: mt7986a: Fix PCI-Express T-PHY node address

2025-07-24 Thread AngeloGioacchino Del Regno
-phy. Fixes: 963c3b0c47ec ("arm64: dts: mediatek: fix t-phy unit name") Fixes: 918aed7abd2d ("arm64: dts: mt7986: add pcie related device nodes") Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 12 ++-- 1 file changed, 6 insert

[PATCH 22/38] arm64: dts: mediatek: Fix node name for SYSIRQ controller on all SoCs

2025-07-24 Thread AngeloGioacchino Del Regno
The sysirq has "intpol-controller" as node name, but being this an interrupt controller, it needs to be named "interrupt-controller" as per what the bindings (correctly) expect. This commit brings no functional changes, but fixes a dtbs_check warning. Signed-off-by: Angelo

[PATCH 17/38] arm64: dts: mediatek: mt6797: Fix pinctrl node names

2025-07-24 Thread AngeloGioacchino Del Regno
Change the pinctrl node names to adhere to the binding: the main nodes are now named like "uart0-pins" and the children "pins-bus". Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6797.dtsi | 40 1 file changed,

[PATCH 19/38] arm64: dts: mediatek: mt6795: Add mediatek, infracfg to iommu node

2025-07-24 Thread AngeloGioacchino Del Regno
The "M4U" IOMMU requires a handle to the infracfg to switch to the 4gb/pae addressing mode: add it. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt6795.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795.dtsi b/

[PATCH 18/38] arm64: dts: mediatek: mt6797: Remove bogus id property in i2c nodes

2025-07-24 Thread AngeloGioacchino Del Regno
All of the I2C nodes in this devicetree has a bogus "id" property, which was probably specifying the I2C bus number. This property was never parsed and never used - and besides, it also gives dtbs_check warnings: remove it from all i2c nodes. Signed-off-by: AngeloGioacchino Del Regno

[PATCH 16/38] arm64: dts: mediatek: mt6331: Fix pmic, regulators, rtc, keys node names

2025-07-24 Thread AngeloGioacchino Del Regno
The node names for "pmic", "regulators", "rtc", and "keys" are dictated by the PMIC MFD binding: change those to adhere to it. Fixes: aef783f3e0ca ("arm64: dts: mediatek: Add MT6331 PMIC devicetree") Signed-off-by: AngeloGioacchino Del Regno

[PATCH 14/38] dt-bindings: media: mediatek, mt8195-jpeg: Allow range number in node address

2025-07-24 Thread AngeloGioacchino Del Regno
jpegenc bindings to allow specifying children nodes such as "jpegdec@0,1", "jpegdec@1,0" or for encoder "jpegenc@0,0", "jpegenc@1,0" to resolve dtbs_check issues. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/media/mediatek,mt8195-

[PATCH 13/38] dt-bindings: remoteproc: mediatek: Remove l1tcm MMIO from MT8188 dual

2025-07-24 Thread AngeloGioacchino Del Regno
split the mt8195/8188 conditionals to allow specifying only the cfg MMIO on MT8188. Fixes: 91e0d560b9fd ("dt-bindings: remoteproc: mediatek: Support MT8188 dual-core SCP") Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/remoteproc/mtk,scp.yaml | 23 ---

[PATCH 15/38] dt-bindings: phy: mediatek, hdmi-phy: Fix clock output names for MT8195

2025-07-24 Thread AngeloGioacchino Del Regno
clock output name on all of the HDMI PHY IPs that are perfectly compatible with MT8195. Fixes: c78fe548b062 ("dt-bindings: phy: mediatek: hdmi-phy: Add mt8195 compatible") Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/phy/mediatek,hdmi-phy.yaml | 25 +

[PATCH 11/38] dt-bindings: regulator: mediatek, mt6331: Fix various regulator names

2025-07-24 Thread AngeloGioacchino Del Regno
t;) Signed-off-by: AngeloGioacchino Del Regno --- .../regulator/mediatek,mt6331-regulator.yaml | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/regulator/mediatek,mt6331-regulator.yaml b/Documentation/devicetree/bindings

[PATCH 12/38] dt-bindings: regulator: mediatek, mt6331: Add missing compatible

2025-07-24 Thread AngeloGioacchino Del Regno
This binding had no compatible and for this reason would not be applied to anything: add the missing "mediatek,mt6331-regulator" comaptible. Fixes: 6385e21692bb ("regulator: Add bindings for MT6331 regulator") Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/regul

[PATCH 10/38] dt-bindings: regulator: mediatek, mt6332-regulator: Add missing compatible

2025-07-24 Thread AngeloGioacchino Del Regno
This binding had no compatible and for this reason would not be applied to anything: add the missing "mediatek,mt6332-regulator" compatible. Fixes: e22943e32e1f regulator: ("Add bindings for MT6332 regulator") Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/regul

[PATCH 09/38] dt-bindings: pinctrl: mt6779: Allow common MediaTek pinctrl node names

2025-07-24 Thread AngeloGioacchino Del Regno
Allow node names like "uart0-pins" for the main nodes and "pins-bus" for the children to make this binding consistent with the majority of the other MediaTek pinctrl bindings. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/pinctrl/mediatek,mt67

[PATCH 08/38] dt-bindings: pinctrl: mediatek, mt7622-pinctrl: Add missing base reg

2025-07-24 Thread AngeloGioacchino Del Regno
crement maxItems for reg to two. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml b/Documentat

[PATCH 05/38] dt-bindings: crypto: inside-secure, safexcel: Mandate only ring IRQs

2025-07-24 Thread AngeloGioacchino Del Regno
ek MT7968A and MT7986B SoCs do not have those two interrupts hooked up to their irq controlller. For this reason, make the EIP and MEM interrupt optional. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/crypto/inside-secure,safexcel.yaml | 2 ++ 1 file changed, 2

[PATCH 06/38] dt-bindings: timer: mediatek: Add compatible for MT6795 GP Timer

2025-07-24 Thread AngeloGioacchino Del Regno
Add a compatible for the General Purpose Timer (GPT) found on the MediaTek Helio X10 MT6795 SoC which is fully compatible with the one found in MT6577. Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/timer/mediatek,timer.yaml | 1 + 1 file changed, 1 insertion

[PATCH 07/38] dt-bindings: pinctrl: mediatek, mt7622-pinctrl: Add missing pwm_ch7_2

2025-07-24 Thread AngeloGioacchino Del Regno
The MT7622 SoC has a PWM channel 7-2 group for the pwm7 IP: add the missing pwm_ch7_2 group. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/pinctrl/mediatek,mt7622-pinctrl.yaml| 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation

[PATCH 03/38] dt-bindings: mailbox: mediatek, gce-mailbox: Make clock-names optional

2025-07-24 Thread AngeloGioacchino Del Regno
The GCE Mailbox needs only one clock and the clock-names can be used only by the driver (which, for instance, does not use it), and this is true for all of the currently supported MediaTek SoCs. Stop requiring to specify clock-names on all non-MT8195 GCEs. Signed-off-by: AngeloGioacchino Del

[PATCH 04/38] ASoC: dt-bindings: mt8192-afe-pcm: Fix clocks and clock-names

2025-07-24 Thread AngeloGioacchino Del Regno
Both clocks and clock-names are missing (a lot of) entries: add all the used audio clocks and their description and also fix the example node. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/sound/mt8192-afe-pcm.yaml| 106 +- 1 file changed, 104 insertions

[PATCH 02/38] dt-bindings: display: mediatek, dp: Allow DisplayPort AUX bus

2025-07-24 Thread AngeloGioacchino Del Regno
Like others, the MediaTek DisplayPort controller provides an auxiliary bus: import the common dp-aux-bus.yaml in this binding to allow specifying an aux-bus subnode. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek,dp.yaml | 3 +++ 1 file

[PATCH 01/38] dt-bindings: display: mediatek: dpi: Allow specifying resets

2025-07-24 Thread AngeloGioacchino Del Regno
and reset-names on all MediaTek SoCs. Those properties are optional because there are multiple ways to reset this IP and the reset lines in MM/VDO are used only if the IP cannot perform warm-reset. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/display/mediatek/mediatek

[PATCH 00/38] MediaTek devicetree/bindings warnings sanitization

2025-07-24 Thread AngeloGioacchino Del Regno
n any case. More will come, but I'll be on a long holiday soon, so not from me (or anyway not before I come back anyway), but most probably from someone else (in August...!). Cheers! Angelo AngeloGioacchino Del Regno (38): dt-bindings: display: mediatek: dpi: Allow specifying resets dt-bi

Re: [PATCH] drm/mediatek: dsi: Fix DSI host and panel bridge pre-enable order

2025-07-01 Thread AngeloGioacchino Del Regno
d post-disable") Signed-off-by: Louis-Alexis Eyraud Reviewed-by: AngeloGioacchino Del Regno --- This patch fixes an issue that can be observed on boards such as MediatekGenio 1200-EVK or 350-EVK with a kernel based on linux-next (tag: next-20250635) since commit c9b1150a68d9 ("drm/atomi

Re: [PATCH] drm/mediatek: mtk_dpi: Reorder output formats on MT8195/88

2025-06-11 Thread AngeloGioacchino Del Regno
hich I was thinking that was already properly implemented for MediaTek drivers. Apparently it's not true for *all* of them... but then, just keeping things ordered by preference is a simpler solution and probably the best one for now. Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH] drm/mediatek: Add wait_event_timeout when disabling plane

2025-05-22 Thread AngeloGioacchino Del Regno
has been added to wait for the ddp_cmdq_cb() callback,indicating that the GCE IRQ has been triggered. Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.") Signed-off-by: Jason-JH Lin Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH v4] arm64: defconfig: mediatek: enable PHY drivers

2025-05-20 Thread AngeloGioacchino Del Regno
On Mon, 12 May 2025 18:49:24 +0530, Vignesh Raman wrote: > The mediatek display driver fails to probe on mt8173-elm-hana and > mt8183-kukui-jacuzzi-juniper-sku16 in v6.14-rc4 due to missing PHY > configurations. > > Commit 924d66011f24 ("drm/mediatek: stop selecting foreign drivers") > stopped sel

Re: [PATCH v4] arm64: defconfig: mediatek: enable PHY drivers

2025-05-14 Thread AngeloGioacchino Del Regno
lecting foreign drivers") Reviewed-by: Nícolas F. R. A. Prado Signed-off-by: Vignesh Raman Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH v5 2/3] drm/panfrost: Add support for Mali on the MT8370 SoC

2025-05-06 Thread AngeloGioacchino Del Regno
: Louis-Alexis Eyraud Reviewed-by: AngeloGioacchino Del Regno

Re: [PATCH v11 0/2]

2025-04-24 Thread AngeloGioacchino Del Regno
On Thu, 24 Apr 2025 09:08:48 +0800, Jianeng Ceng wrote: > This is v11 of the MT8186 Chromebook device tree series. > Applied to v6.15-next/dts64, thanks! [1/2] dt-bindings: arm: mediatek: Add MT8186 Ponyta Chromebook commit: ce8ec1f8c8b363c2511332c909d06df7ae01f1b3 [2/2] arm64: dts: mediat

Re: [PATCH v11 1/2] dt-bindings: arm: mediatek: Add MT8186 Ponyta Chromebook

2025-04-24 Thread AngeloGioacchino Del Regno
Il 24/04/25 03:08, Jianeng Ceng ha scritto: Ponyta is a custom label Chromebook based on MT8186. It is a self-developed project of Huaqin and has no fixed OEM. Signed-off-by: Jianeng Ceng Reviewed-by: AngeloGioacchino Del Regno --- Changes in v11: - PATCH 1/2: Remove redundant items

Re: [PATCH v2] drm/panel: himax-hx8279: Always initialize goa_{even,odd}_valid in hx8279_check_goa_config()

2025-04-24 Thread AngeloGioacchino Del Regno
e assignment into a single variable assignment, which states that the configuration is valid when there are not all zeros, clearing up the warning since the variable will always be initialized. Fixes: 38d42c261389 ("drm: panel: Add driver for Himax HX8279 DDIC panels") Suggested-by: Angelo

Re: [PATCH] drm: panel: himax-hx8279: avoid using an uninitialized variable

2025-04-24 Thread AngeloGioacchino Del Regno
valid != goa_even_valid) | ^~ Change the initialization to set it to the value of the condition instead. Fixes: 38d42c261389 ("drm: panel: Add driver for Himax HX8279 DDIC panels") Signed-off-by: Arnd Bergmann Reviewed-by: AngeloGioacchino De

Re: [PATCH] drm/panel: himax-hx8279: Initialize goa_{even, odd}_valid in hx8279_check_goa_config()

2025-04-23 Thread AngeloGioacchino Del Regno
initialized-207354fb930c Best regards, Reviewed-by: Neil Armstrong I'll wait a few days until AngeloGioacchino Del Regno reviews it to be sure it's the right fix. Thanks, Neil I would prefer if (num_zero == ARRAY_SIZE(desc->goa_odd_timing))

Re: [PATCH v10 1/2] dt-bindings: arm: mediatek: Add MT8186 Ponyta Chromebook

2025-04-23 Thread AngeloGioacchino Del Regno
Il 23/04/25 11:36, Jianeng Ceng ha scritto: Ponyta is a custom label Chromebook based on MT8186. It is a self-developed project of Huaqin and has no fixed OEM. Signed-off-by: Jianeng Ceng --- Changes in v10: - PATCH 1/2: Add enum for ponyta sku. - Link to v9:https://lore.kernel.org/all/2025032

Re: [PATCH v9 22/23] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188

2025-04-22 Thread AngeloGioacchino Del Regno
Il 21/04/25 21:16, Dmitry Baryshkov ha scritto: On Tue, Apr 15, 2025 at 12:43:20PM +0200, AngeloGioacchino Del Regno wrote: Add support for the newer HDMI-TX (Encoder) v2 and DDC v2 IPs found in MediaTek's MT8195, MT8188 SoC and their variants, and including support for display modes up to

Re: [PATCH v1 4/5] drm/mediatek: mtk_dpi: Allow additional output formats on MT8195/88

2025-04-22 Thread AngeloGioacchino Del Regno
Il 22/04/25 08:01, CK Hu (胡俊光) ha scritto: Hi, Angelo: On Wed, 2025-04-09 at 15:13 +0200, AngeloGioacchino Del Regno wrote: External email : Please do not click links or open attachments until you have verified the sender or the content. Allow additional output formats in both DPI and

Re: [PATCH v3 1/1] drm/mediatek: Adjust bandwidth limit for DP

2025-04-16 Thread AngeloGioacchino Del Regno
Il 18/03/25 15:02, Liankun Yang ha scritto: By adjusting the order of link training and relocating it to HPD, link training can identify the usability of each lane in the current link. It also supports handling signal instability and weakness due to environmental issues, enabling the acquisition

Re: [PATCH v9 17/23] drm/mediatek: mtk_hdmi: Split driver and add common probe function

2025-04-16 Thread AngeloGioacchino Del Regno
Il 16/04/25 08:44, CK Hu (胡俊光) ha scritto: On Tue, 2025-04-15 at 12:48 +0200, AngeloGioacchino Del Regno wrote: External email : Please do not click links or open attachments until you have verified the sender or the content. Il 15/04/25 12:43, AngeloGioacchino Del Regno ha scritto: In

[PATCH v9 12/23] drm/mediatek: mtk_hdmi: Use dev_err_probe() in mtk_hdmi_dt_parse_pdata()

2025-04-15 Thread AngeloGioacchino Del Regno
Change error prints to use dev_err_probe() instead of dev_err() where possible in function mtk_hdmi_dt_parse_pdata(), used only during device probe. While at it, also beautify some prints. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c

[PATCH v9 01/23] dt-bindings: display: mediatek: Add binding for HDMIv2 DDC

2025-04-15 Thread AngeloGioacchino Del Regno
Add a binding for the Display Data Channel (DDC) IP in MediaTek SoCs with version 2 HDMI TX IP. Reviewed-by: Rob Herring (Arm) Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- .../mediatek/mediatek,mt8195-hdmi-ddc.yaml| 41 +++ 1 file changed, 41

[PATCH v9 17/23] drm/mediatek: mtk_hdmi: Split driver and add common probe function

2025-04-15 Thread AngeloGioacchino Del Regno
x27;s .probe() callback, avoiding lots of code duplication. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/Kconfig | 11 +- drivers/gpu/drm/mediatek/Makefile |1 + drivers/gpu/drm/mediatek/mtk_hdmi.c| 538 +- drivers/gp

Re: [PATCH v8 2/3] drm/panel: startek-kd070fhfid015: add another init step

2025-04-15 Thread AngeloGioacchino Del Regno
i Angelo, Thanks for the fast feedback :) On 20/03/2025 13:37, AngeloGioacchino Del Regno wrote: Il 20/03/25 09:48, Alexandre Mergnat ha scritto: Currently, the panel set power, set gpio and enable the display link in stk_panel_prepare, pointed by drm_panel_funcs.prepare, called by panel_bridge_at

[PATCH v9 09/23] drm/mediatek: mtk_hdmi: Move audio params selection to new function

2025-04-15 Thread AngeloGioacchino Del Regno
i struct member name and to clarify that those parameters are for HDMI Audio and not for HDMI Video configuration. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 63 - 1 file changed, 35 insertions(+), 28 deleti

[PATCH v9 08/23] drm/mediatek: mtk_hdmi: Disgregate function mtk_hdmi_audio_set_param()

2025-04-15 Thread AngeloGioacchino Del Regno
get two functions: one that performs the generic hdmi_audio_param copy, and one that performs IP specific setup, both of which will be called in the callback, allowing all of the non IP version specific code to get moved in a common file. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del

[PATCH v9 07/23] drm/mediatek: hdmi: Use regmap instead of iomem for main registers

2025-04-15 Thread AngeloGioacchino Del Regno
Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 171 +++- 1 file changed, 65 insertions(+), 106 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c index 68b1632a2d00

[PATCH v9 02/23] dt-bindings: display: mediatek: Add binding for MT8195 HDMI-TX v2

2025-04-15 Thread AngeloGioacchino Del Regno
HDMI 2.0. Reviewed-by: Rob Herring (Arm) Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- .../mediatek/mediatek,mt8195-hdmi.yaml| 151 ++ 1 file changed, 151 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/mediatek/mediatek

[PATCH v9 21/23] drm/mediatek: mtk_hdmi_common: Add var to enable interlaced modes

2025-04-15 Thread AngeloGioacchino Del Regno
Add an interlace_allowed bool member to struct mtk_hdmi_ver_conf which will be used to signal whether interlaced modes are supported by the bridge (in our case, the HDMI IP), and enable it for HDMIv2. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek

[PATCH v9 15/23] drm/mediatek: mtk_hdmi: Improve mtk_hdmi_get_all_clk() flexibility

2025-04-15 Thread AngeloGioacchino Del Regno
clock pointers in the mtk_hdmi structure to be dynamically allocated, and allocate it in probe. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a

Re: [PATCH v1 0/3] MediaTek MT8188 MDP3 Enablement

2025-04-15 Thread AngeloGioacchino Del Regno
On Wed, 18 Dec 2024 11:53:17 +0100, AngeloGioacchino Del Regno wrote: > This series adds the necessary bindings and devicetree nodes to enable > the entire Multimedia Data Path 3 (MDP3) macro-block, found in MediaTek's > MT8188 SoC. > > This was tested on a MediaTek

[PATCH v9 10/23] drm/mediatek: mtk_hdmi: Move plugged_cb/codec_dev setting to new function

2025-04-15 Thread AngeloGioacchino Del Regno
In preparation for splitting common bits of this driver, move the mutex-protected cable plugged callback and codec device setting to a new function called mtk_hdmi_audio_set_plugged_cb(). Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 13

[PATCH v9 14/23] drm/mediatek: mtk_hdmi: Move output init to mtk_hdmi_register_audio_driver()

2025-04-15 Thread AngeloGioacchino Del Regno
mtk_hdmi_output_init is specifically related only to audio and not video. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 27 --- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b

[PATCH v9 13/23] drm/mediatek: mtk_hdmi: Move CEC device parsing in new function

2025-04-15 Thread AngeloGioacchino Del Regno
Move the CEC device parsing logic to a new function called mtk_hdmi_get_cec_dev(), and move the parsing action to the end of mtk_hdmi_dt_parse_pdata(), allowing to remove gotos in this function, reducing code size and improving readability. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del

Re: [PATCH v9 17/23] drm/mediatek: mtk_hdmi: Split driver and add common probe function

2025-04-15 Thread AngeloGioacchino Del Regno
Il 15/04/25 12:43, AngeloGioacchino Del Regno ha scritto: In preparation for adding a new driver for the HDMI TX v2 IP, split out the functions that will be common between the already present mtk_hdmi (v1) driver and the new one. Since the probe flow for both drivers is 90% similar, add a

[PATCH v9 23/23] drm/mediatek: mtk_hdmi_v2: Add debugfs ops and implement ABIST

2025-04-15 Thread AngeloGioacchino Del Regno
sed even without prior display controller pipeline configuration. The expected output is a 100% color bar (rainbow) test pattern. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi_v2.c | 123 + 1 file changed, 123 insertions(+) diff --git a/drivers/

[PATCH v9 20/23] drm/mediatek: mtk_hdmi_common: Add OP_HDMI if helper funcs assigned

2025-04-15 Thread AngeloGioacchino Del Regno
brings no functional changes to drivers that have not been refactored to use the new helpers. This also means that, in the current state, there is effectively no functional change to mtk_hdmi and its other components. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm

[PATCH v9 22/23] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188

2025-04-15 Thread AngeloGioacchino Del Regno
* for both at the same time. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/Kconfig|7 + drivers/gpu/drm/mediatek/Makefile |2 + drivers/gpu/drm/mediatek/mtk_hdmi_common.c |4 + drivers/gpu/drm/mediatek/mtk_hdmi_com

[PATCH v9 16/23] drm/mediatek: mtk_hdmi: Add HDMI IP version configuration to pdata

2025-04-15 Thread AngeloGioacchino Del Regno
assign it to all of the currently supported compatibles for this driver. This commit brings no functional change. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 36 - 1 file changed, 30 insertions(+), 6

[PATCH v9 19/23] drm/mediatek: mtk_hdmi_common: Assign DDC adapter pointer to bridge

2025-04-15 Thread AngeloGioacchino Del Regno
In preparation for adding the new HDMI TX v2 IP driver, assign the pointer to the DDC adapter to struct drm_bridge during probe. This commit brings no functional changes. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi_common.c | 1 + 1 file

[PATCH v9 06/23] drm/mediatek: mtk_hdmi: Convert to module_platform_driver macro

2025-04-15 Thread AngeloGioacchino Del Regno
assignments. Reviewed-by: Alexandre Mergnat Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 20 +--- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek

[PATCH v9 18/23] drm/mediatek: mtk_hdmi_common: Make CEC support optional

2025-04-15 Thread AngeloGioacchino Del Regno
CEC is present and, if not, will fail probing with an error saying that CEC is required by HDMIv1. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi_common.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu

[PATCH v9 11/23] drm/mediatek: mtk_hdmi: Move N/CTS setting to new function

2025-04-15 Thread AngeloGioacchino Del Regno
Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c index 60ec16f6827f..0933b22b81ff 100644 --- a/drivers/gpu/drm

[PATCH v9 00/23] Add support for MT8195/88 HDMIv2 and DDCv2

2025-04-15 Thread AngeloGioacchino Del Regno
Changes in v9: - Reordered patch from krzk as first as requested by CK Changes in v8: - Dropped DPI patches as those have been applied in the previous merge window - Changed description in mediatek,mt8195-hdmi.yaml as requested by CK - Refactored function mtk_hdmi_v2_hw_gcp_avmute() to include

[PATCH v9 03/23] drm/mediatek/hdmi: Use syscon_regmap_lookup_by_phandle_args

2025-04-15 Thread AngeloGioacchino Del Regno
From: Krzysztof Kozlowski Use syscon_regmap_lookup_by_phandle_args() which is a wrapper over syscon_regmap_lookup_by_phandle() combined with getting the syscon argument. Except simpler code this annotates within one line that given phandle has arguments, so grepping for code would be easier. Th

[PATCH v9 05/23] drm/mediatek: mtk_hdmi_ddc: Switch to register as module_platform_driver

2025-04-15 Thread AngeloGioacchino Del Regno
mtk_hdmi.h header so, while at it, also remove it. Reviewed-by: Alexandre Mergnat Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/Makefile | 6 ++ drivers/gpu/drm/mediatek/mtk_hdmi.c | 2 -- drivers/gpu/drm/mediatek/mtk_hdmi.h | 13

[PATCH v9 04/23] drm/mediatek: mtk_cec: Switch to register as module_platform_driver

2025-04-15 Thread AngeloGioacchino Del Regno
flexibility by allowing to compile the CECv1 driver only when needed (for example, this is not needed nor used in HDMIv2 configurations). Reviewed-by: Alexandre Mergnat Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/Makefile | 4 ++-- drivers/gpu/drm

Re: [PATCH v8 23/23] drm/mediatek/hdmi: Use syscon_regmap_lookup_by_phandle_args

2025-04-15 Thread AngeloGioacchino Del Regno
Il 15/04/25 10:14, CK Hu (胡俊光) ha scritto: Hi, Angelo: On Wed, 2025-04-09 at 15:13 +0200, AngeloGioacchino Del Regno wrote: External email : Please do not click links or open attachments until you have verified the sender or the content. From: Krzysztof Kozlowski Use

[PATCH v4 3/3] drm: panel: Add driver for Himax HX8279 DDIC panels

2025-04-14 Thread AngeloGioacchino Del Regno
nk: https://lore.kernel.org/r/20250410072456.387562-4-angelogioacchino.delre...@collabora.com Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile |1 + drivers/gpu/drm/panel/panel-himax-hx8279.c | 1298 +

Re: [PATCH v8 16/23] drm/mediatek: mtk_hdmi: Split driver and add common probe function

2025-04-14 Thread AngeloGioacchino Del Regno
Il 11/04/25 10:18, CK Hu (胡俊光) ha scritto: On Wed, 2025-04-09 at 15:13 +0200, AngeloGioacchino Del Regno wrote: External email : Please do not click links or open attachments until you have verified the sender or the content. In preparation for adding a new driver for the HDMI TX v2 IP

[PATCH v4 0/3] Add driver for Himax HX8279 DriverIC panels

2025-04-14 Thread AngeloGioacchino Del Regno
f the aforementioned boards. AngeloGioacchino Del Regno (3): dt-bindings: vendor-prefixes: Add Shenzhen Aoly Technology Co., Ltd. dt-bindings: display: panel: Add Himax HX8279/HX8279-D DDIC panels drm: panel: Add driver for Himax HX8279 DDIC panels .../bindings/display/panel/himax,hx8279

[PATCH v4 2/3] dt-bindings: display: panel: Add Himax HX8279/HX8279-D DDIC panels

2025-04-14 Thread AngeloGioacchino Del Regno
Dooley Link: https://lore.kernel.org/r/20250410072456.387562-3-angelogioacchino.delre...@collabora.com Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/display/panel/himax,hx8279.yaml | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation

[PATCH v4 1/3] dt-bindings: vendor-prefixes: Add Shenzhen Aoly Technology Co., Ltd.

2025-04-14 Thread AngeloGioacchino Del Regno
Aoly is a manufacturer of LCD/IPS displays based in Shenzhen, Mainland China. Acked-by: Rob Herring (Arm) Link: https://lore.kernel.org/r/20250410072456.387562-2-angelogioacchino.delre...@collabora.com Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/vendor

Re: [PATCH v3 3/3] drm: panel: Add driver for Himax HX8279 DDIC panels

2025-04-14 Thread AngeloGioacchino Del Regno
Il 11/04/25 10:51, neil.armstr...@linaro.org ha scritto: On 10/04/2025 09:24, AngeloGioacchino Del Regno wrote: Add a driver for the Himax HX8279-D MIPI-DSI DriverIC with support for the Startek KX070FHFID078 7.0" 1200x1920 IPS panel, found on various MediaTek Genio Evaluation Kit board

[PATCH v8 06/23] drm/mediatek: hdmi: Use regmap instead of iomem for main registers

2025-04-10 Thread AngeloGioacchino Del Regno
Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 171 +++- 1 file changed, 65 insertions(+), 106 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c index 30eea57be991

[PATCH v8 11/23] drm/mediatek: mtk_hdmi: Use dev_err_probe() in mtk_hdmi_dt_parse_pdata()

2025-04-10 Thread AngeloGioacchino Del Regno
Change error prints to use dev_err_probe() instead of dev_err() where possible in function mtk_hdmi_dt_parse_pdata(), used only during device probe. While at it, also beautify some prints. Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c

[PATCH v8 23/23] drm/mediatek/hdmi: Use syscon_regmap_lookup_by_phandle_args

2025-04-10 Thread AngeloGioacchino Del Regno
HDMIv2/DDCv2 series cleanups] Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi_common.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi_common.c b/drivers/gpu/drm/mediatek

[PATCH v8 01/23] dt-bindings: display: mediatek: Add binding for HDMIv2 DDC

2025-04-10 Thread AngeloGioacchino Del Regno
Add a binding for the Display Data Channel (DDC) IP in MediaTek SoCs with version 2 HDMI TX IP. Reviewed-by: Rob Herring (Arm) Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- .../mediatek/mediatek,mt8195-hdmi-ddc.yaml| 41 +++ 1 file changed, 41

[PATCH v8 21/23] drm/mediatek: Introduce HDMI/DDC v2 for MT8195/MT8188

2025-04-10 Thread AngeloGioacchino Del Regno
* for both at the same time. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/Kconfig|7 + drivers/gpu/drm/mediatek/Makefile |2 + drivers/gpu/drm/mediatek/mtk_hdmi_common.c |4 + drivers/gpu/drm/mediatek/mtk_hdmi_common.h |9 + driver

[PATCH v3 1/3] dt-bindings: vendor-prefixes: Add Shenzhen Aoly Technology Co., Ltd.

2025-04-10 Thread AngeloGioacchino Del Regno
Aoly is a manufacturer of LCD/IPS displays based in Shenzhen, Mainland China. Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b

[PATCH v3 0/3] Add driver for Himax HX8279 DriverIC panels

2025-04-10 Thread AngeloGioacchino Del Regno
Genio 510 EVK - Genio 700 EVK - Genio 1200 EVK This driver was tested on all of the aforementioned boards. AngeloGioacchino Del Regno (3): dt-bindings: vendor-prefixes: Add Shenzhen Aoly Technology Co., Ltd. dt-bindings: display: panel: Add Himax HX8279/HX8279-D DDIC panels drm: panel: Add d

[PATCH v3 3/3] drm: panel: Add driver for Himax HX8279 DDIC panels

2025-04-10 Thread AngeloGioacchino Del Regno
ned-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile |1 + drivers/gpu/drm/panel/panel-himax-hx8279.c | 1365 3 files changed, 1377 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-hima

[PATCH v3 2/3] dt-bindings: display: panel: Add Himax HX8279/HX8279-D DDIC panels

2025-04-10 Thread AngeloGioacchino Del Regno
Dooley Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/display/panel/himax,hx8279.yaml | 75 +++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/himax,hx8279.yaml diff --git a/Documentation/devicetree/bindings

[PATCH v8 05/23] drm/mediatek: mtk_hdmi: Convert to module_platform_driver macro

2025-04-09 Thread AngeloGioacchino Del Regno
assignments. Reviewed-by: Alexandre Mergnat Reviewed-by: CK Hu Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 20 +--- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek

  1   2   3   4   5   6   7   8   9   10   >