Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp569309pxb; Wed, 13 Apr 2022 07:59:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE68SS3YXvvY3I0WePj9JrZ06+FZZZBXg3kz18gFVT3yKPqUrH+mS0HY5xquGFU5nRwOBi X-Received: by 2002:a05:6a00:2402:b0:4e1:46ca:68bd with SMTP id z2-20020a056a00240200b004e146ca68bdmr10127526pfh.70.1649861986645; Wed, 13 Apr 2022 07:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649861986; cv=none; d=google.com; s=arc-20160816; b=InVhkRDDejYUBjZHGyrmOpLIeT60tveim3vldRAdrIjJPakXu41RZlGZd3pxRkGzJL TDVTNQ+KoCCjC454y928NrH2gGatzRM01Bk4qyNFLpeqiU3i10veXOB2UPlxSB4Af+ED uW5MQbC6KTgWblBShko5jlguceH1G4FsLF7jUsnLj4jLPm8tAKZwIGbEEIB0DDr/1Mlh 93fQHv0w+WiHr8JIyb8eSwKt2rp9FJjR+2TN+HMtELlHRg7l8uDR/tgxGd5j3Ev+MVmU hX4i9DF5qc4rFet0BAroChSThKAfCA+UNMljRQsIYeOWi9UJKy/wppOc9ofNq08G/LEh wd2A== 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=ahTXWU/PO1db6NpymuEarcVlH8cpP7KwJst30CgSTjE=; b=YnXPyKRMnbhbaAQ+bUobXmIXH2GZUAQsOYxZNzI1ekaw6tDjhnM0WUXnCauHw+Y7ao ebQF3AGD616vNfb7speOFGLAD7xQTbYZ2w6ivPqfLbV+mltBIcAdBxwHh91QjnEZdkPO hiGLZEwZzeVAgz5YA3P5o9ITVbb6hEiCBaWai67VjOx+CqdApmNYhwqA6iCfAqnGXXVc TYqYPMM6qRv8+UIIJjyv2T12DBAEohB3Dp9GBjbolCVlw/vnMhG5FzIwB4KQiPRdtXnc 7xedZWedxm6UdVjvlNYxPkUDqy6b9XcbbFf2Is7W6k/1uCO/4SkHsYhqfKap7MsceR3L YshQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@amarulasolutions.com header.s=google header.b=lz1nR2vb; 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 e9-20020a636909000000b003989594cce7si5874242pgc.872.2022.04.13.07.59.31; Wed, 13 Apr 2022 07:59:46 -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=lz1nR2vb; 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 S233394AbiDMM7E (ORCPT + 99 others); Wed, 13 Apr 2022 08:59:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230038AbiDMM7D (ORCPT ); Wed, 13 Apr 2022 08:59:03 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2FBC50E33 for ; Wed, 13 Apr 2022 05:56:41 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id i27so3733871ejd.9 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=Ayuf47dNIzF5bsZcm0yQkVWlue5ql94/kdjTFzUpjgXGiLlHmkeAZKysZngYZsybsL I5wIR91f8FLMbVftGrjb9aCv9F+GRzhNe+j0rYUSJH08X7aKdP0K+0W+2NvGmkvgDIkd 0tFSL1+x19UjygJQmgq0fOrPwP/757w41zH/xbUs8NVYJZ5ZgDZ4KyomNQqnhwkZO5ne xkYRXTTOFpD680rAElRUuIwpWVG+Z922r7QzIHsiCcYL1NHd70eEJvvAvq8I86j5In3i 6P278S/S3BNBFJvsmhBX9R/vpxMu5fIuP5WoWoPal8VhzYXZ5v3w4WZs37sF+qXsYqzR DzNg== X-Gm-Message-State: AOAM5321M2fJx8wqiAV7M2f81vYP5nas2uP7VHwL56xIumXe3T0DV8Cf 0ZGwVP0U9Oq+nfdzSPAPiPibRQ== 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 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 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=unavailable 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 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 + >; + }; }; -- 2.25.1