From patchwork Tue Sep 3 15:30:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3393 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 1062C3F360 for ; Tue, 3 Sep 2024 17:31:24 +0200 (CEST) Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-37496a7daf2sf3695310f8f.2 for ; Tue, 03 Sep 2024 08:31:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1725377483; cv=pass; d=google.com; s=arc-20240605; b=jZz7IWT1fh1opKBQS1ZBAlt0Fzn717WDE5wVx4J2+cuZuV6IBk5Ju/ieGgskIykJlZ 2W9FK4mrndMGaryEycF7DL5J3lYW1KwENR+feBHskDIxp0QPUsuwD+NEW2wFutqC0L7J 2jPp4j7chC+LGibNKqea96As6HjXOW48OR+CejDMUOmL30SQAoOu7hxZyokd5zhw7Dl8 dA6AeC+nqv+atK6dF+/gnIEF/q8TAonxkzgL/YykfngGnZ7cTh9hDHNYl8tY+ETCgF4z 3FKQyVzNWwLpymj4xSDE7AEfzF2DUE6ILC5C46JFgfL8YxLKB+3XWz4oU7cjwnrQYvur bJPw== 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=RxrVMbJThE/2Td+EsDvk3hgmW909IVBZqOJ4L0f4lR8=; fh=GC/FLbxLJkwmnAeV4rEWGvGnv1dL9z1TK5DAhToLObI=; b=FBSe8pPT5RMZyaNkxcvBwdKEt0ukf+ofUchRhFc92bNVo21DZ18tcKOMZkSGzDSMtJ Z20ZAZk2Qxl6e1ykf+RJH/EV9Xsts8lzQGY6Mp1Lju9QJborE5O/VN8fSkZZOnjZGnbg S12rGSoKoLzt1Tjb1CKW+C9Sq1kmZxwfcnOoiFP6ZW26fQ8vujKlLl7r9WbtNcVgVFgy 5nzayGkBMcZ3F1heSPwReSi8aWanzM4oyc3XfO73pNB9uMB/o9F8rAOcEt2MExGVgKIX I+eR5N4yLEBlvml0E/LfCAxXyOuVCtUwAf/xEbaEphDEKdkW7urseMPQ8Ct+rvfto1/l NxWw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TCJHh5ID; 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=1725377483; x=1725982283; 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=RxrVMbJThE/2Td+EsDvk3hgmW909IVBZqOJ4L0f4lR8=; b=DVKQxz25PbbL+p6hIPG1lxJJ/lmVK2iNH16eHxIgizNmHOT21/6cIBG5U/TB/soyFz kh/DDTXVUEL0r8v2eM5kj03mx7CVsVF+eA/w09TkaJsCy4k76s5xbHzncyGUWctN3rPI i6JnFuQ5dOSb5oNoWiMKrJv25w40Iy7E188Nk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725377483; x=1725982283; 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=RxrVMbJThE/2Td+EsDvk3hgmW909IVBZqOJ4L0f4lR8=; b=V3p7dtvP0Q877Y2nujH8lgOuttXgJ3sxfZwp/k4vOQaKyoMU25DDtpC7KOO19Pxvkj UKa8nWzWOMJg87DJD6P5hz6Bj2zoH6BgoLVmcNJm3h51y+ySBWYTITnsYf/2PMrY2A8z OWLetMFVaU2JvVQi7DU+Mu0xS8i0x7LC0R6R6xqElf5J5/Z4W1Whs6Ak/7vg3Hu2xw97 r/QUxFt0YmtAJkjeuwT9ZBDJqukbPdyNmV1DgLTGj/jGm6MZn6VHv0nOUHuGMCZGTP2a Vg/f7zxWVAH7iP1NSymrqFD6AvpKwCB+Q7fub9HH3C+NsYkwsO7YJPCnsvPVbSwkInd+ BNBQ== X-Forwarded-Encrypted: i=2; AJvYcCVWgKhJhX2WkbN4zFF5bV8PkENsErdRLkg6RpQ9FsZ0gtMU+pn2fsHHKStNsBtKovU/49BwxRVMdmmM6iTp@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwxRkYsTSD+z5g8xBc6NG9BfxRxCW59vSy06PnUzG7FT+Fo3cbU /ksvuHSuZfyFXmWwGT2dfhfUa/OkvX3hiNbBBLmzykSZzWMFXRmkFUFQ3Z4niK5YZg== X-Google-Smtp-Source: AGHT+IFG873TCUQf8rmmA4k+mslQO/cMizdlL5AQDHPwlymVCrqKV6x/klWTHGd1h05DcT1mYTzw8g== X-Received: by 2002:a05:6000:4025:b0:374:c287:929b with SMTP id ffacd0b85a97d-376dcc8b852mr1100072f8f.4.1725377483607; Tue, 03 Sep 2024 08:31:23 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:adf:cc81:0:b0:377:2d98:7c90 with SMTP id ffacd0b85a97d-3772d987ddals30408f8f.2.-pod-prod-09-eu; Tue, 03 Sep 2024 08:31:22 -0700 (PDT) X-Received: by 2002:a05:6000:1f8d:b0:374:c29f:8ddc with SMTP id ffacd0b85a97d-376dea47192mr1104480f8f.40.1725377481969; Tue, 03 Sep 2024 08:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725377481; cv=none; d=google.com; s=arc-20160816; b=oqkF7i3D8Tbyd++3DcMJf4n8okLZgtJUYFd+XIzIJuwxFQoh3BesBd/6bce1i9kUvj CiVwPDVlEZ0btCcTj+Lc11BFP2tbqlSJ0FC7lJZAPX+KvI0MKX/IzyzfvtV1RcPFNXcq lO2rvSzLGXmJmd2uXCZTLHSOw3Mq6N/CvDCgSBMstmvGjJyKujUFkVdDiYRDVfjpJPAZ iwKse4FrvUM38Xyg3dC6kFpn5bMSEl7QEpbisv0RK/b1Y+mQTDYP+Rjfv7wMG2D/nHfo /TSHJ2pAP6a1iG/v6CpY+sielzHJo39XjYh2p1oUpVq7FH4shQLC/Bs8DL2aigxDMjJ5 p1GA== 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=HWVR1tjgdNZGgyHW680IXPsmI8+TtnYx91IOCA6B+WE=; fh=FtQepR0uNoeKT2PVdKfTKOkvEYfwbRmoVE9BmlYw3tk=; b=C8+c94/4B0lHFYHgrVd+8KB9x8f8UnMj+tUJUeCMi3JA4X/Puf+UPgpXtku53t9sOs 2NC+QQuQ6KnD6/KcbXiGSvVTQI4P5uEtGjg9iS/9y1vAsRjkmeCbXpTJ9sWO0Dx4S+jo YuwCRby+PHMR7+UZqZnSgOl4hVAk1ho0uaXVRHLQ+1EMpOJDxHIpawMpn1Irf8GQ3UYy Io/pNrjo3DbbetGDcsfyRapHkNTIHB88laRSAiJI2K0XVs1WmWDf8TlBKnPTLEjqivOs 1XBUb4RtB7+5B/k1SAEj8ioYhE7WLMqpT9nZyLiQi4e+F2XFDSOzatGcJt+FsVc691wP +3cw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=TCJHh5ID; 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 ffacd0b85a97d-374b71fb288sor1916288f8f.0.2024.09.03.08.31.21 for (Google Transport Security); Tue, 03 Sep 2024 08:31:21 -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:adf:f503:0:b0:376:37e:2729 with SMTP id ffacd0b85a97d-376dd71a9b5mr776404f8f.31.1725377481230; Tue, 03 Sep 2024 08:31:21 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.42.65]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6e273e3sm174168685e9.30.2024.09.03.08.31.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 08:31:20 -0700 (PDT) From: Dario Binacchi To: linux-amarula@amarulasolutions.com Subject: [PATCH 21/29] arm: imx8mn-bsh-smm-s2pro: Enable display on reference design Date: Tue, 3 Sep 2024 17:30:52 +0200 Message-ID: <20240903153100.918077-21-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240903153100.918077-1-dario.binacchi@amarulasolutions.com> References: <20240903153100.918077-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=TCJHh5ID; 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 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 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_s2pro_defconfig b/configs/imx8mn_bsh_smm_s2pro_defconfig index 0faa3376fd3d..eb1275a44307 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