From patchwork Tue Jul 26 12:32:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Jander X-Patchwork-Id: 12929238 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A62B3C43334 for ; Tue, 26 Jul 2022 12:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nX5oB+pzhqZd+4nzgdB63nNGF4QwmV5JiQuIaDD9l10=; b=J8UTEVHrYzCO3k bvi0CWiDvQhvSWEGww+sM/dXOLKKPwEPJ+aVBwU7Qe6doCZirQLLncUuRemj2O9Kblg2FwXLc07Wd EJcVFa6DPWDv/pdU6a0MTnBz3vN2GBJmYvsG1aAYqOrKuVbi3yTVcR8XXDCsNJton9lpbl026sTdB m/upSVlY5S96/vWfDLFptoCBCr7hoblzmCWLX7tX+OGU9LBXnn1la62oI4PWX440OuxqewuQaUTIK 54u6dllWwRp2zj7B7+1pheJuxaSESF1rpJiaNCXK3f4TK5RbGLF857Zq/+biaUZoZ8k1+AUrrv0BD NEo1GYrueb7IoHhCmIhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGJjo-00GxFg-Bt; Tue, 26 Jul 2022 12:32:36 +0000 Received: from smtp16.bhosted.nl ([2a02:9e0:8000::27]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGJjk-00GxCR-Qe for linux-arm-kernel@lists.infradead.org; Tue, 26 Jul 2022 12:32:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonic.nl; s=202111; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=fiS+pQsGd1PRAgB4GEWl1w1Wb5frISWb+zTO6Mar7gA=; b=QWbND68AXGgpIsgaLdL8AHimYaNgJHyCUn0e8bEt28ritP7Vz4JXwn5cGq6mr46Drdo9bgRYn3eyB nckE77x5jjoebQvSh01B/PFVcS0rZx34wE/Ap2nvb0Km3Bsb+30jiDjnrTbCpmtEhCcL9OCOru8PfL QTfNNAknm2w2C/yMhd+DVYn5JQYDr2sznMlQGFA4qERTolDByfMAkTvPgRgzF6SCfiujHN4aFIU2Pp Ja9yPyl3ImlWwDUc8wl2vN+8v/pcyL2MwPlBMGQhUWt7fiyOT+RHis9g6J6Goh1KCI3v3RFYnKPNwu 5by4avvTVthbqfkkbOx+WEoBLM1xNEQ== X-MSG-ID: 00db330a-0cdf-11ed-9051-0050569d2c73 From: David Jander To: Rob Herring , Krzysztof Kozlowski Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Oleksij Rempel , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, David Jander Subject: [PATCH v2 1/2] arm: dts: imx6qdl-vicut1.dtsi: Add backlight-isb node Date: Tue, 26 Jul 2022 14:32:21 +0200 Message-Id: <20220726123222.1074876-2-david@protonic.nl> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220726123222.1074876-1-david@protonic.nl> References: <20220726123222.1074876-1-david@protonic.nl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220726_053233_028216_264BBA6A X-CRM114-Status: GOOD ( 11.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On some older hardware models this is needed. It will do no harm if used with newer models though. Signed-off-by: David Jander --- v2: - Fix node name to use minus character instead of underscore. --- arch/arm/boot/dts/imx6qdl-vicut1.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-vicut1.dtsi b/arch/arm/boot/dts/imx6qdl-vicut1.dtsi index a1676b5d2980..8a2512f3f378 100644 --- a/arch/arm/boot/dts/imx6qdl-vicut1.dtsi +++ b/arch/arm/boot/dts/imx6qdl-vicut1.dtsi @@ -37,6 +37,16 @@ backlight_led: backlight_led { power-supply = <®_3v3>; }; + /* only for backwards compatibility with old HW */ + backlight_isb: backlight-isb { + compatible = "pwm-backlight"; + pwms = <&pwm2 0 5000000 0>; + brightness-levels = <0 8 48 255>; + num-interpolated-steps = <5>; + default-brightness-level = <0>; + power-supply = <®_3v3>; + }; + connector { compatible = "composite-video-connector"; label = "Composite0"; @@ -370,6 +380,12 @@ &pwm1 { status = "okay"; }; +&pwm2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm2>; + status = "okay"; +}; + &pwm3 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm3>; @@ -601,6 +617,12 @@ MX6QDL_PAD_DISP0_DAT8__PWM1_OUT 0x1b0b0 >; }; + pinctrl_pwm2: pwm2grp { + fsl,pins = < + MX6QDL_PAD_DISP0_DAT9__PWM2_OUT 0x1b0b0 + >; + }; + pinctrl_pwm3: pwm3grp { fsl,pins = < MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b0 From patchwork Tue Jul 26 12:32:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Jander X-Patchwork-Id: 12929239 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E20AC43334 for ; Tue, 26 Jul 2022 12:33:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=S6nEfNdXBAHVBnSi+TA8xq5lerEKpDwL5V/2230icm4=; b=37V1FteH2BtljU omsXiS7fDvVn9IiRJhKiBjiHfhL35MQ90ZoGNrPdEnPQlwCBceDjkZhVdJ2E4UAGTwpQtvMiRKNSd f0ESzw2kl6I/wk/X6wMDZck2PAKOsaB1JGnbqzwy48RKaeR++qPvOxcSiZLUMVnOgDHjrEdFU+8rf f7FNMxqnLA56Fn0DQZGUYm8CydsQs1kF2YPYsJX5nQoRzLYoXSUSbRdcnE7APxIqLCDawG579PTeC WH6raJoI6dSTvTQMCJkFvGokKV0rgp5xwbPu2C60DmDhDoX5jV2uqXSztsfkXRUPYi9FNxg0Mn85f EIBeNMAVKRNyTQqBpYGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGJk6-00GxKn-7i; Tue, 26 Jul 2022 12:32:54 +0000 Received: from smtp28.bhosted.nl ([2a02:9e0:8000::40]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGJjl-00GxCO-UC for linux-arm-kernel@lists.infradead.org; Tue, 26 Jul 2022 12:32:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonic.nl; s=202111; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=Ev4N4q24UwXqRA9IZ9T6SOhwkJ7AA8kM5UgVGYCXGXQ=; b=d0RrxLX+5rSzrN9QmweysEEObWTyM0ljDKDvGLjfnUjYArMeEzrmxGPwpiq0GviBB3vnrb0Cr2eVk z9DhOhVZ7fcoMQVuu9JkjTETo1xG6n+zyJiutgYuTqMdR7Ifq9325ixMBFb3omrWHUbGnApQcVk5DY 7W/zYUeJ1lajGxomtrizHpjXYj98nlLGaJSd5Dh2Xiko7ilqetl3uLy00qOMQGNh2BNDrW/V/2SNeM qf7rXqh+BtCxiEbrZSLaDphY/4RaXYevWJzBG1TZyOIYkRsRlI2Z1LCf123F+5q0BH+NhIIujga/O+ C2IanePDUou8CBwYJSTxNbr49CXC6yA== X-MSG-ID: 00f680fd-0cdf-11ed-8a45-0050569d11ae From: David Jander To: Rob Herring , Krzysztof Kozlowski Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Oleksij Rempel , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, David Jander Subject: [PATCH v2 2/2] arm: dts: imx6qdl-vicut1.dtsi: Fix node name backlight_led Date: Tue, 26 Jul 2022 14:32:22 +0200 Message-Id: <20220726123222.1074876-3-david@protonic.nl> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220726123222.1074876-1-david@protonic.nl> References: <20220726123222.1074876-1-david@protonic.nl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220726_053234_131674_102C0F94 X-CRM114-Status: GOOD ( 11.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This naming error slipped through, so now that a new backlight node has been added with correct spelling, fix this one also. Fixes: 98efa526a0c4 ("ARM: dts: imx6qdl-vicut1/vicutgo: Add backlight_led node") Signed-off-by: David Jander --- v2: - new patch in series --- arch/arm/boot/dts/imx6qdl-vicut1.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-vicut1.dtsi b/arch/arm/boot/dts/imx6qdl-vicut1.dtsi index 8a2512f3f378..c4e6cf0527ba 100644 --- a/arch/arm/boot/dts/imx6qdl-vicut1.dtsi +++ b/arch/arm/boot/dts/imx6qdl-vicut1.dtsi @@ -28,7 +28,7 @@ backlight_lcd: backlight { enable-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>; }; - backlight_led: backlight_led { + backlight_led: backlight-led { compatible = "pwm-backlight"; pwms = <&pwm3 0 5000000 0>; brightness-levels = <0 16 64 255>;