From patchwork Sun Jul 14 11:33:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3307 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 A157B4135D for ; Sun, 14 Jul 2024 13:33:36 +0200 (CEST) Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2eebdfcb63esf35460241fa.2 for ; Sun, 14 Jul 2024 04:33:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720956816; cv=pass; d=google.com; s=arc-20160816; b=g9U6OQAPTKLd304w10AcvcdD+dX6KauxXiBKXftXtfLUQB9McRiKRNPP3kTFJ+sAtO 3MRlizNKjGYSqnIeKQEyFl8N3eHEt+JAhiXaG2thWyR+w9D6w9ramHHPG3Ijz5W4K1Me 9jJAYvU+smKkX6MsaqWXVnXBObGt0DvDuHZYvD/zxOAk+HvU9IAumwpwJrHfP0b4/ddl dLtfFkj5NIrUpBulLGD6Rw2N2Ro3bJGmEST5rMHAfNcRFFXmdlzLh+Cp89+jvFXrxkCj aLUS10kdrvyXT+TdhQFCVde3OxvxC/0HuugxpLXhgSc9yYv28GBk/DL99ELWWvH/0Bg6 mAaA== 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=vcwAN8fzM+a8Z628vbIGjWyKX5HpMIVBHG9EeQug1dk=; b=AQq7CozEFhygKAGAOumS/PUpGVelsKq503Jyv2UQ1LDwFxTXD4InBBi42JkIAkPtAQ yCM0G38Pg7IXncBfdMd9t++IeZxUM0cAvodfCE6HUv2euAv4GSg9zT/PrT5DDSPJgsUd 0RbhuiP+o2S8ljn0IEb9PcAfE1HPVM9V0PHPYG34+vwqoDzYi14etCXC4K3c9d1m06I1 XqjzwXm2nP2dxC0Ay9QJAVPNPcTZsUDXLKOgIv0qkhkYyt5yKL+F3/L+QVyn5g/tB6Ei c7pIrRqtpkEw30LLTeB9/M417SUrZ2yJV+/d2VA4/zI6b2jiVB2MLzbRDUNpXKrIGgol QgGw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HEuifgtX; 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=1720956816; x=1721561616; 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=c+ZPmhqX7gNvn16N5e55fdSPmJtYq5hQIEz+VOAdq10yT6wLB+dYiBPEjmrc0kvFaN JsdmL5GYWVf4WT5e5pzUAkaauk8QZJXMTGduu51zRSTYnPQJIMydEGKdEzCT7/cjipZY zB0221YCpKVNK1OySzKuotclL2a/9MD6BwVlg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720956816; x=1721561616; 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=izvQ4raqRyBXYykeXYBgf4jUYMkhBUmRLKWqLi79eln2VKf71cDWNuehsGHVgVr3DI kVD0SEDMRiqkcAwe4iRqMLXl7KOpSMcPQt7r7m69pxM8yFhhdSkMVNg6hIMK+RHEaazw yPUTC9dydUWKVq25aeH103YkNzUBp1vZZGrCYXMWCGNGvugiFiDovcwOfQq/VDmveaPq jjKra9HyKh4I1hRloOrQ+tPKkpRSbMz0cS51klLIcwgxHEcnfsM3+36ONAuK3BgxfuZy yaMwrtHN+yVlr+WSMb+OgvtrODU9x7petDpLWICBg5IomKIYs9EV2CFL2Y0iv2UxK50s C2Dw== X-Forwarded-Encrypted: i=2; AJvYcCVIhJIiLFpopI91jx0ABcXEAUBw9UldRPdpIdqHdJDcDgoJnO1FoGPBmS8k2yGYLcBdLlZNtg9xkvyEjzUFx1bafwvHBBko8ZNjc3vZV2WdOr60iz1yCNbzwR4SHw== X-Gm-Message-State: AOJu0YyTKDUoRuGVP85KGoF22bpSiTMxh7M3WejJmJ3Q7BJTFJTA4hwI zgkb679iSnzlF0caS5nyG0uddGgs33RRyP0kEPEA48yP2iZdDqNXSl35rsSqiegycQ== X-Google-Smtp-Source: AGHT+IGlz0RD6R9xCjULHwiH35/y0QAxbjgWUE3TZY/hNqbceAsFTZK01qopt0TpE6e1yc/2Kk4dHg== X-Received: by 2002:a2e:9201:0:b0:2ee:4dc6:fe28 with SMTP id 38308e7fff4ca-2eeb3171703mr95294861fa.40.1720956816097; Sun, 14 Jul 2024 04:33:36 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:c513:0:b0:57a:a655:87db with SMTP id 4fb4d7f45d1cf-5982622e1b5ls1550111a12.1.-pod-prod-09-eu; Sun, 14 Jul 2024 04:33:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWpBb+lsGPKw6UxgIWbQLNvX/5BeUAkUz1XUYJzmCtLKuzmD86HZ9ciIy94IlLiQ96qisv0IaNxkOIFoVA6hGyyGUlb9dAJXYicesqyrJaUYRg3 X-Received: by 2002:a05:6402:350b:b0:58d:b529:7dc2 with SMTP id 4fb4d7f45d1cf-594b7d836d2mr12915562a12.0.1720956814489; Sun, 14 Jul 2024 04:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720956814; cv=none; d=google.com; s=arc-20160816; b=QWKL4R0hABgQAqfH6f+aGjQpeVd1E1NLaqfXIucUbzJ7K8e35/iRVDMRGT2WwC9KEn x1dZQS+6A9NeBaCJYIcZjNh9alwerHWjkHb0BNhPnooPEyswQXMfxrYQZ8w4jelmGkES PfKphh1b2gelQgW4B7WIiTCZ19sddRr6wZL895Xjee4eKHunb39SdzvebUvhqVIEe8e8 qFgLtSZlaSBDpEXZxVYH6zvr1rc3LsXb2ln50XMJrVahOw1/6yhF2/WNXI6sGR9E9gKd 6z3ZIqXrRRPfjfFXoz4monm1XhzP3nSemICk+uASwKbATMvkxnFwuwTkhuf7Fh0EmgsU 5ctQ== 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=hySNFwGvA6kzEwV4udksYduLNkEzhnD3jwf5LsEFvAU=; b=tUNh1gaGllnlN3uprIuVEJVJlwpkaenmk2r/4A5C341lnJIiK2KIPDZ0+FTjvBZaC/ 3W9Xgu7AYFZZKmnomLySjrGXAAFi6B719bS9Mrq3ZfJGDE2apTdcyp1WOOgB0juImf8Q tHLkcey/orQhstWytWQFkhMkLQByOV0+OB3PObpKE+0vNb/cgz0Yfv8NiVoD01AikyQA tUfSwZyD2VOqIkrp1U9Uomhf+Ez1v+yHmpyqxdgSd2dIXm4ZjJNWnKkHwPuyNS1aPCG4 d8XWJ/teuZINfLvMODJSUoahTOX1ttuIDMqFfG6PZMbDcE9c4It3UN2AsACtaTi4v/4H xRZQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HEuifgtX; 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 4fb4d7f45d1cf-59b2705aaafsor551947a12.10.2024.07.14.04.33.34 for (Google Transport Security); Sun, 14 Jul 2024 04:33:34 -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; AJvYcCWt9npdvzE0N+98bS2o8f6QzyIHyjLtGyG2SK3wV+qnB2e83CSjXKdBNrs91OwU062NJbo2KG+qYTLF9yOuxJoL9YM1WzX1ZfhYIF6bz6fmboI/ X-Received: by 2002:a05:6402:909:b0:58c:4c8d:68c with SMTP id 4fb4d7f45d1cf-594bc7c8321mr12613849a12.26.1720956814152; Sun, 14 Jul 2024 04:33:34 -0700 (PDT) Received: from panicking.. (mob-5-91-58-211.net.vodafone.it. [5.91.58.211]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-59b25528dc1sm1929469a12.52.2024.07.14.04.33.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 04:33:33 -0700 (PDT) From: Michael Trimarchi To: Michael Trimarchi Cc: Dario Binacchi , Patrick Barsanti , linux-amarula@amarulasolutions.com Subject: [PATCH 25/25] arm: imx8mn-bsh-smm-s2pro: Enable display on reference design Date: Sun, 14 Jul 2024 13:33:02 +0200 Message-ID: <20240714113302.133399-25-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240714113302.133399-1-michael@amarulasolutions.com> References: <20240714113302.133399-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=HEuifgtX; 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