Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4741915iob; Sun, 8 May 2022 23:57:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVXNtGdor8XAAQrm2BjPqE/tW3OqNFxRbs40R4NXVMHk6lEQTJV8A6XZQwALiIvh9Ff7qM X-Received: by 2002:a05:6a00:16c7:b0:4f7:e497:69c7 with SMTP id l7-20020a056a0016c700b004f7e49769c7mr14649114pfc.7.1652079429352; Sun, 08 May 2022 23:57:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652079429; cv=none; d=google.com; s=arc-20160816; b=LCS3iMTfgvy8C00rmxC0R+sig9rk4eg1m5zDvBxjhRcQKa8QdU+5HDfaDzOyXbImVj OCc0xlf986SwJLN6xq5AsqJ92tK6Qe2nrZv5C50rbMrn7N/05xE8h3b3SI+FLSzRicbq KmaeqJZgerqOfpWhQqv/hw+oE9XUN2j5Ah4y4rxsMTXkwQd0SXQpC13NOFb9ue2tMTaK o8nO1lgupjZW6tkpDUIZ+UUslN8qzDmLUevI7kDYcRcZ9gNu/BIISEzKsp7qpSf0pOD3 cz6kFecjRTpQOWUc/uSYHRylKjHu2m9fBXp6wviYYBW5SgH8PVT1nmd/3Vbf0g4XHJZP b2wA== 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=I7bjXHpyfw/j4X2/F88VjccSA2TCZwSL+rpj/VMREjk=; b=E5WrN9jnVlxTAfba8Ln9/uZcrS9kKxcrI1LiOK4WaJc6jip5arVrHholqkOjlZ1pVD 4GxlDXisdeGdBUYmVYlX47uEARr7SXbwNygBCSlpligjvUHqBYMdqsOAjLJaAI/HST67 OqWXm9jpcAyc3JNf0nuC/UPARwdEq9X2xmSNXUQKJqD/GmStcX8nxJjluWMdgtN6jD9H NNlho7ANgB40VE8EN3aWNavbt9598XS20g72QO7zli4Oq3G2DVyw0mXmzUVyolX6YF4H A/kDg3viPKkAKrQ+tGrwD5SYnlXg7hRz+jufBA9YuGyrSJ99oHkSgf8hIJfI2K+Pv2dR L/RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XSsfXvMh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j3-20020aa78dc3000000b0050ad2c9d507si12210713pfr.170.2022.05.08.23.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:57:09 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XSsfXvMh; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C60C519CEE1; Sun, 8 May 2022 23:53:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385436AbiEETux (ORCPT + 99 others); Thu, 5 May 2022 15:50:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385416AbiEETuf (ORCPT ); Thu, 5 May 2022 15:50:35 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DF545EBD1; Thu, 5 May 2022 12:46:50 -0700 (PDT) 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?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 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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 --- (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 { -- 2.36.0