Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1078049lqj; Mon, 3 Jun 2024 09:28:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTqsKCF6ZAyQaLp3Nw5CD+nDn9ylD/RMop7p52pR1VDlzi5z5nBYwBLHygOzpcRUtnBJpI9jdxPcCapshdGDPu2MvONW7VwZGR9L2jbg== X-Google-Smtp-Source: AGHT+IHq4eVSAnUosdfbtksFbzUAUGhbMMjDdLNinfzA/LInbMXCQVJlmSSzw2WelpkvyUmI0iNZ X-Received: by 2002:ac2:4354:0:b0:52b:404:914f with SMTP id 2adb3069b0e04-52b8958aed8mr6430836e87.34.1717432095961; Mon, 03 Jun 2024 09:28:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717432095; cv=pass; d=google.com; s=arc-20160816; b=q+lPqx5bYaX5k7RpnTGosQVLH4hhk5qdLV0/SLaX6PTP3FIm99tS98nmRNR2iV1jpi +4i4hCq5V78F2SF+OE9KivtHArRFAzf85MPrLK1DDDt7oXjDsJqKDCC0EXX7eV825hvz vZPwJblLIiqxcc9RyF7/afmJXA+28hETuZdclwbvXJKwSXs2TJSNbC+OW2h8l5jGhf4s egv0CAFxyICjmYDu5roA17C+qJJE1oJDhEY/ttNChqoGOx3kOxbkE/lw2UOuu2njrPU9 qcd/5b/NpTy5922WaIk2EZNzKcr61X+6S70izxqjFaEhsEbJocZ3nncUQOgRYmoK+lRY iesw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=UT/n64RkdFWABWe/J3nAKJc1oXeovt/hfh7Nn3LCSOg=; fh=RTJWWE0Bn7hNHRCF8i8Rq/Be3OZgzKeBbduLbyOyctk=; b=BMv72k0bSchwm0KNXITKIVxk4rDvCSEvK69iQvoHZECnfEUiRpiBry0pvreTzLKjCY rQIOoplv+B/uHKQnJYSGxlxDHNsrp4tS+/S7ed0VGvF+XGRSD7VEdaghs9BThxn5Tyco 2bipKGavYoaxkMknN0pkSezSyuIcUfgungFV6em3dNvcKe4bkx/f0JW4bhrbOxPHIRFk iNH6d89Uhku6XYMj/q19QkgastllIEMeHTgsSqeiqfGMyYs29Ldq7KvvHMK5zqdpawvT fLb+ssKxeuRZVJ4Ic/ERJufXEtWJ8hbUx3MsaT+MZv0geWDQhFTGEz2wPilt4N8yfeXs 4ESQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IhPEccFU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-199427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31cca60bsi4088799a12.659.2024.06.03.09.28.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 09:28:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IhPEccFU; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-199427-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199427-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 930A41F25145 for ; Mon, 3 Jun 2024 16:22:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9852A136653; Mon, 3 Jun 2024 16:22:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IhPEccFU" Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 383BF107A8; Mon, 3 Jun 2024 16:21:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717431720; cv=none; b=GAqXaDmMznDZH95q4zWOSGtubnu6y5T5KiZJjRZdY37Iv484iLzKOfXdnzNr2A0Jzh1d+i0yF2S475wzZGkI68eGKh2Eb5iA4OCvvKrqkXtk0bUagvjRJkT/jiySc/l5gcGqsOrDzLUtZHcWvTVZ3UVApz0UtXT/Y0hh8zxRa5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717431720; c=relaxed/simple; bh=5UdqhTYDdJ6XCunroqHqe5/BwihyhEMQZXMlLIW0q2w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=md5sDV+8WZxPJepjkhkARk1cPzvZTwlll2v7wV9QDA5F3cMCbI3GZvsE8c8Hlvv8mY/eizIS3oaBLBGVnTY236+B3hKaNCMWfuvRntpx5opNQ/flKFqAXbHK5yuYrnXuRPlapuLhXAeNaWDk3drhwX6gDvLGiqqKwu8Uvq7noMU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IhPEccFU; arc=none smtp.client-ip=209.85.208.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2ea903cd11bso47115971fa.1; Mon, 03 Jun 2024 09:21:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717431717; x=1718036517; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=UT/n64RkdFWABWe/J3nAKJc1oXeovt/hfh7Nn3LCSOg=; b=IhPEccFUqxfqvdQv8f7Il+3av/iWODU7tlrcxWHF74lhcp9Lp3Yx3YWP+R5CbWkGBp AwcD6QQYiOVZnIfidzL9bPnwKxySAY/XD6sieHqlJaWghJtJsFXHZ+U3kpmukBEQ96Zn 6wcM/0NSQlUy5LIQbCAetnrTpDGYqOR1+2J4/PonqKRhaziaGxL+v/07NmcOPTrAaBjc fheUa9BXGITRcE4kBpt+fSmbMGAUmb7Qzc+KPV94wvAGq7WnGa9th3GsFuu6U4pJMTaE +hMC/mUYC6ejUVnxW12N4YgihC1OcicXzLRCiyVdKNClJ4oLxq7J0WZ6/N4WUpTOG7F6 ZpGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717431717; x=1718036517; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UT/n64RkdFWABWe/J3nAKJc1oXeovt/hfh7Nn3LCSOg=; b=p0j8Vm3pMaiK0owxahBDW214vfcplpd1mzYbwfGWrGgpDp/gVV5KUm5Tv0AhSug8BW 6L6IaR5UVsG7xwRFrOeyFexweUuta8M+jy/oJb2ZsVwFKAP+FjGZKtIIIhhD86VVZqVT KIxEPaMQdayiUD0wzcbfxowJUBFMUHDNjutJuPa7ebpGsak2cxrRSfXXDd0TPzRH9/js 0YOyjtYuP2h3oMvd2Be+2/WPGvOSVJxeMFfoY+WEqfKvLb2xQ7AGJ0OB4tnZf4n7pSt0 Ozr0gAigwPDCPVT7Yg9Pnagy64Z7EYjdjMQ6cUohKXB1qISka8FJ7Piu4keTEYy6OoY4 C7eA== X-Forwarded-Encrypted: i=1; AJvYcCXQL2d4rC+SZpdIuNj4AXmKOCn3Uvnm46CELpuE3yxQT3ks+w+QT85m3GTpAWeiDvu/ljKS7ZpxnmWVCINVwNfNyzILacqn+YURlR8SuPFf9G40JVbeYCmVUveOCWC/AaCPXK8Ia9MCOwgISVytSxqZNJO1lVLSCs79p3MK4tbo+HcQQw== X-Gm-Message-State: AOJu0YxXghjG4ewCs8e4oWjMW2FcXOqOstiBhmdvsMG1avTUYBYkUuip BYGoGmwyUQCpGLQeBqzvd6pFtPi7kMmgAc78KghmXsw7PLNxg8SH X-Received: by 2002:a2e:b693:0:b0:2e9:8852:3d20 with SMTP id 38308e7fff4ca-2ea951e4c52mr77531291fa.41.1717431716922; Mon, 03 Jun 2024 09:21:56 -0700 (PDT) Received: from localhost.localdomain ([167.98.27.226]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4213cd1c075sm43697765e9.0.2024.06.03.09.21.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 09:21:56 -0700 (PDT) From: Mudit Sharma To: ivan.orlov0322@gmail.com, jic23@kernel.org, lars@metafoo.de, krzk+dt@kernel.org, conor+dt@kernel.org, robh@kernel.org Cc: Mudit Sharma , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: iio: light: ROHM BH1745 Date: Mon, 3 Jun 2024 17:21:20 +0100 Message-ID: <20240603162122.165943-1-muditsharma.info@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add ROHM BH1745 - 4 channel I2C colour sensor's dt-bindings. Signed-off-by: Mudit Sharma --- v1->v2: - Fix yaml issue: Make `maintainers` a list .../bindings/iio/light/rohm,bh1745.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/rohm,bh1745.yaml diff --git a/Documentation/devicetree/bindings/iio/light/rohm,bh1745.yaml b/Documentation/devicetree/bindings/iio/light/rohm,bh1745.yaml new file mode 100644 index 000000000000..ac5c4d160513 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/rohm,bh1745.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/rohm,bh1745.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BH1745 colour sensor + +maintainers: + - Mudit Sharma + +description: | + BH1745 is an I2C colour sensor with red, green, blue and clear + channels. It has a programmable active low interrupt pin. + Interrupt occurs when the signal from the selected interrupt + source channel crosses set interrupt threshold high/low level. + +properties: + compatible: + const: rohm,bh1745 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +additionalProperties: false + +required: + - compatible + - reg + +examples: + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + colour-sensor@38 { + compatible = "rohm,bh1745"; + reg = <0x38>; + interrupt-parent = <&gpio>; + interrupts = <19 IRQ_TYPE_LEVEL_LOW>; + }; + }; + +... -- 2.43.0