From patchwork Tue Jun 6 21:14:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 104113 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3675216vqr; Tue, 6 Jun 2023 14:16:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7K3F/AcnlQ/HKD/JxstdwwOn7VTgFKPvGCmHPCb9j7t0ZJ8JJNdrUp/ns64ZSfjRTZ+bFb X-Received: by 2002:a92:d9c3:0:b0:33d:5314:d74b with SMTP id n3-20020a92d9c3000000b0033d5314d74bmr5020207ilq.17.1686086204396; Tue, 06 Jun 2023 14:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686086204; cv=none; d=google.com; s=arc-20160816; b=jPtY/UdtqLPEAvDumdWIgPaFLgCDntaWd74nfo0mDTtcHCxQ3RmuOokGowF+uiJ/cG HKa4qCt9cX4VG1qnteIeaB6NMonOcuYgQxxIuvD0hcSG06h97LMEz+AbGR76p6ru40da 8H+TqFP5lRIv9CPzWR5teLxuD0uY1UWrn2sXwZCWKzLo/nrL1azOX80Y3OFG0KTDgUmz HYEtW3so7nEEis9Q0hSM8Wqum4SJET+TaTvZJu+G+yW0m/zLCo0K61YHtWDPR3R7afPV o13twEicZt5bWaTtz5bLWgyBpu9QtQhVM3RyQnld/ohK9iVtTqzijHZplNceuGY1fTHp cBfg== 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 :message-id:date:subject:cc:to:from; bh=AUX/DwHMqCLblU/x+vhdms8mQdjfeWyML3ZrbCVe0HE=; b=fcbWtJIyb8BCav3IcA5oYiYREJLHXd9GsbxJJaq8F/qyj6cEEKdGj6paQxq0/Rjk/t bMBmBkzCZvG7VjoINx/nxyXVFtFG4Torwoj8T7nwUbkty4QHs4yKsUzF8CrHhJE5NiQF 8EPsqGc4fCLD1xjsOlgkyrTlHC1NE/OkvxQwWgjF+9PZPBaa7huOCOwHood6c1SxSnQ3 UmPbDpU6hFxId+8R/PHqEswz9EDc+ChoDZEsVd+5R97dJ3VAjCWkR6j88QMn2LB4dKd2 DFGxiYbLMJcaSCJeEHtI1ORVFc7fT76T8vAa6f93QRuLXY4EppQM1Jx4b/O1iXY4YR0S j/Xw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k24-20020a63f018000000b0053f9a37c607si7585480pgh.711.2023.06.06.14.16.31; Tue, 06 Jun 2023 14:16:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238355AbjFFVOf (ORCPT + 99 others); Tue, 6 Jun 2023 17:14:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237966AbjFFVOc (ORCPT ); Tue, 6 Jun 2023 17:14:32 -0400 Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [IPv6:2001:4b7a:2000:18::167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F10F01721 for ; Tue, 6 Jun 2023 14:14:30 -0700 (PDT) Received: from localhost.localdomain (94-211-6-86.cable.dynamic.v4.ziggo.nl [94.211.6.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id EC0C53F7B7; Tue, 6 Jun 2023 23:14:28 +0200 (CEST) From: Marijn Suijten To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: qcom: sm8250-edo: Panel framebuffer is 2.5k instead of 4k Date: Tue, 6 Jun 2023 23:14:18 +0200 Message-ID: <20230606211418.587676-1-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767985614209177980?= X-GMAIL-MSGID: =?utf-8?q?1767989527840098424?= The framebuffer configuration for edo pdx203, written in edo dtsi (which is overwritten in pdx206 dts for its smaller panel) has to use a 1096x2560 configuration as this is what the panel (and framebuffer area) has been initialized to. Downstream userspace also has access to (and uses) this 2.5k mode by default, and only switches the panel to 4k when requested. This is similar to commit be8de06dc397 ("arm64: dts: qcom: sm8150-kumano: Panel framebuffer is 2.5k instead of 4k") which fixed the same for the previous generation Sony platform. Fixes: 69cdb97ef652 ("arm64: dts: qcom: sm8250: Add support for SONY Xperia 1 II / 5 II (Edo platform)") Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio Reviewed-by: AngeloGioacchino Del Regno --- Changes since v2: - Rename griffin (copy-paste from related patch) to pdx203 in comment. arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi index 3d22be747f042..8f867f841cb83 100644 --- a/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi @@ -54,9 +54,10 @@ chosen { framebuffer: framebuffer@9c000000 { compatible = "simple-framebuffer"; reg = <0 0x9c000000 0 0x2300000>; - width = <1644>; - height = <3840>; - stride = <(1644 * 4)>; + /* pdx203 BL initializes in 2.5k mode, not 4k */ + width = <1096>; + height = <2560>; + stride = <(1096 * 4)>; format = "a8r8g8b8"; }; };