From patchwork Sat Jul 13 08:45:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3226 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8792040F45 for ; Sat, 13 Jul 2024 10:46:10 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-57cad6e94e5sf2505105a12.3 for ; Sat, 13 Jul 2024 01:46:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720860370; cv=pass; d=google.com; s=arc-20160816; b=wkjVpgEGUSF/bOs0GUNulSUdOCcLGbJqr0J4y8Hr01CAd6GOgCaCDQOjPfmALD9xTZ p0f3O0DjO3V/iYQI8qAwD+2YA9fXxMNviDvH2d0KnOTSdcg2pSOQxt8tfePhl79niZH8 +myf5GbLmEEOBzQMY6ak+YO+lvu2QVHtOXeG8xyKDMMW4Cqqu6QxqGoFhLDo2ATpC+vt Imv7+1ldz1ZLYLqrhLhMGTJmQUasKRDyFsHEjaB7fRSLT4vhVrPbgqrU4Vxrf3gexD9A SRGli1WZqjXpzyduBnbPGRGBBwC17CAVuLAFpv+hHsoDSVMF3SJ/H2IACXpbZ0Yn1vfg 8l0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=4CO/LHlAs//sjP9llxXWAqLkOrnAQAVn99mXj3ZwmDI=; fh=sHstBO86N/I0s60VIjlZ6d3qkmEFOvZG2GkeetJo/5U=; b=XekoHrswPcoqA2NsH1IBdHDAtPGPflqIS+g50Ts+jgJA9ony2EvYjhSqazdFpB1zaP 1qIbgvIbets0cENvO/RAAiegEv3iiJRoI8sXP/czWzxSi7k+1eKdhloakg3dtXgaY6BW cyuPJAUIOJhN/Dy3tXlaEA9vZy5A3L4YCIGjl4yAVDNBWrQNiJOtjIHY+cLa2ZznAh0j XEI/LJf6vISzfRmxs3pRVcVt8dNvhtjE/yolfYK9BWgeZZ+dfvOltzahmrrb23DdMKkH leeZe+UhP8pJ0zn6Zh3zfmYmexaJ+TX2UG3RUkaIbAscoA+6Xwm9YqdwZBMTsy4snlHo SJXQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=A2Vb7q7P; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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=1720860370; x=1721465170; 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=4CO/LHlAs//sjP9llxXWAqLkOrnAQAVn99mXj3ZwmDI=; b=D+UQkerCU/IIdIFS+fTaQHiaY3ZDo6cha9FLDAlAbm9lSaohNSda25Tv1XdHH90Jor hhIU5ti4K9h9P76DW4CAvNsNaRtBvF7Q5+YVqwVDPEUEFDZTvNoLKOpM/6NWoUWwnr+z KnLCYdhXCRBsMzHb73LfMJv7LpyR3jlt6QHuc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720860370; x=1721465170; 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=4CO/LHlAs//sjP9llxXWAqLkOrnAQAVn99mXj3ZwmDI=; b=CGPf1YIO/x+AidJEAcobRRl+t9QAi1uQ4BvcphwC2nasoDpDH2meQPKfol8OoOwHZZ ++rKvmMGm1pGkMemiaR/lss5F7OREJbdHbAPNWJLfwRTa7k78q6R96IM2WaGfnsifIie SZcaCmReqPsZ9HpVjiX8TNoEfg/hv+263dEdd3ycsQpuVhuis5WWAylOiogp12Pr38Xs 2orkVSatWoavy9tBDpGZFVvn16fB4/JcdA/yPRcwI7QnfpYeWq/Ktv2gzTcXxC1K99jH QBMrwiV6DOzbh+8XPhkB4tjtAD1THZh/M/uWQPTfz0RFOlhf4R4gHyugdim/9Ouohdoz xy3A== X-Forwarded-Encrypted: i=2; AJvYcCXmFRrqMx+JEPSGHYPXDs08WBi56pklHoGM0K/jv3kROpjwd26J6GqiPYNJ4cR1+IwcHt1cx1F1Dk/747wP+S11yfNmxj66et8u8OcS+97EVoLJzyDKWYg5WmZE4Q== X-Gm-Message-State: AOJu0YxSJPdbsYpSh+mvZ5+yIzBilqryiouC6U9MOcCd64bZScXjMP/7 tY1Rwf9RFKlnYgGxAw/GtsMabqyOS+D9KBI+bcgqeSEcyXSt2htumeFir9EmGflwXg== X-Google-Smtp-Source: AGHT+IF1MnNeB5lnuGqbmz+sl2OrC7H7qJZytIVu0oHTvV3sQmDSecfCbTHSuW68/xXX49HJo1oBug== X-Received: by 2002:aa7:da15:0:b0:58d:3ab3:9d33 with SMTP id 4fb4d7f45d1cf-594bb86a698mr8444703a12.32.1720860370241; Sat, 13 Jul 2024 01:46:10 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:28af:b0:584:b54c:52ad with SMTP id 4fb4d7f45d1cf-59826225ad3ls1441599a12.1.-pod-prod-07-eu; Sat, 13 Jul 2024 01:46:09 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCW6iQw7fgsg0VU2D+8UD40sySbhIIieGjYp0vwcA/xkfBmQMyVvk+AaT3RhCJ6Zduqbbqa/hQ72bNYmCRvgaEvPNLSOqfjfj+P4Mt5To+6xrjw2 X-Received: by 2002:a17:906:c796:b0:a77:cf9d:f496 with SMTP id a640c23a62f3a-a780b7050c1mr829083966b.39.1720860368564; Sat, 13 Jul 2024 01:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720860368; cv=none; d=google.com; s=arc-20160816; b=B4y0KauFy5rGP4n8Qc77McKBHF0v45m31kYMBLpjRNMHiVk7P4njdcGVKFArrbBj96 if2dM32NAN5o9v0m6rFbC9R4wxGvmfnOSOp3bbiv5II5WemZQksR4LSnX43ULAibhAo4 Rue4tA2fQNQWA0uYJGGJ6TYzKq6a4jJxQDR25LlDhwV9AgxEnsbc0XzlDKpmpyttFf8n qXS5aK9wz514df3tr8CccyrGai4YFiSurQ6iMvrDWhF6PwHO4ICQaQqNXDfB21Df8ccF fpXGBmy2QI/D21aGxRclFvD3Wk0TddAYurEsHH8G89Svr5Cm0NA5ajkksjXzeGH+nVf3 dbmQ== 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=MSvv985Gr2XgDVOd+9v34PRXSpBauM0+dQsIEzreLgU=; fh=AnzrFby1IKaKtpOx/XYnSzUUzZ0rR4jqE52+5q8HBr8=; b=mThIZyoXw4FOYmNTz7qKDDYFNcYGP7qbqRPYgOdOQX3Tlc1JqqjJ1hXU8I23MPqHoa M0yEeUVWbv9lPg6KdvUXLnX996sAlLgUIV2qeqn4umTZ/IE4taK+tkswwNMzfSgTak/X 8XvaWielc4fTVF2CE+U4KEbhv5flHsobyuz4hTbgWB6wu8WDA2y0IDJrFEvMVLnR3QZO 7MkKcY7GjfTbQFHfX9o8329PuSANhaxJGskKJKoLQbg7t8uivc2eqt97oigVLYoAHTp6 UmgKGUlWpCGvnAoU4c14mbowk6FfmLJ53XjvQGG9pYUdixmQsUOIAkM7cAEY3mfwqOpI ZcMQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=A2Vb7q7P; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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 a640c23a62f3a-a79bc5b47basor12830666b.9.2024.07.13.01.46.08 for (Google Transport Security); Sat, 13 Jul 2024 01:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCXbSFavZ9itn5kFcJnbNwFLPEmdMvBVgaiFBZjJtLPHUXu64lwMX1mLEKt1RHMh6VfJWZ/JiCT0PnPduqlold2c4iGcYwwkBfDs6A33+N4RgUM4 X-Received: by 2002:a17:907:9689:b0:a79:8318:288f with SMTP id a640c23a62f3a-a7983182b04mr802616766b.16.1720860368207; Sat, 13 Jul 2024 01:46:08 -0700 (PDT) Received: from panicking.amarulasolutions.com (93-35-128-17.ip55.fastwebnet.it. [93.35.128.17]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc7f1e20sm31483966b.116.2024.07.13.01.46.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jul 2024 01:46:07 -0700 (PDT) From: Michael Trimarchi To: Michael Trimarchi Cc: Dario Binacchi , Patrick Barsanti , linux-amarula@amarulasolutions.com Subject: [PATCH 21/21] arm: imx8mn-bsh-smm-s2pro: Enable display on reference design Date: Sat, 13 Jul 2024 10:45:26 +0200 Message-ID: <20240713084526.922537-21-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240713084526.922537-1-michael@amarulasolutions.com> References: <20240713084526.922537-1-michael@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: michael@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=A2Vb7q7P; spf=pass (google.com: domain of michael@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=michael@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: , Signed-off-by: Michael Trimarchi --- .../dts/imx8mn-bsh-smm-s2-u-boot-common.dtsi | 23 +++++++++++++++++++ configs/imx8mn_bsh_smm_s2pro_defconfig | 14 +++++++++++ 2 files changed, 37 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 19b0d89775..8cae580e28 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_s2pro_defconfig b/configs/imx8mn_bsh_smm_s2pro_defconfig index 0faa3376fd..eb1275a443 100644 --- a/configs/imx8mn_bsh_smm_s2pro_defconfig +++ b/configs/imx8mn_bsh_smm_s2pro_defconfig @@ -68,6 +68,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 +85,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 +108,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_LOGO=y +CONFIG_VIDEO_LCD_SYNAPTICS_R63353=y +CONFIG_VIDEO_BRIDGE_SAMSUNG_DSIM=y +CONFIG_VIDEO_MXS=y +CONFIG_SPLASH_SCREEN=y +CONFIG_SPLASH_SCREEN_ALIGN=y CONFIG_IMX_WATCHDOG=y # CONFIG_FAT_WRITE is not set