From patchwork Thu Dec 5 16:26:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3712 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A577A3F1CD for ; Thu, 5 Dec 2024 17:26:18 +0100 (CET) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-5d09962822bsf1120023a12.1 for ; Thu, 05 Dec 2024 08:26:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1733415978; cv=pass; d=google.com; s=arc-20240605; b=dGlsnkUFhpt7YTF1vqpQZuBdnPu41hPvm00+Xxdiy1d55nb00aZcYk2AljAuz6Dc1x ykzp+I6th/4+R4FviAUICgOsiY1t76O3EOX5gfpnmIOCOrj3RtwcFM4IChOiGVygiwl7 8yVm4/RcA9os99go4QMuQ2K12UTDmCEadPu5FQXlSLirvizJtMxYWr7g/OoZwWm+9vTR H3Sv1wpNwTxcstEArWfiKicIVhXW5Yj29+OHOEirQE2hIWRgoL4ZzZhnFMOI+A3CnoYr BRnsOW1tZ20TTRHmrwS5LhTHtvN+jO44KWuSJqOdwOvJyaNs0Jg/hToY33JS6sm5ynCd apNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=wFe/gBJ357bAp9SzMl9ljXkmLoH4iHnYQIm3CSJgG7E=; fh=UkQ6NbadKFS/5LGUoQIXLD5kXoe+bC/WjtypmOfw/BQ=; b=j8NMSQSzjWG5jVMpCe+iUiE835TARJF0yvoavBIPSf0FsSVOBTpQ2AjiBooc3IUIP3 B8hJh/kjYQyMaQn6hQwzfl9ud3cc/wSyEfrKnHoBpABnHJxFAITsccTTuFSpAU0ZfmZV w4PEdPOZfyTpfWghHquiQ45rHu8u0ZdTYi58rOvVjtcG1QiUjCn+ZXqQEfFnGU7Dd7nE WSorXVToabl76vVnsMcF7UdFMg+PsE2ij48LmZPuzsWHSGU4Kr1NKORKeBXNkf24kxbM sXXTtLRd75yqO30yFJnAmdpK1kWOxZUSnq7v9If1b2qPs9ZEYyNs9OglEpw9VVrM8eL8 qyPw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Fxk22o9G; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1733415978; x=1734020778; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=wFe/gBJ357bAp9SzMl9ljXkmLoH4iHnYQIm3CSJgG7E=; b=XEfrIxAqhZzOjvEsA11jTsOaeqhFaYWEaHVrS/L1G/3Gn0DS9JJmvMc2tOveli+7to /fcVMqEkXVJd4P9xSebYckxMZtKGRLZoa1TPnGraC0K8u4HaquSvDBQf7AFKJQOfVRsS 5+yyt+nzagWUI9q4+NnCTslQUPoJK480R9XO8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733415978; x=1734020778; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wFe/gBJ357bAp9SzMl9ljXkmLoH4iHnYQIm3CSJgG7E=; b=KlVxX72DuUVFX14zls2zZm71XQVIsxESf+KQ8sw62xGNXUxi/awGmHFM189HyRMuBO d4TDi2+UVXmgNLxCMqmtD2hnkhmXqfd3UYWcMkbcabsQrGuoK2MmkaU07QuMElDT7Xye pB5jwFz+d7Z7NfRhCz7ka2WMNVn9hTPyrZGOKj6iY3uQUYSkIcY17JTQKyHnOMtG9ekz /XERnobjJP0kGNYfDpOA2gWgi4XicecgyQIPUgJMCS5fSq0NLxGwWQTcIuHpypggAWTC bisl/5M7ddOaqZf/d0lIjohBCq9fkYKd+a+zzRwBQe6GG/xsa+wCRajDhyWVYNJxED46 IUWQ== X-Forwarded-Encrypted: i=2; AJvYcCWrqToWOpdLaUUBHUngm8ymf4pIADmOHVxLzE8NCuUPh7c7a0REKNqF2QBICRQiaLKFUqnqjP/RfWNkkUT/@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxORLtEu+2J7ZnVNI6iUfNhUqqsSHtN32FDwNVWQ/Kw3gJhrnko xedcAwsJkBUfxkKW/d8cwNu0/TYf4DnnODyjXMwvN57Zttf+5l1KmMEsF/4ctllOag== X-Google-Smtp-Source: AGHT+IGM+b/BAWXWiGTUoi5cCKhGsv6+iDh/NA/1Wumx0XEoNn4+/HdmUZkD/WnCILWbKVYdXa/JkQ== X-Received: by 2002:a05:6402:4499:b0:5cf:d078:c9dc with SMTP id 4fb4d7f45d1cf-5d10cb8027dmr9205825a12.22.1733415978136; Thu, 05 Dec 2024 08:26:18 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:12c7:b0:5d0:95a4:7cbe with SMTP id 4fb4d7f45d1cf-5d1251dd6b6ls244503a12.1.-pod-prod-06-eu; Thu, 05 Dec 2024 08:26:16 -0800 (PST) X-Received: by 2002:a05:6402:34ce:b0:5d0:c67e:e26c with SMTP id 4fb4d7f45d1cf-5d10cb56472mr9746958a12.10.1733415976215; Thu, 05 Dec 2024 08:26:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733415976; cv=none; d=google.com; s=arc-20240605; b=ZHLDojebdMSRXwnQn3tSFHu5BMruPR5yBw0hsHOBufefrqWAgzpa80vxvU3lzqcgtp wCz2HyAaukXNi0BwLmoZMrfxqk3CeDi6wkVYqFimm1qQJontgMzeuYp0v3maNN/6lyCq AM6fSMfq/rH4pcuFt9lNnnVVnR02THr7dG/LOmsfS0oe9iBYNqoxXsVmlIg3zZ1ClWdc VAfo30m33TxTReRgMXKbu2ZlFaMVFMHsyV1GPdQNvCbcBFeo/xmyM9vFTEH7eYSua6g5 /agPA/b4E/JYmxyPY3Vq/49Ox53xtA+P3lfTDx0AQJM+EfaBOkji1kzYeUIgUUcsRkLj Ttuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=JCLk/wc3MKwAF912ySsq2eZpu6hxxtGQsnffSicJSqo=; fh=xTE7e92AtnItdBsuN2vlt3m0NQSoaZroClhK7wBMa+g=; b=kQMXW4wPe/I+vc79U5uXFDgAc6/yr9J9XuBOstPNu3aHWtqtfLgmeJhobq+KOOX9HU 999EhXcUpuTJfGuwccCNzTaxsf8a0m9RE0piZsWP4KEA1ErXkhx0JwIckysQCBIAIsDT EdZdmsvlISvme2E/vFE8lt0i2fEMtMj1+CPMFgJUkt3Jm2/PtTs1acwb+CydztaKIpKi TcXdh6cPUobUbVwJX/7cpP9rYWRshojJcLC6NwHLp28mBLCc3fXXbMEdg2emjtCSKrDp h5l7Qdesi0XRuo9NO5oEyvdEpDjFWBaQFBLwFoCMpycZL+0lk20MIGsdC1Lqw3q3x7WY FkKA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Fxk22o9G; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 4fb4d7f45d1cf-5d14b6067bcsor678702a12.6.2024.12.05.08.26.16 for (Google Transport Security); Thu, 05 Dec 2024 08:26:16 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Gm-Gg: ASbGncs1E8kkk8TfITtHA0GyKS3fZXzlONBlYKeUwzWkEq3adBfMW5RnU+1LhEvgn+c Ar+PzbVwRtdjonUVpYz0kDje9fRhK6rv2pHgj287YrV8WWmjYa77Ysh+Ae2nVo8XdrxjPXliGBI WtoWxHDDkL1S8R4D6vzWmIoEhc6wxySUAX1SqDOKMGYa/3+XFmGFvSkC8QXMM+uXlf3/RBXHEZh Lg1nDj2JRiEP0qFinzlynldpCvcmf0N5EB6NT6Tr08UKDDqs1kkYbCvrmT6f73iEDnuJ7sd7Th+ IVQG9xcXc/qZ/nnh+it6wuP1f7UOY05N9p9XNtIBTVKZcA== X-Received: by 2002:a05:6402:5107:b0:5d0:eb2d:db97 with SMTP id 4fb4d7f45d1cf-5d10cb80219mr11709960a12.25.1733415975690; Thu, 05 Dec 2024 08:26:15 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2001:b07:6474:ebbf:61a1:9bc8:52c6:3c2d]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d14c798f98sm965026a12.57.2024.12.05.08.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 08:26:15 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Michael Trimarchi , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v2] arm64: dts: imx8mn-bsh-smm-s2/pro: add simple-framebuffer Date: Thu, 5 Dec 2024 17:26:04 +0100 Message-ID: <20241205162612.1804274-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Fxk22o9G; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add a simple-framebuffer node for U-Boot to further fill and activate. Co-developed-by: Michael Trimarchi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v2: - Fix the warnings: (ranges_format): /chosen:ranges: empty "ranges" property but its #address-cells (1) differs from / (2) (ranges_format): /chosen:ranges: empty "ranges" property but its #size-cells (1) differs from / (2) by setting both #address-cells and #size-cells to 2. .../freescale/imx8mn-bsh-smm-s2-display.dtsi | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-display.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-display.dtsi index 7675583a6b67..98dec3c42060 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-display.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-display.dtsi @@ -4,6 +4,34 @@ */ / { + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + framebuffer-panel0 { + compatible = "simple-framebuffer"; + clocks = <&clk IMX8MN_CLK_DISP_PIXEL_ROOT>, /* lcdif */ + <&clk IMX8MN_CLK_DISP_APB_ROOT>, + <&clk IMX8MN_CLK_DISP_AXI_ROOT>, + <&clk IMX8MN_VIDEO_PLL1>, + <&clk IMX8MN_CLK_DISP_AXI_ROOT>, /* pgc_dispmix */ + <&clk IMX8MN_CLK_DISP_APB_ROOT>, + <&clk IMX8MN_CLK_DISP_AXI>, + <&clk IMX8MN_CLK_DISP_APB>, + <&clk IMX8MN_SYS_PLL2_1000M>, + <&clk IMX8MN_SYS_PLL1_800M>, + <&clk IMX8MN_CLK_DSI_CORE>, /* mipi_disi */ + <&clk IMX8MN_CLK_DSI_PHY_REF>; + + power-domains = <&disp_blk_ctrl IMX8MN_DISPBLK_PD_LCDIF>, + <&disp_blk_ctrl IMX8MN_DISPBLK_PD_MIPI_DSI>; + dvdd-supply = <®_3v3_dvdd>; + avdd-supply = <®_v3v3_avdd>; + status = "disabled"; + }; + }; + backlight: backlight { compatible = "pwm-backlight"; pwms = <&pwm1 0 700000 0>; /* 700000 ns = 1337Hz */