From patchwork Thu May 19 07:26:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 12854589 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 28B77C433FE for ; Thu, 19 May 2022 07:28:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=a1lCCrt1kQkeEoLZ420sOYs/fwxOOGICU+EPt03lpb4=; b=yaXDHX4s7aRK+u udhMmZ2oIOLPnD2zdvU8MN3JKPr+1MDB1TXO627R23mYoOQR67PGPN82viDxjkQZzZe+0aC6to9sr KVp/jr8MQAVx2WuGhuCXAWQKMrWgB5qUr5e5BexW9VM8tl0XvY3NqpzlDxmg8FWp51zN3nFMfz1Wn 7f8A2sM+lr+nkdyFLveQlp74Z8wPepp1Fu5ZIQVCcEL1W1exs5Wn1wiKpbC8h4FdXc27EozdVrk/Q iih2sOPfpkuL3Pzjg+75Dyjl4jT08JO+zN+WvwQQ3eOkgbIv0j9a8BnGXCtTpGo0ei2m2QdAvIWF+ C6Ctb3Herd8seOF9mKpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nraYt-005XfE-4X; Thu, 19 May 2022 07:27:07 +0000 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nraYp-005XeL-7d for linux-arm-kernel@lists.infradead.org; Thu, 19 May 2022 07:27:04 +0000 Received: by mail-pj1-x1031.google.com with SMTP id l20-20020a17090a409400b001dd2a9d555bso4483023pjg.0 for ; Thu, 19 May 2022 00:27:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aAwl0nMeiuQyulzpnQY+0Q3CMgejgrLMRz8aWvv0M80=; b=TCm4dq7k42XhcVURpAi98W3DD52g+rV9t2retTLhSARqOR3vx0HOSAEBHAd+IT0vqW NCYdc4hzFxG5KHr44IxqM2KzakWaqafx5DwQW/baXPYYt9/0/QCh0zLdjV4YDWMgaoMM G+7u+3OlAY3yeCssSlYR9pIe3ZnfyvvitTnK4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aAwl0nMeiuQyulzpnQY+0Q3CMgejgrLMRz8aWvv0M80=; b=FGUimNBIwUf3h9UY6ArZXIalt41XWhmGXLq3i7fHYciCpzhYub7x8AaLQsAqZg0ATV 5VHkoTdqUlKGO2hYUL5YUBxJRlORhVz1n9RanJrqF4sBv2VbKhNnQOjt9gw6EAaoL4PP 8rfaqh+FNR11fkO3c7cJdV9kMSAZv1VAQeSm1dIvcC5lQlRnEBeIdA9AadOXdFlpdZKr +Q3lZXnVrYUma/Svfs4Gh4LXCUiPd8TqOVs3/yjhwjIZx58An9S7YVofAJfqVLrUgQPA c7aWkKc29HIjV6qBjpFmGpesAO6OAbxSpybAYlIR6mCH+PdMyFqkl1DZbIHBEvwWCIJv mlMw== X-Gm-Message-State: AOAM530bGDKvhFkcnrMFE9nIB2BBHkXYPEDlg4P2zFFGyD9zSZ3946v7 123STJEEuX0xq5d8bTgoxF20Qg== X-Google-Smtp-Source: ABdhPJwxYC9vOe2OgP9SywcJgr2vVxIIiMIGMDJNVZ/f/acPVTzBxtTzRayEoSDDSXE/IjWNvND/Hg== X-Received: by 2002:a17:902:cf4a:b0:161:64f4:52d8 with SMTP id e10-20020a170902cf4a00b0016164f452d8mr3433156plg.83.1652945221701; Thu, 19 May 2022 00:27:01 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:7f93:9f84:d846:5099]) by smtp.gmail.com with ESMTPSA id y23-20020aa78057000000b0050dc76281d8sm3296106pfm.178.2022.05.19.00.26.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 00:27:01 -0700 (PDT) From: Pin-Yen Lin To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger Cc: Pin-Yen Lin , Enric Balletbo i Serra , Hsin-Yi Wang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH] arm64: dts: mt8173: Fix elm panel DT node Date: Thu, 19 May 2022 15:26:49 +0800 Message-Id: <20220519072649.1493706-1-treapking@chromium.org> X-Mailer: git-send-email 2.36.1.124.g0e6072fb45-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220519_002703_327060_E82390AE X-CRM114-Status: GOOD ( 11.54 ) 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 Move the panel DT node under `aux-bus` node so it won't use the buggy `ps8640_bridge_get_edid` to get display modes. Also change the compatible string to "edp-panel" because the predefined `lg_lp129qe_mode` is not working. Signed-off-by: Pin-Yen Lin Fixes: 689b937bedde ("arm64: dts: mediatek: add mt8173 elm and hana board") Acked-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 26 +++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi index 9c75fbb31f98..1e0802a6f6d2 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi @@ -90,18 +90,6 @@ volume_up { }; }; - panel: panel { - compatible = "lg,lp120up1"; - power-supply = <&panel_fixed_3v3>; - backlight = <&backlight>; - - port { - panel_in: endpoint { - remote-endpoint = <&ps8640_out>; - }; - }; - }; - panel_fixed_3v3: regulator1 { compatible = "regulator-fixed"; regulator-name = "PANEL_3V3"; @@ -282,6 +270,20 @@ ps8640_out: endpoint { }; }; }; + + aux-bus { + panel { + compatible = "edp-panel"; + power-supply = <&panel_fixed_3v3>; + backlight = <&backlight>; + + port { + panel_in: endpoint { + remote-endpoint = <&ps8640_out>; + }; + }; + }; + }; }; };