From patchwork Mon Nov 4 15:15:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3620 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E261A3F1CD for ; Mon, 4 Nov 2024 16:15:46 +0100 (CET) Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2fb4c35f728sf32020511fa.2 for ; Mon, 04 Nov 2024 07:15:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1730733346; cv=pass; d=google.com; s=arc-20240605; b=TspW5wxHKCn+llLkQbLyMdmVuiAF2NC6HYGHtVMUO1UmrNECm3dRgkPj4WiyRkeTJO 2xfQxO6YUiqA2Ce+8bhZ7BKQK77503Lgqb3BYNQ8qgIrCXAi+BkGAIIQpWb/CTPzW5wI DvaUJwxVk4KO874mplLbh5yzyld3hS9ec03ZzKk8sheCecSSpBiZkfXfflgsGRI6kUdO RPf1ghV4Tre5B3xlnaykpXLTuIQ3CNQ9RzExb/jV28E0kR8I+okIeH+/7me/voNL4sXq Jb1WSvr3OvNuGRepabEI5s9/O/ig3kb87U99qSzTd7mu09bO7f5vy4cAphh/JbGRNMOW vxiA== 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=BLpHjA9o8Y1uBSabZK6+3DVoABiV8+iTeVVf4iZHSSo=; b=A+An+GWBJJsqbBA82ccgDkeFb0CCwSxMaNlCmg7iKDOyQNz3EY542HYZqIfCyRU/dX Z33CQUj3ejWWidDm1JACHWk9DUxU5VR3L7zNAtTJZHSiAJLDE7Om9oJUjj1kSgB7bA0J VyyEexnqLkU+/EYb1aj7tn/9YHjVm1hMCvfvXDFYpAPX09dsbAmVWeoHnzS1bvnBjGcH Vmus6Lhn4HoDHhLdcE3apcUm7GJV5Z/QM2uVASdqrTnm9h//9+/HGUeSgd06iSvCxx3b pPn1EUTEYHPy4w+O3CNYBSpdimg9imG0yt+nCr87N7xi/KlkaPvGsZy3XT3z27wxKO4B Acuw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=A5sZEFqu; 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=1730733346; x=1731338146; 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=E3qpehg16sqRih0RrMcfawwc3zBRezm+875VESeLebKgGg4AVuflestuWIjm18Pduh JFi9/4Si5XWUPzRCnZu1Idqv8Rv1cVlcqwmmsB7/DEHVID/6Nbt5Actcnr87AZiW4il3 z9Yih9UM/7DSmUImTmFziugub28mvAWyBHZVg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730733346; x=1731338146; 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=G8BM3FIMKe0qDyS+5jWj91Xf/DKAbyKiGny4V/keMPVuk96pDRndvFyZifrWKDut/m qQewBgIH4xPkTeL7i3Q8SW0zGU+F1KIFh7xKOrr+/96q4RFCstYpQTsKVFD4o8/rc6sD y0Zvy9Nw5i1UJw/H6+nikc3rXw2HK/LQGoFhp7rXrtT1o5FdcuY4HV9W8Hv4JDTFiZSl Qt6EtojDEZxFnk9/nb9nWxkMc+d0CNhJJ2vMn8RCinuPlC2AiQrYle5BWUtiVapG7Zc8 9OZBetQOTt6LLkwgq0rZTp/IILwapuQQHyJ5sXGYscjGv2Hp161BG3TanoYME4Wa4uda Oh8A== X-Forwarded-Encrypted: i=2; AJvYcCWL+0fmpwOO9QZRTIbWpOxVOA8WQRW4+XgP/8Jv03sOkxP17C+GZi3BuVod4gVpNvFuBV450Ep/baIrzClG@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YzVeTcJCracUDZSc/wuJUBLG7rToM0Gr2WwrHW9e1/4T4ddpEJB feLDGvmOkENDFlnvCnK10nOWfb0ZRU0KM0SIMVxu/Wss5QTaJK8SOMWD/kyhp00FHA== X-Google-Smtp-Source: AGHT+IGXVw0HVEfLTCC83Yx/VNv6yZ5ZK/8MdI9uiy6KWKLYtxDuXl87smS6aIU/v+/RKmjqCq6A4g== X-Received: by 2002:a05:6512:124c:b0:539:9ee4:baab with SMTP id 2adb3069b0e04-53d65df2701mr9000131e87.30.1730733345636; Mon, 04 Nov 2024 07:15:45 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6512:3993:b0:53c:5873:6339 with SMTP id 2adb3069b0e04-53c7951bbcels237636e87.2.-pod-prod-05-eu; Mon, 04 Nov 2024 07:15:44 -0800 (PST) X-Received: by 2002:a05:6512:3f09:b0:539:901c:e2e with SMTP id 2adb3069b0e04-53d65e1634fmr8586386e87.58.1730733343813; Mon, 04 Nov 2024 07:15:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730733343; cv=none; d=google.com; s=arc-20240605; b=EukwC+CU7TFoT65uDsTUIgw15aC8eLZTQJdGkMqtZXWSx6zFqIN1jCrQPRZzbLya1H jOJKLVV02mKMhskpOyeE42ofqofp2T1l+6hZ9QCbcRDktHcurSWfdp6tgJQKyuFVVuYT uMiRa1O9ZUWZOs2OH9XVC4W7MtfrT2zJs+IWDf/8m75tp+WbCfWRxZeKpTIL1QUg65oh qrtKAe+a80sztUPTa3z2cs4uwklWNf0JPa9C9Q0Lr391zkK6KXMPkK2tTGLkvwUmmPF7 3Em7rpAshNUJyRz8DdpF3vg5cqxFlOkbMcoTyF1Ssq0FFEBB+Xvr5Na7SaNFBWv3Slvv NJXQ== 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=f76Dnpzfc5mj2obki3AsFeGdfKUVx+l9AgJzdvG4XC9Q1NVpPRV2TxqadvLl9dxiq4 bLf4Ie3+qGrdu6vkX4Hgb1iBUZhhf5egYeixn09LZ/a/KB7m2XlyZqf7sfcolkNX4xEs ObDEV6/oGr9PaxrfYtIWa5T6ZF2TUraJatzbihrKDuYASGqm+mc9a8aSNICPrVSm8HxT oePq7DkmJ8GdOZxr9GmaMzbFVnMbFZ3ik/vZCdLAsmOaT+3iE4ABPg3ALshdnCBmfizB y4ny5hNpW3CjThl+0WWqJLYR8z0VgVnLsPDEz7oSrdqPtKVbIHDC8FEzz7eEKa7fZw9b hMJA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=A5sZEFqu; 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 2adb3069b0e04-53c7bcce9a0sor2829942e87.20.2024.11.04.07.15.43 for (Google Transport Security); Mon, 04 Nov 2024 07:15:43 -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-Received: by 2002:a05:6512:1087:b0:539:936c:9845 with SMTP id 2adb3069b0e04-53d65e0b4afmr9070518e87.37.1730733343135; Mon, 04 Nov 2024 07:15:43 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.40.195]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9e564c4fafsm561885666b.47.2024.11.04.07.15.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2024 07:15:42 -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: [PATCH v2] arm64: dts: imx8mn-bsh-smm-s2/pro: add simple-framebuffer Date: Mon, 4 Nov 2024 16:15:20 +0100 Message-ID: <20241104151539.1678388-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=A5sZEFqu; 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 */