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=-10.8 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 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 9B836C4727D for ; Tue, 6 Oct 2020 19:11:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 47C36206F4 for ; Tue, 6 Oct 2020 19:11:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602011486; bh=DT531m4yDXXHQOxLjyaZBgkgwqRuRnFoB+EqKjLn6sw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=187zYqOET4gco5WJzYz5EMX6g9Bw4LeC8+aXpy3xZiShiAWKnAQgmwsT3w7bq4X1e 9k1JZ38tPCU0MJlZDL8eOsNURcUsLObVRScJ5l/EvkDeasqNlTWb64Li0p3StPfYWu FR2X0lwCXpoQvUUv0cUWtjJm1bHd2GxKnanhRgt0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727005AbgJFTLZ (ORCPT ); Tue, 6 Oct 2020 15:11:25 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:38750 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbgJFTLZ (ORCPT ); Tue, 6 Oct 2020 15:11:25 -0400 Received: by mail-ot1-f67.google.com with SMTP id i12so7521949ota.5; Tue, 06 Oct 2020 12:11:23 -0700 (PDT) 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=OvNlaT40rJ1ZkJccfnwhJyelYaQf4zWxeFB+I7NWAsg=; b=Tfri8HNVeGfgor0Ka2wqN2NUXInhC+VemFgxnZRxz3u8ssE2MSaqAiZxTSdX92FMNp PeOk+LLyX1GtJDwUmqS69u/S5WOcEz+1lLhUs1qISG7AuAw3b1qcQHfq3FgRfE0rOfE0 3DD+4/fNudzuRjuJQUl6g1/38Nzn9F8ImNA0hTq1e519McNo3YkfFPfykkmeIUjaAMND rR+IzqdSuzNLGOkXEeJ8iLRSq/H2tqD4pwn1daJDtItxKN4FEN1Tt1wYwNidwShwq5RW ogQRPp5rBbbxWtp8g9VR0IqzUDJYJoG05oc1KDKrgBDsz703N1eswET/rwg4g9X91bo8 UuXg== X-Gm-Message-State: AOAM5327A/oQjUsK1hqW5jgJ88QRQ78j9jCasToiCfFLVl5ZC2axx2sF dEgaJ4oFcLIgzDFKpmMbqw== X-Google-Smtp-Source: ABdhPJz+fypRuGzjWW6ctLyXwfesy8InnT6iydTy++bYMZcUpUkQfYe527n9h3a4xce9Xd+xlbQXAg== X-Received: by 2002:a05:6830:168f:: with SMTP id k15mr3740467otr.64.1602011483381; Tue, 06 Oct 2020 12:11:23 -0700 (PDT) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id t19sm676541otj.61.2020.10.06.12.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Oct 2020 12:11:22 -0700 (PDT) Received: (nullmailer pid 2658613 invoked by uid 1000); Tue, 06 Oct 2020 19:11:21 -0000 Date: Tue, 6 Oct 2020 14:11:21 -0500 From: Rob Herring To: Stephen Boyd Cc: Jonathan Cameron , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Daniel Campello , Lars-Peter Clausen , Peter Meerwald-Stadler , devicetree@vger.kernel.org, Douglas Anderson , Gwendal Grignou , Evan Green Subject: Re: [PATCH v2 5/6] dt-bindings: iio: sx9310: Add various settings as DT properties Message-ID: <20201006191121.GA2653627@bogus> References: <20200930075728.2410327-1-swboyd@chromium.org> <20200930075728.2410327-6-swboyd@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200930075728.2410327-6-swboyd@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 12:57:27AM -0700, Stephen Boyd wrote: > We need to set various bits in the hardware registers for this device to > operate properly depending on how it is installed. Add a handful of DT > properties to configure these things. > > Cc: Daniel Campello > Cc: Lars-Peter Clausen > Cc: Peter Meerwald-Stadler > Cc: Rob Herring > Cc: > Cc: Douglas Anderson > Cc: Gwendal Grignou > Cc: Evan Green > Signed-off-by: Stephen Boyd > --- > .../iio/proximity/semtech,sx9310.yaml | 61 +++++++++++++++++++ > 1 file changed, 61 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml > index 5739074d3592..a85b8fa25861 100644 > --- a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml > +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9310.yaml > @@ -40,6 +40,61 @@ properties: > "#io-channel-cells": > const: 1 > > + semtech,cs0-ground: > + description: Indicates the CS0 sensor is connected to ground. > + type: boolean > + > + semtech,combined-sensors: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: | > + List of which sensors are combined and represented by CS3. > + Possible values are - > + 3 - CS3 (internal) > + 0 1 - CS0 + CS1 > + 1 2 - CS1 + CS2 (default) > + 0 1 2 3 - CS0 + CS1 + CS2 + CS3 items: enum: [ 0, 1, 2, 3 ] With that, Reviewed-by: Rob Herring > + minItems: 1 > + maxItems: 4 > + > + semtech,resolution: > + description: > + Capacitance measure resolution. Refer to datasheet for more details. > + enum: > + - coarsest > + - very-coarse > + - coarse > + - medium-coarse > + - medium > + - fine > + - very-fine > + - finest > + > + semtech,startup-sensor: > + $ref: /schemas/types.yaml#definitions/uint32 > + enum: [0, 1, 2, 3] > + default: 0 > + description: > + Sensor used for start-up proximity detection. The combined > + sensor is represented by the value 3. This is used for initial > + compensation. > + > + semtech,proxraw-strength: > + $ref: /schemas/types.yaml#definitions/uint32 > + enum: [0, 2, 4, 8] > + default: 2 > + description: > + PROXRAW filter strength. A value of 0 represents off, and other values > + represent 1-1/N. > + > + semtech,avg-pos-strength: > + $ref: /schemas/types.yaml#definitions/uint32 > + enum: [0, 16, 64, 128, 256, 512, 1024, 4294967295] > + default: 16 > + description: > + Average positive filter strength. A value of 0 represents off and > + UINT_MAX (4294967295) represents infinite. Other values > + represent 1-1/N. > + > required: > - compatible > - reg > @@ -61,5 +116,11 @@ examples: > vdd-supply = <&pp3300_a>; > svdd-supply = <&pp1800_prox>; > #io-channel-cells = <1>; > + semtech,cs0-ground; > + semtech,combined-sensors = <1 2 3>; > + semtech,resolution = "fine"; > + semtech,startup-sensor = <1>; > + semtech,proxraw-strength = <2>; > + semtech,avg-pos-strength = <64>; > }; > }; > -- > Sent by a computer, using git, on the internet >