From patchwork Wed Mar 15 04:11:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13175290 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 231C6C6FD1D for ; Wed, 15 Mar 2023 04:12:12 +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=eL4fQttS+poNzDFsx1ufNB/8ij+ulNLMDuEPT6SRH/s=; b=UNk8D35IqNidXv 6zWOP99iZ2bhWnD95Sn21K0FDW2YIFr4Hcz0U35ofZHxoiDsQrxxE9Qq/+lScubDzL467ghiZjQXv jxHkxGxsJoEwSs+spxyfudelfrz3iRim9q7S6qNCa3aJ0szp3VIJKr1UTs3qdUFLFUvoBaM8Q+rHG PKUuEVnsnB2UpryRqV6gU3JyXqkrsyXRAVGQFGZXxRw8wp4nOnAQsNx8zR05mOB2eRLfFPfQ4Lfkm BNNnSaVwISyWCwqNowm4wBctMCD71/iifajQcPPlAnEQGwuI4xD8Km3ylAtp7vDTmJTB1RSPQj7OX Tw0l2aFFwRFuhhBTI0Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pcITw-00CFHY-1f; Wed, 15 Mar 2023 04:11:20 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pcITt-00CFFW-1B for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2023 04:11:18 +0000 Received: by mail-pg1-x52a.google.com with SMTP id p6so10116084pga.0 for ; Tue, 14 Mar 2023 21:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1678853474; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HKoujjtc9hCGDl1d2RjrGi/c9c1GCO8QdPXGn1k1ZhE=; b=PqGSN9BYMdbfE0eWEVmbysbCyChbr6sF9pWxkj85Kz5mkziotP9bSFSXW4C9708ksD PdMQdDG3U9RhQxCC+RljHg5ufQoAaOkiDJ7qb1zQhp+AnWEBYLxLDrsn+104v9cVnufh r8yR10WUyRReQ9MTec2gjjnuTMDIY3sM0fsUc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678853474; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HKoujjtc9hCGDl1d2RjrGi/c9c1GCO8QdPXGn1k1ZhE=; b=UbWQqJ9S91d9qdM5U1S1i5zkW/8gx+T2MhZl9U94eeJB5eC7ndkXJ1TrB4OuLiX2Tv 31AGAScpqND5AGX322JCiyoitqt1C3raH290jTkGzGeoKLUUzGscPB2Lz7J1jqBWrtHF +gzHS5/J9T0MZ68xH6XAuNR05eMFE9Irntn9bi60Ax/eo8rENcO1Dw9Ubfde9tyoUhg4 GgSdAfEMGyxauj1ujWTITPR/31NfIaQvYi+42c7r9hHamiF9QkqhjScwZly85keaZO0C mQe4VMLYuAJDDjJ7TJlG45wUq80m+l4dgkw62tK60X/zFJ1EwmdtV4dyrelHTN8xdMga 3gwQ== X-Gm-Message-State: AO0yUKUE+7ZKG9J7Egq74cae510o/knmSQ10r7Vq1wHbakrmkB0JV9cI Z6LIlo6WBfw/X53nKyMiP7JqUQ== X-Google-Smtp-Source: AK7set9NjRWMOlC2eXp/43o2DAvOdU92TkqxbQHze5KccUrQJ7/Ck6guDEaybokQOD5ue/W6vTf3/Q== X-Received: by 2002:a62:53c3:0:b0:5d7:637a:abcf with SMTP id h186-20020a6253c3000000b005d7637aabcfmr33159484pfb.32.1678853474423; Tue, 14 Mar 2023 21:11:14 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:3a77:bf68:24f0:1c75]) by smtp.gmail.com with ESMTPSA id d13-20020aa7814d000000b0059261bd5bacsm2338685pfn.202.2023.03.14.21.11.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 21:11:14 -0700 (PDT) From: Pin-yen Lin To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Pin-yen Lin Subject: [PATCH] Revert "arm64: dts: mediatek: mt8173-elm: Move display to ps8640 auxiliary bus" Date: Wed, 15 Mar 2023 12:11:07 +0800 Message-Id: <20230315041107.2886940-1-treapking@chromium.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230314_211117_401695_9326B6E0 X-CRM114-Status: GOOD ( 11.82 ) 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 reverts commit c2d94f72140a28d0f516b7c5e8274a9c185a04ff. The `lg_lp120up1_mode` defined in panel-edp.c is not working for some panels used on elm/hana devices. Move the panel node out of the aux-bus subnode so the driver only uses the modes retrieved from the EDID. Signed-off-by: Pin-yen Lin --- arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 26 +++++++++----------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi index d452cab28c67..d45a2aeb0eb1 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi @@ -90,6 +90,18 @@ switch-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,20 +294,6 @@ ps8640_out: endpoint { }; }; }; - - aux-bus { - panel: panel { - compatible = "lg,lp120up1"; - power-supply = <&panel_fixed_3v3>; - backlight = <&backlight>; - - port { - panel_in: endpoint { - remote-endpoint = <&ps8640_out>; - }; - }; - }; - }; }; };