From patchwork Wed Apr 13 12:56:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tommaso Merciai X-Patchwork-Id: 12811995 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 32A7BC433F5 for ; Wed, 13 Apr 2022 12:57:53 +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=3SOKFc/MpV15/aSOOAdM4Pk4yeEEw7Vo8XPdNrpKkC4=; b=HLC1o7/JmhoXVe GyjHaoSAOBL3EiTUYrpvOtiCNbCA46Iy5Piqcxbot+IQY57TAq0OE+8cbVpqDHtuziFg7fFrj5NAv yd3+DEHYTCZrWdKD8V67rszu38USIWE7w9DnYl/HW4JD9rR1mglhumMwEOyhrUKqxEydBtcv1NdDw bTg3CVJ1kUsbssIXHNg3axkFUfkByf+3qKY5eCy3wbCT64jAitRgqn/W6Slv0faJSc77oCI0bxgW9 UU5A0I+wHyiagCVB4DUS+xu/BI9cYCPM84JcPaIJEqbUoTJdfUnhxfSyZ8MuP5JR0l/OxAWcB6hVA 54j4QmXqqOm7xDLAwOlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1necY9-0016nk-3W; Wed, 13 Apr 2022 12:56:45 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1necY5-0016mg-Ry for linux-arm-kernel@lists.infradead.org; Wed, 13 Apr 2022 12:56:43 +0000 Received: by mail-ej1-x62f.google.com with SMTP id bv19so3760479ejb.6 for ; Wed, 13 Apr 2022 05:56:41 -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=ahTXWU/PO1db6NpymuEarcVlH8cpP7KwJst30CgSTjE=; b=lz1nR2vbTodMdiEGS+96/0Amdf5k+4IW4UipuGNmmQfNJ5u3I0zPbBHs/qdsKGq1W3 T0mHWSooZWSfPUEOpLVNY8yQN6cQWbhBccY/oc5rf4h4vx8ftY3PXV8KB4dCgoci9AJu PnGDbqNJpYoYqMak/4c08iTcRmmRY4xIYlmJk= 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=ahTXWU/PO1db6NpymuEarcVlH8cpP7KwJst30CgSTjE=; b=4ZsdBbKTDcANPSqocXb8S8Hzi4DjqHYc0PmLA/U7moQ+rOCndUBZni/nQL1nIIG7q4 g2DzGQi2KydcCL2F4xRLli6ToNiGYl8BPRPfnJYAZHCHB4D9+5ngYapVqPX3GDZF15sI a+/MYbcOBJ5lCSY2y7ST1Q9exNvkjnJsCwTMwagz4h3lFQsx+GWo4l5YMuOyWZZegjG0 zxrernMfEBdMcHsGUDuTiXpUggpa9815RUaR5GlMGQYfjgx3UH944ac/NnFmjIGDsGac MHmLfRMXj47tVfiS3EjvMD9Y5RAWyiPmh87olnHJYZ1Rf6WT2RYAlI7b56HEuv18WRva ZUYw== X-Gm-Message-State: AOAM530rABShNO+0WL6m9n7wcfQGbf60uRNX52TYFQNQf2vJ9x2VBf5A iinpZEWUur2mgQiBbRfJYvXQVQ== X-Google-Smtp-Source: ABdhPJw2mU0s1CVx/DWijTgytaKl9ZPqK2UNfp6KnR/HuEl7VMgYwmGqFL9mheLYSqTLxJ6NgdatWQ== X-Received: by 2002:a17:907:72c3:b0:6e8:b602:9793 with SMTP id du3-20020a17090772c300b006e8b6029793mr6276288ejc.704.1649854600433; Wed, 13 Apr 2022 05:56:40 -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 f12-20020a1709067f8c00b006e88b1556f4sm3941781ejr.212.2022.04.13.05.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 05:56:39 -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 , Li Jun , Tim Harvey , Richard Zhu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] arm64: dts: imx8mm-evk: add pwm1/backlight support Date: Wed, 13 Apr 2022 14:56:35 +0200 Message-Id: <20220413125636.28650-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_055641_959801_A41164F1 X-CRM114-Status: GOOD ( 10.53 ) 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 --- Changes since v1: - Fix commit body - Enable pwm, backlight 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..4c18f8fcd377 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 = "okay"; + 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 = "okay"; +}; + &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 + >; + }; };