Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp676370pxb; Wed, 13 Apr 2022 09:56:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzhhXzYdfvj0YBfBeoflB/C8Y9hNBq17VUGLWxVPd9WTzt6W47G9CyE0Ro7MnncU/zW3b+ X-Received: by 2002:a17:907:724c:b0:6e8:59c1:914c with SMTP id ds12-20020a170907724c00b006e859c1914cmr23721842ejc.172.1649868976202; Wed, 13 Apr 2022 09:56:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649868976; cv=none; d=google.com; s=arc-20160816; b=OxRrdzarEXV8s3o0t9pYiherRFC6C0tgZbRL2JyFCwbCoQo5RB9UljY5y6kes2QWH0 DmmvXYGS+m3eLfIYj5IVg0H2sw8eyJSrn6OSxqrSqZcg+U0Z5hJP/qMkniYBwnqEv0pX kWZ4AX3DWJQ5UMz5GrLboj724Xd9aQNfEoAVzqZBat52An7GvNMER1JngQjZAHmIVyf0 Ew8p4pHMk9+HHrNoBCe1Ax14GFaQDXNwo7LhAwqrTGHkC3aJjfMbKHVqmdhu9IVP3/zW f9KauVJgUjgq1+NPGsRtC8M3+j0SNPVkT5pJ3PDAO1oQtGYGLti/rStnLDXJXYu3CnSQ FRZw== 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:dkim-signature; bh=I4Bto3DqqlTF/cosvOuigkAD+5xRDwJMBj3EBq0sxKk=; b=sASXTG20v6yY/xaKZmo7BQn2v1Iheu3xd7nJ9Apd5XwtbGsdLIpc+akFTja+7+VBcA 4Bh56MCGGF7FfYSD2OjIPQ3QP2JibXNaAOZV5N5TLrRlDCMIG3N80xAfCHcDzyhxxQhs boiq5tmPzWnhZDUON1QMwIz4JotaVjdiAMVVavVHqmZMnLM1SgumoiC3PAeYLENlN17F KPTYQigKHa69hOfBPI+UuQYZhj6kYQaHmkHaeTG8fwZKMmVU1oyofhDNrP33ja9mjlrP CIUia1S9PgZj3BZ+0TCvOCCyJ1CXJWBQb2T0JJnd4li6/kQHCDdR2orUNwLX4BZXwiIB UK/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aTe3y/yH"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x24-20020a170906135800b006e707485fbasi279989ejb.848.2022.04.13.09.55.50; Wed, 13 Apr 2022 09:56:16 -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=@linaro.org header.s=google header.b="aTe3y/yH"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235918AbiDMNsK (ORCPT + 99 others); Wed, 13 Apr 2022 09:48:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233139AbiDMNsJ (ORCPT ); Wed, 13 Apr 2022 09:48:09 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1441F5EDF9 for ; Wed, 13 Apr 2022 06:45:47 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id ks6so4098570ejb.1 for ; Wed, 13 Apr 2022 06:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=I4Bto3DqqlTF/cosvOuigkAD+5xRDwJMBj3EBq0sxKk=; b=aTe3y/yHMNc1zwYdJQpMlDjJYwXFpOkvDRMDjdedCXzt0LZSpSQM3zdVo6zeIhaGpM VifdlLNTc889QD5rI4K7pi6kxQ8BsesPbT3rJvj877P2tLPmWhNRhEvd95m4f8z3qkUG 0/nE8keo+2Bu+DrJ98aXf1WpfXAeyToCdybOih2NN1ereli3Duo6F87eESTG3lP6lava u8XHylWNyoXL+x8igXQvtXKSpQEbo8JwGhyx19wU69Vk3WDhLrBsLoNWOZUzJZrOzL8h /4E8FuzPr/ImgG6JIotc/fH+6kVsj6mTYJGbdiPJ4XmIC8+KI9FarS9b9cL1/PzNOxsH g83Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=I4Bto3DqqlTF/cosvOuigkAD+5xRDwJMBj3EBq0sxKk=; b=AWpzK0168ku4R/oO/R0ghaCqhiUceOFJnbooVrdgq6OUsoU4HfnQbzV4P+WAc5wzTH 8+HdUu/+2cH28XGJ4rZEv2G1HZnfT13pFAURkdYYA/Q/vzhsVGdupb7sDv51QPo23B9M IJiQSWa27UT98SMQe9jYde6RrOCgDgC0WU0+7ZTslXl9lLfJ8NbOAs8Lvh91ayeRgQ94 tSRxDeKI5iH8vlp1x9VYLXWqL6JGWp/vyGUL2A+cBRHFT6QZwe7egOEVUvUjTDzddfPV AuCAQcQRjfwBdkwh1gW5vxVh2btoamfmDqd7rV7mUxpdqbVXIyhD0UMSAXWZnBHxglLH rarA== X-Gm-Message-State: AOAM5328LRRwO21s4Mg1UL8Zfe834LofHxZkuRRceyVqAEJcx4+8fZtq ZcrUcClUygck19WDMF80XbzelQ== X-Received: by 2002:a17:906:9754:b0:6da:7d72:1353 with SMTP id o20-20020a170906975400b006da7d721353mr38991990ejy.273.1649857545604; Wed, 13 Apr 2022 06:45:45 -0700 (PDT) Received: from [192.168.0.205] (xdsl-188-155-201-27.adslplus.ch. [188.155.201.27]) by smtp.gmail.com with ESMTPSA id l11-20020a50cbcb000000b0041d8c4290aasm1189579edi.97.2022.04.13.06.45.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Apr 2022 06:45:45 -0700 (PDT) Message-ID: <8283132d-c271-d1b8-cb28-8f95305b11ec@linaro.org> Date: Wed, 13 Apr 2022 15:45:44 +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 v2] arm64: dts: imx8mm-evk: add pwm1/backlight support Content-Language: en-US To: Tommaso Merciai Cc: 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 References: <20220413125636.28650-1-tommaso.merciai@amarulasolutions.com> From: Krzysztof Kozlowski In-Reply-To: <20220413125636.28650-1-tommaso.merciai@amarulasolutions.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 13/04/2022 14:56, Tommaso Merciai wrote: > Add pwm1/backlight support nodes for imx8mm_evk board. > Align with u-boot dts > Thank you for your patch. There is something to discuss/improve. > > 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"; All nodes have status=okay by default, so no need for this. > + 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"; This is needed if the node was disabled in DTSI (I did not check it). Best regards, Krzysztof