From patchwork Wed Apr 13 10:20:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 12811848 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1AB2DC433EF for ; Wed, 13 Apr 2022 10:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=SNCjVregJYUo2knUY/j/Nz7pqXmail4iDmkQUuq5I4g=; b=itcLJLEWPcNPhV yvxGvpZ3zZdCzIUMN8py092rtIqnO/fr5XJW1eQP2GBcB/d7gPukK4NKZQ134bomSKRxEV5W4hOFx 0nwbs6kAcXDQgcBjq3I6JItBjUi3EdqPPmVBaekk9vN+v+Dp1FQTKWo4xhlQoPC2Kivx4UyPHEXOf MjDE3ezFliCUU7iMdcFCBXF1VvrvPr/rCJlpNgJurvTpX0+3hrGY5subGH5334W8i7j+mHHdFS3s5 sb8eZuo+CeIORkn6ZgNLW1HgZNbds4/MWZgJmUh988nOaF9lupEz8QYXT+6WSXuV4g1nxFvnXVswW 4/XJ8BZaT5Z/3nQAhBTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea82-000W4a-Aa; Wed, 13 Apr 2022 10:21:38 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nea7Q-000Vn0-2W for linux-arm-kernel@lists.infradead.org; Wed, 13 Apr 2022 10:21:02 +0000 Received: by mail-ej1-x634.google.com with SMTP id bg10so2972464ejb.4 for ; Wed, 13 Apr 2022 03:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zGO6fu5bsJKLhceCU/2eZbT6NC6ZKZlGiRFZPq4QBd8=; b=lUJPLTmrBG8EGdlglUt6FsdnyuMBIQH6L1xSpGJEabdt7ofMyOQaqeNHc/HErZUbbM CPvEkBqPWMxwgShffc4c0zIxaAczkglBwkcpQKrCIfrXO7sLlyXosLYMpPAN2x5kA5Uj WUoD6HblWk8E3RnB2o8u2Z23Jc7ubq3kR+pTk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zGO6fu5bsJKLhceCU/2eZbT6NC6ZKZlGiRFZPq4QBd8=; b=EgJ+OCGtLbWcolcCjxmkg1fzSYbIxDJGHIv/6lt+WaSmF5J3Nsc7XTIqyK+PK3ncbN uGyc6SS/kReRe6OZa7rx/uSS5n62+nM/nUPmxtyB2j80JxATdPxujZi8zmmlEWt8vE3A WHXW/J3U+CwQhUkB9RPktJ+XpU4Wxo/eG+W2UjCefLpbPx8YPu5T6xf1tv/B4IVbacJR FLjX6ZiXNOX38wyRU3+gRmO4dhX7RY/Iug8igyjDaQqGqpmC3uLcbuoU4Ql6J0UbJqBn JpmY66GlbKb5CEdGzG5eZsfznyZRotIR0oc8NY+xK6LtKyfiGCmkjr3VDaM9rkfNxL5/ 2nfQ== X-Gm-Message-State: AOAM533G3Q0ak7GkG/wp1t2PcmUX0uZL6Pf1JK8b7aX/snaQGiGsuqgm ozyycnrhW7wk5TWtbHu+YvKFBQ== X-Google-Smtp-Source: ABdhPJyd46hjgiXiKc0E6A+TkwfuNjRpTspMmE/b+xlPHX9Jpc6mEp15RgVxpqgijjXtUcN2SGghkQ== X-Received: by 2002:a17:906:6a0d:b0:6e8:c927:663 with SMTP id qw13-20020a1709066a0d00b006e8c9270663mr1940427ejc.394.1649845257887; Wed, 13 Apr 2022 03:20:57 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-95-245-147-71.retail.telecomitalia.it. [95.245.147.71]) by smtp.gmail.com with ESMTPSA id m3-20020a17090679c300b006cf9ce53354sm14021163ejo.190.2022.04.13.03.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 03:20:57 -0700 (PDT) From: Tommaso Merciai To: Cc: tommaso.merciai@amarulasolutions.com, linux-amarula@amarulasolutions.com, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Joakim Zhang , Tim Harvey , Richard Zhu , Li Jun , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: imx8mm-evk: add pwm1/backlight support Date: Wed, 13 Apr 2022 12:20:51 +0200 Message-Id: <20220413102052.20207-1-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220413_032100_147730_601D23D8 X-CRM114-Status: GOOD ( 10.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add pwm1/backlight support nodes for imx8mm_evk board. Align with u-boot dts References: - https://patchwork.ozlabs.org/project/uboot/patch/20220326111911.13720-9-tommaso.merciai@amarulasolutions.com/ Signed-off-by: Tommaso Merciai --- arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi index 6d67df7692f1..55566708f667 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi @@ -59,6 +59,15 @@ reg_usdhc2_vmmc: regulator-usdhc2 { enable-active-high; }; + backlight: backlight { + status = "disabled"; + compatible = "pwm-backlight"; + pwms = <&pwm1 0 5000000>; + brightness-levels = <0 255>; + num-interpolated-steps = <255>; + default-brightness-level = <250>; + }; + ir-receiver { compatible = "gpio-ir-receiver"; gpios = <&gpio1 13 GPIO_ACTIVE_LOW>; @@ -395,6 +404,12 @@ &wdog1 { status = "okay"; }; +&pwm1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_backlight>; + status = "disabled"; +}; + &iomuxc { pinctrl_fec1: fec1grp { fsl,pins = < @@ -549,4 +564,10 @@ pinctrl_wdog: wdoggrp { MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0x166 >; }; + + pinctrl_backlight: backlightgrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT 0x06 + >; + }; };