Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1744119ioo; Mon, 23 May 2022 02:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2fjwMtr5/rOEzZ9d8fndK7WuwV0MXp0fWuRI29N5KndBffToTN/zcBdyi2iX0unwK++Qb X-Received: by 2002:a05:6a00:179f:b0:518:9f3a:2fa4 with SMTP id s31-20020a056a00179f00b005189f3a2fa4mr4456801pfg.71.1653296955093; Mon, 23 May 2022 02:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653296955; cv=none; d=google.com; s=arc-20160816; b=cdm31GVdAqzT9n7SDhk2hjB8WEtYvjMR8HWzryARlx1DLlzF/JX1y8ohKrUGx4zc2k y2qPzuklip7X0bqlvIGXAvSv2jBoRjsHLmy6e+lhwGSF0KuMlEC8ZzBzXoUL3WvZi6My K5+zANDFQATz85fSHVCmHa9mWbsmX9fjIheQSnUCOmfLNMxWHLZU3JbZi5LzquZk3Wuo XE++DsB53/G+ek+GupCXK5S4RaKAajFDPsRiA5FHq/Tl9p4/CAf013OFl5qFuTJScAQx QohXt3cymbVSnOSyVoQ1Bi8inBSulZJI3TFCeW+CDIXGoccs5UBB7X/tHyz5uXfhV9E5 HgZw== 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=MYeVCqkE41uJe6HnnPqWLiycuK1whgWzX4VOx6+eaQk=; b=tg2JfgVPYtrNpuOsQM6fe5r8MkZJ3qwWloexj8/t9kmYQkD4GO0TFvxKK8JKeqK9Ax iir7st/LPyxG6QDxInKz99ylWbb7JqfWacTcFsu2pAtOIAba3V3A9Adg1E8ku5gz2B6e wwl3N4nmLuF08Y7x/x26d3xfGKA5qHbITjaouG5weZf9QoKMGI5GnvXPMDFcmpGVkHmt J9w1DIcuJgzQWF7LVkhQRFt/usqLA0pV862eOh9Mmd0e/2Z/0axXJibBUoXrfVFPDQBy M5IATfPbzutGsoPil3T+Gz6MRnrX3pvD5fZzKn9PbOxTP3ZBG3bgblhdcEqC0DZx68cv OKcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Fm+XiAo8; 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 c11-20020a170903234b00b00162099e48ebsi9011650plh.287.2022.05.23.02.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 02:09:15 -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=Fm+XiAo8; 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 3BBB145513; Mon, 23 May 2022 02:09:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232718AbiEWJJE (ORCPT + 99 others); Mon, 23 May 2022 05:09:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232676AbiEWJI5 (ORCPT ); Mon, 23 May 2022 05:08:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 379BE4507C; Mon, 23 May 2022 02:08:56 -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 dfw.source.kernel.org (Postfix) with ESMTPS id C9B2F60FC7; Mon, 23 May 2022 09:08:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92E38C34119; Mon, 23 May 2022 09:08:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653296935; bh=8566TNAIYuMPUSqB2VKigugwmemkLIms0TpE+9DCQW8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fm+XiAo8zTvPBLqbwfdmXIgNP8eJyeTPyGy4wvfZ7wrzE4YL16cwW1xi2cm+k/2H2 fRcgwiRuHSKVEoi3rMvsNIEVAlazq7gu8t9TAxlm/vIld2SQuBHJQMgZNhkK9DeDV9 sRozIlXrL7j7rcb+/Pky9QemCwAv8WIWJjct6Cdnhibi/caz24ojdCgJKmD22fbMjL h8ezV21F3ZVhpRXVWCic1OwgovX9sqycm5NF3abi0I4yXnBq/W5YXbtuyMJuDMOXNc BVl7Nnqj0sUZkA/AP+kJokjk3yjrtSZfIWDm1gF7CIuSfZCVF4VC4NPqzhdnMIVyQo EB6ycSEc80c/g== From: Tzung-Bi Shih To: bleung@chromium.org, groeck@chromium.org, robh+dt@kernel.org Cc: chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, mka@chromium.org, devicetree@vger.kernel.org, tzungbi@kernel.org, Rob Herring Subject: [PATCH v4 3/5] dt-bindings: add google,cros-kbd-led-backlight Date: Mon, 23 May 2022 17:08:20 +0800 Message-Id: <20220523090822.3035189-4-tzungbi@kernel.org> X-Mailer: git-send-email 2.36.1.124.g0e6072fb45-goog In-Reply-To: <20220523090822.3035189-1-tzungbi@kernel.org> References: <20220523090822.3035189-1-tzungbi@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.0 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 Acked-by: Rob Herring Signed-off-by: Tzung-Bi Shih --- No content changes from v3 but rebase to the latest Documentation/devicetree/bindings/mfd/google,cros-ec.yaml. No changes from v2. Changes from v1: (https://patchwork.kernel.org/project/chrome-platform/patch/20220214053646.3088298-4-tzungbi@google.com/) - Update email address accordingly. - Add A-b tag. .../chrome/google,cros-kbd-led-backlight.yaml | 35 +++++++++++++++++++ .../bindings/mfd/google,cros-ec.yaml | 3 ++ 2 files changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/chrome/google,cros-kbd-led-backlight.yaml diff --git a/Documentation/devicetree/bindings/chrome/google,cros-kbd-led-backlight.yaml b/Documentation/devicetree/bindings/chrome/google,cros-kbd-led-backlight.yaml new file mode 100644 index 000000000000..5b875af6a95a --- /dev/null +++ b/Documentation/devicetree/bindings/chrome/google,cros-kbd-led-backlight.yaml @@ -0,0 +1,35 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/chrome/google,cros-kbd-led-backlight.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ChromeOS keyboard backlight LED driver. + +maintainers: + - Tzung-Bi Shih + +properties: + compatible: + const: google,cros-kbd-led-backlight + +required: + - compatible + +additionalProperties: false + +examples: + - | + spi0 { + #address-cells = <1>; + #size-cells = <0>; + + cros_ec: ec@0 { + compatible = "google,cros-ec-spi"; + reg = <0>; + + kbd-led-backlight { + compatible = "google,cros-kbd-led-backlight"; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml index afec0bd2f1de..09e00adf445e 100644 --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml @@ -90,6 +90,9 @@ properties: pwm: $ref: "/schemas/pwm/google,cros-ec-pwm.yaml#" + kbd-led-backlight: + $ref: "/schemas/chrome/google,cros-kbd-led-backlight.yaml#" + keyboard-controller: $ref: "/schemas/input/google,cros-ec-keyb.yaml#" -- 2.36.1.124.g0e6072fb45-goog