Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp988444pxb; Fri, 15 Apr 2022 17:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEfZrfJ6ZxhWxlKsscprtOqjxzrEWHcCwxGEFLfTlGwBwmwBtzlYOYQtbIKCa62DfpCDAu X-Received: by 2002:a17:90a:8417:b0:1c7:85c9:96b1 with SMTP id j23-20020a17090a841700b001c785c996b1mr1480451pjn.8.1650069154178; Fri, 15 Apr 2022 17:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650069154; cv=none; d=google.com; s=arc-20160816; b=sxzhd2u81PS1IrDQ24Y+hO7N5HoXxXTUwS+0uawZxr0gAxyqhIpymeZzhmVU7M0tdv MUxFZtjxSSO+5mXlD95TOicIU3v1boZUhp0J6T46VZKaQy1JeCoUc0HvWgljCKAVRs1E gq55cZeKD5JcySCQAdYV9nFQGG9pH4IgxzKoG3LbwPgvnic1K1HXZ+MH4pv6ZTPnSIBc mxldCXtkks7JAx2LDgTOGn2kZHe4HipSN3qSx/yUzT3PzazQlzhNNcTxS0Q1JSpj2w4W /JXSgALkJvd9bzRY4hJ5rFQEf+T/0BKYvzFwCHaOvcZtnEWM/WIM752WDRHnM9o9wpgW DT+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=c3/aAZPdz8dMQ6GSE6FGpTKR5NwTc0OEuhw0DbqrEV4=; b=UzH/nKOezOMA711MIEIBYof2F5QsPDruxj0GFVcZmzKv4yy8+RpFF3jfDKombiiWjg xw5gEuPJm3NYReoB1cUQzwn+6+OzXrqHDn0Wy/nUBsIAuJO7wcSXQC7ZXfr80dDJFY79 8yckGDB6fpztqNzWT1qovJ6uojD55ZZmbRaCBBghdLXlGkLjsMSfDdHfBu+XNKKA9vbS 7uI4sVakmlV40ybO+YQeIcGAUO+D1SsWp+zVGrrV+Ym/qZ4RqUCO9VaXb8QgLHemsPmU q/JP3UxwD+4azYuH9S0Tj2uyOsGIeyJ0n3we4SCRRXi/1nrA2n9wqaaalmD84i7GJEMj qUZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UMDiPpPU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u12-20020a63600c000000b003a3211613bbsi1549645pgb.308.2022.04.15.17.32.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:32:34 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UMDiPpPU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C4DB41F9; Fri, 15 Apr 2022 17:29:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351577AbiDOIxD (ORCPT + 99 others); Fri, 15 Apr 2022 04:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351535AbiDOIxB (ORCPT ); Fri, 15 Apr 2022 04:53:01 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3764B716B; Fri, 15 Apr 2022 01:50:33 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aferraris) with ESMTPSA id E68C91F40F07 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1650012632; bh=PDQk8Hg2XmGeAhw+vnz6Kqr/MRl2sSD13MWqXSmdmNo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UMDiPpPUWC58PDk3Ald6Q8jESPJJaxacE4uElQPWCA8xsZB6J+MR/PQSFaRb9X11P DtqzRHJQjNanGilRwpQaH4FK2ZYiWEKAi63lduqP7YfAiriI1KFtEWW60Qw2VB7ZXc Gbid5KxQQSm6HjaaJfpJ3Zc5QwNNCcE3sg/5vuJKs4WCj90FWi90VJu5Ro5NdCL0sF ZvwajPcFBH6r4AVh8dSCL+3vhyI3xo8UHAdU4IhFF9U1VPXWCjaeqExQZQWX9ZtQ3u 7f121pc+UWNxAiNi9DZGmGqSv3BI4ShUrZQcdC8UHpnUFrWWIQr1SvYtgXs9EfBrKr H2ngczZ8zqCvg== From: Arnaud Ferraris To: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH 1/2] dt-bindings: iio: light: stk33xx: Add proximity-near-level Date: Fri, 15 Apr 2022 10:50:17 +0200 Message-Id: <20220415085018.35063-2-arnaud.ferraris@collabora.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220415085018.35063-1-arnaud.ferraris@collabora.com> References: <20220415085018.35063-1-arnaud.ferraris@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows exporting the value from which userspace should assert an object is "near". Signed-off-by: Arnaud Ferraris --- Documentation/devicetree/bindings/iio/light/stk33xx.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/light/stk33xx.yaml b/Documentation/devicetree/bindings/iio/light/stk33xx.yaml index f92bf7b2b7f0..f6e22dc9814a 100644 --- a/Documentation/devicetree/bindings/iio/light/stk33xx.yaml +++ b/Documentation/devicetree/bindings/iio/light/stk33xx.yaml @@ -13,6 +13,9 @@ maintainers: description: | Ambient light and proximity sensor over an i2c interface. +allOf: + - $ref: ../common.yaml# + properties: compatible: enum: @@ -26,6 +29,8 @@ properties: interrupts: maxItems: 1 + proximity-near-level: true + required: - compatible - reg @@ -44,6 +49,7 @@ examples: stk3310@48 { compatible = "sensortek,stk3310"; reg = <0x48>; + proximity-near-level = <25>; interrupt-parent = <&gpio1>; interrupts = <5 IRQ_TYPE_LEVEL_LOW>; }; -- 2.35.1