Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp283328pxb; Thu, 14 Apr 2022 22:41:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNbMVajJq1FhrB0Ek67mGVPVlEEuXqmB0B90I6Tcn5CoS8YFdG+6mqOG7Anq+ZiWg4bMg6 X-Received: by 2002:a17:902:b495:b0:158:8318:4cf9 with SMTP id y21-20020a170902b49500b0015883184cf9mr17744539plr.33.1650001266094; Thu, 14 Apr 2022 22:41:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650001266; cv=none; d=google.com; s=arc-20160816; b=WCwtSSMBo+NlZhLtKNw23xcGpaA8NzLFpcn2Vd2IhKye1Atliw3M/2AwPDXQzFVXNi cKxcqG+fMDLr5yvARiqeDNHkD+aA/o3diGiBZPbXdlNnUzgT5jaAjcZagA5kmIBHmzTa XYKSjuM8fG4AnZUlaGmII6J7a29W32b0OJrZwjY079f2qrnifw82BYr0R80teA+/nPqO dMFLeGu+LN8ZX0XuQVq7+91FSKlScX4KBrTwhFQdma2J3xxzfSr3e5XDvK/RZu7/9DMH +G5wMwR9NULqTfT2V7XuZQ2MlyUxcFDGIASLiqP+mTHwBfoqNfEDoljMkNv2S7l1g/bb W+MQ== 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=hrRXt3ZjySM6jgUEgS/sVOHo9ohL7qyGaHBQht/wgxc=; b=ZJNRsuk/zu0IvDlBgVC3++eN2uMxCMhiuLvuavCWcmc9iBThou1s1So3BMYyAcE401 LWl/xdetNCqyW9UG4ngVk8cEmcNGIfpNJLV1NHg+WdzaNKvuDEUmPGzUkS4yCsLZ0a5E LS+aZKaR34zVMgSm8wWL35CP0sZGs+Mcn7y2QeaT1hvKSFQp0RwSomheEcJR7tYXgr6M p76o2031zRLF7V6wtMYJoPzoJw2Ya8CQT34bf4Kj9M11rCnWPS+jvKFCJiul81B/lU3y rlCLmZYrT1R/M1EGp8sqpA1MxXqqlSk3EaENeXAeSbtKTHV0yPM/W6FDnFDpvyDoJq94 D49w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@amarulasolutions.com header.s=google header.b=ofxA5ENY; 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 x16-20020a634a10000000b0039d99ed746esi667473pga.68.2022.04.14.22.40.53; Thu, 14 Apr 2022 22:41:06 -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=ofxA5ENY; 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 S230174AbiDMVfq (ORCPT + 99 others); Wed, 13 Apr 2022 17:35:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbiDMVfo (ORCPT ); Wed, 13 Apr 2022 17:35:44 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E1FE716CE for ; Wed, 13 Apr 2022 14:33:19 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id ay36-20020a05600c1e2400b0038ebc885115so3339372wmb.1 for ; Wed, 13 Apr 2022 14:33:19 -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=hrRXt3ZjySM6jgUEgS/sVOHo9ohL7qyGaHBQht/wgxc=; b=ofxA5ENYuBeWsh9HN3+JXYWKOQrmwTUWaZGi+J/HtU8IYH6k/AJoFt/uFPtKhXm5CO 9ZLt3RamQNlm7SUz3pjDcLo4YT4xxFrZx0suG2JEjnzpEYvLSDCo4WsCcOM5zsH3F1zk BP3ihT0CfADW0BdxWESdHyOUjm9KAa6G7p3pU= 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=hrRXt3ZjySM6jgUEgS/sVOHo9ohL7qyGaHBQht/wgxc=; b=LR4xm1aRgDBdPhmm1yMSlmD6/U1NeZEJ45Irg4TTAtV/Y1mpFLQXQvn0AgRpjuA0Qr jLTavbIL+BNomnOBgwgbwPk3pQ/5LgEq3hEFVazT8qZolZYAbGPzkYGIHQey7Jau5bI6 gTkuiJeiSLXz4Wx8bPa/uk8zpqZjelDdBkDyC+MhySKOmHrfBYY/TO+qgp1JjjCMuxpv AqdWRgI7Kd1FTEaDCECtTuB9Uyp38X66XuomHEqW5WX9OfZd7Q8g2MRrqc4Ll6C9oSgd UKPH76pWqqPIZbRqvnnvz33ojVDcLdcyQcxaRTwBdmhIiTZFuOZWQzUG0rWMr6fT0AyI N3Iw== X-Gm-Message-State: AOAM530+clfB1CMeNtjwYPkZQWN/a6DOaGeRHK4x4+lHao5CuVBrODYX tnWM5YX37k/DzBjlaX56mQ9l0A== X-Received: by 2002:a05:600c:1e1f:b0:38e:c3eb:2d9 with SMTP id ay31-20020a05600c1e1f00b0038ec3eb02d9mr117845wmb.90.1649885598155; Wed, 13 Apr 2022 14:33:18 -0700 (PDT) Received: from tom-ThinkPad-T14s-Gen-2i.station (net-188-217-56-163.cust.vodafonedsl.it. [188.217.56.163]) by smtp.gmail.com with ESMTPSA id ay41-20020a05600c1e2900b0038e75fda4edsm3025wmb.47.2022.04.13.14.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 14:33:17 -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 , Richard Zhu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4] arm64: dts: imx8mm-evk: add pwm1/backlight support Date: Wed, 13 Apr 2022 23:33:11 +0200 Message-Id: <20220413213313.11511-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 Changes since v2: - Remove status okay from pwm1,backlight (enable as default) Changes since v3: - Remove status okay only from backlight (enable as default), pwm1 is disabled on imx8mm.dtsi, we need to enable it arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi index 6d67df7692f1..6a209395452a 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,12 @@ &wdog1 { status = "okay"; }; +&pwm1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_backlight>; + status = "okay"; +}; + &iomuxc { pinctrl_fec1: fec1grp { fsl,pins = < @@ -549,4 +563,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