From patchwork Fri Apr 21 15:43:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2857 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A4A753F07F for ; Fri, 21 Apr 2023 17:43:35 +0200 (CEST) Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-2f96ecfb40csf720210f8f.3 for ; Fri, 21 Apr 2023 08:43:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682091815; cv=pass; d=google.com; s=arc-20160816; b=KyzkD7xYDTGTZp0rHgk8QwxO6h+NVpLSbKlHsM3vSEWm+QymSD97eslKvbPCvXLrDV mpSuffP621U2SRBKWnXo5UsSU0vwTDkA9ycOaYK92+Oy/Lndd3IujhPFwllFQd7XnG4t 8pGQii/NHV5GCV2S/bue6Fdel1HLZdIg7D1cYRrlm54rXYW/RJTnGaGTuKvTgvPtIumZ Mx6gYdPMCwf9EOZElU+qd+1zyqPpNb9dE+N36cZKqFMg0HjQy0P0PAm1dbhikQTrPWtB ydJWqx1yj2mNc2Dya01H3ERep+dQWwfRiuX/s+qCB0THl9dRN+UNhoopBWrk5f603UAU 6jjw== 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=hfSSHHmaSsCq7ydgGoW3xin+vaY39HfliJpOIqb5s+g=; b=iFv7ogLIc4GpgALksg7XpINkFIH+52RoAppRrdoz3RDn3oxYbXcf6UGdqGK2JVetco IIM0fAs3RSBUC42k6S3pox4cnS36x3S228S2Pc1jUHaR93zscrdT3ltn0V43zvRZHhYl CyBLZgSvF+F0RFEG6PCJ/gUdw4PzMPI7flhadEk9PR54hqdQxooP4WckfCQrFk5N+Klk nArhnOogoGmOp8ZaerQ/QVuo7xZK6mTCBTXWSUhzUamIXfbkAqMqa50vM1jhjbYLX6zR mSdms8SC8P8K056F42gu0956aLsUY7q7YhGvjjPpsDdkrwVN++NHGhAqPGUStfxUvgik d6ig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QyS8B1MQ; 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1682091815; x=1684683815; 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=hfSSHHmaSsCq7ydgGoW3xin+vaY39HfliJpOIqb5s+g=; b=hUuu86OdW71HFXi3WkqSfwQMiADULO21xl1UduVAQ1V8lhVCBasaCmmz7JEjvN7SOl qOeyy0cBgBOulktkQkH4uYWeGZL/hQBwAnB5XLu54a7VuAYbIdNYsuFLY+Qno3Nyp15A R8faWJaUyDCjSqrCPfp1W/lG5sbczoBrTHwJk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682091815; x=1684683815; 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=hfSSHHmaSsCq7ydgGoW3xin+vaY39HfliJpOIqb5s+g=; b=E2/PT8cv7NIr1inM1q0VnIUocVN4jYBQvBGZDK1etFpatL+TE6Aqb3D1jUMhiXmRtE u+IR4u+TEk8lVJ6OruwcLBD5zpStJ4L/hjHU17hArRh9m7LcqR+INfZ8svQZzHEOw6Xi 6Ieg7/31GA4S2XMmyfOezfC5J1Y2L1s0vVypdIDJj8AsMvvonsnTRJtCpbOv6bm8p7/s 3Ok/35LJvC4NDoBcsrTRUm+NYi6+AfRFZPZIEDWsv+0TK3itcLh+zIHGWRN5EG4WyZcS CzNbU2tJnhCtCI8zKEnpujaKLXEL2NGTBD/jdzzklxpE14c11FZ2WbAuSddeBA60+fx5 2O3Q== X-Gm-Message-State: AAQBX9cgVEEZiDPQJn0KW6ZbVF/IGZN9c4xPDiQDH+YfDKfyPozn8MKP QOAHPa37Amhp/JzdE01WRSSH1eMK X-Google-Smtp-Source: AKy350YYZ36fMHDCapvNGoYfFxMUDfErYQBhzRInr2FpdH0aAa7cYcrCBTM80ICYaB+cx06jIU0LCA== X-Received: by 2002:a5d:694f:0:b0:2f2:5408:f160 with SMTP id r15-20020a5d694f000000b002f25408f160mr939656wrw.13.1682091815075; Fri, 21 Apr 2023 08:43:35 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a5d:5e90:0:b0:2f8:4432:9c7e with SMTP id ck16-20020a5d5e90000000b002f844329c7els7736821wrb.3.-pod-prod-gmail; Fri, 21 Apr 2023 08:43:34 -0700 (PDT) X-Received: by 2002:a05:6000:12c4:b0:2fe:bb38:2cd2 with SMTP id l4-20020a05600012c400b002febb382cd2mr4499706wrx.46.1682091813470; Fri, 21 Apr 2023 08:43:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682091813; cv=none; d=google.com; s=arc-20160816; b=MHPWJCaxZ8VNSx6xoQbr+v6t+R4kH/x2cWtDC8wAzJJAGoJsGmLuFTKx01riMDJiqW w2/NV2eD9lFZdWmnW25HYQtGDEco2BBo1S4gshoL7leEcGGh6aLibE9i/qDyuTxoQbGI MDY2YZjYlmarAXCu0OkL2SdcKMEV8Df/Agu0sz1jzmpm1RHtHaiOs/XFsl0i5zq6ppSA PXvFl2E0tDyLypOmP7PNVlYvGJw9e0cfdWdhzhWDOqBuWGzCp92NDKrhQQx5o/X6Mjr4 R+y4uWP7suVJ5DNWJPYCpAKoZL5/NCE0OU4g4s/hwnVKCgrbAKddRiSjX4MESLyVK/fQ ObtA== 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=3EQLBHp8LKtmE2FtHSzAOWDxYQlcAD1HNJT4CQStpTw=; b=xwzsxaXqUni21p/KDBTynVqt+GKbS6o1BUMj7Egww90XizRhkvUF1axsMGlF1/W9sL pKS6H1D1P8G7NEKCvS5R4CC9+J8LuUeqaUeBThEI/dBGudb3QmazgeIKeyzvyn5DabJw Gmz0fEswuSq5tQ/RNnKJGJ3oitEo/oo+1GDPCCFAokrOKuaFOSUQEipN+9DcI+6rtAJL wTBK6/bFLtufUKvtWweEuiYeAYsKSRKmZj7Ns/NsJBf20Ab6zec85nm2ueNx27L3miYj Tc41XG95tp8AxHURsiLNOezXC6zHcLQwGCPufVH4sWse5GBLN7skXCG3qzBacN3Sv1dQ DlVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QyS8B1MQ; 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 Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id f2-20020adff442000000b002f4164f9ef3sor2066076wrp.28.2023.04.21.08.43.33 for (Google Transport Security); Fri, 21 Apr 2023 08:43:33 -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:a5d:4e04:0:b0:2f4:30ee:310b with SMTP id p4-20020a5d4e04000000b002f430ee310bmr4090705wrt.26.1682091813106; Fri, 21 Apr 2023 08:43:33 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.127.129]) by smtp.gmail.com with ESMTPSA id g18-20020a5d5552000000b002e51195a3e2sm4651609wrw.79.2023.04.21.08.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 08:43:32 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , Dario Binacchi , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/7] arm64: dts: imx8mn-bsh-smm-s2/pro: add display setup Date: Fri, 21 Apr 2023 17:43:04 +0200 Message-Id: <20230421154308.527128-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230421154308.527128-1-dario.binacchi@amarulasolutions.com> References: <20230421154308.527128-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=QyS8B1MQ; 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 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 Add the display and nodes required for its operation. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- .../freescale/imx8mn-bsh-smm-s2-common.dtsi | 1 + .../freescale/imx8mn-bsh-smm-s2-display.dtsi | 111 ++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-display.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi index c11895d9d582..5f9c0df0ec7d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-common.dtsi @@ -7,6 +7,7 @@ /dts-v1/; #include "imx8mn.dtsi" +#include "imx8mn-bsh-smm-s2-display.dtsi" / { chosen { diff --git a/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-display.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-display.dtsi new file mode 100644 index 000000000000..bac987d76f1e --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mn-bsh-smm-s2-display.dtsi @@ -0,0 +1,111 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2021 BSH + */ + +/ { + backlight: backlight { + compatible = "pwm-backlight"; + pwms = <&pwm1 0 700000 0>; /* 700000 ns = 1337Hz */ + brightness-levels = <0 100>; + num-interpolated-steps = <100>; + default-brightness-level = <50>; + status = "okay"; + }; + + reg_3v3_dvdd: regulator-3v3-O3 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dvdd>; + regulator-name = "3v3-dvdd-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio1 7 GPIO_ACTIVE_LOW>; + }; + + reg_v3v3_avdd: regulator-3v3-O2 { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_avdd>; + regulator-name = "3v3-avdd-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio1 5 GPIO_ACTIVE_LOW>; + }; +}; + +&pwm1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_bl>; +}; + +&lcdif { + status = "okay"; +}; + +&dsi { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + panel@0 { + compatible = "sharp,ls068b3sx02", "synaptics,r63353"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_panel>; + reg = <0>; + + backlight = <&backlight>; + dvdd-supply = <®_3v3_dvdd>; + avdd-supply = <®_v3v3_avdd>; + reset-gpios = <&gpio4 29 GPIO_ACTIVE_HIGH>; + + port { + panel_in: endpoint { + remote-endpoint = <&mipi_dsi_out>; + }; + }; + + }; + + ports { + port@1 { + reg = <1>; + mipi_dsi_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + }; +}; + +&gpu { + status = "okay"; +}; + +&iomuxc { + + /* This is for both PWM and voltage regulators for display */ + pinctrl_bl: pwm1grp { + fsl,pins = < + MX8MN_IOMUXC_GPIO1_IO01_PWM1_OUT 0x16 + >; + }; + + pinctrl_panel: panelgrp { + fsl,pins = < + MX8MN_IOMUXC_SAI3_RXC_GPIO4_IO29 0x16 /* panel reset */ + >; + }; + + pinctrl_dvdd: dvddgrp { + fsl,pins = < + MX8MN_IOMUXC_GPIO1_IO07_GPIO1_IO7 0x16 /* VDD 3V3_VO3 */ + >; + }; + + pinctrl_avdd: avddgrp { + fsl,pins = < + MX8MN_IOMUXC_GPIO1_IO05_GPIO1_IO5 0x16 /* VDD 3V3_VO2 */ + >; + }; +};