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: 663656 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC1F9C6FD1D for ; Wed, 15 Mar 2023 04:12:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231309AbjCOEMR (ORCPT ); Wed, 15 Mar 2023 00:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231158AbjCOELx (ORCPT ); Wed, 15 Mar 2023 00:11:53 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BDC35D8B4 for ; Tue, 14 Mar 2023 21:11:15 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id ay18so10983403pfb.2 for ; Tue, 14 Mar 2023 21:11:15 -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=4P3tEfEViUq8pe8JZVOmbt9eEaFMKSBQUJBsAYgCjH1Z91Ot9RfFKQoEOg8WX9yG/P iwEuIPF35fL/DvnVxabzD6BG1kQ3hiKZEWQ+isyxKfwhInFAFxm/yabvd6yb4EaA21ag nk9P5/mZ0NJm3714Lv8FKmgvrolODEWU2KnlcsQiphi5AsCxIpXlJIllosIHwC2VhZSL bp0OstP1yBXuufGZAQzXPxFqbfrKvS7VyUUWEW6gCWwLS8xbxZAvUWRm5B0a5cEuIDPu +0ZFWyKr/9HUUzAdLLdsCuSOhbOCNjo+kYzqT+JfgisCxlk+IrqLsCBznuY5UnNrnH5+ hmnQ== X-Gm-Message-State: AO0yUKWnlhH6NrNl/a7x/0WL32ogsNtVaqoPb6t7WmvY8t1yd6n5s8Th 3q5n3+x6xmSBcLOJz58cHZcI8A== 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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>; - }; - }; - }; - }; }; };