Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp518883lqb; Wed, 17 Apr 2024 03:29:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVHPo/qvYBfoK/jiFhtbbiYRdgmKk/Gmn7EfDpGk85U2QFT6uTR4VGdneiew8aVpt9mw1k8Ky40p3T7BUXWmD0yHcMh4J/BNJYZUMbmnA== X-Google-Smtp-Source: AGHT+IE99nJYlS3QGT0CDOscsS9HefXtAtqt+tPYU4ca9GPyw2jA7v1bb+K/52ObNyUq9ibRt0GF X-Received: by 2002:a05:6a21:6d8a:b0:1a9:83ac:e659 with SMTP id wl10-20020a056a216d8a00b001a983ace659mr16827566pzb.26.1713349794594; Wed, 17 Apr 2024 03:29:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713349794; cv=pass; d=google.com; s=arc-20160816; b=RhM6Yd4rZA67YhtLU0wvL8Agw0OFdykbAvC2aXpl/Ts+8lrt9PrVK2OI+algm1PbCq ZfIMOTp2FzajpqfnWkTSQ5NuP/Huw22hW8tyQwRQtRqe0z92qeFunKz/vx8MmCMDgAl8 JV9yXhm8w5KqnlFaddUZ8YLXEOhqfob3UMGfPg9mph5Hx5cOq7cSq3wDWvkoBjG2sAVF 30BK6ZrU3MmOu+l4tL9YIiYi5m2/o/Aiwy0Fhm+G4LIISYPkdQacdQRikhDVxz7sIWSf w+2h9cFLPDeoCu8aWXYjD6+j/2zLSJa8tY74HATfRLn7Ot3jA9Bfs49v7Tw8zuLtoGVy 36Hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:from:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=+G5nV4HgC1PrIzEBnz+tBm2Hyud4+lR+30lpfylogWI=; fh=+QWWV4HYujavDC1WfqR0/HasBO25h896EFPqHK+s2O4=; b=oNGULhxCRQdXLRT/kA/gvXO55RSI/lTFObqY0IbcvKoMeciWlAxYn8EVsN6vMr3aAc S5pWz6cjeVqhlKNoZ4FqqhqF7M4GccGnY4EMdXHVwZZxhriQcs+W11URkd1McfoLGroq K+4vqPd9uz6hDZ/slRP9YhthLVx1lutvmVrcIOoR0G5+5KVOBWfs2svgVuoz7TM9mThh xmGRAk/w7zNrlw9UDEzg5UftyOofHndCvd6yNNHnTZMmP/BXBdM/DNxiM1H/Sig3YoYD Ic1R91xEp5sShCwrDqvfAyDzEFtJKpB4rRaFMkQPvAKyaw2jjF/y2M7qYQqTLmkSwwZR JIsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aDwYNLm4; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-148321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i15-20020a17090332cf00b001e5560d2467si11032126plr.126.2024.04.17.03.29.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 03:29:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aDwYNLm4; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-148321-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148321-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1EB4DB22D6F for ; Wed, 17 Apr 2024 10:28:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B43B13C3EC; Wed, 17 Apr 2024 10:28:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="aDwYNLm4" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7EE213C3D3; Wed, 17 Apr 2024 10:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713349682; cv=none; b=ZUHZt+RcXEdtqwyzabTQTzTdnTRyrwE3D/af+PFOyBJUZLXmiuI3sav/16UrukbYgjXDT6Bg7x1sHuT37H3xSe1f94Hzyj9VfRWNSJ9JUOhORt6lVqbU12/CJT3Gvoi+ABSxjTK7fHsk3X1P9NNIWHRWEuSp4UziExbNA0pr7CQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713349682; c=relaxed/simple; bh=2SVLOxF1LIFW8IU+UiQ7K2P1NHBlwj/W6OfBiv0gOr4=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=BmNdxSNaKjMrWzRk/4ayA1PsfxdHdFPAnz/T0AHcxaxmBW9QBCU24azpKY/vGcr1MR4Tmus85U//NZrYWAp7NSFhhKNJnYBhBdCabd5iJL5PK6IUMXf7LOpa29b1P2HtyB8hbifasvJ56OaDMHccdLW0GL8yD6OIuz7fO0VqjfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=aDwYNLm4; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1713349679; bh=2SVLOxF1LIFW8IU+UiQ7K2P1NHBlwj/W6OfBiv0gOr4=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=aDwYNLm4GpaVas8y1JxE813xF5hvJPUXYik0xtOCY1BNDNqzE3iTahTaivSHQj7l6 MXbis/vxnwKNQGh0KQLKsagi3TjhE4JJ9Es1XfP3msHY0waB9Xuy6CjCNxaM/egkl2 2O0N2+cDm8wYhxh0jTEhFcPFOD2NmnK1tiw6T4jzfgBdSzNSE3bl8CDMz4noQxmtSt nU1HN29DcvKuBkI6/TUXfx+a2EaeVJIBwGUGJyTePjst1qmBNmIA19w8TKUS48H6t3 yxdSdM8Tv4UYOMQm/3uDZfPxCIe9S76dl7wvEdk5i9FD3bhmCP0VAKASQVwbcYuqJ5 yb7qpzIBF+VcA== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 8B20237820F9; Wed, 17 Apr 2024 10:27:57 +0000 (UTC) Message-ID: Date: Wed, 17 Apr 2024 12:27:57 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: AngeloGioacchino Del Regno Subject: Re: [PATCH v2 18/18] arm64: dts: mediatek: add display support for mt8365-evk To: Alexandre Mergnat , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , Jitao Shi , CK Hu , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Michael Turquette , Stephen Boyd , Catalin Marinas , Will Deacon Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linux-clk@vger.kernel.org References: <20231023-display-support-v2-0-33ce8864b227@baylibre.com> <20231023-display-support-v2-18-33ce8864b227@baylibre.com> Content-Language: en-US In-Reply-To: <20231023-display-support-v2-18-33ce8864b227@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 16/04/24 17:53, Alexandre Mergnat ha scritto: > MIPI DSI: > - Add "vsys_lcm_reg" regulator support and setup the "mt6357_vsim1_reg", > to power the pannel plugged to the DSI connector. > - Setup the Display Parallel Interface. > - Add the startek kd070fhfid015 pannel support. > > HDMI: > - Add HDMI connector support. > - Add the "ite,it66121" HDMI bridge support, driven by I2C1. > - Setup the Display Parallel Interface. > > Signed-off-by: Alexandre Mergnat > --- > arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 182 ++++++++++++++++++++++++++++ > 1 file changed, 182 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts > index 50cbaefa1a99..4afdcbefc481 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts > +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts > @@ -26,6 +26,18 @@ chosen { > stdout-path = "serial0:921600n8"; > }; > > + connector { > + compatible = "hdmi-connector"; > + label = "hdmi"; > + type = "d"; > + > + port { > + hdmi_connector_in: endpoint { > + remote-endpoint = <&hdmi_connector_out>; > + }; > + }; > + }; > + > firmware { > optee { > compatible = "linaro,optee-tz"; > @@ -86,6 +98,56 @@ optee_reserved: optee@43200000 { > reg = <0 0x43200000 0 0x00c00000>; > }; > }; > + > + vsys_lcm_reg: regulator-vsys-lcm { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&pio 129 GPIO_ACTIVE_HIGH>; > + regulator-max-microvolt = <5000000>; > + regulator-min-microvolt = <5000000>; > + regulator-name = "vsys_lcm"; > + }; > +}; > + > +&dpi0 { > + pinctrl-0 = <&dpi_default_pins>; > + pinctrl-1 = <&dpi_idle_pins>; > + pinctrl-names = "default", "sleep"; > + status = "okay"; > + > + port { > + dpi_out: endpoint { > + remote-endpoint = <&it66121_in>; > + }; > + }; > +}; > + > +&dsi0 { > + #address-cells = <1>; > + #size-cells = <0>; > + status = "okay"; > + > + panel@0 { > + compatible = "startek,kd070fhfid015"; > + status = "okay"; status is always okay, unless it's disabled. > + reg = <0>; > + enable-gpios = <&pio 67 GPIO_ACTIVE_HIGH>; > + reset-gpios = <&pio 20 GPIO_ACTIVE_HIGH>; > + iovcc-supply = <&mt6357_vsim1_reg>; > + power-supply = <&vsys_lcm_reg>; > + > + port { > + panel_in: endpoint { > + remote-endpoint = <&dsi_out>; > + }; > + }; > + }; > + > + port { > + dsi_out: endpoint { > + remote-endpoint = <&panel_in>; > + }; > + }; > }; > > &cpu0 { > @@ -138,6 +200,50 @@ &i2c0 { > status = "okay"; > }; > > +&i2c1 { > + #address-cells = <1>; > + #size-cells = <0>; > + clock-div = <2>; > + clock-frequency = <100000>; > + pinctrl-0 = <&i2c1_pins>; > + pinctrl-names = "default"; > + status = "okay"; > + > + it66121hdmitx: it66121hdmitx@4c { Can we please get an actually readable name for this node? Just a suggestion (you're free to rename however you want) it66121_hdmi: hdmi@4c { > + #sound-dai-cells = <0>; > + compatible = "ite,it66121"; > + interrupt-parent = <&pio>; > + interrupts = <68 IRQ_TYPE_LEVEL_LOW>; > + pinctrl-0 = <&ite_pins>; > + pinctrl-names = "default"; > + reg = <0x4c>; > + reset-gpios = <&pio 69 GPIO_ACTIVE_LOW>; > + vcn18-supply = <&mt6357_vsim2_reg>; > + vcn33-supply = <&mt6357_vibr_reg>; > + vrf12-supply = <&mt6357_vrf12_reg>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + it66121_in: endpoint { > + bus-width = <12>; > + remote-endpoint = <&dpi_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + hdmi_connector_out: endpoint { > + remote-endpoint = <&hdmi_connector_in>; > + }; > + }; > + }; > + }; > +}; > + > &mmc0 { > assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL>; > assigned-clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>; > @@ -180,7 +286,55 @@ &mt6357_pmic { > #interrupt-cells = <2>; > }; > > +&mt6357_vsim1_reg { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > +}; > + > &pio { > + dpi_default_pins: dpi-default-pins { > + pins { > + pinmux = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + drive-strength = ; drive-strength = <4> is just fine....! :-) > + }; > + }; > + > + dpi_idle_pins: dpi-idle-pins { > + pins { > + pinmux = , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > + }; > + > ethernet_pins: ethernet-pins { > phy_reset_pins { > pinmux = ; > @@ -222,6 +376,34 @@ pins { > }; > }; > > + i2c1_pins: i2c1-pins { > + pins { > + pinmux = , > + ; > + bias-pull-up; > + }; > + }; > + > + ite_pins: ite-pins { > + extra blank line, please remove. > + irq_ite_pins { Did you run dtbs_check?!? :-) Cheers, Angelo > + pinmux = ; > + input-enable; > + bias-pull-up; > + }; > + > + pwr_pins { > + pinmux = , > + ; > + output-high; > + }; > + > + rst_ite_pins { > + pinmux = ; > + output-high; > + }; > + }; > + > mmc0_default_pins: mmc0-default-pins { > clk-pins { > pinmux = ; >