From mboxrd@z Thu Jan 1 00:00:00 1970 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=-11.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=ham 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 88F3DC433E1 for ; Thu, 6 Aug 2020 18:39:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D3E9B221E3 for ; Thu, 6 Aug 2020 18:39:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596739189; bh=jD2yBCbhOW8PLc+72HGrYz/PLEHVEovpi/J0s74KXuk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-ID:From; b=S2u+W2wGGsXTEwVpmYbVno54Ql4+UVi+a958R580+/p5TVgaaZF9GRw6YG3QnPlHe 6pJ1I8HBLuaWFASxPb3yHHMhAMcR+Jda41HTesqXZQM52k5ummRPGyNjK0Wpxe9Qmm elPJITiAnGGpWVvTAoNoAAMCOIw/ewkD2laAsb8U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727021AbgHFSjs (ORCPT ); Thu, 6 Aug 2020 14:39:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:54738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727965AbgHFS34 (ORCPT ); Thu, 6 Aug 2020 14:29:56 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F226A206C3; Thu, 6 Aug 2020 18:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596737661; bh=jD2yBCbhOW8PLc+72HGrYz/PLEHVEovpi/J0s74KXuk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=E43hqRJau1bJUUxCkPeMjdUe487Wb4evuCdWpX5pihfQJFPlmTKSFjrz55qji79L2 9SHZdJgdt3h6MPqYbyseGeO+e/v5doPNHvetEHuheUev/qZBSuJHFFANYTQjOVjHaX uVesxPqHPUwlHYWf67dsIRzN8nPKgfgiHDCRFeTU= Date: Thu, 6 Aug 2020 19:14:16 +0100 From: Jonathan Cameron To: Daniel Campello Cc: LKML , LKML , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Rob Herring , Douglas Anderson , Stephen Boyd , Rob Herring , linux-iio@vger.kernel.org Subject: Re: [PATCH v5 01/15] dt-bindings: iio: Add bindings for sx9310 sensor Message-ID: <20200806191416.379d7184@archlinux> In-Reply-To: <20200803175559.v5.1.I0925046377211b8b6f06764857f03b4ab592bddb@changeid> References: <20200803235815.778997-1-campello@chromium.org> <20200803175559.v5.1.I0925046377211b8b6f06764857f03b4ab592bddb@changeid> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org On Mon, 3 Aug 2020 17:58:01 -0600 Daniel Campello wrote: > Adds device tree bindings for sx9310 sensor. > > Signed-off-by: Daniel Campello > Cc: Hartmut Knaack > Cc: Lars-Peter Clausen > Cc: Peter Meerwald-Stadler > Cc: Rob Herring > Reviewed-by: Douglas Anderson > [swboyd@chromium.org: Add both regulators and make them optional] > Signed-off-by: Stephen Boyd > Reviewed-by: Rob Herring > --- I'm not totally sold on the io-channel-cells being required but lets leave it there. Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to poke at it. Thanks, Jonathan > > Changes in v5: None > Changes in v4: None > Changes in v3: None > Changes in v2: > - Added #io-channel-cells as a required property > > .../iio/proximity/semtech,sx9310.yaml | 65 +++++++++++++++++++ > 1 file changed, 65 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml > > diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml > new file mode 100644 > index 00000000000000..5739074d3592fe > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml > @@ -0,0 +1,65 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/proximity/semtech,sx9310.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Semtech's SX9310 capacitive proximity sensor > + > +maintainers: > + - Daniel Campello > + > +description: | > + Semtech's SX9310/SX9311 capacitive proximity/button solution. > + > + Specifications about the devices can be found at: > + https://www.semtech.com/products/smart-sensing/sar-sensors/sx9310 > + > +properties: > + compatible: > + enum: > + - semtech,sx9310 > + - semtech,sx9311 > + > + reg: > + maxItems: 1 > + > + interrupts: > + description: > + The sole interrupt generated by the device used to announce the > + preceding reading request has finished and that data is > + available or that a close/far proximity event has happened. > + maxItems: 1 > + > + vdd-supply: > + description: Main power supply > + > + svdd-supply: > + description: Host interface power supply > + > + "#io-channel-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + - "#io-channel-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + proximity@28 { > + compatible = "semtech,sx9310"; > + reg = <0x28>; > + interrupt-parent = <&pio>; > + interrupts = <5 IRQ_TYPE_LEVEL_LOW 5>; > + vdd-supply = <&pp3300_a>; > + svdd-supply = <&pp1800_prox>; > + #io-channel-cells = <1>; > + }; > + };