From patchwork Sun Jul 14 10:53:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Trimarchi X-Patchwork-Id: 3282 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4F651412C7 for ; Sun, 14 Jul 2024 12:54:08 +0200 (CEST) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-58bb70e381bsf2930020a12.2 for ; Sun, 14 Jul 2024 03:54:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720954448; cv=pass; d=google.com; s=arc-20160816; b=KHot65QpTKs5eL227rJSqoO7dntBQJd1Avrc7ULXSxuokiNik8NM5OTOMx3qODVchF rvhQnzyLVKkkOssvKd0ocgxJo+h64hy1hNz9SDCu3k0n+BoSQoCaxeUG9ZPMcFV0urHU xniwbDQrJ09GdZ92itJW8ZwM+YdehULx+QkwZ15y3fpcEdPuTHnGbGgFDNVLFhjiawZh 9r6MSgBcj31dFTFPCLHE+uP4fOO8XRUE6pKcDGOXo9wO7Jt3zE0Mb2vFenfyen+Wwouf 2ucz60NQJE1PwLGaV/pQEEGR0mBER6J7B7FQqyaxgl1hofCQHbyaKoYRTHVA7YmEI7RW dASQ== 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=L7FOnd1xLtetuAwugSnDuIWid5zCODor2bLYOgJiwuo=; b=GDQMhpO1KPyqzIZcl7oteiwici8szMW2LwsoGeXVZwzHTOKui6Xpv1OnZJ+gwB77Lq RjVEEd1Eh8ddYlvs4KfCgF9KFuZIg4wRE61kKa45YB3RShL6VOpGrPXPc2xYMfy6NlIL OOlmOABcQKPRmBHToSRHKfXQNRIe0Hagm7OXAbSJ1EO96OGARfbDcmJY8JkV9elayxoO La4ECu21009XVHnjXJqW+ukF1XM3EbRkpRfe9nDs+PvwyO/j8Sx2amgbsWU6ixKPbaUQ 4fZ/ofgJSCTRVbeQd1RngQyqenAiTEwgxGLBJBWETpglailHxGRrB2NbJhohyRd9AQi7 aj6Q==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jn25vcsQ; 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=1720954448; x=1721559248; 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=d4eTsHs3YKiUhNNi5CO4mFpB4WTQU+Lv2HkZZYFAkua0n3LuSoV3PxfLfwnesvK+Tn GYSSjhfSQivpqIRgjCxwf1hggUoh0hoB2IytUHyOI4oveh8BGV99wCS5o08Gek2Nn6Cr mkXm7sMnQ67/mp/MbonIcV80ciQsNIDeLrIlI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720954448; x=1721559248; 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=roQxR5J1Qqc037CbYV2piLnVWOMorWoaO80vT0r/m3YhWTYH2sMALE7KMuC34Iyd3S BnvIY9sbI4AakU+K9wO158XzoJ7FRMq2X0p4U6GwsZS7vR/0yT+jqhebExXNKEdL0R8U 4pyxBTcCaDalUnSYcuIbH6i+ehJ2G2y3Z7cMKTkEdFNMHv/gF4/M8Y5whEv53eKJkrYk K/wnE/WxCQXmTqlpVpVOWyzu5eMJjY7D/vtcTdfAUJY9pUtFfRe09mH1M7nHoy6CITX8 xj9j0KABK0/X8wZaRjpeMhYAmPcOTSxf3rGPSb8/x76TkpCVIfj9ww2K5h9W4zX+/5jW Fr8w== X-Forwarded-Encrypted: i=2; AJvYcCWBSYq+Ksjv2xLKdOnveOtm3W5O0SnyvqIsiCwleZY58BlAklxYuNLTfUJ1uu10uoqBz7T1zPlvIqjwH27GF93uf/KbOw3LFMpBUSmAQQ3HnS9xVt24jy/97xD8lw== X-Gm-Message-State: AOJu0Yz0/bqvnm80sDNz4gd686k83WWvZJtQtLE5oMfPwu+2+hszG0KZ F7pf3GvL54DM/7iETm/UbFv3aCLz14sotbxBCPEVelL9tl28EjYw6nBYDDtRkrVKIKqGKorXcw= = X-Google-Smtp-Source: AGHT+IGDmTEx4SCYQExCXLVHCtw+Oc2LtLFmurZN6+gu47INdqE8c7arEf4x91u3lGZhhGkxYvX+uA== X-Received: by 2002:a05:6402:84d:b0:57d:12c3:eca6 with SMTP id 4fb4d7f45d1cf-594ba0ced20mr9636130a12.18.1720954447975; Sun, 14 Jul 2024 03:54:07 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:cc91:0:b0:58c:3dc1:35d4 with SMTP id 4fb4d7f45d1cf-59821cb697bls1640575a12.0.-pod-prod-01-eu; Sun, 14 Jul 2024 03:54:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVsYbaq+WLl3sBO5A2PeRT+d16vwhizRD0bUAXENXPjQDUnxQphDwpLRHESzNkXYaI0vfRykKZg7PWwUW8ZnLcPPT6oQMWtOYo+VUgA+iqJqQ3F X-Received: by 2002:a17:906:e950:b0:a77:e1c2:3ab with SMTP id a640c23a62f3a-a780b884b52mr1049539266b.50.1720954446412; Sun, 14 Jul 2024 03:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720954446; cv=none; d=google.com; s=arc-20160816; b=tbkp/AKIZLzc+ebkQWw1UDWuXt8a6nURaqlcBfAEKQ2PI5GWqYmXQyeFbHy94P/Cdk N3P1ge290thpDZacPu3IvjzKrAf4fAS1Ffw3Q3TBoDrl5x7ixlGi7Jrbp0uo+CUd9a9J cjkdM+one/NZ3uMEqJpdrrhQcsyqi02LXy0+dqF462qqBr1vQ8gI03l++NnciPgnP2p1 yOoT7aRJu8edgHrLGZA/d85jjddUx/mudHafsqLVge7BagkZbw2EdoGHWDr4cNmFYu5F H/hJIk7OyG5NLlukp6Hby4TwffY16+L9MQwXn/RkbnngQIizgeUkpSpxHrr+ILghvFsA +a4g== 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=VrAIANsz9iSB1lSxMBL3tLar+aL71EJ8hxFTrJEeOCY=; b=S2+G7rsyjsf8lPBs5VmFVeMdM+/4NSAlT9SoxwNVrvIyYS/XJ+Kw8WkkFaCFeqFcWy zztzvUZhqT0lnqF56jxvjBQfIGBoJ0HtVnyr2QWSC5haDwf1bOrxb6FnN90LxOtXGvFS yR/+8sr6/0uBXnASKnQXb5CXauhq/zB53DEvLReLnWCRFCeblFjkkF0ewhg2iYOdUcoz AL+0WZl4j4oOmPi+mcHFeOC2/1TK73y59Aq5r4TR1lwFYMIUaG1UHoTFYxPFdkEu4td1 WyS8+tArHup3QSsPeXjAHScmLh2zSKyVkRXSeFwPDE3xFeaA3Vyn1qgoYj/l8Xjnbgkh iA0g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jn25vcsQ; 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-a79bc5f7d31sor64232166b.0.2024.07.14.03.54.06 for (Google Transport Security); Sun, 14 Jul 2024 03:54:06 -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; AJvYcCV3Yx5kXhSAHKs9lQgjAGZy0mgUsSxwh29lWNBeIoA6RkZB/hBLP93k076/Q7KwWz71E9hxx3j5wwPO0QFu2aK8xxEc9gFWKcpEx2JzoD+Rp6xl X-Received: by 2002:a17:906:3e47:b0:a72:76c8:ef68 with SMTP id a640c23a62f3a-a780b89f574mr924816466b.69.1720954446026; Sun, 14 Jul 2024 03:54:06 -0700 (PDT) Received: from panicking.. (mob-5-91-58-211.net.vodafone.it. [5.91.58.211]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a79bc5a36c7sm119966166b.7.2024.07.14.03.54.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jul 2024 03:54:05 -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 12:53:28 +0200 Message-ID: <20240714105328.35825-25-michael@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240714105328.35825-1-michael@amarulasolutions.com> References: <20240714105328.35825-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=jn25vcsQ; 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