From patchwork Fri Sep 13 09:56:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3488 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 69D2F412C3 for ; Fri, 13 Sep 2024 11:57:26 +0200 (CEST) Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-374c960ee7asf557481f8f.3 for ; Fri, 13 Sep 2024 02:57:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1726221446; cv=pass; d=google.com; s=arc-20240605; b=grjLdMks+I5XDOxZ6dNWV7YqFsyfMDC/fa0h5jMPR7H0lKb91DhZTR30SN/DOb0MM1 uZqNNq46nHxHo2RfjnRMC3sYIEM6Y5hYd+RzfzBQpsAwoQDw3oj4v7zjSQfMnVsMu5QP a18MXaZqhCFh+K/XPcjL0rSJDNSyqrnD591bqJ9Wdhht0Qr23zlh7cXTOE5QtrWlez6Z gYZKVFXqg9Uo9wyjtuQGPijgftewacLBTNIHwdYLE6RGlbkiXZKcjMH60bD2gWDCiRa6 OwYfuWQEYePB5m1gajceIp0t1WaL54F0dAJ/25zMFcnVlniBxTCr3tKwLDOTuD0taEKB IPDg== 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:cc:to:from:dkim-signature; bh=CzuajjWZwxQM+FP5r6OX5biAAVfQZbr/6cnP0dP1L10=; fh=AbelcxTkKwE9GeyD9yTMyl/UnmbmLvgSVkwjBkAwDRU=; b=hgROdG/BbM8erm+VbWLgE+tLXA/yxtH/K+oqvbDaXEHyjsWhdED/nAino2o2W0sSP2 AY5pXR695aV5VyLawpS/KzZkSqJQUJomhhO5i8Y2N0t30DsJ3ZmT2PUJ/P79YvPJ5QiW Fapdp5TuoprqTkEorXF6NM5ku+mTyHqmCdTYCZM1ePxoma9ETgh0whXpgfk/CmyYyF0V O1TENHzSpGQhoOp+9cpVtk4u8E3PmB2rFEednDcTw87iWybm5AQsOcv8d+GSQ65x4SA0 8p2kvSRn8pNSoHc4ZXiLov3+NMnahOwCHd81rlQwEaJ6zCu/9bF6nrlMUKvzKv8/KmZw Dh2w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ODGha2Op; 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=1726221446; x=1726826246; 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:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=CzuajjWZwxQM+FP5r6OX5biAAVfQZbr/6cnP0dP1L10=; b=mFzPdSeOSkZjH1LSi6Bo9xsUm4I1VZljqsNxfImRE9I4k8WVEOhGNM17qqQevC2PPA VNNC5bNDrX0Q9AyllHoBMG8guNGt3zO6YCcXVxUQ5uQpfjvDQ9FNHKVvXThK2c8qs5/s RojdJp+DVo4otqHMCoIFaTCooqme8Vj/WVnu8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726221446; x=1726826246; 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:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CzuajjWZwxQM+FP5r6OX5biAAVfQZbr/6cnP0dP1L10=; b=DgvwZl3bnJeP87TQKfo1t1iwR9YrNel+fP+qTmY3B2ax8Ehxj/YXeoRA7xtDJdpGUr g4lVBPKNo3cjkvDElmmm758rdM9wghBb8iT46RZMHebCsg2tVG1Ewbk5rvhGqIXlH1Ay gV4acwobJml9UqbKN1SkcFj6At779lkmcA0LVXedM2NNwOevbjsf9o0E8WJj3uAgU+BC 42soje73Ao+RhBTbGmULBtN+pSz5Bh+UYOXKMDF3BE3ESQSCML7uVRuGpTssEqp/k+Ii RYWGuKd8IbGcNSJf/1Cof4jA0x29WUPamYghsJMVp2NO/D1N7YlH/vqfIgwjbAIJUMt/ Lifg== X-Forwarded-Encrypted: i=2; AJvYcCXTvog73iIqq+epiBYVPn2+K98n+U+Hdg8LeLJyhfSy+hzurheQ1EMaeVgMiqBVOlkil5FE5c9xnyeamqUp@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yxrgb2m1e31OVkkzUX7/MC++Vb3hf9X7/LVQ4+zpR7f4v/ukm5W RktE2eg15x5RNk6NNYc/X1Zv8VYUVi4BOw8jjxpMSdSDGtvfyq3lO52rVgMGBTb0tLqF347f7A= = X-Google-Smtp-Source: AGHT+IFZ4ghcpUJkQgFRuhMEWK3Ka+ivbiQYdLMUoG65HZEN6/7etNJchzS5S5RwKe8Il+RoATt1Kg== X-Received: by 2002:adf:e546:0:b0:374:ba2b:4d1c with SMTP id ffacd0b85a97d-378d61f09cfmr1739717f8f.31.1726221445927; Fri, 13 Sep 2024 02:57:25 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:3b93:b0:42c:c82f:e2f with SMTP id 5b1f17b1804b1-42cdb51b0c6ls11623475e9.2.-pod-prod-05-eu; Fri, 13 Sep 2024 02:57:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUNmHpwgYSt0fTXxnDb4wg6VY9bKahIp/w9qKHBnInHWtLu/kD31iMjaRUSclQQmVoDRS6+7Sq/tMk2OuHP@amarulasolutions.com X-Received: by 2002:a05:600c:5102:b0:42c:b9a5:bd95 with SMTP id 5b1f17b1804b1-42d86cdb06cmr20116235e9.0.1726221444475; Fri, 13 Sep 2024 02:57:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726221444; cv=none; d=google.com; s=arc-20160816; b=paomdMnTOLT4cUXJKwQFPNP8DdkHuBpr83S+ef9ARmSinltK5iwzEN7+LITKr2ATIS 94VGzIIsksEhP4ngWGe+NVaowMZjiFq0vjzCUKQJKIHJzaUkZPeFw/L2AaRFX9f5wasi jD0W71hy+M1oD7OZkj6VW3jlNjeN16GFDB4JiaCD384Q7nlJN0WCegLZ/hZjha+KNmjP Li/5UkkCwKWNtwKjzeLJevdplH4rbQR/pd0SUA/LcljeOg6eTfYV6CGm4/dEzNk8ArTW 8CpJ/lNuRLm40FFTyhoDTK/0Snk6eLrFy/tcPOzKzu2ZxmTsRoDbRnwMGOOVPAiZwN1J u9+w== 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:cc:to:from:dkim-signature; bh=dBwSq5ZmOlgcVv1nfYy6SQy98WXEHyPhDxPXNiUuXhY=; fh=goV+NmmZ0Q/UEgF4PF4xVYl+k1y9yNmX/twIkOi4Htw=; b=figH/PWzaMEdK+70uIWj2Hen/tclQZt8KHhHpUt/Ju1TRYyfKYmQH6lps60ehsnbDr Y7vmbl4xkwYujiDHkJMMK1ksgrIPByPDZX5hdhwsouS6PxeeHq+5++j5SgDKHyu+BTEB 8Jo/3Xr/Vn9d3Kqg5UwcESPWey5mOfIGBi9Km1x6iCG7sd8vF2R4k4701C20t2pZV68b s5TnLo2jjtY8yNCE39u0/vaKrjtuhirbQ0azJbVsOBx5e5a0WlU1gG2q5CITpVcHGLkH /uwnPb+hMzx0WlUdx3sI6KENi335W/WwCnNguaVHpXtByxtJgtUFmYfPKcYpIr/Dnwlt kjWg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ODGha2Op; 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-42cde491d17sor19364215e9.12.2024.09.13.02.57.24 for (Google Transport Security); Fri, 13 Sep 2024 02:57:24 -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-Forwarded-Encrypted: i=1; AJvYcCX+8ny8WCPGVdyublYCnuhDLZUIccYayDkmfozsfnhVHq5z1u4hsYwMhEbcN9/rIwiACUyI601mIEmQEU5k@amarulasolutions.com X-Received: by 2002:a05:6000:1862:b0:374:cc4b:596e with SMTP id ffacd0b85a97d-378d6235e10mr1875542f8f.37.1726221443935; Fri, 13 Sep 2024 02:57:23 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-4-102-18.retail.telecomitalia.it. [87.4.102.18]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8d25cee72bsm863224766b.173.2024.09.13.02.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 02:57:23 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: Fabio Estevam , linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, Miquel Raynal , Dario Binacchi , Fabio Estevam , Marcel Ziswiler , "NXP i.MX U-Boot Team" , Patrick Barsanti , Sean Anderson , Simon Glass , Stefano Babic , Svyatoslav Ryhel , Tom Rini Subject: [PATCH 20/26] imx8mn_bsh_smm_s2/pro: Enable display on reference design Date: Fri, 13 Sep 2024 11:56:02 +0200 Message-ID: <20240913095622.72377-21-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240913095622.72377-1-dario.binacchi@amarulasolutions.com> References: <20240913095622.72377-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=ODGha2Op; 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