Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3599569pxb; Mon, 25 Jan 2021 22:59:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJypBaRPVWEilxi68RLlw4xFknqm4vIyHWUP/1Fjaw8LyOSogleW8gMpqqhmzOxo/hsde5cR X-Received: by 2002:a17:906:76c9:: with SMTP id q9mr2644431ejn.484.1611644366108; Mon, 25 Jan 2021 22:59:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611644366; cv=none; d=google.com; s=arc-20160816; b=yARfUvtYg/Gm7tr2kFfeZsXDNcLglc6OoE1K44Y2DsQzs1xfFvt0qFO+DEVewyABEA t2lLbB3hs6TIqBmSjae0qb10flKQRFhA3mR3D8nqrzH1bJIu8zWmw96GAWsTuuPpVduN i31+G5yp6QDHqxFqWeyfkeNelugtbDUb7lORY1NNdSxdTkz3U34cvNiDjCaXjZVzXt7Y sbRzdGe0ptHJwFVL4X+7h3GeOfJtIIjursGldgxqeiQ448FjDfBpLzn2xPJZwC5YH6Aj kz/VgnDdujkQ2emrDik2wUHlWOkrruhOc8HDnCsxyfbvFRs6UJOSs2tmjx9wfQz62Wa+ SgVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=FEBt/SrotSicnDDRXYm3hYtm6m7tZEPXr+a4FOUO12I=; b=CWiEuP1Cu4MdKdxjRhGvwT9RzEIBBHtNfORYtZtj5ciVK9q8dVgxxFXK6QCxYKjpnT RFc04iVNyae3pNLiG5973E6E1lPBvWeEX86ZyqLzmCJU/Enpg5NfgTqbcuQ/+KcdFSQN pi6BDgl/awCPBvmypgnVZz5A+gPn2U35MRAIC1/W0umJ2hv1Gpjdrh7mPPy6a0+umo8t HRYEZMT1qZoM8yLrNkCMxd7GW7/WKmvANgtuFRf/8Or0nE8zLrc55n3D05zIGevoLukg 21gaz3NnJJSdMUf652mcjVTUHzM1tbiheMoScFv+dfTSz2tr6wibboUFHDx3ydCBabqH cP0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x22si6950534ejv.202.2021.01.25.22.59.02; Mon, 25 Jan 2021 22:59:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389284AbhAZG4y (ORCPT + 99 others); Tue, 26 Jan 2021 01:56:54 -0500 Received: from mail-ot1-f54.google.com ([209.85.210.54]:37124 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730011AbhAYPgu (ORCPT ); Mon, 25 Jan 2021 10:36:50 -0500 Received: by mail-ot1-f54.google.com with SMTP id h14so13093919otr.4; Mon, 25 Jan 2021 07:35:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FEBt/SrotSicnDDRXYm3hYtm6m7tZEPXr+a4FOUO12I=; b=MZ0joswGtIyDAKN/6NpvWDFO5f8uG5Q4YenpX6wcCJaNaIuaUDf8uUq/XvluQLSF5r YhanqmirJE21H+ZFtBY6xLFK+a+Wy0M10t/X0vLjwPXWmbp+VpyksuxfYn9rQBfX6ySN xG2CgiolbmoCQmyck0HEahTBUTYvDTBdvk5+0P2sSdqHZqCCtuUvbTjAkqHfWXXryPgs 7mO8GPD6Bw8RshbsdIrPWt4xqeL8BTNky9bq9VWsmKPC6YLxVQQqV9KSOqKtblBJ+GGW /BR55YkB/y0+LctaYEKdCjXxonavXbAvj5jlkJ6+mVkvZMOb4wdfcljCLYzb1gxNmIqm 7vHA== X-Gm-Message-State: AOAM5329wyAQapUTAOlJ20x6Wv/hc5iekOnPjArbhGLFF2SVqTndGinn GFjkYeQvXeyEX/Yi4jqmza0aclPi6A== X-Received: by 2002:a9d:748a:: with SMTP id t10mr722094otk.336.1611586925207; Mon, 25 Jan 2021 07:02:05 -0800 (PST) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id k15sm3519063otp.10.2021.01.25.07.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 07:02:04 -0800 (PST) Received: (nullmailer pid 346850 invoked by uid 1000); Mon, 25 Jan 2021 15:02:03 -0000 Date: Mon, 25 Jan 2021 09:02:03 -0600 From: Rob Herring To: Jonathan Cameron Cc: Stephen Boyd , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Dmitry Torokhov , Benson Leung , Guenter Roeck , Douglas Anderson , Gwendal Grignou , devicetree@vger.kernel.org Subject: Re: [PATCH 2/3] dt-bindings: iio: Add cros ec proximity yaml doc Message-ID: <20210125150203.GA341275@robh.at.kernel.org> References: <20210122225443.186184-1-swboyd@chromium.org> <20210122225443.186184-3-swboyd@chromium.org> <20210124172756.69ef7c5a@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210124172756.69ef7c5a@archlinux> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 24, 2021 at 05:27:56PM +0000, Jonathan Cameron wrote: > On Fri, 22 Jan 2021 14:54:42 -0800 > Stephen Boyd wrote: > > > 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 additionalProperties: false > > + > > +examples: > > + - | > > + proximity { > > Can we at least have the example making it clear this is a child of the > cros_ec device? Move this to the core Cros EC binding. The core binding needs to define 'proximity' and reference this binding ($ref). > > > + compatible = "google,cros-ec-proximity"; > > + label = "proximity-wifi-lte"; > > + }; >