From patchwork Fri Jan 22 22:54:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 12040777 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAC84C433E6 for ; Fri, 22 Jan 2021 22:56:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6CBC823B06 for ; Fri, 22 Jan 2021 22:56:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729162AbhAVW4K (ORCPT ); Fri, 22 Jan 2021 17:56:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728586AbhAVWz2 (ORCPT ); Fri, 22 Jan 2021 17:55:28 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E796EC061797 for ; Fri, 22 Jan 2021 14:54:47 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id n25so4838367pgb.0 for ; Fri, 22 Jan 2021 14:54:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TCpMQt807YfEcZdAppn4nUQWg8RV5dkORnfM2cJGiws=; b=GyRDl7sp0dtyUfCDl5HO9xPItncqAWM6Tc4EvX3IkIW8rzXYaWMcilC2XbVLXaraUb fosVbBfXNGPnxyU0OwomVFp0SzmipHwJ1DZ4mOKfkUmHE17J9dtDjPuXMK5inKsi/r+X XcX5KI8C347+LjeSxwXt/PimsB+hqPmW6hMYw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TCpMQt807YfEcZdAppn4nUQWg8RV5dkORnfM2cJGiws=; b=WjmSXhLj4KXhVUPwGiMBduW9Xiew3jLtlXgB2cG0f1/j0L41ahS7ANvQiP/Cl2dnvL juzRbT3DxHulCAYJqJuCjOJddVei6Q1O1/OZgxxwGnq1hFEsE8nKEUWH3AFhtYiLFwUu pcgrYiHmXsVs24yqfwCg1lhbf02NiRfqzksVHmVOf7IJ1pz5XD57xn0xV5ZD+8ZrAgdz cGT1EZXtgAUZvi0V8+WY+6QXAkhGGes0zkJCkf8c94HaZLrStT93RBbS+GxHSd0132gI KBIo6DVOOI6znV7Y8mkOF7FVq6ZKvHO4jOgCbJOb/zn5yLl41LR4NgwXN+s48SqASuLB YstQ== X-Gm-Message-State: AOAM53394rDw0ZKP9WN6A1qPkz4O5+wCmtfzvik82ri8I/DpbJJ2zcg/ 3cy1ogjkqNOdENMcVDog/BLU/A== X-Google-Smtp-Source: ABdhPJzfKBQiaAswAZ8TMCEFXHh2DRTfPXYvu6GVRfiPMkLTzLmMgr+i4DwSvTbM1yzXAKBQEfzmFQ== X-Received: by 2002:aa7:8b10:0:b029:1be:ab7d:3743 with SMTP id f16-20020aa78b100000b02901beab7d3743mr565125pfd.79.1611356087565; Fri, 22 Jan 2021 14:54:47 -0800 (PST) Received: from smtp.gmail.com ([2620:15c:202:201:3e52:82ff:fe6c:83ab]) by smtp.gmail.com with ESMTPSA id i62sm6433509pfe.84.2021.01.22.14.54.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 14:54:47 -0800 (PST) From: Stephen Boyd To: Jonathan Cameron Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Dmitry Torokhov , Benson Leung , Guenter Roeck , Douglas Anderson , Gwendal Grignou , devicetree@vger.kernel.org, Rob Herring Subject: [PATCH 2/3] dt-bindings: iio: Add cros ec proximity yaml doc Date: Fri, 22 Jan 2021 14:54:42 -0800 Message-Id: <20210122225443.186184-3-swboyd@chromium.org> X-Mailer: git-send-email 2.30.0.280.ga3ce27912f-goog In-Reply-To: <20210122225443.186184-1-swboyd@chromium.org> References: <20210122225443.186184-1-swboyd@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Some cros ECs support a front proximity MKBP event via 'EC_MKBP_FRONT_PROXIMITY'. Add a DT binding to document this feature via a node that is a child of the main cros_ec device node. Devices that have this ability will describe this in firmware. Cc: Dmitry Torokhov Cc: Benson Leung Cc: Guenter Roeck Cc: Douglas Anderson Cc: Gwendal Grignou Cc: Cc: Rob Herring Signed-off-by: Stephen Boyd --- .../proximity/google,cros-ec-proximity.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/google,cros-ec-proximity.yaml diff --git a/Documentation/devicetree/bindings/iio/proximity/google,cros-ec-proximity.yaml b/Documentation/devicetree/bindings/iio/proximity/google,cros-ec-proximity.yaml new file mode 100644 index 000000000000..c0a34bdfe4fd --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/google,cros-ec-proximity.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- + +$id: http://devicetree.org/schemas/iio/proximity/google,cros-ec-proximity.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ChromeOS EC MKBP Proximity Sensor + +maintainers: + - Stephen Boyd + - Benson Leung + - Enric Balletbo i Serra + +description: | + Google's ChromeOS EC sometimes has the ability to detect user proximity. + This is implemented on the EC as near/far logic and exposed to the OS + via an MKBP switch bit. + +properties: + compatible: + const: google,cros-ec-proximity + + label: + description: Name for proximity sensor + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + proximity { + compatible = "google,cros-ec-proximity"; + label = "proximity-wifi-lte"; + };