Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp749119iog; Wed, 29 Jun 2022 09:23:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tP7AmIJgJcRcWl5IqmdzB/2o/u60XzJLBA0CUuPX1ujcgAX/F0MRFbR2NyL9XBrd4PiU+x X-Received: by 2002:a17:906:b78f:b0:726:9341:5d62 with SMTP id dt15-20020a170906b78f00b0072693415d62mr4134986ejb.571.1656519806700; Wed, 29 Jun 2022 09:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656519806; cv=none; d=google.com; s=arc-20160816; b=IB1ZQhkQN7tJBQY5epYStWzfhiNr2ODrDmJ4BJUGDffMWL+qDomlSbLRrys2ahTXPu xfM596IlyozUaHVJmJBS6lTxbMSvrcCgV+7PBJkpGmglapyFpgchDQyVPnFoyQuROsJs DAoz2kbGbBJuKyuHwztIMDrL3JEpXRVuHEaLGkiRpnB+if5KeZyRJw+5RvDahdGl/mPF z6qsFvew20pZAyIVre7IxsIf3u1w0nas7PFPTiHcKTqWKc4LWVJJcV9imX46qF8HIVBC tTZR+5gUsr/ZXM4B4NLNuSfKS49BBO5n31ASB+ob6B8zLzJeSuP8VHB2k3q4d3KXlQId rSyg== 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=mkUWzY2hDfNwvB4cCtpLR5da2UISlzJUoiQk+HF81qozl/ce0ssrMtd9t3TTu/3D3p vDHsNG3bC7uIG2xJFvHG0SIRxOzfss0Yq77uhKB81uh4M4FroEqxy9MzNjsyYZ5OQJqD z6snKMos9Lnv8jDce4JvVEfYX6Fmm4P16slC0R2sAbvEft6D/zuyv+XJGNz4bnLfshza iMLxXgvvvTIQsPtoWZEBKaABCbkJyzpb0mkMaNINgFkgpdUO+CMKh1CERiNDlg+7XK5p 2/F/VsOEniKeRopc/ZbKssTvtz8W/lEOjcy8gDUgJeVEFERRJ/kDixr91rsa9Ax17nYK EOwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SA5F9Nwm; 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 o5-20020a50fd85000000b004356b3746d1si1442737edt.71.2022.06.29.09.23.01; Wed, 29 Jun 2022 09:23:26 -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=SA5F9Nwm; 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 S233805AbiF2QBC (ORCPT + 99 others); Wed, 29 Jun 2022 12:01:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234385AbiF2QAW (ORCPT ); Wed, 29 Jun 2022 12:00:22 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46E201D327; Wed, 29 Jun 2022 09:00:22 -0700 (PDT) Received: from notapiano.myfiosgateway.com (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 056F9660194A; Wed, 29 Jun 2022 17:00:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656518421; bh=AvMwfFz84n7mWn1AEG/JaA3AcQAUeEhq/lBH3WEQF0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SA5F9Nwmb4YhGCt4aWStx+ucdgcfUsoCrC+a+7taLH/LuIY9rnvb6IS2fWskA6jYU FeWEf4kMdyYs9x7sMMBiIGBUGgizYegRR62KiTH3eDlNTfmb3/mG/PUD7H3XrRAfVh p1MQV5QSYmarlwKGn0nH//LluaDfDXpkW32qf3rkOvcWBYF2nKNvL3Sw+lvpxDFczh LMkQYxbtHp2aFcYIpt/VVT33heBLeqWVOor/FGYqJbq4o1m9dZ8cWUl2mSXz6sdjc/ afJKjzYoE7YrVbcr6hXmsW0HWmVO24WorjLkD2KuFkH+INtj9+N4FnYGhJQe/dSUrH 9lZnlBiivFKPQ== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Chen-Yu Tsai , =?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 v4 12/19] arm64: dts: mediatek: spherion: Add keyboard backlight Date: Wed, 29 Jun 2022 11:59:49 -0400 Message-Id: <20220629155956.1138955-13-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220629155956.1138955-1-nfraprado@collabora.com> References: <20220629155956.1138955-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_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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