Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44E33C433F5 for ; Wed, 17 Nov 2021 09:17:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1E50263237 for ; Wed, 17 Nov 2021 09:17:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234918AbhKQJT6 (ORCPT ); Wed, 17 Nov 2021 04:19:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234914AbhKQJT5 (ORCPT ); Wed, 17 Nov 2021 04:19:57 -0500 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FA38C061570 for ; Wed, 17 Nov 2021 01:16:59 -0800 (PST) Received: by mail-pl1-x632.google.com with SMTP id b11so1563887pld.12 for ; Wed, 17 Nov 2021 01:16:59 -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=26LDeeFD0eQ7RRlhYvq1Gso7I9wwAUpwToNceWz5x+0=; b=EIB4lD4IofqLyFxaaCNvZaFFAyxMtZTQQYD9eh30DvpgyPGg8359soP2WcO3D6SKjk VCb23hOAZHPqzE9v7zN8zO+2qhOR9G1rInqsteaRXc645jS4ZRwCfsmCQ5adopHa8Y6c gjhcE0ad8SiC7AdkD22m+IvUEBxaq+jbNcOsg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=26LDeeFD0eQ7RRlhYvq1Gso7I9wwAUpwToNceWz5x+0=; b=UbDCGgHa750tKWxKMdfxfNONCHwYl6TqcktJSdTfFu57TzY6YztcmmSCt4Fva7ZuRW r9m8mAKpdfK2pXTfc0cavX2XRzBaL0zqUKwpBsxyVnaIbg0gP+IrZdo/8iOi6KoSi7k+ S363MMIdWqYxHIMYfgxib05wGVDepl4BeuBmrBTdDtDdEriR6tc6rog0RAeAP5waLSsJ 0YQ8JkbycwWAV1zmDULVcIMBYgMdN3YdbWn2HaxmGdfAusRLuEXJfpaZZC/ieNlAvImp z4cgmMEdcxArhIy/tdZ9GK9ZjlXfC7xqWP1ugSY1c1AWyifN1Nr933UreYv85apHgnJ1 HcrA== X-Gm-Message-State: AOAM532Blqf0hNuytNC14AbtT43HDbGVokzgQxMlQ8GSCS/nGHexP69j QdLoEb06N1b66zVTrUpCk2R/bA== X-Google-Smtp-Source: ABdhPJwOb/2wXB48Ea9/dw363pktcWaoH3hBcaEikGKl0+c4XkvFaOxc0CZa00Ug+/CkQ+s5xOFP0A== X-Received: by 2002:a17:903:4053:b0:143:6d84:984c with SMTP id n19-20020a170903405300b001436d84984cmr54124278pla.37.1637140619037; Wed, 17 Nov 2021 01:16:59 -0800 (PST) Received: from localhost ([2620:15c:202:201:327f:7baa:380e:33a3]) by smtp.gmail.com with UTF8SMTPSA id lx15sm5163909pjb.44.2021.11.17.01.16.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Nov 2021 01:16:58 -0800 (PST) From: Gwendal Grignou To: jic23@kernel.org, lars@metafoo.de, swboyd@chromium.org Cc: andy.shevchenko@gmail.com, linux-iio@vger.kernel.org, Gwendal Grignou Subject: [PATCH 2/3] dt-bindings: iio: Add sx9360 binding Date: Wed, 17 Nov 2021 01:16:52 -0800 Message-Id: <20211117091653.2829677-3-gwendal@chromium.org> X-Mailer: git-send-email 2.34.0.rc1.387.gb447b232ab-goog In-Reply-To: <20211117091653.2829677-1-gwendal@chromium.org> References: <20211117091653.2829677-1-gwendal@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add binding to configure Semtech sx9360 sensor. It is a simpler version of sx9324. Signed-off-by: Gwendal Grignou --- .../iio/proximity/semtech,sx9360.yaml | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/proximity/semtech,sx9360.yaml diff --git a/Documentation/devicetree/bindings/iio/proximity/semtech,sx9360.yaml b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9360.yaml new file mode 100644 index 00000000000000..011597f1e82b10 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/proximity/semtech,sx9360.yaml @@ -0,0 +1,91 @@ +# 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 SX9360 capacitive proximity sensor + +maintainers: + - Gwendal Grignou + - Daniel Campello + +description: | + Semtech's SX9360 proximity sensor. + +properties: + compatible: + enum: + - semtech,sx9360 + + reg: + maxItems: 1 + + interrupts: + description: + Generated by device to announce preceding read request has finished + and 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 + + semtech,resolution: + $ref: /schemas/types.yaml#definitions/uint32 + enum: [8, 16, 32, 64, 128, 256, 512, 1024] + description: + Capacitance measurement resolution. For both phases, "reference" and + "measurement" + Higher the number, higher the resolution. + default: 128 + + semtech,proxraw-strength: + $ref: /schemas/types.yaml#definitions/uint32 + min: 0 + max: 7 + default: 1 + description: + PROXRAW filter strength for both phase. A value of 0 represents off, + and other values represent 1-1/2^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 + - "#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>; + semtech,resolution = 2; + semtech,proxraw-strength = <2>; + semtech,avg-pos-strength = <64>; + }; + }; -- 2.34.0.rc1.387.gb447b232ab-goog