Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp109352pxb; Wed, 3 Feb 2021 00:33:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJySfX/wzZRlW1DeKfES5MHxKutFphi5DqiuGSSUTGfsj+TYTYq6miYzLN9OlNYWUputyb0j X-Received: by 2002:a05:6402:6cc:: with SMTP id n12mr1803208edy.297.1612341234282; Wed, 03 Feb 2021 00:33:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612341234; cv=none; d=google.com; s=arc-20160816; b=wI53wSd9fFF7JznYYvXucS/Xfa8FyZGKW9zb6wcwhife/uEKrGyXSqDHUl0hMq9Mqq CZyP6Vej1Z91W62ivgFA7DMQqcIVoj2p8LrP4o/Sax7DrTv1VR8CG76hbpIxJpRDEs3z hpWFKMTD5aSecOSTeYCkmH1a92VuswfsRYn2YDqQiIudYK02vwMvJN5ZacgbFpsRpLD6 y+eO9s9+EdSe27ehF4mi9LBIUCmmftxcOK0/w7IgVmDFiAV1mEbPujOHU+AcQvw7N7Sy TZiXDStcY01m2XH/ld/h8TczKVfdqeqHmPBAaPLEn6aKro5vuaU7ycaRhezOiQTiFLnO WOEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Fw7mhJ/ALXeJZR+44OFAC0sbpDziXpuDZAubERRVzFg=; b=YfYjBZq/ZawZBqkRrxO22tyaXGMtJsS00JmFSh/ZQVPN/yTLZazsfPIX9sw/MmnRv6 sGx5W9mEVcFZhiu6NkIK5QagFtGPg0X/pO40YMaJezlcSQA2UCwosPkHynYrn8s8s2wr v5aP4AMUJW3hYnmY9yAbccp38yuX3KrI0ZOhTCQYCmaxjormh18nyLI0Gbg3G/MCtZB9 6dHWCAde/te7fq9PMmDWuBmc7/Y9de2Gs3OoTVaNI0CuMFds49dg85AjzjIOjhPzYdq4 Llg/wy1sX/krYzryK5T4Q3qK9WD/IK2Bk8jRkmuH1T9au+f8TURkuufp8IJ64yn15Tvu 9NtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gf4D99yy; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si792256ede.232.2021.02.03.00.33.29; Wed, 03 Feb 2021 00:33:54 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Gf4D99yy; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232657AbhBCIae (ORCPT + 99 others); Wed, 3 Feb 2021 03:30:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232512AbhBCIad (ORCPT ); Wed, 3 Feb 2021 03:30:33 -0500 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE90FC061573; Wed, 3 Feb 2021 00:29:52 -0800 (PST) Received: by mail-oi1-x22d.google.com with SMTP id k25so25914707oik.13; Wed, 03 Feb 2021 00:29:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Fw7mhJ/ALXeJZR+44OFAC0sbpDziXpuDZAubERRVzFg=; b=Gf4D99yyAGOZ90xVmedTlmHqUPxdM+6hM26isYs20UlmBRFXHcIHNUMpo72aolFpcP 8D/v/2G6lKq9u/93G2AcMlmE9SPD2mgCAKX7NbV4qrJ3YRlFmvD4BPVXeWq301FClRsM y9jxMdbOdkQXEwmh70WVeWxMH3kFRroAyUf3Jh893QymPpT2Jn95lQ1XNn5YDNnXFRSX 4VDvaQfBcQGtB32mHEEPokjc0knJ37BSW2fajRDHzxR6MQna/o9SMl4902qbGe10iHY7 zisckfJj2pnkG+quwEg6t03KcL2TVS0yN98jEoVji33sE7MCDp+zhKLLQtyqKRZnrgRT pCXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Fw7mhJ/ALXeJZR+44OFAC0sbpDziXpuDZAubERRVzFg=; b=g6yU4I4Bf1U/1cKCm8sEbUKoGFmplAaFr+vX7XZS43G2cDh4AF6by5orsoWLvcXFLf C/nMit/0MX5H9qF1Uwj7duwEMl1mR39Ch353bfVFlMlNXbpBj5vMeT/uoRXsTzk/gbYr 4zkQQNpxKsGwd0SgNCbTM0TLMaOj0ln+vgV2q+FGPELnQHKtc4RONKQ0Cj6k2t5CLtR7 1uMPwN0f8ei+6pIJS/MEQENRKIUF18ggioc/SMKDNGVxHdUzL4HEVdAeHH2X28lOShB+ 0ouQsE2M4QL9rhHowlL1XGdQ/FM2NROCKthytLsZQKN0jeSvtK51c2jSXIGlWQNY0oZW CIoQ== X-Gm-Message-State: AOAM533ceS+bjga10ETmI+hU1yRe1L3ULIHSF56LFt/ZPsTIY04k0f6p xFdk3wNuGTn2giiXoRUvO1jtH90s4T576Ruj3nU= X-Received: by 2002:aca:4454:: with SMTP id r81mr1268682oia.129.1612340992276; Wed, 03 Feb 2021 00:29:52 -0800 (PST) MIME-Version: 1.0 References: <20210202184434.42644-1-swboyd@chromium.org> <20210202184434.42644-3-swboyd@chromium.org> In-Reply-To: <20210202184434.42644-3-swboyd@chromium.org> From: Enric Balletbo Serra Date: Wed, 3 Feb 2021 09:29:40 +0100 Message-ID: Subject: Re: [PATCH v4 2/3] dt-bindings: iio: Add cros ec proximity yaml doc To: Stephen Boyd Cc: Jonathan Cameron , linux-kernel , linux-iio , Dmitry Torokhov , Benson Leung , Guenter Roeck , Douglas Anderson , Gwendal Grignou , "devicetree@vger.kernel.org" , Rob Herring , Enric Balletbo i Serra Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stephen, Missatge de Stephen Boyd del dia dt., 2 de febr. 2021 a les 19:53: > > 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 > Cc: Enric Balletbo i Serra > Signed-off-by: Stephen Boyd Thanks for adding a full example, IIRC this is preferred by Rob and we are also trying to apply this rule on all the cros-ec related bindings, so the dt_bindings_check really checks a full example. From my side looks good to me. Reviewed-by: Enric Balletbo i Serra > --- > .../google,cros-ec-mkbp-proximity.yaml | 46 +++++++++++++++++++ > .../bindings/mfd/google,cros-ec.yaml | 3 ++ > 2 files changed, 49 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/proximity/google,cros-ec-mkbp-proximity.yaml > > diff --git a/Documentation/devicetree/bindings/iio/proximity/google,cros-ec-mkbp-proximity.yaml b/Documentation/devicetree/bindings/iio/proximity/google,cros-ec-mkbp-proximity.yaml > new file mode 100644 > index 000000000000..d82b929af445 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/proximity/google,cros-ec-mkbp-proximity.yaml > @@ -0,0 +1,46 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > + > +$id: http://devicetree.org/schemas/iio/proximity/google,cros-ec-mkbp-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-mkbp-proximity > + > + label: > + description: Name for proximity sensor > + > +required: > + - compatible > + > +unevaluatedProperties: false > +additionalProperties: false > + > +examples: > + - | > + spi { > + #address-cells = <1>; > + #size-cells = <0>; > + ec@0 { > + compatible = "google,cros-ec-spi"; > + reg = <0>; > + proximity { > + compatible = "google,cros-ec-mkbp-proximity"; > + label = "proximity-wifi-lte"; > + }; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml > index 76bf16ee27ec..479a9f15de32 100644 > --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml > +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml > @@ -94,6 +94,9 @@ properties: > keyboard-controller: > $ref: "/schemas/input/google,cros-ec-keyb.yaml#" > > + proximity: > + $ref: "/schemas/iio/proximity/google,cros-ec-mkbp-proximity.yaml#" > + > codecs: > type: object > additionalProperties: false > -- > https://chromeos.dev >