Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1458169pxb; Thu, 14 Apr 2022 06:43:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCY2QDvnuOdhZVj2iC7Jbj22G/Vm9xHe8oxHcuwDJAC4DONw+RiMt5uyvPw0KYhPy4+0nB X-Received: by 2002:a17:902:6b01:b0:158:be18:5be7 with SMTP id o1-20020a1709026b0100b00158be185be7mr2129517plk.112.1649943834736; Thu, 14 Apr 2022 06:43:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649943834; cv=none; d=google.com; s=arc-20160816; b=qjgYs19sTDGD7i9fb0sINn+w9POxIqSjKdPjasAEkhOAZFvSqLohgt1gNHFY4bOvxF 7V5MreFe7mzXU2fpTwmD3RyLQutIbqV5o69jGcwJ23zIwdqZyAzlYdxiYNB5IEALADet jRUGxdaCZ196DkRiBXAH6qjDOkDYn7RE6syPDag1Pi+O5AS5U2LmGdkAGuJ9ATGZFKrU TwAvOlKkBROka3EkKT/UV73snigvdcPgz4LBRxAR8LGqNejZPV0SGp7XZS+Y0nib/ho1 F8XCOyp4kvDLuYd26Un0qAmPChQfFARl7RLvT9bCrB+ymzGx2jnocfS+kxTCNJb24RDY zB3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KgpH8E8Be3mLImfDuc7rcAzwOJ8eNCA0wVEOLBBjmmo=; b=okE0gwpvL1ZgHk5HQ3AiaK2csRSqMfgGPkpz+QaESexPiWhwb3Fg10xFtys0mzaI5U Yhye31957EF+5ktNV85/6k7t51G8pv1woWgyeD9mfATWAQjyFJ1fwzKqrGcq5cg53CC/ dfMDDMnrQpVEfnq6wzGvsr8Emvz4vaioJ0Y63+82H3jSG4vqnQN2SQe//Vaa+tADVCZv vzFg4uHMGu21RK29nXld+tPDYo8Ku+HcBw46BFMn7mx3WBdijfWJJYIBUeeUSUjM2bLr GzvQZ/1ChV1CPg/vJJLIQt0dpNclskw5rC70ZUE2Wh1+jBhmkkobhR0v9Sjhcaav18Ic 6M9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="Pyb/JtRm"; 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=pass (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 w9-20020a170902e88900b00158951ab217si6256805plg.342.2022.04.14.06.43.39; Thu, 14 Apr 2022 06:43:54 -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=pass header.i=@amarulasolutions.com header.s=google header.b="Pyb/JtRm"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231209AbiDMViQ (ORCPT + 99 others); Wed, 13 Apr 2022 17:38:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbiDMViN (ORCPT ); Wed, 13 Apr 2022 17:38:13 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5103B56C24 for ; Wed, 13 Apr 2022 14:35:51 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id q8so1662282wmc.0 for ; Wed, 13 Apr 2022 14:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=KgpH8E8Be3mLImfDuc7rcAzwOJ8eNCA0wVEOLBBjmmo=; b=Pyb/JtRmDglYafeGT9DnYvtGO7mseoHJWlxBWUNQO3xPD/Hfw5SdposQc/zLfC8TZE U0vyMgWVViLZ6BmQUTkt7TZihL80XxzSm9bCf29CGU8jBa/+ew2rBWQFncxLhTCaCiBy RJZW0bwS9uIhiIeYIn7MZ1+g37gTgzQQfg/jQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=KgpH8E8Be3mLImfDuc7rcAzwOJ8eNCA0wVEOLBBjmmo=; b=ePjWV0UqIteMu88mdUHBrHwSve5iUOjs0XfDzVkOdOUbmgGAt2tmih4y73EdtyZfcw XMHl54rLvdo1TfJk591ZLu0p797D4YC5kEFa5U2PCDhVt8mKvR/W+296U0y6EU648yiF KHKgPf7ObRTJyu401xT7rRq0pzibFRclPhPIK2tBnzlmT3fxCoUzJ8+CPE+f59dXXzDy dQNWwCqP1mskuep7ZWB+FnNfRfn5T5gavC4hn2su1loVNgUKCYM7+SwMqEQn0MT0nw+A gKaqASeOideaaGlUgTu7kUpzleUt6DXperxExCGAhpSGKYN84IgJQ85Ae3UzdcjFEP10 AbyA== X-Gm-Message-State: AOAM530bHfVC+FgDJTYfGS1JaGy8ERSYvEUW5y7Zi8ij5i5Gyi/FXnEn evbXF7/N/pdmI4pUaaaSp+aKAg== X-Received: by 2002:a05:600c:34d4:b0:38c:5ec7:1e38 with SMTP id d20-20020a05600c34d400b0038c5ec71e38mr558062wmq.184.1649885749834; Wed, 13 Apr 2022 14:35:49 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i (net-188-217-56-163.cust.vodafonedsl.it. [188.217.56.163]) by smtp.gmail.com with ESMTPSA id t6-20020a05600c198600b0038cafe3d47dsm8705wmq.42.2022.04.13.14.35.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 14:35:49 -0700 (PDT) Date: Wed, 13 Apr 2022 23:35:46 +0200 From: Tommaso Merciai To: Ahmad Fatoum 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 Subject: Re: [PATCH v3] arm64: dts: imx8mm-evk: add pwm1/backlight support Message-ID: <20220413213546.GA11567@tom-ThinkPad-T14s-Gen-2i> References: <20220413160900.36271-1-tommaso.merciai@amarulasolutions.com> <11f8bf43-d6f7-12fe-f5da-1f7a397c4317@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11f8bf43-d6f7-12fe-f5da-1f7a397c4317@pengutronix.de> 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=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 On Wed, Apr 13, 2022 at 06:31:34PM +0200, Ahmad Fatoum wrote: > 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? Hi Ahmad, Thanks for review, update in v4. Tommaso > > > +}; > > + > > &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 | -- Tommaso Merciai Embedded Linux Engineer tommaso.merciai@amarulasolutions.com __________________________________ Amarula Solutions SRL Via Le Canevare 30, 31100 Treviso, Veneto, IT T. +39 042 243 5310 info@amarulasolutions.com www.amarulasolutions.com