Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp518816pxb; Wed, 6 Oct 2021 09:41:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyolk6hhBPsSpl7u9ZpVSD9TQ5LEu5oYj6qlcFBi0AMzPBhJW+prqqASmX9+lS1AJmQOGWz X-Received: by 2002:a05:6402:2048:: with SMTP id bc8mr19319570edb.142.1633538471073; Wed, 06 Oct 2021 09:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633538471; cv=none; d=google.com; s=arc-20160816; b=ZZebWRqHOulYED/Mh5w6TjczufJxyW0FSLrXb1BQO5ygk8kFLfSj5MQUlALt+xYGm9 IzYXB5oh9P6QnMCg5lwFmbJk+fvR/ckNc/IiWGymI1R2CEd00a72s1mfZpm1Jlx2pKW1 tzFyR5yoiqiKZL8liJG/8qU0izI5sgD0n1F07/AllK8XUzlkkF0tm8ZbINyOrs0OwGMR o6kfCpWhOYckn3imscv81pL7loID+TA9cZ226y8Qqc9qvjiMGaHWB5lTS5geQ+lb6/1T qb5P9ARnlgWpD7xiNWeV0WNqxnR4zZDluPSk1yh9WHbuZt40U1esHuAeHrMDVWySOGA5 V2dw== 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=nFqjK8pwRw5uwAEVm7g0nFv7Uy3uTc/vTQFJPsnw4SU=; b=tDTU2ri79kODp4rSih0AVZbtrQqJfd8WL1ELX0Jp40z5k9n0uwzDyVGVzFMnJiwoty g1EGLkHWsLC49l3xavVEDgNB7IddzgaDCCx7Bc4qPwzqTYYuXXS9LxzGyS9Dtdl5qyjj yaHMCNrc93D6An3By5TtjbQB0BjusU673D6hjfGrIWr5d3NIXEB7APITrsrjDsmXbW+o j/0eCu4tio+H+Uirf0VX7iCAMGGecPjXYBfYmhAWji+PqH+vwLOIb9/aSF3Q9GsqwEQE 3RuNUPj5h/tEqJntsfV/Gtp8irGhvW+IVkfSNfB5k2nWrF1zffOfSviKGas9RiC02FLb pRfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=zYZdxReH; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si79302edr.239.2021.10.06.09.40.45; Wed, 06 Oct 2021 09:41:11 -0700 (PDT) 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=@trvn.ru header.s=mail header.b=zYZdxReH; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235329AbhJFQkv (ORCPT + 99 others); Wed, 6 Oct 2021 12:40:51 -0400 Received: from box.trvn.ru ([194.87.146.52]:58495 "EHLO box.trvn.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231987AbhJFQkt (ORCPT ); Wed, 6 Oct 2021 12:40:49 -0400 Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 7954D4287D; Wed, 6 Oct 2021 21:31:16 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1633537876; bh=XIWa6AjmyBCN/A/Zr/I9momFkQe7nNV9FW9rvb/SFfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zYZdxReH8qxqh4VITh1IOwwhEeXfucjXXpqiSzvZtQCOSHMjCvGZjHIz+8GcIPQSF 4Bro54fuKnc7Eoirt5Iko7RVIm3eEX0nRSts0guX/lommAWTjRRCzyz7f/UqFagLMk CoPrLM+jFPC+LU50wEkH35kow388+AeLFp/VMsLPfWMygUT1X4ZvC8ASeLoqxOvH9d ahxTjofVuWTLGsdtMykx+vkeQThm2bkPVWmtWrkmlXHqYeLSGRC+F4w16ioCpcEeOq Egl3yRKC7zwz5pD/NnoJzWTr5BIxV2GeYKLDDODPqYKoYZ9Q8oyF35/0jFdqxdyYMG 5yuIof5NLe0+Q== From: Nikita Travkin To: jic23@kernel.org Cc: lars@metafoo.de, robh+dt@kernel.org, stephan@gerhold.net, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin Subject: [PATCH 2/4] dt-bindings: iio: light: Document ltr501 light sensor bindings Date: Wed, 6 Oct 2021 21:30:56 +0500 Message-Id: <20211006163058.145842-2-nikita@trvn.ru> In-Reply-To: <20211006163058.145842-1-nikita@trvn.ru> References: <20211006163058.145842-1-nikita@trvn.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree bindings for ltr501, ltr559 and ltr301. Signed-off-by: Nikita Travkin --- .../bindings/iio/light/liteon,ltr501.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml diff --git a/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml new file mode 100644 index 000000000000..db0407bc9209 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/liteon,ltr501.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/liteon,ltr501.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LiteON LTR501 I2C Proximity and Light sensor + +maintainers: + - Nikita Travkin + +properties: + compatible: + enum: + - liteon,ltr501 + - liteon,ltr559 + - liteon,ltr301 + + reg: + maxItems: 1 + + vdd-supply: true + vddio-supply: true + + interrupts: + maxItems: 1 + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + light-sensor@23 { + compatible = "liteon,ltr559"; + reg = <0x23>; + vdd-supply = <&pm8916_l17>; + vddio-supply = <&pm8916_l6>; + + interrupt-parent = <&msmgpio>; + interrupts = <115 IRQ_TYPE_EDGE_FALLING>; + }; + }; -- 2.30.2