Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2233150pxp; Mon, 21 Mar 2022 14:31:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYCaGpbHdPUyeICA+9RAvTkXl25zhX91DjJdOHBtb5sWtnAhPsJi8rZ4qt1T6qznGB7XTS X-Received: by 2002:a17:902:76c3:b0:153:50d0:2edb with SMTP id j3-20020a17090276c300b0015350d02edbmr14357417plt.128.1647898269040; Mon, 21 Mar 2022 14:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647898269; cv=none; d=google.com; s=arc-20160816; b=EehWp+Zh3yQz0Xv4R3txFhYG0AXk/1Btpw52XUggaUBms0otGtHPsPbsugB+VWk0/6 utIWTfeUFFHpqmZSZILFCkDTV+Nrh45XE79tg1JQ8m0v2QxRI/4MFPEIsEBlwaXGCrW4 YycI/52xCVqb03iCPzKSvDhTpVkKfZ3GLgz0wk3tqX2/EADYiLm5c25PbI5WU1/4zLTs HcygKDx0KXZwc06muiqbmjcgfCEXKWA9UaRME1c9CGxVcu4ljItHZHl6wsNwLiIVmVdn NRv9LELX0ZIJigajIEwPgB2Tc7p9YqC3ZFxNreJqs7kjFWU2tTY/CVPl3C1RGU5fkbaS +3Xg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=8HIAe8SkC5yURHCAYq0WDXprjbhmHLzdzRxYuHP6JE4=; b=ioZeMkha1/VIhtdAFMD4uKjxyCPYFBSF4rnYWMMnud8drBJ+Qt/dVvQQ+Q0EaXBqs5 ychpoBFayNo4DpBPBsJiUGm5dHVfU2b0FCVsmtvGkD2RCPvSKwg09q/CRnKaQ0BSy6mN w1nZCGHyVTJYzwI84vMkNRaTnYhGGjrHtKMVM1qzfVr/icuG8zlDMPp91nYbo2rIHTCY ZV7aZJdNu00dIBBdgTI4Ax2LEtjXZ1BTFVBVZ7ypcUKbXe0cKPpexbwPdGnNlOAWtBE0 L7DT2lfIfsYBHn2YzfhYJWpRUnbvSh140nUvuQHH3/CGNYGppL5hOJ2/owqKAeSlVB1R ZbAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YR3U43v3; 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=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q7-20020a056a00084700b004fa74044365si9915729pfk.130.2022.03.21.14.31.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 14:31:09 -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=@kernel.org header.s=k20201202 header.b=YR3U43v3; 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=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE95B20A3B7; Mon, 21 Mar 2022 14:10:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345501AbiCUI6U (ORCPT + 99 others); Mon, 21 Mar 2022 04:58:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345487AbiCUI5r (ORCPT ); Mon, 21 Mar 2022 04:57:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96216574A1; Mon, 21 Mar 2022 01:56:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 5489EB81132; Mon, 21 Mar 2022 08:56:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4F89C340E8; Mon, 21 Mar 2022 08:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647852980; bh=pmZW5P7Lo7GARh0tReXLvQb6BFoVaU8rk3ddzNWmrQc=; h=From:To:Cc:Subject:Date:From; b=YR3U43v32icmnx3DBng8wpUuDxirR4Scp3y0txfxcvhMz6Ly0Kfb2F9Qc6EYWiC5J EuRETTrpUCvvX4ojCCNrImbIx6T4hArLQegkL2oriB/h8UMPJMncvSP4U0SjsuVy+t 0s++j6SlehqbDI97cvmzX4XTSeF5qloclgIflQft6LWX5UG5Muxhgx0lvEd9n83VbQ Sxb2ZOTRnwXYLsLxfg5vEvtJbN9RTG+Bdn4zpv4Lmtn7DYKq97rm2wwLagqm77JCt6 qRufjhrJ5jR7tcEVo95mdI7M7mFkxf1yHPZlHiuxaaYfHPLSbH/AguiyyfO6urPl90 GM2CszccLKO0g== From: Tzung-Bi Shih To: bleung@chromium.org, groeck@chromium.org, robh+dt@kernel.org Cc: chrome-platform@lists.linux.dev, tzungbi@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/5] platform/chrome: cros_kbd_led_backlight: add EC PWM backend Date: Mon, 21 Mar 2022 16:55:42 +0800 Message-Id: <20220321085547.1162312-1-tzungbi@kernel.org> X-Mailer: git-send-email 2.35.1.894.gb6a874cedc-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 series adds EC PWM as an backend option for ChromeOS keyboard LED backlight. The 1st patch reorder the headers alphabetically. The 2nd patch separates the ACPI backend as an independent option. The 3rd patch is the DT binding document for the proposed compatible string. The 4th patch supports OF match. The 5th patch adds EC PWM as another backend option. Changes from v2: (https://patchwork.kernel.org/project/chrome-platform/cover/20220314090835.3822093-1-tzungbi@kernel.org/) - Fix per review comments. Changes from v1: (https://patchwork.kernel.org/project/chrome-platform/cover/20220214053646.3088298-1-tzungbi@google.com/) - Update email address accordingly. Tzung-Bi Shih (5): platform/chrome: cros_kbd_led_backlight: sort headers alphabetically platform/chrome: cros_kbd_led_backlight: separate ACPI backend dt-bindings: add google,cros-kbd-led-backlight platform/chrome: cros_kbd_led_backlight: support OF match platform/chrome: cros_kbd_led_backlight: support EC PWM backend .../chrome/google,cros-kbd-led-backlight.yaml | 35 +++ .../bindings/mfd/google,cros-ec.yaml | 3 + drivers/platform/chrome/Kconfig | 14 +- .../platform/chrome/cros_kbd_led_backlight.c | 220 ++++++++++++++++-- 4 files changed, 249 insertions(+), 23 deletions(-) create mode 100644 Documentation/devicetree/bindings/chrome/google,cros-kbd-led-backlight.yaml -- 2.35.1.894.gb6a874cedc-goog