From patchwork Mon Jul 25 12:48:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Jander X-Patchwork-Id: 12928038 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 A59D9C433EF for ; Mon, 25 Jul 2022 12:49:56 +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: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:In-Reply-To:References: List-Owner; bh=vPokS8HReRwbe8SCSvG9V0LuO3wi/lPHfT+jwlemA88=; b=t24+O+Dr1ikYIM 1e7eihXy8QYlsv3/mxqofOeq3lGwX8kf1nIOkP1gVnSH/Dy63OGj/wLiu83YfDmz5LJ+nD9zKMY3Z PKuZ/nXE3q1jdxHaUdM0MzNVNJfcCczhj1VlKA2yeLG8+EF1UDF51tAdVNprxq9UTP9k6/u5o312h XnsBMmg/Fdvddgxs3D+CIccve9fjko0MInTDLamiAvaO4mlhpZ54HAS2TZN5njcwrAHS+ntl4jGtx qtfnuJlGweVcWsEhkmpAiz95ONZHJEGlpOQBJ8q/0qPVPW0mELtYFKIHUWj9Md2wPIDlCCHtmt95z GcoK7rMVNHRzAOt3Awpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oFxW4-009iao-8S; Mon, 25 Jul 2022 12:48:56 +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 1oFxVz-009iRj-B8 for linux-arm-kernel@lists.infradead.org; Mon, 25 Jul 2022 12:48:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonic.nl; s=202111; h=content-transfer-encoding:mime-version:message-id:date:subject:cc:to:from: from; bh=u+Sc1KDzF9RshIeaZARqCUt1rPYR93miba1YFSCpnzo=; b=mOofaVbNfZC1bIz73JDpcREMfcB1SIwA5oBroiFip7vmY+8gc/+h0kHj6VrxKwsd4gXSlIwO6Z0Wr l0dgcYg96h+TPYjLZgAzk4yMEcmNickJUiHufElW65B6AnYiZfh92+0hgvTnGXaMaW4z5fYh6wM3HN dYNrbAfrqEIeoYyGeq1CSEjhn0QO24+Q38dEfoeeM+kcRwpInQXoaYCdBYeb6Lp4MqXCkc3CFM+KpH HXAddP7wV3va2tqEkMwcOG/GSuqaBkSeaUQGhveTBMyAzzC/JN3tykwZyTv4wTW9Wmyz6VE/4TJuer x1ZA3wmhmYKT3RpPZocDDXEWzlQBbug== X-MSG-ID: 1cb116df-0c18-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] arm: dts: imx6qdl-vicut1.dtsi: Add backlight-isb node Date: Mon, 25 Jul 2022 14:48:13 +0200 Message-Id: <20220725124813.1001032-1-david@protonic.nl> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220725_054851_830097_5D3C5F67 X-CRM114-Status: GOOD ( 10.53 ) 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 --- 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..08d425020088 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