Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp361574iob; Fri, 13 May 2022 03:25:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5AdaMSRvgXFYyk6YpLpxszAHC/kexBeYfSDwMEH+X/iiJnIE8kpOjlPUJW7uTgWecPpqN X-Received: by 2002:a17:907:da7:b0:6f4:ed59:c4e2 with SMTP id go39-20020a1709070da700b006f4ed59c4e2mr3619068ejc.83.1652437532647; Fri, 13 May 2022 03:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652437532; cv=none; d=google.com; s=arc-20160816; b=Hq7X3nsWAv7sjnqHQKegXtS4Cls1dh1kEIqy+6EZgGwGImSMeDo1atXMhSN3Ck16H4 iqxECCR+lcHNUsZmUxqtSAPVLqg8X9OWwrb+MExJWyXKLcf/A9irVe2WvGhRhxXpYiGN FdCZNxIiVHGoXk7XUM7Uss8dVABK0OXZuOtIY2dfaOeS5KR/MnAoPHMfvljjY83oi0iI 49sYSyn1bF68n02D40kSGPIp4YxYsmJebEHrZz6UGkWxejEAmCtlG7eVSWY2KeZbH3Uk JmqQtQbWzaoi4K9mxJ9KpCceFv18oT+4B4iqDaIZfJnrT5hOO2IdnZ/hEQVz96VMSoDt Ajpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O7givVdHQC6G4YQ9g6lmA38L2zRFDQiSKgpNMlhbJ3Y=; b=RjZ3vfgCunSt7+74YxPeY/DkjK0uxD9yJiwzjN4aCvkLi/aQDTTUDvX/gQ1UAlF3IZ 7xwWHkjDohvyhWbTtXcyEthJ7qFudpt2Nwnduk9txOoN6evbC9QihJCUcL9zVPZxoM7a +0ZsMy/Q+hQX8oryWjbWECxYYrQ4YzhlXoK9GzNIy5G/+emisrwk52ubYP/Kj1tn7FMW QmVAPmDnuW98E/CcCh3TxNL6WhuJZAcpZINgnCIqcB9uEQDHE/6mpKdQwe5oYEVllRzq nXvZgIQydHzr85nMQRsbIeILRgxY/KHdjG6aL3WIPUBu0fvaHvP7FzZjKlZVmYtMhgev N8uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MggD2rIG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs37-20020a1709072d2500b006f3be6cce60si1802033ejc.786.2022.05.13.03.25.06; Fri, 13 May 2022 03:25:32 -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=pass header.i=@collabora.com header.s=mail header.b=MggD2rIG; 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=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1358602AbiELU51 (ORCPT + 99 others); Thu, 12 May 2022 16:57:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358589AbiELU5A (ORCPT ); Thu, 12 May 2022 16:57:00 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1051669489; Thu, 12 May 2022 13:56:41 -0700 (PDT) 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?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: Chen-Yu Tsai , AngeloGioacchino Del Regno , kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , 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 Content-Type: text/plain; charset=UTF-8 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,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 { -- 2.36.1