From patchwork Fri Dec 9 19:17:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 31913 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp948691wrr; Fri, 9 Dec 2022 11:19:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf7o4UKB0AwK5Up6Ij/UKN9xdJFSrr9iY8HFkIt4pV184xksKlPXbQXn2oVRZ1rFLdMYw2UC X-Received: by 2002:a05:6a21:9991:b0:a4:5f8d:805a with SMTP id ve17-20020a056a21999100b000a45f8d805amr10825979pzb.53.1670613546881; Fri, 09 Dec 2022 11:19:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670613546; cv=none; d=google.com; s=arc-20160816; b=l1J6PWWNDs2OTwBu3AcaPxX6CC+XRPpWF+l0BNiB3iqukX7vVd5XX5icrXna2xvW/k OQz2zwJkzkQW7R/VEk4fbbO3L+kSvup1j+asPQ8AHtsq6UlElyRXf20kukbN0CLjk03Q 6ydWOFJ0aAlOnKMy8TKMoWsDIl0JOAleJmSMrkIYJWYmSRLT/QNt6DviyFFRbFiWXHVE KnB+a3UIySeAKcnCd5awJPHCvO3y0RFro8/r2U+nELW21Hdc4o703rr/CuDEBiGScqOv R0qj1hbTMoyJXIgvlL5ItK1lgHnHm43z+XrZf27AWzOPfmuhp7SFuik6zI8QNlTPhVl0 INlg== 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=lb9NdhBD+r9h8QCA8fbWdYsHvJacNjpCaK41A+tWwbg=; b=QfnSJJZBrE3ss+D5OqXWAj3/s0y1Vt35cwUCO6vnNqX4SgHxWY/m71U90JjtxNQ/pL W4EEfsoechoVhkNapoHuNVGplo0mU+VhpYO7LyWXensPiFQx3uknlMz+hWersGZdWHTs DphjR4VMn8wxyhuDgIYONE6JuXE3qglAi8Noo12jjpJhx2nxyhJwcy2d8KcV6tSRWkaK L+9XIbEzHVItqJlirZSXm3Sy+03fgllVpfFusNXPrapZg0hT/JTZgaBEQtzrMvKXd1Zm UAFHCFe4HR8a+71i/bv2eQr3rwwL7OJmvGIXBv8oOvff4XKh6IcQkW4WGEr5D45kzXjB WA5w== 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 r30-20020a63a55e000000b004787004c8dasi2349558pgu.123.2022.12.09.11.18.54; Fri, 09 Dec 2022 11:19:06 -0800 (PST) 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 S229691AbiLITSC (ORCPT + 99 others); Fri, 9 Dec 2022 14:18:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiLITSB (ORCPT ); Fri, 9 Dec 2022 14:18:01 -0500 Received: from relay06.th.seeweb.it (relay06.th.seeweb.it [5.144.164.167]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 720851400C for ; Fri, 9 Dec 2022 11:17:57 -0800 (PST) Received: from localhost.localdomain (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (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 C6C333EEE4; Fri, 9 Dec 2022 20:17:53 +0100 (CET) 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 , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: sm8150-kumano: Panel framebuffer is 2.5k instead of 4k Date: Fri, 9 Dec 2022 20:17:33 +0100 Message-Id: <20221209191733.1458031-1-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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?1751765270157536546?= X-GMAIL-MSGID: =?utf-8?q?1751765270157536546?= The framebuffer configuration for kumano griffin, written in kumano dtsi (which is overwritten in bahamut 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. Fixes: d0a6ce59ea4e ("arm64: dts: qcom: sm8150: Add support for SONY Xperia 1 / 5 (Kumano platform)") Signed-off-by: Marijn Suijten Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi index 8f1ddc969406..9f48a097927e 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano.dtsi @@ -35,9 +35,10 @@ chosen { framebuffer: framebuffer@9c000000 { compatible = "simple-framebuffer"; reg = <0 0x9c000000 0 0x2300000>; - width = <1644>; - height = <3840>; - stride = <(1644 * 4)>; + /* Griffin BL initializes in 2.5k mode, not 4k */ + width = <1096>; + height = <2560>; + stride = <(1096 * 4)>; format = "a8r8g8b8"; /* * That's (going to be) a lot of clocks, but it's necessary due