Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp893561pxp; Wed, 16 Mar 2022 20:26:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySigsotxR12Cgiy5VE1ymbAQUxaSlqVVcvGc8M+ilrsedPMFwzO2bTw2xT1OpoYbu2vsD9 X-Received: by 2002:a17:90b:4c42:b0:1bf:c572:cc45 with SMTP id np2-20020a17090b4c4200b001bfc572cc45mr13673041pjb.238.1647487578561; Wed, 16 Mar 2022 20:26:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647487578; cv=none; d=google.com; s=arc-20160816; b=fWmyRbu71M/CXU0usY+63E7gjPcFj1hw0Uc33/Lzci75LOiVPjQjV0oPW0Mampi7X0 OMP+w5w4ml3WNzXsn1iGtkALbGSrqR7AFYcuvc2I1XPUtYY9KGUWUP9nTYqTbDLjVQzT juXk6IEytRv3s3KxQXMCloHQDJIXLCOFydVQA2gTxvRZaqPKoiM6Q2XzEJoJAJ4R4P5R PITEPtTMll8GxUZbBI3J7YbzmnKLtvVpKM4TErXaq9YK/ymxfA6qUdF/UBejfvlZhHVf 9v4YGFcXgABpiUqdUkiVPXijR+ux1RJCAtiZIGFN5Ck3wZ9INo0cfbCM18pOednool00 1TDA== 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=G07zlvmVNOfGuf6uKTh+dIHlxMPLHWhHBZZdmYh7FQw=; b=nbDRrzfW/hzMRDR6KICPLPwefSFuXcG7z6v2jKXkObsjmuN2s5/NiUU9TbVtmSo9LS fBdRZ0OLlLq0kc8yCAKt6IuJOnWoPQOR3KwV688IDTHMmGHEkzjICnrHYrmkJtcdvO0l AR39s5jd5XXZKArue0YtAjAF/bEL+Ne8bbQwU3sD4rBRPG7xQEBHielHbHzCzfRg5eut oEyBLJqphb3qKi7WGeCi+tC0sTrZZBoMUO9pLK896UpqPJH4glho/ptvXg9PcBlWzgO4 /za01bUhOvDR87we28xAf3ObQk0WX5YbzT9691pmQv6qfp4a6cIUTslxxqwKtNliJ4/+ iKvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nC8i0iJl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 4-20020a17090a01c400b001bd14e03080si1070554pjd.88.2022.03.16.20.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 20:26:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nC8i0iJl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 BC91033A10; Wed, 16 Mar 2022 20:25:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357236AbiCPPP7 (ORCPT + 99 others); Wed, 16 Mar 2022 11:15:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357230AbiCPPPM (ORCPT ); Wed, 16 Mar 2022 11:15:12 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88BAA5EDC6; Wed, 16 Mar 2022 08:13:46 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 400CC1F44713 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1647443625; bh=Y+lkLt3+XMMhoecgGOVlam/wNyWF4vFjgKdH60o7wRY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nC8i0iJlO1gOtgwmNN1OQxY9rC9ayCBImNW2RAkJfnnRQvjhBpVlUTN6YIYCn/ep6 PPDO7r57s47zCGcIWxzRTzE/t25MbCWYJOwTteQL5yWYaDleIdM1pZRkvxabiZ8JYr xVo36OwcPqIm1Au6t8GcTxhU3ZNOuhouM+7S2uWq/+AR9T5v6tIbyVclCcmPyypfBj 1i2e6Uav28IgiHDJulQJCS1mpB1QJ+pYye9tjz4oBtP9qUMmPxReJYBVqfmZst/k0d 5bsvOCyFFcy4h+/nzPGZB8cXP/MyQiL3/iS1naRjL0nI0mWj+j0+5o/Xnm1IacOw/V k7GQzWhuHIyhA== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v1 10/10] arm64: dts: mediatek: spherion: Add keyboard backlight Date: Wed, 16 Mar 2022 11:13:27 -0400 Message-Id: <20220316151327.564214-11-nfraprado@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220316151327.564214-1-nfraprado@collabora.com> References: <20220316151327.564214-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 --- .../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 20ae4a869c63..b9dd5fd2e964 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 = "MediaTek 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.35.1