From patchwork Fri Jul 21 08:28:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 123685 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp78013vqg; Fri, 21 Jul 2023 02:25:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGzL0ZeuU/1SYvHpTLG0rz2mVu7z3m4NESiZdE0edL/ouojvb1PZ2DMUbR8mF57wI2th3us X-Received: by 2002:a17:906:cc0c:b0:982:8de1:aad9 with SMTP id ml12-20020a170906cc0c00b009828de1aad9mr1265189ejb.64.1689931530667; Fri, 21 Jul 2023 02:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689931530; cv=none; d=google.com; s=arc-20160816; b=VWfPHBsa/V0kYpZGttJ6Sm96irL8A2r26ayCZsrmK505g2ONG1WXXC48+SdVzV6a2V JRzvm6Brc0c/B1UMsbNG0FWD93NaeqGUT/Up6vnHf2XNBjfz6/na3vWdGwIIwmUC/Tbg iVGV/lz0WnD9jJNiQ2VVBXQT/0FOHoGGHY2BdzSl0WBp8Q7Xm3SBtM5dhtg8cewQwly2 Yd4TxrcjapYgtAzPjDspNcWOfTtwS7X3WfPChjLrPUYWAZ05MHoapzFzpz+VMtTtWIkt qwtL9vkHi6rIOy8jqDmbVvLULPGQjALEXgFQkovyRNAJ2x79cqrmB833eHmAdJh1cfWC PiJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E0fqpB7vAvCJjLxP7IKuFg0/eOBZKmcncI3L4+M85zM=; fh=sgenI05r4sE1niyW0BRvrA+yDOHBY3eDI27nhszUuwc=; b=gfitui/OvQKEtkff9Ne+fDm2cH0yCksJaaTW76kcwkv9bKFiykvNAXHkBOEB9KLRRN GSrcBx3whk3uKOMLafUAQEYfVEkjyMJd8zjU0Egm7aguqIQ/1H/pa0WIq7v0xAsvWIc9 TtK4XcUyccpsrZV1Oo73Q28pxXBYIfTJcu8hOoMEjn/czwG9sDHnxZ1nAx7CQGqX6iMn N4Os5PzYXYiW8sKCuu8k0GYAv3zeUSSWXbppqUznJEYzH4AxfX9wWXDs6uZQx8dV/gte f9eDx2/i7MjKSUoPUCHqTUTzxMQ1eSn+U+c9cSw85d8NxTjumBExTIl3CbrbAB7jm+gN 7uiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VfQ+5tjv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a1709064a4200b00997e8b6eaa7si1934506ejv.510.2023.07.21.02.25.06; Fri, 21 Jul 2023 02:25:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VfQ+5tjv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230517AbjGUI2s (ORCPT + 99 others); Fri, 21 Jul 2023 04:28:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231124AbjGUI2f (ORCPT ); Fri, 21 Jul 2023 04:28:35 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E7E4121; Fri, 21 Jul 2023 01:28:33 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (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: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id C3786660709C; Fri, 21 Jul 2023 09:28:31 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689928112; bh=Comjd7Rpd+yn3bmmyHbh/cSi5Jl1oVbdmFMbRN+++wo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VfQ+5tjv3f/+UFCapmORMaCBqgyuBz2TWAjeE2TyzmxjCHGJ5ZDK8OpIINN0zVDR/ dyLVzXOAbz30wwWTFEaRytxlNd4mhfviyN+tPHuUQr1ftUSz7hbRLJ7ORnSQydF6yN YHYa+S30slPEWC92jPTfLlBxgn1K3il3fqPI3lt2xWAq7xn2mLcFjJqF4mBd4IxhRj LL2jcp6nVvQA4sN312wwE5fzpLQWTll2BjzBUnjQcJmziK5LwfdKgQVl6sa/sLXlK1 df+zEBZdAY6t9Zcr8+MckM5oieH5GvYyRKk6U2HL5hbPwnaqnF4iQqFbDagPkCh9gg 5Ew0FTfoehOOQ== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, kernel@collabora.com, AngeloGioacchino Del Regno , Alexandre Mergnat Subject: [PATCH v2 3/3] arm64: dts: mediatek: mt6795-xperia-m5: Add DSI Display and its vregs Date: Fri, 21 Jul 2023 10:28:22 +0200 Message-ID: <20230721082822.680010-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230721082822.680010-1-angelogioacchino.delregno@collabora.com> References: <20230721082822.680010-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772021644467006184 X-GMAIL-MSGID: 1772021644467006184 Add support for the DSI display found on the Sony Xperia M5, including the necessary regulators configuration for it. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Alexandre Mergnat --- .../dts/mediatek/mt6795-sony-xperia-m5.dts | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts index ecdf00707a44..7364c7278276 100644 --- a/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts +++ b/arch/arm64/boot/dts/mediatek/mt6795-sony-xperia-m5.dts @@ -66,6 +66,65 @@ bootloader-region@46000000 { no-map; }; }; + + vreg_disp_avdd: regulator-disp-avdd { + compatible = "regulator-fixed"; + regulator-name = "disp_avdd"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&pio 138 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vreg_disp_avee: regulator-disp-avee { + compatible = "regulator-fixed"; + regulator-name = "disp_avee"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&pio 139 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + vreg_disp_vddh: regulator-disp-vddh { + compatible = "regulator-fixed"; + regulator-name = "disp_vddh"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; +}; + +&dsi0 { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + panel: panel@0 { + compatible = "sharp,ls060t1sx01"; + reg = <0>; + avdd-supply = <&vreg_disp_avdd>; + avee-supply = <&vreg_disp_avee>; + vddi-supply = <&mt6331_vgp3_reg>; + vddh-supply = <&vreg_disp_vddh>; + reset-gpios = <&pio 106 GPIO_ACTIVE_LOW>; + backlight = <&backlight_lcd0>; + + pinctrl-0 = <&disp_rst_pins>; + pinctrl-names = "default"; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; + + port { + dsi0_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; }; &fhctl { @@ -180,7 +239,17 @@ &mmc2 { status = "okay"; }; +&mt6331_vgp3_reg { + regulator-min-microvolt = <1800000>; +}; + &pio { + disp_rst_pins: lcm-pins { + pins-rst { + pinmux = ; + }; + }; + mmc0_pins_default: emmc-sdr-pins { pins-cmd-dat { pinmux = ,