From patchwork Thu May 12 20:55:58 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: 12848131 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 19D5CC433F5 for ; Thu, 12 May 2022 21:01:16 +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=kCGhZ5VAm12o9sd8n28wIUhsYcGrsk1L2ity9wJ3FOc=; b=vyBpC8np1im4+O +CfnuhPiGjjqU7zyEZb2lmS6aSM0H8RGXpiw4nHtXueUBu6nqY3JQ1lmyMAD43mvM86Y01XCh7fFr ego8oazgNbaB11Y55rkRUGUTibArxQF3tvA9B01PVolcMGT1B9N858MUgLQjEcmEOkSXbi8unkZdk abaY2RaTWa4+8nHWUIOdBmgqBDf282bYBKZTAoI6Ctlqj+PWAQ7Cga2vUOR1ruaupZLwKjqQfp0xA 8JBGOB/VweMe6JyKUF/UBKDx5IrF5x7v3hVbX0Pom2Wyy45eTC4bLcLqWIUOfumzTfJ/HCcvgYtOJ iai/uQ2MJ4D06sYEyGZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1npFvq-00DU4a-7g; Thu, 12 May 2022 21:01:10 +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 1npFrV-00DRMb-43; Thu, 12 May 2022 20:56:42 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 795211F4594C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1652389000; bh=AvMwfFz84n7mWn1AEG/JaA3AcQAUeEhq/lBH3WEQF0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MggD2rIG0lKJ4ye2ygbo29X/qSCnndouDiIQk8LR80/qzZkhqeKSsKdoWK5SzkJTa zK26AGjZ43qiLEEk7sDIcvqm4FTGDXun74huEVPFt/sSoPkcrUXnhmmW/EpYBW/7XD hkvLJK2zTTThug6Ea7UBtop6gyyVWqBwm/gt7ztJDe2b+onPvUx0yS42B/MJsRP3mY AlSXhde6ANA2Hi7LpkLHGmc0L7YIefbXPAu+CHlxAE6C8/9wc4V40OC45+K+xkD+Ki qknlv9EGR/mIYATzZrWKQga5x3jJ4J/R7+xgCZFt2ty15uHnjGZcVm+2vXD1IvDw2z 8PauEqfq5sizg== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Matthias Brugger Cc: Chen-Yu Tsai , AngeloGioacchino Del Regno , kernel@collabora.com, =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , 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 v3 12/16] arm64: dts: mediatek: spherion: Add keyboard backlight Date: Thu, 12 May 2022 16:55:58 -0400 Message-Id: <20220512205602.158273-13-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220512205602.158273-1-nfraprado@collabora.com> References: <20220512205602.158273-1-nfraprado@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220512_135641_352438_03DEE594 X-CRM114-Status: GOOD ( 10.28 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=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 Tested-by: Chen-Yu Tsai --- (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 42db81e95fae..fa3d9573f37a 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"; }; &keyboard_controller {