From patchwork Thu May 5 19:45:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12840107 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 C3D9DC433F5 for ; Thu, 5 May 2022 19:51:05 +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=AdooI86Fp81FbOIAKwWfRBUQ0r/w17kl4BulI6Khbcw=; b=f6wohGVLMcViyy 5MihkW0v3PHV96GEqF3O8s4lrJb72EnxGkRs5QGtcK0MV5cOjTFPc9LpTKnLfJQkgn0GudT4KkhXF jnopwuJSvIn1FImjAg5eeLoqWPV2ZFkZZ2BzUMSpyFlR5NFWAewNFEIGX+YA1LvAAi4XdvbxnNHHT a/H/IQ+GvS0ExCv3rYy20xfGHnV0bPPx+PX4WUfI96sDvMSyUT5NkEErlRHEN46zuGGVjDAeEyTbS QqPwNx9gwuF2cBXjO35AwcN1rNwxKuHNSuzwh/aEihgyS/vHIgUYatNi40/De9H5AEkrB9LBLRrxR /Zpmai5nlOd2e08dDFuQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmhU6-00HaBk-EX; Thu, 05 May 2022 19:49:59 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nmhR4-00HXwu-EH; Thu, 05 May 2022 19:46:51 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id AC83F1F45CD2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1651780009; bh=8TvoEhGQU6t2qg9uM8iphoK/DuIcgX6ObTBGTPSxnTk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XSsfXvMh/3UvAYBBO5gWbz63asC1SxSMIAZvqX3j4MDRYYwGfClwFV3ak8VXdWV18 bqv0Bh+GBInZgOfD2LHapuhjie9qOp1OdtpVe4r5OREjgzG7zvI1lK4ulqRe2u9/Oi BGB/xUNuCMopwMrJnmU27zEjybmvzVd0qfrgolUngTt7beTEIafEG19kQzBpz/Wym+ eBGunoEKPuB4GDZfZEdeI7Gpaa+dPb3d8J4WgKx4zEvvUrvNPfepXdEoaVvolV/bAt pk4eKgKw+iuLd2pDB9EOAIWEwz09nXqgR2icBMdLX3MoaH6MHYFwYK+OT93OnNZn03 kg6aDjWuS0D1Q== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Chen-Yu Tsai , =?utf-8?b?TsOtY29s?= =?utf-8?b?YXMgRi4gUi4gQS4gUHJhZG8=?= , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 12/16] arm64: dts: mediatek: spherion: Add keyboard backlight Date: Thu, 5 May 2022 15:45:46 -0400 Message-Id: <20220505194550.3094656-13-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220505194550.3094656-1-nfraprado@collabora.com> References: <20220505194550.3094656-1-nfraprado@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220505_124650_633516_5163B719 X-CRM114-Status: GOOD ( 10.02 ) 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 The Spherion board has keyboard backlight controlled by the PWM signal generated by the ChromeOS EC. Enable PWM output for ChromeOS EC and add a PWM controlled LED node for the keyboard backlight. Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno --- (no changes since v1) .../dts/mediatek/mt8192-asurada-spherion-r0.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts b/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts index 35d9c5294fe0..7f9cf7ee1437 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada-spherion-r0.dts @@ -4,12 +4,28 @@ */ /dts-v1/; #include "mt8192-asurada.dtsi" +#include / { model = "Google Spherion (rev0 - 3)"; compatible = "google,spherion-rev3", "google,spherion-rev2", "google,spherion-rev1", "google,spherion-rev0", "google,spherion", "mediatek,mt8192"; + + pwmleds { + compatible = "pwm-leds"; + + led { + function = LED_FUNCTION_KBD_BACKLIGHT; + color = ; + pwms = <&cros_ec_pwm 0>; + max-brightness = <1023>; + }; + }; +}; + +&cros_ec_pwm { + status = "okay"; }; &touchscreen {