From patchwork Wed Sep 11 15:10:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3451 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id CEFC842E89 for ; Wed, 11 Sep 2024 17:11:03 +0200 (CEST) Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-374c54e188dsf553695f8f.1 for ; Wed, 11 Sep 2024 08:11:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726067463; cv=pass; d=google.com; s=arc-20240605; b=YSv2bQvMW2DHmuaupd+27duXgviWFF6GO7Fsra8y93pn/+A8B+GLXEgj7X2NQQp6vp tz/DhRdTtUQoZggXkK/riPKjEUj6EZ/s2agVXLP2ygBgB84BYKO7Ag2nW0UPQnFn0XuV Tp1KNEQd3IIe8SP9dczJeqyEbqLeznv1GTFf8rkao0hT+MGJNfwoJM+RWM1trwdirCO4 NBqJrH8S1cbKtZT7MCGZ/iB9aC62CLPK6SsJHjgpJCCZZvyCbQAFuGeB4cWIMKlSbqyJ ZFpqlinZ3wTvLNe2njAVK+fjRYZq+9RHVmFt68GrzidtqafOPNc6Axxs0YmkeqmYP0HG 9pSw== 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:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=AWnsXwsKPYNlfpULRSQ907qevgeJzExft3eEOFeFWZE=; fh=OV+5RzIcbptlHsdCw710f/c2It5Ke7QU6JMUKAyzmdw=; b=FTF8fQeuNpXKnim0HGmtJtgbuIkJo+ysYnWtlBuUPlhTHB6GeeRr/O0WCvnQF7pnIL z2nTGpUeyvzIzE97U95vaytOF07WUVwg3fHEjuAlMZ3QyimA7ZPbAf6Y8THSJqOMHoJ1 a6iFFUz+K1pTNsrZZNLwyAVuwPcjZKcOTXkaUAwzTvyVN62nZUN9WC0HlQV+O8smzcwV oYpZp1o4SteurDunn9VDcWixIwKxmwlOw82khxZF09QCD5c1DDVF9PohjFp0ZBq3y+XS xlYI7/NTxulcW1c2rJkQGVMJswKZ93BTa/VtjT89akRHcf/457ESG+7XB2p4Nl6wIERT AxJg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XnNnHJKB; 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=1726067463; x=1726672263; 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:references:in-reply-to:message-id :date:subject:to:from:from:to:cc:subject:date:message-id:reply-to; bh=AWnsXwsKPYNlfpULRSQ907qevgeJzExft3eEOFeFWZE=; b=XrnVbJKkVhoPbqwTvRR/z3OG/sNy1G7DC+BIb1hJ1OmOfuLT+gw4x+OrCV5lpjpfz3 RH55jQ743mSBeMHedFLgIPcVgroVYFNfAZ/E6HszTEucIG8j1QEs2PQO4putCaIqlcSM +/upnK1sPlg8n0/g8sFGlo5x45YUkHN4o+uRw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726067463; x=1726672263; 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 :references:in-reply-to:message-id:date:subject:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AWnsXwsKPYNlfpULRSQ907qevgeJzExft3eEOFeFWZE=; b=XOFIUpEyiMLSdMFmFwAdtMi0aytZ99RFRIvtjZVCmZkuO52QboT14KLe9t9CKj7YMg +FmD5GSa0wRk/IlhkivNvqAS5KocqMNgwAW/eO2qN2CK0XOWmsyk+2Lj2sqBmy+XaC1D VU9EQplHg16Fs4V5xSORMY0mRMfihpDSPQNVITTs9jkxrv04gHc5T/+ZBZC160uMOaBu iTWo8e1Fo982ffYXiT0Ok/xjPAoC2ugGX/H8bApEe/adePrgs4gvbbwg5Hi1aQzs631J CyuZW52z8WUTOwSQPSYUz3slCG0ZG5uYedsfzlmo/GKfgGNN1O8FoISKPXscZi1MkzHV 5Urg== X-Forwarded-Encrypted: i=2; AJvYcCV5Vrf963gi7RakJmhsi/q2TsmyYhl/7Umkz6ZDTfKDVAUUj2JEfXpHCSzACr+8qO3r5YC+YGSY3Dkh1CmY@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YzJtOGsO7H3FIY3YaKaAfAd9kdkjUNl3nLTL2lMAAZ/ZQlKOBi8 psKKIUCjUSj8fGcDFw2GdGwYEicsxwRnMNhf+vdvWtFLd2dwDejkObnmLcke1qtcgw== X-Google-Smtp-Source: AGHT+IEATustEJ0hhel/5Tjf8vzM40hc0WRrBQ6g1roX9RpSJ5cP5lrt5f6UbHk/YOC6jdVgmNlMeQ== X-Received: by 2002:a05:6000:1961:b0:376:e2f4:5414 with SMTP id ffacd0b85a97d-378a89e66a4mr4138051f8f.5.1726067463355; Wed, 11 Sep 2024 08:11:03 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:1d03:b0:42c:b22e:fc4f with SMTP id 5b1f17b1804b1-42ccdfe830fls3922515e9.2.-pod-prod-00-eu; Wed, 11 Sep 2024 08:11:02 -0700 (PDT) X-Received: by 2002:a05:600c:3516:b0:426:5e32:4857 with SMTP id 5b1f17b1804b1-42cbdb83f4cmr42470945e9.0.1726067461895; Wed, 11 Sep 2024 08:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726067461; cv=none; d=google.com; s=arc-20160816; b=L1V/PJv5XO5pV+5J9bdCjswx/saEpg86N+f4R3qTsRiIaUQ4495r1TzgpexIV7t2N7 s0mrwuXJDqfdgyLtNvE5/O/135aq7hN5M9UNhydsU/OqN9NHd8sLskOwf6+24S36T0Gl 3Uo2QCavEaOeHuE749Cg/8gfE6yUq45/5zIHkhD9vt8EvHUmDb8WYnupPTz0XOebl37O +KT6XRYsCiYbld6l7ZXeOxJNGUJruUGmCEpWq1JGtUNg0bxNTKFKxvgWBMvQ8J8GCORn IPzm1uax7wmGjz5MOSCtCSort/PxQX2rHckR8Q4pAPp92s0CZZXWzL/7RkwS5nQjEGjC Rh2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:dkim-signature; bh=c9yw7+2C3BKKxQbuJAyT+06WYAYEHCmMAdjuWYzIyj4=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=QZjKJUfaBg3pusH/GTU4RoR2tKpMNLfuvTcRfhGaRHknuYK6ErUtAKUsw7BYHLD+2Q H+DnN/mR/gH+02inaQdi3Low5ah8fDREYF7YE0m/pWmrcrbVKWsPzlkWV1ctryfXMnA0 hlYpy2/YiRTE7aQmhl95TdJtWPrhwbiZcAQ6L/t24MCX4dSk01+mOrG/PHZ3rXCxNaDv lIMqYG0EWsy2FztfthtbQOWpPVO2Jl90RDLZzHLk2Y9nHGniOJogGSLvF6hgRfy2wAFv ntDB105c5Tvu5uwmh2jffnb7QJHB1qled+s4MN4vhLCi+72/iFsvoZNsA/gT2Hw3Zx3/ UR/A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XnNnHJKB; 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 5b1f17b1804b1-42caedab3a7sor24865355e9.6.2024.09.11.08.11.01 for (Google Transport Security); Wed, 11 Sep 2024 08:11:01 -0700 (PDT) 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:600c:310a:b0:42c:b67b:816b with SMTP id 5b1f17b1804b1-42cbddb89c4mr44502865e9.1.1726067461128; Wed, 11 Sep 2024 08:11:01 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.3]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42cb116f44esm137688375e9.45.2024.09.11.08.11.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 08:11:00 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Subject: [PATCH v2 21/27] imx8mn_bsh_smm_s2/pro: Enable display on reference design Date: Wed, 11 Sep 2024 17:10:33 +0200 Message-ID: <20240911151039.2914886-21-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240911151039.2914886-1-dario.binacchi@amarulasolutions.com> References: <20240911151039.2914886-1-dario.binacchi@amarulasolutions.com> 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=XnNnHJKB; 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: , From: Michael Trimarchi Co-developed-by: Dario Binacchi Signed-off-by: Dario Binacchi Signed-off-by: Michael Trimarchi --- .../dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi | 23 +++++++++++++++++++ configs/imx8mn_bsh_smm_s2_defconfig | 15 ++++++++++++ configs/imx8mn_bsh_smm_s2pro_defconfig | 15 ++++++++++++ 3 files changed, 53 insertions(+) diff --git a/arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi b/arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi index 19b0d8977539..8cae580e2851 100644 --- a/arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi +++ b/arch/arm/dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi @@ -6,6 +6,19 @@ #include "imx8mn-u-boot.dtsi" +/ { + aliases { + display0 = &lcdif; + }; + + samsung_dsi_host: dsi-host { + compatible = "samsung,sec-mipi-dsi"; + clocks = <&clk IMX8MN_CLK_DSI_PHY_REF>; + clock-names = "sclk_mipi"; + status = "okay"; + }; +}; + &{/soc@0/bus@30800000/i2c@30a20000/pmic@4b} { bootph-pre-ram; }; @@ -30,6 +43,16 @@ bootph-pre-ram; }; +&lcdif { + display = <&display0>; + + /* panel is r8g8b8 */ + display0: display@0 { + bits-per-pixel = <24>; + bits-per-color = <8>; + }; +}; + &pinctrl_i2c1 { bootph-pre-ram; }; diff --git a/configs/imx8mn_bsh_smm_s2_defconfig b/configs/imx8mn_bsh_smm_s2_defconfig index b4351a392eff..2fa8bc22747e 100644 --- a/configs/imx8mn_bsh_smm_s2_defconfig +++ b/configs/imx8mn_bsh_smm_s2_defconfig @@ -56,6 +56,7 @@ CONFIG_SYS_PROMPT="> " CONFIG_CMD_FUSE=y CONFIG_CMD_USB=y CONFIG_CMD_USB_MASS_STORAGE=y +CONFIG_CMD_BMP=y CONFIG_CMD_MTDPARTS=y CONFIG_MTDIDS_DEFAULT="nand0=gpmi-nand" CONFIG_MTDPARTS_DEFAULT="gpmi-nand:64m(nandboot),16m(nandfit),32m(nandkernel),1m(nanddtb),8m(nandtee),-(nandrootfs)" @@ -74,6 +75,8 @@ CONFIG_FASTBOOT_BUF_ADDR=0x40480000 CONFIG_FASTBOOT_BUF_SIZE=0x20000000 CONFIG_FASTBOOT_FLASH=y CONFIG_FASTBOOT_UUU_SUPPORT=y +CONFIG_DM_GPIO_LOOKUP_LABEL=y +CONFIG_SPL_DM_GPIO_LOOKUP_LABEL=y CONFIG_MXC_GPIO=y CONFIG_DM_I2C=y # CONFIG_MMC is not set @@ -94,12 +97,17 @@ CONFIG_MII=y CONFIG_PINCTRL=y CONFIG_SPL_PINCTRL=y CONFIG_PINCTRL_IMX8M=y +CONFIG_POWER_DOMAIN=y +CONFIG_IMX8M_POWER_DOMAIN=y +CONFIG_IMX8M_BLK_CTRL=y CONFIG_DM_PMIC=y CONFIG_DM_PMIC_BD71837=y CONFIG_SPL_DM_PMIC_BD71837=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y CONFIG_DM_REGULATOR_GPIO=y +CONFIG_DM_PWM=y +CONFIG_PWM_IMX=y CONFIG_DM_SERIAL=y CONFIG_MXC_UART=y CONFIG_SYSRESET=y @@ -112,5 +120,12 @@ CONFIG_USB_GADGET_MANUFACTURER="FSL" CONFIG_USB_GADGET_VENDOR_NUM=0x0525 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 CONFIG_CI_UDC=y +CONFIG_VIDEO=y +CONFIG_VIDEO_LCD_SYNAPTICS_R63353=y +CONFIG_VIDEO_BRIDGE_SAMSUNG_DSIM=y +CONFIG_VIDEO_MXS=y +CONFIG_BMP_16BPP=y +CONFIG_BMP_24BPP=y +CONFIG_BMP_32BPP=y CONFIG_IMX_WATCHDOG=y # CONFIG_FAT_WRITE is not set diff --git a/configs/imx8mn_bsh_smm_s2pro_defconfig b/configs/imx8mn_bsh_smm_s2pro_defconfig index 0faa3376fd3d..b6b62b9d53f9 100644 --- a/configs/imx8mn_bsh_smm_s2pro_defconfig +++ b/configs/imx8mn_bsh_smm_s2pro_defconfig @@ -53,6 +53,7 @@ CONFIG_CMD_FUSE=y CONFIG_CMD_MMC=y CONFIG_CMD_USB=y CONFIG_CMD_USB_MASS_STORAGE=y +CONFIG_CMD_BMP=y CONFIG_OF_CONTROL=y CONFIG_SPL_OF_CONTROL=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y @@ -68,6 +69,8 @@ CONFIG_FASTBOOT_BUF_SIZE=0x20000000 CONFIG_FASTBOOT_FLASH=y CONFIG_FASTBOOT_UUU_SUPPORT=y CONFIG_FASTBOOT_FLASH_MMC_DEV=0 +CONFIG_DM_GPIO_LOOKUP_LABEL=y +CONFIG_SPL_DM_GPIO_LOOKUP_LABEL=y CONFIG_MXC_GPIO=y CONFIG_DM_I2C=y CONFIG_SUPPORT_EMMC_BOOT=y @@ -83,12 +86,17 @@ CONFIG_MII=y CONFIG_PINCTRL=y CONFIG_SPL_PINCTRL=y CONFIG_PINCTRL_IMX8M=y +CONFIG_POWER_DOMAIN=y +CONFIG_IMX8M_POWER_DOMAIN=y +CONFIG_IMX8M_BLK_CTRL=y CONFIG_DM_PMIC=y CONFIG_DM_PMIC_BD71837=y CONFIG_SPL_DM_PMIC_BD71837=y CONFIG_DM_REGULATOR=y CONFIG_DM_REGULATOR_FIXED=y CONFIG_DM_REGULATOR_GPIO=y +CONFIG_DM_PWM=y +CONFIG_PWM_IMX=y CONFIG_DM_SERIAL=y CONFIG_MXC_UART=y CONFIG_SYSRESET=y @@ -101,5 +109,12 @@ CONFIG_USB_GADGET_MANUFACTURER="FSL" CONFIG_USB_GADGET_VENDOR_NUM=0x0525 CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 CONFIG_CI_UDC=y +CONFIG_VIDEO=y +CONFIG_VIDEO_LCD_SYNAPTICS_R63353=y +CONFIG_VIDEO_BRIDGE_SAMSUNG_DSIM=y +CONFIG_VIDEO_MXS=y +CONFIG_BMP_16BPP=y +CONFIG_BMP_24BPP=y +CONFIG_BMP_32BPP=y CONFIG_IMX_WATCHDOG=y # CONFIG_FAT_WRITE is not set