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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4105C433FE for ; Thu, 11 Nov 2021 03:17:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CB43B61168 for ; Thu, 11 Nov 2021 03:17:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233716AbhKKDUo (ORCPT ); Wed, 10 Nov 2021 22:20:44 -0500 Received: from mx1.riseup.net ([198.252.153.129]:37566 "EHLO mx1.riseup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232911AbhKKDUh (ORCPT ); Wed, 10 Nov 2021 22:20:37 -0500 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4HqRjl2syLzF4mW; Wed, 10 Nov 2021 19:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1636600667; bh=I/aKdEnoiBFbiFzC2dEs2OH2kvICILIFbb+XDL8pUHQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nZZ7VLgnykRgh4S50VhSKAt9CVwuhObHR/dDmw8+hfO7tgHKAS+/oCykBQExuJoP3 CoSXT6EawePVthZZZbEGvC3oqbcYMt3bYUKZ7KhPo67u/mNauUXX+oxpBsQMC9jB5A L78CvgQ0jwg1VyS3QQZGizLmPemWYbyI2z0PD7xI= X-Riseup-User-ID: 0F508C3F93D0092647A4B9EA47CE91A5387A82371067F7314AEF16A127F36FBA Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4HqRjh24Cjz5vVT; Wed, 10 Nov 2021 19:17:44 -0800 (PST) From: Dang Huynh To: Dang Huynh Cc: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexey Min , Caleb Connolly , Martin Botka , Konrad Dybcio Subject: [PATCH v3 7/8] arm64: dts: qcom: sdm660-xiaomi-lavender: Enable Simple Framebuffer Date: Thu, 11 Nov 2021 10:16:34 +0700 Message-Id: <20211111031635.3839947-8-danct12@riseup.net> In-Reply-To: <20211111031635.3839947-1-danct12@riseup.net> References: <20211111031635.3839947-1-danct12@riseup.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This lets the user sees the framebuffer console. Reviewed-by: Caleb Connolly Reviewed-by: Martin Botka Reviewed-by: Konrad Dybcio Signed-off-by: Dang Huynh --- .../boot/dts/qcom/sdm660-xiaomi-lavender.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts index 8de3e111f427..712392545c2e 100644 --- a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts +++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts @@ -23,7 +23,20 @@ aliases { }; chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + stdout-path = "serial0:115200n8"; + + framebuffer0: framebuffer@9d400000 { + compatible = "simple-framebuffer"; + reg = <0 0x9d400000 0 (1080 * 2340 * 4)>; + width = <1080>; + height = <2340>; + stride = <(1080 * 4)>; + format = "a8r8g8b8"; + }; }; vph_pwr: vph-pwr-regulator { @@ -61,6 +74,11 @@ ramoops@a0000000 { ftrace-size = <0x0>; pmsg-size = <0x20000>; }; + + framebuffer_mem: memory@9d400000 { + reg = <0x0 0x9d400000 0x0 0x23ff000>; + no-map; + }; }; }; -- 2.33.1