Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp859187pxb; Wed, 13 Apr 2022 14:11:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUDAB+0lUOo/df/7LbRabjUSVZtiqjYP5dcLdC8nnryR+kWWeS0nEV08BKFGoMlr+fJZDd X-Received: by 2002:a05:6a00:198c:b0:505:c18b:3184 with SMTP id d12-20020a056a00198c00b00505c18b3184mr11580053pfl.82.1649884301910; Wed, 13 Apr 2022 14:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649884301; cv=none; d=google.com; s=arc-20160816; b=szssczpDHKW5VJV5FsrhENSiubn+nz0PyIKnAL0wo1IyJqFsO6Q6to8Xkxg8FKVLuf k50S6LaTpqc/zMVuRU0/uVUwEuZV5/am2YGyB/cyM9TZlL+q58Udz8kE9qEZT1f0xCDQ W4LX8cINoDWKxTKh9q9I8RZg/ZylxGD1UIeWhDhfi3S70c2F15zBBcJJQMUr0Y/It17P yDLvEGUHTcnSYfHsWGvHNY4NnszrgGpZXz8JHlzw9ZqAkL6T/VXYvzVPxzci+wocsQe9 I9V9YwK1mYsUvUiVN+atU5mTfZL3d/Gm/U3JhlE9Aex+04LTRYQVbQABSe/2cWzp0LrZ rgxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=UHgRvgx7SYkj5pmKsaI78m5hk2m1gV/Mhyu2PiUCr4E=; b=aykevN6c9Q4BaxEPfqA/MZFi+ctWJwu3edvE5pdP8XjpnlS+v94fn7Eq4GrK+F/+w6 F68xRzVjEgSkdukA3HwAtACC/QjGZAUVtOdPK7xX3gwp6hohXqTnzaQ2G/UpGV8eXl3F w0vMybwhAblrGoC4F1JJ357afbEKebchPSsIZQ0kN9mwCZONHke0lQu0/pkfGHlCl18d Ps6kKRqe/1jkINOEdUZma94Vcd8mIUgTdRlfgcfl71Uz4yI6RYY9APJJDWBnOMqbAp4h 3xG5DebfPnaBjCwGCCoHE9xUg7e8GmyL/MLeVi3dAaWGAfHHWWyKrCWQQ7IiWN9PtKGk EcGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@amarulasolutions.com header.s=google header.b=lBWu77Y5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm18-20020a056a00339200b004fa3a8dffc4si5349987pfb.123.2022.04.13.14.11.27; Wed, 13 Apr 2022 14:11:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@amarulasolutions.com header.s=google header.b=lBWu77Y5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235209AbiDMQL1 (ORCPT + 99 others); Wed, 13 Apr 2022 12:11:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230442AbiDMQL1 (ORCPT ); Wed, 13 Apr 2022 12:11:27 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5059E66CA9 for ; Wed, 13 Apr 2022 09:09:05 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id v15so2955143edb.12 for ; Wed, 13 Apr 2022 09:09:05 -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=UHgRvgx7SYkj5pmKsaI78m5hk2m1gV/Mhyu2PiUCr4E=; b=lBWu77Y5D2mXiuJjDT0MwNKo4A9phca9/l3ON7aH+9P/8o1crWjKtyOgzTb9xU22b9 7aVTH9ZGs6JjySr9UuH8nGq/ISCdGFOLsZ4UR+IKEGEWHTPoPfamJO4M13rX2YBRB2JR VwpNLfXuj30Zt7vEd7WXD6Z25w3WffY1aQ5Og= 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=UHgRvgx7SYkj5pmKsaI78m5hk2m1gV/Mhyu2PiUCr4E=; b=6UeuKMhQwDTVPfBDe9S6xWdNto8mMCgfOku8kUhib21pz5FzejxvPrMWpxG3nZNSic IhMSLR8MXJCrGAcsmw70H/VDV1t8rJ4dHWp0aPWzrzh8Bm8Bes7q75SD1yCF1GyY3wEh EPyS+e1fgs+x5zDe/YFqAwmNuZKu/ikOlWtGtHV1oUK3YP+U/wwQ7xKxPBm43xaTiuHS HIwZtLU/mCX/nVvTGldtEzyL71eFD7HWRMa6s4FObiFhzmeqXchM0r0BV3FInGyKiW3f 7uCaROug3m+acXsDo4XsBY4/y2en6Y4DAIHkUQrBp9ndSmrOtDg2IdfdUIBjUgeJ90kx mtLA== X-Gm-Message-State: AOAM532mx6d7CcVSm+PBrAnXoQxgpYFR40jm4IP2c16aTUqCq8E2q63L 0KC2BCWS+dByJ27+axBckW9/dw== X-Received: by 2002:a05:6402:1c1e:b0:416:5b93:eacf with SMTP id ck30-20020a0564021c1e00b004165b93eacfmr44827620edb.302.1649866143905; Wed, 13 Apr 2022 09:09:03 -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 kk23-20020a170907767700b006e8a6e53a7bsm125399ejc.139.2022.04.13.09.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 09:09:03 -0700 (PDT) From: Tommaso Merciai 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 , Richard Zhu , Tim Harvey , Li Jun , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] arm64: dts: imx8mm-evk: add pwm1/backlight support Date: Wed, 13 Apr 2022 18:08:59 +0200 Message-Id: <20220413160900.36271-1-tommaso.merciai@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 Changes since v2: - Remove status okay from pwm1,backlight (enable as default) arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi index 6d67df7692f1..c50d2cc3ca71 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi @@ -59,6 +59,14 @@ reg_usdhc2_vmmc: regulator-usdhc2 { enable-active-high; }; + backlight: backlight { + 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 +403,11 @@ &wdog1 { status = "okay"; }; +&pwm1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_backlight>; +}; + &iomuxc { pinctrl_fec1: fec1grp { fsl,pins = < @@ -549,4 +562,10 @@ pinctrl_wdog: wdoggrp { MX8MM_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0x166 >; }; + + pinctrl_backlight: backlightgrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO01_PWM1_OUT 0x06 + >; + }; }; -- 2.25.1