Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp680877pxb; Wed, 13 Apr 2022 10:01:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8LYGTTWRt+RWaWNaMMpAHuuaAj+DASaAozqtpY2BuFJunAYuaxRawfslQKGpwSNG5Hgxj X-Received: by 2002:a17:907:728f:b0:6e8:c43c:12b0 with SMTP id dt15-20020a170907728f00b006e8c43c12b0mr4347665ejc.258.1649869288166; Wed, 13 Apr 2022 10:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649869288; cv=none; d=google.com; s=arc-20160816; b=RKnHya2G2kWPQgqj2yvmusDt5DkUggdakhPzyAdZsixYqVl8L0ogw4uSq/2yA7zbP+ wM6StR5ZypLII+/dvOdmq9KX2zYJ95d9Ob335mLuaw4/J1Gx5U/Tj+q7OS+6wzxCMoRn v2VQNWnucCw/oOZzvlI8OjYS8NK65hEpMGI+5SO7QGIXqqC6tDz7plJz6E/S4Ba5rrla 6aJZPVdQDl1rQWqg7ALK2w13JbM9S1R2Na1QoOetdfWFZmNMEOwohg3an1293NQAlVGz riJdN438vQXDuMAhKgfdbCbji2hHoDXKfq0UCFpNOCUuK+pBITTRQt7Li0/DZ7iNdXDd ZOfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=wnVbylCavtegSmRXTSeVX9SW8HTXQK7805TDPqdyk+U=; b=EIlnwOfk/R0sHKiSwH1jA1qus1rSnR7ce96Mk8jAt04jd9X33YRG86xk36XKprvDzl 6zdK8K+Dmh1TTdg4IDyvNDHIn4PDxbA0u/yWPNBj10/r2UkU0M/aDQTSL2qSMC0eGGUE AtpPqie2TVSam1oUbxHehvYHYbh6X0sdytjg96D1FJbQYwEncsZ9hzrGDReiPcTFnBEM 0PwkyuFqOXjK1FELDw1VqOvpLKka+XT7tjoTfVzYMZhYZiiuzRMZlAj3XBCU4qVhcawn kPPi6yOEJFnr3i43N3H1/uZBw11bBCeb4TAmPnm7bUM0QOpRCEjX4DNpbgpIbuduOz1K c4yQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a056402190e00b0041ce155569bsi2567354edz.30.2022.04.13.10.01.02; Wed, 13 Apr 2022 10:01:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236781AbiDMQeE (ORCPT + 99 others); Wed, 13 Apr 2022 12:34:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230367AbiDMQeD (ORCPT ); Wed, 13 Apr 2022 12:34:03 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD4CC58E7B for ; Wed, 13 Apr 2022 09:31:41 -0700 (PDT) Received: from ptz.office.stw.pengutronix.de ([2a0a:edc0:0:900:1d::77] helo=[127.0.0.1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nefu5-0004wI-4P; Wed, 13 Apr 2022 18:31:37 +0200 Message-ID: <11f8bf43-d6f7-12fe-f5da-1f7a397c4317@pengutronix.de> Date: Wed, 13 Apr 2022 18:31:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v3] arm64: dts: imx8mm-evk: add pwm1/backlight support Content-Language: en-US To: Tommaso Merciai Cc: devicetree@vger.kernel.org, Fabio Estevam , Richard Zhu , linux-amarula@amarulasolutions.com, Sascha Hauer , Joakim Zhang , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Krzysztof Kozlowski , Shawn Guo , Tim Harvey , linux-arm-kernel@lists.infradead.org, Li Jun References: <20220413160900.36271-1-tommaso.merciai@amarulasolutions.com> From: Ahmad Fatoum In-Reply-To: <20220413160900.36271-1-tommaso.merciai@amarulasolutions.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:900:1d::77 X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Tomasso, On 13.04.22 18:08, Tommaso Merciai wrote: > 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>; imx8mm.dtsi has &pwm1 { status = "disabled" }; Where is it enabled? > +}; > + > &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 > + >; > + }; > }; -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |