From patchwork Tue Mar 4 14:01:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Massot X-Patchwork-Id: 14000794 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 018C6C282C6 for ; Tue, 4 Mar 2025 14:05:21 +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=8sym4lHtfWHbXPcWM2Dn2VFNqxHkczqaPp7c3p8UqtY=; b=PBjurrtvEYCacn99gHxGOWRs+4 jgkzJcI6I4ncV64q5AqHTVQlRpgiBpoRtjuvjmdQJhw//UEoTC0+ExEc/nvy/EOQ+CO8Twdy0cfVv ylweHu7/WfugtSGObUE8hovPPYQOKdNrqp50nbWeVwhLNNIM3T8caaVf1XphlagpnkvMvFjfGsLSB nnQOYlQL0I3Pt88A7UhLwqdHWEcXplIPiEqj5HLbNWmtWvKiX4Oc1KEc+mkzFwHegt5CwjhvQWxGP 9nMpPO0Np3Bvbev1/yhe1DmMiHUwckEvuQhSbvWwvOMrs8P67oiKrw7valvBOkC3/FzMJ16uZP3N6 l45fAx7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tpStW-00000004twZ-1tZx; Tue, 04 Mar 2025 14:05:14 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tpSqO-00000004tJK-10Hu; Tue, 04 Mar 2025 14:02:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1741096918; bh=pq3KZLjVtYgG3QJjA0gfc0ATstLTL4U024ZZLEq+S30=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=jOOUnhh7ghUI7j0/Rzy79CJhgMGKYVh8gNeUQyN3tI+o1DY+O4FTOn2G8cbBVD3fN 16B2GZdaUK9f53fxgfmB7n+bq+AWzsF74bV7UCayIDzYLfvWKZYxsv5lesh0NtjQJg eGGcPU+2mEf3C60V8JeKC0YHHxtEPt7Ovccp8hj8hkGN0priJUtbel9GJ/xkUHvFfX byrmL+bIbkRyJXjMGoYgQzCbB3GVnbO1DNSOI55K8YpIYmXnCnCH6Fn73eCYNTUm3w JYmmRFDOEXApUgTSYjx5P2Od7fRzx/h4GSXAH/aMos2nzz3EgnE7LPkXWhVTHeA9ZX gHxZUc4IfUSDw== Received: from apertis-1.home (2a01cb0892F2D600C8F85cf092d4Af51.ipv6.abo.wanadoo.fr [IPv6:2a01:cb08:92f2:d600:c8f8:5cf0:92d4:af51]) (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 CF2EE17E0B56; Tue, 4 Mar 2025 15:01:57 +0100 (CET) From: Julien Massot Date: Tue, 04 Mar 2025 15:01:55 +0100 Subject: [PATCH v2 1/2] arm64: dts: mediatek: mt8395-nio-12l: Prepare MIPI DSI port MIME-Version: 1.0 Message-Id: <20250304-radxa-panel-overlay-v2-1-3ee6797d3f86@collabora.com> References: <20250304-radxa-panel-overlay-v2-0-3ee6797d3f86@collabora.com> In-Reply-To: <20250304-radxa-panel-overlay-v2-0-3ee6797d3f86@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-20250304_060200_428133_9A539286 X-CRM114-Status: GOOD ( 11.06 ) 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 the backlight, and some definitions for pins available through the DSI0 port. Signed-off-by: Julien Massot Reviewed-by: AngeloGioacchino Del Regno --- .../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 = ; + output-high; + }; + }; + eth_default_pins: eth-default-pins { pins-cc { pinmux = , @@ -699,6 +718,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 +743,12 @@ pins-bus { }; }; + pwm0_default_pins: pwm0-pins { + pins-disp-pwm { + pinmux = ; + }; + }; + spi1_pins: spi1-default-pins { pins-bus { pinmux = , @@ -737,6 +769,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 = ,