From patchwork Wed Feb 26 14:35:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Massot X-Patchwork-Id: 13992662 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 210EBC1B0FF for ; Wed, 26 Feb 2025 15:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=S0hvkKiKjwmUePwlOOCNI53m5bcrOrm3zmBCTUjxU+c=; b=LbaYwhuh52U9MCgLaFRNUGV1Mp nWCUMeoAd1RZmJu6HQY95lBQgC9PwTNMF7zuIojew3GJ0tvPkJ2lFFd+4TohnhMQql24Pjxnmn4j9 Sotlo/z9J7E/wMDk8ZrPS2NQHG0Nga6W1FbmCMa3j/Q1N5B6VpV7OyPFpZ/NZqdkaGiep5slyeXJp 1MjWZT9Ub8Ysw6CdXoyHzwVGJyvITDwJpxU8KW5g2pX8C7dNGEOo+ycVer03R8LIlnn1mjcLUrmbT n7CMl7GwMR6+9SBQC7mqyk/zaFBS04h780FTsJMvStKFWsM1OXtaIxaKyel9EMCSCbixG668Teqix Bip4kq4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tnJF8-00000004Frg-0CSo; Wed, 26 Feb 2025 15:22:38 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tnIVt-000000046tK-0Rz8; Wed, 26 Feb 2025 14:35:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1740580551; bh=oeoroF8KNenaCDMp30ILoE7NYXjjtAHcEZu1+5jM4O8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=bGopM7t9Gc+tPxRmLZVTAumruwzXbteqxFjJKpPdKvv+Jf5Tw+XQ1AqiajK3AB0sU 2G37BPuqSvukYP3muFbN5L5++T7VDyUa9HRW3w4SbohrCZHGZQSvHqemrg3eBG8EyI gOkdbUiK19AWfxmOcvbtTtt9z+pvyGUGWNGHYKYSybKeWmR/TruUA3wN1WxEWSJh1f nJZiQL2DN4yQBTsT+HKdpWRDUy9ibb6rnNoSWv/uSa5TXlqp/qq8LEkz98wOpEzj5p Cj3V6krk8DcsK1z6AOBcvjlfwmQCJ0uuQaqNmNiI/Dnizi8YoXjpqt/XA78TG4cOEt xA72VdZhwzxQg== Received: from apertis-1.home (2a01cb088CcA73006086F5F072c6a07a.ipv6.abo.wanadoo.fr [IPv6:2a01:cb08:8cca:7300:6086:f5f0:72c6:a07a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jmassot) by bali.collaboradmins.com (Postfix) with ESMTPSA id 0DFD617E05EA; Wed, 26 Feb 2025 15:35:51 +0100 (CET) From: Julien Massot Date: Wed, 26 Feb 2025 15:35:27 +0100 Subject: [PATCH 1/2] arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port MIME-Version: 1.0 Message-Id: <20250226-radxa-panel-overlay-v1-1-9e8938dfbead@collabora.com> References: <20250226-radxa-panel-overlay-v1-0-9e8938dfbead@collabora.com> In-Reply-To: <20250226-radxa-panel-overlay-v1-0-9e8938dfbead@collabora.com> To: kernel@collabora.com, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, Julien Massot X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250226_063553_296907_A12B289D X-CRM114-Status: GOOD ( 11.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This board can use a MIPI-DSI panel on the DSI0 connector: in preparation for adding an overlay for the Radxa Display 8HD, add a pipeline connecting VDOSYS0 components to DSI0. Also add the backlight, and some pin definitions available through the DSI0 port. Signed-off-by: Julien Massot --- .../boot/dts/mediatek/mt8395-radxa-nio-12l.dts | 60 ++++++++++++++++++++++ 1 file changed, 60 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..65c77e43d1cd4913b6741e25130febd746ff753c 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,17 @@ 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>; + }; + wifi_vreg: regulator-wifi-3v3-en { compatible = "regulator-fixed"; regulator-name = "wifi_3v3_en"; @@ -499,9 +510,20 @@ &mt6359_vsram_others_ldo_reg { regulator-max-microvolt = <750000>; }; +&ovl0_in { + remote-endpoint = <&vdosys0_ep_main>; +}; + &pio { mediatek,rsel-resistance-in-si-unit; + dsi0_backlight_pins: dsi0-backlight-pins { + pins-backlight-en { + pinmux = ; + output-high; + }; + }; + eth_default_pins: eth-default-pins { pins-cc { pinmux = , @@ -699,6 +721,13 @@ pins-irq { }; }; + panel_default_pins: panel-pins { + pins-rst { + pinmux = ; + bias-pull-up; + }; + }; + pcie0_default_pins: pcie0-default-pins { pins-bus { pinmux = , @@ -717,6 +746,12 @@ pins-bus { }; }; + pwm0_default_pins: pwm0-pins { + pins-disp-pwm { + pinmux = ; + }; + }; + spi1_pins: spi1-default-pins { pins-bus { pinmux = , @@ -737,6 +772,19 @@ pins-bus { }; }; + touch_pins: touch-pins { + pins-touch-int { + pinmux = ; + input-enable; + bias-disable; + }; + + pins-touch-rst { + pinmux = ; + output-high; + }; + }; + uart0_pins: uart0-pins { pins-bus { pinmux = , @@ -912,6 +960,18 @@ &ssusb2 { status = "okay"; }; +&vdosys0 { + port { + #address-cells = <1>; + #size-cells = <0>; + + vdosys0_ep_main: endpoint@0 { + reg = <0>; + remote-endpoint = <&ovl0_in>; + }; + }; +}; + &xhci0 { vbus-supply = <&otg_vbus_regulator>; status = "okay"; From patchwork Wed Feb 26 14:35:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Massot X-Patchwork-Id: 13992661 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 09734C18E7C for ; Wed, 26 Feb 2025 15:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=57yd6XbIpVqci1GHfDC7jyDmUXWvLlCDBBFGmPHarQ0=; b=DqoYvgcjlyDIwGJbf4cgisiM+X TBddrQb0lI0cCBMWL7Jdgw6jD6ZCeqUTESU7LLYSXrqDVUg9tJc6TPsM4JmHwgu9q+MsX3AssNy0E dfRw5miAI1I4QM8FMxpTu596680aBySjk5BEl21rmm+5gU/Z2Y5zUlkMn1JEyWsl6zp+DrIxKkw8T 3Y/1mCLoHEGlhFykRNp9Iwj321xp9BdcBZQmCLFhTEPTsPROFodIUernj3BP8K1ZgxDpkVPBs+0b/ Li26Cwal0sqQZky6AIVQbppc7QPyANpJvh4EbkSt2X0iO2C16yffOYVOZz97jw3ezskaBjMsoEzKk g7kE9L2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tnJF9-00000004Fuh-1aKg; Wed, 26 Feb 2025 15:22:39 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tnIVu-000000046tT-2a86; Wed, 26 Feb 2025 14:35:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1740580552; bh=h68gsh2XEk8LO4IEBYVLcCuerDrPBhtD2D2GRTB8yzM=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=SvrskYHZYjMsocmKfAxUKmqMkvx05rKHkcpXkK4y1Hb0BSIomRFS9wcKjLK/FfDzW SRJGnKnMNSd3vnCySTQ74kp0ZhLKJQpX/4j8fh5fmEScfcVicULdLqGy1Ri9YtQ34G 3pBEVQmaHakN8XAZ3gq1CFCAuGlnQ/U0ZdRDeeWGdU76wwHaPfnS64S/2EmtaFytAi kT56/ixj77tgiWqDjG8VQSeoMAkd2BS2PPGRp35qcOiCsBzEJpQcJ1PW0HqJ/KkNNj 65KUxpSWJOePnVIsT+vcJ41/jgMF5V1Sm+mle9V336TAM8r9PEUTXIPzXxz8BtOnXH 98xZh49YNX3qw== Received: from apertis-1.home (2a01cb088CcA73006086F5F072c6a07a.ipv6.abo.wanadoo.fr [IPv6:2a01:cb08:8cca:7300:6086:f5f0:72c6:a07a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: jmassot) by bali.collaboradmins.com (Postfix) with ESMTPSA id BA22017E066F; Wed, 26 Feb 2025 15:35:51 +0100 (CET) From: Julien Massot Date: Wed, 26 Feb 2025 15:35:28 +0100 Subject: [PATCH 2/2] arm64: dts: mediatek: mt8395-radxa-nio-12l: Add Radxa 8 HD panel MIME-Version: 1.0 Message-Id: <20250226-radxa-panel-overlay-v1-2-9e8938dfbead@collabora.com> References: <20250226-radxa-panel-overlay-v1-0-9e8938dfbead@collabora.com> In-Reply-To: <20250226-radxa-panel-overlay-v1-0-9e8938dfbead@collabora.com> To: kernel@collabora.com, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, Julien Massot X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250226_063554_805119_6D03D575 X-CRM114-Status: GOOD ( 12.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- arch/arm64/boot/dts/mediatek/Makefile | 2 + .../mediatek/mt8395-radxa-nio-12l-8-hd-panel.dtso | 64 ++++++++++++++++++++++ 2 files changed, 66 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..5d633f61a62c3175fbfa133f3ea5b1a6a0b0fec5 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l-8-hd-panel.dtso @@ -0,0 +1,64 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Radxa Display 8 HD touchscreen module + * Copyright (C) 2025 Collabora Ltd. + */ + +/dts-v1/; +/plugin/; + +#include +#include + +&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>; + }; + }; + }; +}; + +&disp_pwm0 { + pinctrl-names = "default"; + pinctrl-0 = <&pwm0_default_pins>; + status = "okay"; +}; + +&dsi0_out { + remote-endpoint = <&dsi_panel_in>; +}; + +&mipi_tx0 { + status = "okay"; +}; + +&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>; + }; +};