Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7656225rwd; Tue, 6 Jun 2023 14:17:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4YxhaxIU+TT9HN5vrqu5MOXKD7v7N1GaQVanKk/a28SWCwwh0ctH5G3hKP410DVvKGD/Lr X-Received: by 2002:a17:90a:303:b0:259:7123:264a with SMTP id 3-20020a17090a030300b002597123264amr1664203pje.25.1686086223136; Tue, 06 Jun 2023 14:17:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686086223; cv=none; d=google.com; s=arc-20160816; b=uvDh3JiKFwNnjoExn++Z0gahZaRbjaka5MpRFH5XllU8EuyKs93lMNXKsSV3hu3X2s pQKyhB4T47eAl+wF1MfW3OLvzulLB3wqhGI41Mg4OZZ2BmJsI3opUnTkbM9xu1cBYbdK c3A13q2cZYiNjd9lFSiDS23k4giFHfgccHQg6Rwm6dz2Wuz0WHRTXQw+oHN6RiHpbMn6 DxoKvBlH5Na4ZAyhVytynmb5SlsY+LIkkDGHtqQOTokRmC5ar70+VTftlbDcp9/Q5+5j 4IY1VM6l0oR1bFtF7jciRZ2maz7lok8AwKWAbnd6ohDjo08MPDJdY33e1onuItP4QDW/ AgzA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d17-20020a17090ab31100b002532f02f026si9315pjr.57.2023.06.06.14.16.28; Tue, 06 Jun 2023 14:17:03 -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 S238008AbjFFVOe (ORCPT + 99 others); Tue, 6 Jun 2023 17:14:34 -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 Content-Transfer-Encoding: 8bit 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 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 --- 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"; }; }; -- 2.41.0