public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Arm China Linlon-D6 display controller support
@ 2026-03-13  3:31 Cunyuan Liu
  2026-03-13  3:31 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Arm Technology (China) Co., Ltd Cunyuan Liu
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Cunyuan Liu @ 2026-03-13  3:31 UTC (permalink / raw)
  To: liviu.dudau, maarten.lankhorst, mripard, tzimmermann, airlied,
	simona, robh, krzk+dt, conor+dt
  Cc: neil.armstrong, heiko, marex, dev, prabhakar.mahadev-lad.rj,
	andre.przywara, dri-devel, devicetree, linux-kernel,
	cix-kernel-upstream, Cunyuan Liu

Adds Komeda DRM support for Arm China Linlon-D6. The IP is register-compatible
with Mali-D71, so we reuse the D71 code path.

  [1/3] dt-bindings: vendor-prefixes: add Arm Technology (China) "armchina"
  [2/3] dt-bindings: add armchina,linlon-d6 compatible (fallback to arm,mali-d71)
  [3/3] drm/komeda: add Linlon-D6 product ID and of_device_id, use D71 funcs

Changes in v2:
- PATCH [2/3]: rework compatible schema using enum as suggested by Krzysztof.

v1: https://lore.kernel.org/dri-devel/20260311055506.12023-1-cunyuan.liu@cixtech.com/

Tested on Radxa Orion O6 with Linlon-D6, basic display bring-up works as expected.

Thanks,
Cunyuan

Cunyuan Liu (3):
  dt-bindings: vendor-prefixes: Add Arm Technology (China) Co., Ltd.
  dt-bindings: display: arm,komeda: add Arm China Linlon D6 compatible
  drm/komeda: Add support for Arm China Linlon-D6

 Documentation/devicetree/bindings/display/arm,komeda.yaml | 4 +++-
 Documentation/devicetree/bindings/vendor-prefixes.yaml    | 2 ++
 drivers/gpu/drm/arm/display/include/malidp_product.h      | 1 +
 drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c          | 1 +
 drivers/gpu/drm/arm/display/komeda/komeda_drv.c           | 1 +
 5 files changed, 8 insertions(+), 1 deletion(-)

-- 
2.53.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Arm Technology (China) Co., Ltd.
  2026-03-13  3:31 [PATCH v2 0/3] Arm China Linlon-D6 display controller support Cunyuan Liu
@ 2026-03-13  3:31 ` Cunyuan Liu
  2026-03-19 16:32   ` Liviu Dudau
  2026-03-13  3:31 ` [PATCH v2 2/3] dt-bindings: display: arm,komeda: add Arm China Linlon D6 compatible Cunyuan Liu
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: Cunyuan Liu @ 2026-03-13  3:31 UTC (permalink / raw)
  To: liviu.dudau, maarten.lankhorst, mripard, tzimmermann, airlied,
	simona, robh, krzk+dt, conor+dt
  Cc: neil.armstrong, heiko, marex, dev, prabhakar.mahadev-lad.rj,
	andre.przywara, dri-devel, devicetree, linux-kernel,
	cix-kernel-upstream, Cunyuan Liu

Add "armchina" vendor prefix for Arm Technology (China) Co., Ltd.

Link: https://www.armchina.com/

Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Cunyuan Liu <cunyuan.liu@cixtech.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index ee7fd3cfe203..c7ca7f43925b 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -172,6 +172,8 @@ patternProperties:
     description: ARM Ltd.
   "^armadeus,.*":
     description: ARMadeus Systems SARL
+  "^armchina,.*":
+    description: Arm Technology (China) Co., Ltd.
   "^armsom,.*":
     description: ArmSoM Technology Co., Ltd.
   "^arrow,.*":
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 2/3] dt-bindings: display: arm,komeda: add Arm China Linlon D6 compatible
  2026-03-13  3:31 [PATCH v2 0/3] Arm China Linlon-D6 display controller support Cunyuan Liu
  2026-03-13  3:31 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Arm Technology (China) Co., Ltd Cunyuan Liu
@ 2026-03-13  3:31 ` Cunyuan Liu
  2026-03-21 20:23   ` Krzysztof Kozlowski
  2026-03-13  3:31 ` [PATCH v2 3/3] drm/komeda: Add support for Arm China Linlon-D6 Cunyuan Liu
  2026-03-24 16:10 ` [PATCH v2 0/3] Arm China Linlon-D6 display controller support Liviu Dudau
  3 siblings, 1 reply; 7+ messages in thread
From: Cunyuan Liu @ 2026-03-13  3:31 UTC (permalink / raw)
  To: liviu.dudau, maarten.lankhorst, mripard, tzimmermann, airlied,
	simona, robh, krzk+dt, conor+dt
  Cc: neil.armstrong, heiko, marex, dev, prabhakar.mahadev-lad.rj,
	andre.przywara, dri-devel, devicetree, linux-kernel,
	cix-kernel-upstream, Cunyuan Liu

Add the Arm China Linlon D6 display controller compatible string.

Linlon D6 is register-compatible with Mali-D71, so describe it as a
vendor-specific compatible with a fallback to "arm,mali-d71".

Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Cunyuan Liu <cunyuan.liu@cixtech.com>
---
 Documentation/devicetree/bindings/display/arm,komeda.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/display/arm,komeda.yaml b/Documentation/devicetree/bindings/display/arm,komeda.yaml
index 3ad3eef89ca8..1afd254b6c2f 100644
--- a/Documentation/devicetree/bindings/display/arm,komeda.yaml
+++ b/Documentation/devicetree/bindings/display/arm,komeda.yaml
@@ -19,7 +19,9 @@ properties:
   compatible:
     oneOf:
       - items:
-          - const: arm,mali-d32
+          - enum:
+              - arm,mali-d32
+              - armchina,linlon-d6
           - const: arm,mali-d71
       - const: arm,mali-d71
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v2 3/3] drm/komeda: Add support for Arm China Linlon-D6
  2026-03-13  3:31 [PATCH v2 0/3] Arm China Linlon-D6 display controller support Cunyuan Liu
  2026-03-13  3:31 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Arm Technology (China) Co., Ltd Cunyuan Liu
  2026-03-13  3:31 ` [PATCH v2 2/3] dt-bindings: display: arm,komeda: add Arm China Linlon D6 compatible Cunyuan Liu
@ 2026-03-13  3:31 ` Cunyuan Liu
  2026-03-24 16:10 ` [PATCH v2 0/3] Arm China Linlon-D6 display controller support Liviu Dudau
  3 siblings, 0 replies; 7+ messages in thread
From: Cunyuan Liu @ 2026-03-13  3:31 UTC (permalink / raw)
  To: liviu.dudau, maarten.lankhorst, mripard, tzimmermann, airlied,
	simona, robh, krzk+dt, conor+dt
  Cc: neil.armstrong, heiko, marex, dev, prabhakar.mahadev-lad.rj,
	andre.przywara, dri-devel, devicetree, linux-kernel,
	cix-kernel-upstream, Cunyuan Liu

Arm China Linlon-D6 is register-compatible with the Mali-D71 display
pipeline for the purpose of basic modesetting.

On Linlon-D6, the PRODUCT_ID register is located at the same offset as on
Mali-D71 and reports 0x0060. The IP also exposes the same Komeda top-level
block layout expected by the existing d71_identify() probing flow, so we
can reuse the D71 function table to bring up the display engine.

Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Cunyuan Liu <cunyuan.liu@cixtech.com>
---
 drivers/gpu/drm/arm/display/include/malidp_product.h | 1 +
 drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c     | 1 +
 drivers/gpu/drm/arm/display/komeda/komeda_drv.c      | 1 +
 3 files changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/arm/display/include/malidp_product.h b/drivers/gpu/drm/arm/display/include/malidp_product.h
index 16a8a2c22c42..6f954bcdf40e 100644
--- a/drivers/gpu/drm/arm/display/include/malidp_product.h
+++ b/drivers/gpu/drm/arm/display/include/malidp_product.h
@@ -20,6 +20,7 @@
 /* Mali-display product IDs */
 #define MALIDP_D71_PRODUCT_ID	0x0071
 #define MALIDP_D32_PRODUCT_ID	0x0032
+#define LINLONDP_D6_PRODUCT_ID	0x0060
 
 union komeda_config_id {
 	struct {
diff --git a/drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c b/drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c
index 80973975bfdb..f105e3a2dce2 100644
--- a/drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c
+++ b/drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c
@@ -628,6 +628,7 @@ d71_identify(u32 __iomem *reg_base, struct komeda_chip_info *chip)
 	switch (product_id) {
 	case MALIDP_D71_PRODUCT_ID:
 	case MALIDP_D32_PRODUCT_ID:
+	case LINLONDP_D6_PRODUCT_ID:
 		funcs = &d71_chip_funcs;
 		break;
 	default:
diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
index 358c1512b087..4bb5f250e95e 100644
--- a/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
+++ b/drivers/gpu/drm/arm/display/komeda/komeda_drv.c
@@ -104,6 +104,7 @@ static int komeda_platform_probe(struct platform_device *pdev)
 static const struct of_device_id komeda_of_match[] = {
 	{ .compatible = "arm,mali-d71", .data = d71_identify, },
 	{ .compatible = "arm,mali-d32", .data = d71_identify, },
+	{ .compatible = "armchina,linlon-d6", .data = d71_identify, },
 	{},
 };
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Arm Technology (China) Co., Ltd.
  2026-03-13  3:31 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Arm Technology (China) Co., Ltd Cunyuan Liu
@ 2026-03-19 16:32   ` Liviu Dudau
  0 siblings, 0 replies; 7+ messages in thread
From: Liviu Dudau @ 2026-03-19 16:32 UTC (permalink / raw)
  To: Cunyuan Liu
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, simona, robh,
	krzk+dt, conor+dt, neil.armstrong, heiko, marex, dev,
	prabhakar.mahadev-lad.rj, andre.przywara, dri-devel, devicetree,
	linux-kernel, cix-kernel-upstream

On Fri, Mar 13, 2026 at 11:31:17AM +0800, Cunyuan Liu wrote:
> Add "armchina" vendor prefix for Arm Technology (China) Co., Ltd.
> 
> Link: https://www.armchina.com/
> 
> Acked-by: Rob Herring (Arm) <robh@kernel.org>
> Signed-off-by: Cunyuan Liu <cunyuan.liu@cixtech.com>

Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>

Rob, should I take the whole series through drm-misc-next or should I split the bindings
into a separate pull?

Best regards,
Liviu

> ---
>  Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> index ee7fd3cfe203..c7ca7f43925b 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
> @@ -172,6 +172,8 @@ patternProperties:
>      description: ARM Ltd.
>    "^armadeus,.*":
>      description: ARMadeus Systems SARL
> +  "^armchina,.*":
> +    description: Arm Technology (China) Co., Ltd.
>    "^armsom,.*":
>      description: ArmSoM Technology Co., Ltd.
>    "^arrow,.*":
> -- 
> 2.53.0
> 

-- 
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 2/3] dt-bindings: display: arm,komeda: add Arm China Linlon D6 compatible
  2026-03-13  3:31 ` [PATCH v2 2/3] dt-bindings: display: arm,komeda: add Arm China Linlon D6 compatible Cunyuan Liu
@ 2026-03-21 20:23   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-21 20:23 UTC (permalink / raw)
  To: Cunyuan Liu
  Cc: liviu.dudau, maarten.lankhorst, mripard, tzimmermann, airlied,
	simona, robh, krzk+dt, conor+dt, neil.armstrong, heiko, marex,
	dev, prabhakar.mahadev-lad.rj, andre.przywara, dri-devel,
	devicetree, linux-kernel, cix-kernel-upstream

On 2026-03-13 11:31 +0800, Cunyuan Liu wrote:
> Add the Arm China Linlon D6 display controller compatible string.
> 
> Linlon D6 is register-compatible with Mali-D71, so describe it as a
> vendor-specific compatible with a fallback to "arm,mali-d71".
> 
> Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
> Signed-off-by: Cunyuan Liu <cunyuan.liu@cixtech.com>
> ---
>  Documentation/devicetree/bindings/display/arm,komeda.yaml | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v2 0/3] Arm China Linlon-D6 display controller support
  2026-03-13  3:31 [PATCH v2 0/3] Arm China Linlon-D6 display controller support Cunyuan Liu
                   ` (2 preceding siblings ...)
  2026-03-13  3:31 ` [PATCH v2 3/3] drm/komeda: Add support for Arm China Linlon-D6 Cunyuan Liu
@ 2026-03-24 16:10 ` Liviu Dudau
  3 siblings, 0 replies; 7+ messages in thread
From: Liviu Dudau @ 2026-03-24 16:10 UTC (permalink / raw)
  To: Cunyuan Liu
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, simona, robh,
	krzk+dt, conor+dt, neil.armstrong, heiko, marex, dev,
	prabhakar.mahadev-lad.rj, andre.przywara, dri-devel, devicetree,
	linux-kernel, cix-kernel-upstream

On Fri, Mar 13, 2026 at 11:31:16AM +0800, Cunyuan Liu wrote:
> Adds Komeda DRM support for Arm China Linlon-D6. The IP is register-compatible
> with Mali-D71, so we reuse the D71 code path.
> 
>   [1/3] dt-bindings: vendor-prefixes: add Arm Technology (China) "armchina"
>   [2/3] dt-bindings: add armchina,linlon-d6 compatible (fallback to arm,mali-d71)
>   [3/3] drm/komeda: add Linlon-D6 product ID and of_device_id, use D71 funcs
> 
> Changes in v2:
> - PATCH [2/3]: rework compatible schema using enum as suggested by Krzysztof.
> 
> v1: https://lore.kernel.org/dri-devel/20260311055506.12023-1-cunyuan.liu@cixtech.com/
> 
> Tested on Radxa Orion O6 with Linlon-D6, basic display bring-up works as expected.
> 
> Thanks,
> Cunyuan
> 
> Cunyuan Liu (3):
>   dt-bindings: vendor-prefixes: Add Arm Technology (China) Co., Ltd.
>   dt-bindings: display: arm,komeda: add Arm China Linlon D6 compatible
>   drm/komeda: Add support for Arm China Linlon-D6
> 
>  Documentation/devicetree/bindings/display/arm,komeda.yaml | 4 +++-
>  Documentation/devicetree/bindings/vendor-prefixes.yaml    | 2 ++
>  drivers/gpu/drm/arm/display/include/malidp_product.h      | 1 +
>  drivers/gpu/drm/arm/display/komeda/d71/d71_dev.c          | 1 +
>  drivers/gpu/drm/arm/display/komeda/komeda_drv.c           | 1 +
>  5 files changed, 8 insertions(+), 1 deletion(-)
> 
> -- 
> 2.53.0
> 

Pushed the whole series to drm-misc-next.

Best regards,
Liviu

-- 
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-03-24 16:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-13  3:31 [PATCH v2 0/3] Arm China Linlon-D6 display controller support Cunyuan Liu
2026-03-13  3:31 ` [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Arm Technology (China) Co., Ltd Cunyuan Liu
2026-03-19 16:32   ` Liviu Dudau
2026-03-13  3:31 ` [PATCH v2 2/3] dt-bindings: display: arm,komeda: add Arm China Linlon D6 compatible Cunyuan Liu
2026-03-21 20:23   ` Krzysztof Kozlowski
2026-03-13  3:31 ` [PATCH v2 3/3] drm/komeda: Add support for Arm China Linlon-D6 Cunyuan Liu
2026-03-24 16:10 ` [PATCH v2 0/3] Arm China Linlon-D6 display controller support Liviu Dudau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox