From patchwork Sun Jul 14 07:10:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3257 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id BE9E74130C for ; Sun, 14 Jul 2024 09:11:02 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-59c1314940csf327064a12.3 for ; Sun, 14 Jul 2024 00:11:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720941062; cv=pass; d=google.com; s=arc-20160816; b=UDA9PVPhUeVBSERDE+KxdxRjP6AXczUph1NlqwKxIqpzVnRCMmbs853xhMTdpWgPCs kOE+3OiOix4CJEyS3DWY0CFSNURLTsIPN6PFb/G03JSikNMj8icphq9fytOO7FVa/sSK dd5tVapOxo7cB10svjPMTkHjW39XGPELBnDPjeHFZKC9Cckwu5tgfpAtHqwqfBcI7WC3 ZC63ywvpnm5n4hy8W+gaNebOBeWVpUHK9hbw8sonF+9bmoUveg6nt+H6jB+A7xImQ8Sq tcn4FyIBu3WD0kNwk9wkNTCkgJYDVy1wWFMIgKW1f3F3mhk/g9Ljr8MoiEySEfAAPWD7 Bz9w== 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=IOXI1TSAn3WVGIazBAG/zqvC2moYKLgOnPkDMJs8JeI=; b=mNmrJhDeZcr7T2h4naL1RSRPuArNkf3UQHX+LwazCX/uiUg9F9q4Ey8YqGnryk9C4s mR/I1ALZhfpOBkoS5J3BJqjFoHBJj1ouKYvDPtEH0X+reGhryae7/1420H+aXbEQ4tfO f+bhWTos90Y+QfIJ1miHLqkwOEC8dxhlcXpdZextEMLcoRTjBkqh4vfeGo8J+OsoKW89 kT6SnltcC6l2Gx/TJp5MrU+qG7pbjQFZyPNfihcZ4krnFwNMZ6MwaTK1Tv29Q6+zpHen neuGlbEGoNmdHDMIhWqf+QDxEqIyEt/gfn9q1Y1E+O+ZHd8Oy6AyjzY3RZAwn+Ow6avD ud4A==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="hCeQRR/u"; 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=1720941062; x=1721545862; 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=OQ/qCkC/Va4NuMbzEIdKdI42UQWrtzUlaVbs3pidaTHWyNvjWq3CFAzVU/osW5OwGp 1mAkNKdi2Jy8o/n7LfVoXRyGilRj+FiUX3XTj3qcaGiY4l5lshD6MNXcDLkpwL9HGaF1 YTkO6S7pETVAhGo3a6TBqF1b876kgAEOtFHjM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720941062; x=1721545862; 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=RgCW8UdkgD+mMCiyyLS76fKMrb7Rx7YRtMNCBVfYvcYQxKWR3pjG9EA/fMB2rV5sEZ M5gzEwcfM1oTDWCJ40CIm7yFurrbK3MlQw+dsUGPeQCTDOCFIxZetiR/hR9aHK0kkw8x 9n9dZICx+JRK0yec3RkFlwE25aMzzOdnIICU7VFWsY9gB5wdsBtEXSk/hIPhBbeDXnFn UFz0nEwVBuVlSmWdfPsTzWzz6xSvkRAj9CgaxAFoQuGmW7PdvE2RSmis1Yr4oxw6a4zx o9xdqW+yKAM08n6UNdEmoJhG4t6VgleoWtv0SGHBInIQD7KnSamDiqF3dYc7uiUoq1WS qJJg== X-Forwarded-Encrypted: i=2; AJvYcCXPBX1FFMe3m/VCqzdWOXj/kyxb4m5FRe9UV0xMBjz67akEpUj10Wez6A8V0QjTlmTj846yM/ChxBtU/3h/RPLMxHZoQU8ob4Uh786/LIb5vw93ShiZJu+UeQBosA== X-Gm-Message-State: AOJu0YyzSfZ0OYSILSnYzLDZLP0HKtt3LGioR9ZN5nOPoAT0eOxho3rx oiTGEvLurs2hayy4i05ber9a6L1nnAEIVwFXri9R2+AhHKQdJGYMI7SxmBggoHX6bw== X-Google-Smtp-Source: AGHT+IFUnnsSiZbfjlurFLv3k0uRTE4Awb8x1zOGseMJSqyYm43NnfVZ5qDlZoz83uuONvAPUkTbxw== X-Received: by 2002:a05:6402:2707:b0:57c:6234:e95b with SMTP id 4fb4d7f45d1cf-594ba98fafdmr13181527a12.5.1720941062545; Sun, 14 Jul 2024 00:11:02 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:d5d5:0:b0:58b:b493:fcc9 with SMTP id 4fb4d7f45d1cf-598217e0b7als178664a12.0.-pod-prod-03-eu; Sun, 14 Jul 2024 00:11:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWcXfHtBOagupCPteVjZv9/5fw1aeAtPlB6pGe2qBIxUIw7LVp13qukWt458wPDDplSdVoXUoOzjWLFQM+EoUmE5YhBnFhEtOBcEfio6v5EqbTn X-Received: by 2002:a05:6402:17d4:b0:582:9fb8:11a1 with SMTP id 4fb4d7f45d1cf-594bcaaf426mr9914966a12.35.1720941060904; Sun, 14 Jul 2024 00:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720941060; cv=none; d=google.com; s=arc-20160816; b=JCuGPRYC5fnuFbtDDOFxv6HkJICrZ1yHNR6YQOGCPT7PSC2gZO7ZunI0xAOi67233j CehXJmxE6lpvYM7NO7DNPESvXErJBvlaap+Mx3oG5dIi4D5iqoFdbcQwWGJBkYr+QCKs 9sbJCa1zYpcstUmfLNipbyt1K8dOvSf5TSpjDy66Mz/BV0hyHZ+3TonhW0z3YcffWt/a NXi0uh1Ch3ySMWZOfoGJDQ5HCjjn/KUpduAPQgA57OyFZxNYuskyDkTKVBdr22dYLBvE vY7Pn9/G4DbJU2xP59BcgDvmhmHsL1CzWpIRZNyQiwQlZGC8ik7rLiBYl2JxckKrfNUs MXhw== 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=Uq6bk7joN8IxG4d7h5qf4b/imZalDLHnKVNBuGsbbUQ=; b=nP1II+8qhxjWzx6GWERlj7BpMjDUR9NJ6xLJQeVUGYDVb9PnXkQl3DUPmg0Z8qRw4R drTFbN8i0HBANWiNS8zew3Q7QNEjpSTxGC6JSD10tb+9ltFsA9y36cMQoSdzqNT5eQXa P5LHrtTWVFEEbAxwNRRJeB/4SYi8ZlLgp3FA2xWOI/qgD2JAMsdb1dGTQZVcjMX6QmqG gdDoTtmg0sbgyNSdN+GFMAV8w2GuAWfc00Jrrx9MYmjuFPy77C8gdPX99GZJAQnw8Ueh BMLslpOzsc7QYNYNAbKP6/YE2PRQ55onWMMPFQk1dRBv0ijvs6BCfRhiR9jUw4FUQH+Z PqOA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="hCeQRR/u"; 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-59b24a6f4ffsor499547a12.2.2024.07.14.00.11.00 for (Google Transport Security); Sun, 14 Jul 2024 00:11:00 -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; AJvYcCUuDIW/TW7zY5PGJVPUR8gEpaN4PUnP257s7sP8V1Cy1ZeEMCDgrUpggUAZ0mybriOz6SPmuNlBuzi6rArXtRi+Mql5LCCdNYXPwUp2CzbfINM/ X-Received: by 2002:a17:907:6d10:b0:a6f:4fc8:2665 with SMTP id a640c23a62f3a-a780b883563mr1345373966b.50.1720941060547; Sun, 14 Jul 2024 00:11:00 -0700 (PDT) Received: from panicking.. (93-35-128-17.ip55.fastwebnet.it. [93.35.128.17]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc820d52sm104950266b.214.2024.07.14.00.10.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 00:11:00 -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 09:10:23 +0200 Message-ID: <20240714071023.10417-25-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240714071023.10417-1-michael@amarulasolutions.com> References: <20240714071023.10417-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="hCeQRR/u"; 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