All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mt8395-radxa-nio-12l: Add overlay for Radxa 8HD panel
@ 2025-03-04 14:01 Julien Massot
  2025-03-04 14:01 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port Julien Massot
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Julien Massot @ 2025-03-04 14:01 UTC (permalink / raw)
  To: kernel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Matthias Brugger, AngeloGioacchino Del Regno
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	kernel, Julien Massot

Hi,
small series to enable a DSI panel on Radxa NIO 12L.

The first patch adds missing dts nodes to expose some
feature of the DSI0 port.

The second patch adds the Radxa 8 HD panel as an overlay.

Tested on top of linux-next tag:next-20250303

Signed-off-by: Julien Massot <julien.massot@collabora.com>
---
Changes in v2:
- Moved video pipeline enablement to the overlay (ovl0, vdosys0)
- Keep backlight disabled in the board dts, enabled in the panel overlay
- Test again on Linux next-20250303
- Link to v1: https://lore.kernel.org/r/20250226-radxa-panel-overlay-v1-0-9e8938dfbead@collabora.com

---
Julien Massot (2):
      arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port
      arm64: dts: mediatek: mt8395-radxa-nio-12l: Add Radxa 8 HD panel

 arch/arm64/boot/dts/mediatek/Makefile              |  2 +
 .../mediatek/mt8395-radxa-nio-12l-8-hd-panel.dtso  | 84 ++++++++++++++++++++++
 .../boot/dts/mediatek/mt8395-radxa-nio-12l.dts     | 45 ++++++++++++
 3 files changed, 131 insertions(+)
---
base-commit: cd3215bbcb9d4321def93fea6cfad4d5b42b9d1d
change-id: 20250226-radxa-panel-overlay-5424db95995c

Best regards,
-- 
Julien Massot <julien.massot@collabora.com>



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

* [PATCH v2 1/2] arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port
  2025-03-04 14:01 [PATCH v2 0/2] mt8395-radxa-nio-12l: Add overlay for Radxa 8HD panel Julien Massot
@ 2025-03-04 14:01 ` Julien Massot
  2025-03-04 14:07   ` AngeloGioacchino Del Regno
  2025-03-04 14:01 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8395-radxa-nio-12l: Add Radxa 8 HD panel Julien Massot
  2025-03-05 13:25 ` [PATCH v2 0/2] mt8395-radxa-nio-12l: Add overlay for Radxa 8HD panel AngeloGioacchino Del Regno
  2 siblings, 1 reply; 6+ messages in thread
From: Julien Massot @ 2025-03-04 14:01 UTC (permalink / raw)
  To: kernel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Matthias Brugger, AngeloGioacchino Del Regno
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	kernel, Julien Massot

This board can use a MIPI-DSI panel on the DSI0 connector: in
preparation for adding an overlay for the Radxa Display 8HD,
add the backlight, and some definitions for pins available
through the DSI0 port.

Signed-off-by: Julien Massot <julien.massot@collabora.com>
---
 .../boot/dts/mediatek/mt8395-radxa-nio-12l.dts     | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts
index 7184dc99296c7f5d749c7e6d378722677970b3b7..1c922e98441a1aadf0aa3cdd76583a70401a1fa3 100644
--- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts
+++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts
@@ -48,6 +48,18 @@ memory@40000000 {
 		reg = <0 0x40000000 0x1 0x0>;
 	};
 
+	backlight: backlight {
+		compatible = "pwm-backlight";
+		brightness-levels = <0 1023>;
+		default-brightness-level = <576>;
+		enable-gpios = <&pio 107 GPIO_ACTIVE_HIGH>;
+		num-interpolated-steps = <1023>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&dsi0_backlight_pins>;
+		pwms = <&disp_pwm0 0 500000>;
+		status = "disabled";
+	};
+
 	wifi_vreg: regulator-wifi-3v3-en {
 		compatible = "regulator-fixed";
 		regulator-name = "wifi_3v3_en";
@@ -502,6 +514,13 @@ &mt6359_vsram_others_ldo_reg {
 &pio {
 	mediatek,rsel-resistance-in-si-unit;
 
+	dsi0_backlight_pins: dsi0-backlight-pins {
+		pins-backlight-en {
+			pinmux = <PINMUX_GPIO107__FUNC_GPIO107>;
+			output-high;
+		};
+	};
+
 	eth_default_pins: eth-default-pins {
 		pins-cc {
 			pinmux = <PINMUX_GPIO85__FUNC_GBE_TXC>,
@@ -699,6 +718,13 @@ pins-irq {
 		};
 	};
 
+	panel_default_pins: panel-pins {
+		pins-rst {
+			pinmux = <PINMUX_GPIO108__FUNC_GPIO108>;
+			bias-pull-up;
+		};
+	};
+
 	pcie0_default_pins: pcie0-default-pins {
 		pins-bus {
 			pinmux = <PINMUX_GPIO19__FUNC_WAKEN>,
@@ -717,6 +743,12 @@ pins-bus {
 		};
 	};
 
+	pwm0_default_pins: pwm0-pins {
+		pins-disp-pwm {
+			pinmux = <PINMUX_GPIO97__FUNC_DISP_PWM0>;
+		};
+	};
+
 	spi1_pins: spi1-default-pins {
 		pins-bus {
 			pinmux = <PINMUX_GPIO136__FUNC_SPIM1_CSB>,
@@ -737,6 +769,19 @@ pins-bus {
 		};
 	};
 
+	touch_pins: touch-pins {
+		pins-touch-int {
+			pinmux = <PINMUX_GPIO132__FUNC_GPIO132>;
+			input-enable;
+			bias-disable;
+		};
+
+		pins-touch-rst {
+			pinmux = <PINMUX_GPIO133__FUNC_GPIO133>;
+			output-high;
+		};
+	};
+
 	uart0_pins: uart0-pins {
 		pins-bus {
 			pinmux = <PINMUX_GPIO98__FUNC_UTXD0>,

-- 
2.48.1



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

* [PATCH v2 2/2] arm64: dts: mediatek: mt8395-radxa-nio-12l: Add Radxa 8 HD panel
  2025-03-04 14:01 [PATCH v2 0/2] mt8395-radxa-nio-12l: Add overlay for Radxa 8HD panel Julien Massot
  2025-03-04 14:01 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port Julien Massot
@ 2025-03-04 14:01 ` Julien Massot
  2025-03-04 14:07   ` AngeloGioacchino Del Regno
  2025-03-05 13:25 ` [PATCH v2 0/2] mt8395-radxa-nio-12l: Add overlay for Radxa 8HD panel AngeloGioacchino Del Regno
  2 siblings, 1 reply; 6+ messages in thread
From: Julien Massot @ 2025-03-04 14:01 UTC (permalink / raw)
  To: kernel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Matthias Brugger, AngeloGioacchino Del Regno
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	kernel, Julien Massot

The Radxa 8 HD touchscreen can be used with various Radxa board
and is sold appart from the Radxa NIO 12L development kit.

Add a DTS overlay for this panel.

Signed-off-by: Julien Massot <julien.massot@collabora.com>
---
 arch/arm64/boot/dts/mediatek/Makefile              |  2 +
 .../mediatek/mt8395-radxa-nio-12l-8-hd-panel.dtso  | 84 ++++++++++++++++++++++
 2 files changed, 86 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile
index ae1147eca9a915f117487101e2ad4acead97adfe..58484e8300632edbdef24bbda33ccf00db9df937 100644
--- a/arch/arm64/boot/dts/mediatek/Makefile
+++ b/arch/arm64/boot/dts/mediatek/Makefile
@@ -100,9 +100,11 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-genio-1200-evk.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8390-genio-700-evk.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-kontron-3-5-sbc-i1200.dtb
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-radxa-nio-12l.dtb
+dtb-$(CONFIG_ARCH_MEDIATEK) += mt8395-radxa-nio-12l-8-hd-panel.dtbo
 dtb-$(CONFIG_ARCH_MEDIATEK) += mt8516-pumpkin.dtb
 
 # Device tree overlays support
 DTC_FLAGS_mt7986a-bananapi-bpi-r3 := -@
 DTC_FLAGS_mt7986a-bananapi-bpi-r3-mini := -@
 DTC_FLAGS_mt7988a-bananapi-bpi-r4 := -@
+DTC_FLAGS_mt8395-radxa-nio-12l := -@
diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l-8-hd-panel.dtso b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l-8-hd-panel.dtso
new file mode 100644
index 0000000000000000000000000000000000000000..0389c9cb8581c0bb50bb38fd35d1190de13feb6e
--- /dev/null
+++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l-8-hd-panel.dtso
@@ -0,0 +1,84 @@
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
+/*
+ * Radxa Display 8 HD touchscreen module
+ * Copyright (C) 2025 Collabora Ltd.
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
+
+&backlight {
+	status = "okay";
+};
+
+&disp_pwm0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pwm0_default_pins>;
+	status = "okay";
+};
+
+&dsi0 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	status = "okay";
+
+	panel@0 {
+		compatible = "radxa,display-8hd-ad002", "jadard,jd9365da-h3";
+		reg = <0>;
+		backlight = <&backlight>;
+		vdd-supply = <&mt6359_vcn33_2_bt_ldo_reg>;
+		vccio-supply = <&mt6360_ldo2>;
+		reset-gpios = <&pio 108 GPIO_ACTIVE_LOW>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&panel_default_pins>;
+
+		port {
+			dsi_panel_in: endpoint {
+				remote-endpoint = <&dsi0_out>;
+			};
+		};
+	};
+};
+
+&dsi0_out {
+	remote-endpoint = <&dsi_panel_in>;
+};
+
+&i2c4 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
+	touchscreen@14 {
+		compatible = "goodix,gt911";
+		reg = <0x14>;
+		interrupts-extended = <&pio 132 IRQ_TYPE_EDGE_RISING>;
+		irq-gpios = <&pio 132 GPIO_ACTIVE_HIGH>;
+		reset-gpios = <&pio 133 GPIO_ACTIVE_HIGH>;
+		VDDIO-supply = <&mt6359_vcn33_2_bt_ldo_reg>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&touch_pins>;
+	};
+};
+
+&mipi_tx0 {
+	status = "okay";
+};
+
+&ovl0_in {
+	remote-endpoint = <&vdosys0_ep_main>;
+};
+
+&vdosys0 {
+	port {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		vdosys0_ep_main: endpoint@0 {
+			reg = <0>;
+			remote-endpoint = <&ovl0_in>;
+		};
+	};
+};

-- 
2.48.1



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

* Re: [PATCH v2 2/2] arm64: dts: mediatek: mt8395-radxa-nio-12l: Add Radxa 8 HD panel
  2025-03-04 14:01 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8395-radxa-nio-12l: Add Radxa 8 HD panel Julien Massot
@ 2025-03-04 14:07   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-03-04 14:07 UTC (permalink / raw)
  To: Julien Massot, kernel, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Matthias Brugger
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek

Il 04/03/25 15:01, Julien Massot ha scritto:
> The Radxa 8 HD touchscreen can be used with various Radxa board
> and is sold appart from the Radxa NIO 12L development kit.
> 
> Add a DTS overlay for this panel.
> 
> Signed-off-by: Julien Massot <julien.massot@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>




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

* Re: [PATCH v2 1/2] arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port
  2025-03-04 14:01 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port Julien Massot
@ 2025-03-04 14:07   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-03-04 14:07 UTC (permalink / raw)
  To: Julien Massot, kernel, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Matthias Brugger
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek

Il 04/03/25 15:01, Julien Massot ha scritto:
> This board can use a MIPI-DSI panel on the DSI0 connector: in
> preparation for adding an overlay for the Radxa Display 8HD,
> add the backlight, and some definitions for pins available
> through the DSI0 port.
> 
> Signed-off-by: Julien Massot <julien.massot@collabora.com>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>




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

* Re: [PATCH v2 0/2] mt8395-radxa-nio-12l: Add overlay for Radxa 8HD panel
  2025-03-04 14:01 [PATCH v2 0/2] mt8395-radxa-nio-12l: Add overlay for Radxa 8HD panel Julien Massot
  2025-03-04 14:01 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port Julien Massot
  2025-03-04 14:01 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8395-radxa-nio-12l: Add Radxa 8 HD panel Julien Massot
@ 2025-03-05 13:25 ` AngeloGioacchino Del Regno
  2 siblings, 0 replies; 6+ messages in thread
From: AngeloGioacchino Del Regno @ 2025-03-05 13:25 UTC (permalink / raw)
  To: kernel, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Matthias Brugger, Julien Massot
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
	kernel

On Tue, 04 Mar 2025 15:01:54 +0100, Julien Massot wrote:
> small series to enable a DSI panel on Radxa NIO 12L.
> 
> The first patch adds missing dts nodes to expose some
> feature of the DSI0 port.
> 
> The second patch adds the Radxa 8 HD panel as an overlay.
> 
> [...]

Applied to v6.14-next/dts64, thanks!

[1/2] arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port
      commit: d4642e25bede20135d84e0ffdc234b72aaa1b6ba
[2/2] arm64: dts: mediatek: mt8395-radxa-nio-12l: Add Radxa 8 HD panel
      commit: 052cb5d105721a1bb517d278a005b0a100d27a62

Cheers,
Angelo




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

end of thread, other threads:[~2025-03-05 14:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-04 14:01 [PATCH v2 0/2] mt8395-radxa-nio-12l: Add overlay for Radxa 8HD panel Julien Massot
2025-03-04 14:01 ` [PATCH v2 1/2] arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port Julien Massot
2025-03-04 14:07   ` AngeloGioacchino Del Regno
2025-03-04 14:01 ` [PATCH v2 2/2] arm64: dts: mediatek: mt8395-radxa-nio-12l: Add Radxa 8 HD panel Julien Massot
2025-03-04 14:07   ` AngeloGioacchino Del Regno
2025-03-05 13:25 ` [PATCH v2 0/2] mt8395-radxa-nio-12l: Add overlay for Radxa 8HD panel AngeloGioacchino Del Regno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.