From patchwork Tue Dec 24 06:13:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hardevsinh Palaniya X-Patchwork-Id: 13919698 Received: from MA0PR01CU009.outbound.protection.outlook.com (mail-southindiaazon11020133.outbound.protection.outlook.com [52.101.227.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3337E219FF; Tue, 24 Dec 2024 06:14:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.227.133 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735020863; cv=fail; b=XsOAE89xpfAvbjNtDrOJbim/yxGrV2R7e8ojJ1Zyfr2tiG/sQ0k+v4Z02nADqlvSwGee74rT2F643cxiPFdPLcXdjHGmhqW4j6YopKlzfOA8tz8HIUc6ry93AiqApLJ6AkIPSh9xr/fPCdyUubXI1MceIywQuVP29/DO2Z8U2zs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735020863; c=relaxed/simple; bh=eQWJvSVOa4B/I3KXZ7cLnEgCzP4qPki6TZqo1sp88ps=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=sGDd5515fzk0cYzkXN1yPL8b47gwYEn3vwzlIAep2mKxbRDQT3q4jc3GZ5MFSoc4PIxijJ3dJAGeUT4rCs3zsVuOMXZ4kgC/eUS9cQNXaXgp5+sB2MRuDs2V8xJ+GRgm776wa6rll4X+zYHAyw/7ehW6HOfUU6ScyjHAhJyCJWE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io; spf=pass smtp.mailfrom=siliconsignals.io; arc=fail smtp.client-ip=52.101.227.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siliconsignals.io ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RgY87php/vez3kIZ8TVKFzE9ffLV91ewPVhB6xJ5ZJgV42KUl9GYG4JhnYR0j7rpYB6gLDn8j/BO3/vRd2mTt/C6IN/EL2q0USaPBpNtj8c2ZcBZPo7TvnSW4BAFv037JGmGKXNjBqeuKgD8eXjte78Ue6dUQqWsLNqqPV5webpltlicd4FlKzGJYZrO88QiPCzuBWFfKR1ocTjFZYZyu+/gZoReirmJLV8KDRuKKJgCslzkkkK2KUKw2UCHWy45h2hRPqd3S8d87oW4ZLMPW/vmvIMNx6wUkJnfX+sDYpNql755FqDExHF2pU2xsmbNn3Gt7EY9gtQEfk2iaAAMXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=YwTYPynRYDrE6iiPij+GI9Fwq/Kq0RJu/FGXPxVMXjo=; b=E1UYPWKvPQivgASAfbX3PLHLUZykfKWSPzL+5/abAwoNRtvjuenGJpmq/9ahNc9ASukEL81lv1qvb5Yzsk2R01+fnchXQuBfNeTpmG2a+w/Nmr/nL09EV7oqDtZT2kV76nq/3uqZMxGdIrv0byu3mEK+FRVhpx3HkAUqt6URuvVFjAIWTyhUzX+OLqf2Z7q4gCVNCi8o81AnUpavjjxjs2BO3TkatkmaYGz1aP6h2huVLEiM7DD1cxhWUHcRsWqzdlmUeSxQOzmsWSdqcKaUpdfTYKno3LYVuvl10+XokIzwk3ieVAbQwRSjzBJnppKWM/mE8bWMckJV91M4e8AcGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siliconsignals.io; dmarc=pass action=none header.from=siliconsignals.io; dkim=pass header.d=siliconsignals.io; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siliconsignals.io; Received: from PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) by MA0P287MB0331.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:b0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.21; Tue, 24 Dec 2024 06:14:17 +0000 Received: from PN0P287MB2843.INDP287.PROD.OUTLOOK.COM ([fe80::1134:92d7:1f68:2fac]) by PN0P287MB2843.INDP287.PROD.OUTLOOK.COM ([fe80::1134:92d7:1f68:2fac%4]) with mapi id 15.20.8272.013; Tue, 24 Dec 2024 06:14:17 +0000 From: Hardevsinh Palaniya To: jic23@kernel.org Cc: Hardevsinh Palaniya , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Gedenryd , Javier Carrasco , Arthur Becker , Ivan Orlov , Matti Vaittinen , Andy Shevchenko , Subhajit Ghosh , Mudit Sharma , Julien Stephan , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Andreas Dannenberg , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: iio: light: opt3001: add compatible for opt3004 Date: Tue, 24 Dec 2024 11:43:15 +0530 Message-Id: <20241224061321.6048-2-hardevsinh.palaniya@siliconsignals.io> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241224061321.6048-1-hardevsinh.palaniya@siliconsignals.io> References: <20241224061321.6048-1-hardevsinh.palaniya@siliconsignals.io> X-ClientProxiedBy: PN2PR01CA0154.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:26::9) To PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PN0P287MB2843:EE_|MA0P287MB0331:EE_ X-MS-Office365-Filtering-Correlation-Id: 1200a068-4061-4ce3-8dcb-08dd23e232ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|52116014|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: DHAFTUGrJSFC/qwgdn6jNu93yg8I1KW9VNtxjP+hJfZugOFKNJs+byhOLOJQoAFO8jiFC8yTP7ZtNUpu2z5yASlKcAAZtLWrTs7tmpNUVSCVkkGLQq63UYWvxtW6gNjv1aGQYg9rhl2zZfL+ElUwoe8DgY+QrwFI1DVvg434zQfRAWQxR1rxWL2CXxJ7goPpHOXvJlICem+/lFTCM63nQ+70omWReZzu6VIw91X85lVGcwUhonKCRZ/O69REhpWRe06hT3eTMcBC+RSpWdim4RbyP54wmp9UfoGKWqbvuhPTKcwTvn/g+CjL/xhL5lTODDYlqRLC5BTAVGkJVEKlCCt88fPGXQIOcOUbB4EBZrzfdN10MYqpdOB9er4saPm5Z94aZUdWSidXBjRZKzHxh+OtMhzv4Jd+IgCQcXwyLctXAgpwPx+aXM2OaPypTMVAVAc+fSoY1Q4LhUxfDvQ66M5tbY+DJm5ftlYyOIF/gVa9NMhwPjqP5v/bH2z3It5oSXSm7yOIk8VnV7HAsOpyJl4G/gvFKZT/wR/9/F0QBdqGmFkyiivtpL5Qb0t6A08w3tLtMI0t6Eay5p4zhrQUU4yjP6m8jFkz0Ayt2tB+lhvHFRw7Ekit+gPHl/8vwqB+xdJRaeLl6URkNApd2vppkSJLj0teF60jiY8Nn7ZrJ7eKz0qpElvCC7MqYyrWKKtaI1dVUCNEXeq6W4Zz0wDrwIFgVlHuvl4j4qtcVot7rqmewjZvF95k+EG02pkoenXRgeKgmlqDT+CDy5F42QmBbZv0z37PHfzsxLwzYezazadwz8eUT6bwe9JIicol6zTP6mkDX2bNDg8ES8PkoqZFJY0T8E4yV8A9EXsCoq76THw/ZFlb1Lf2q0ZkmSBE6T9kXur5/VG5Nvk7x3qQiCvdKmzf2156Mkvp8vyOVduNDPRa1d53i0/Ot1m/s6HU7DrCiYzBop7KjoUAsBNiusIJD6Xvpr6W7a0froKb/qvrakcciNPsGVE2kXlRGWjSofTVg1EJIofSybHigyvKZmmYGOXgg+v4WHiWtBbI2SzJ/4waL6qxdosFsGEncRNa6fSeGKz0ezTfStUb6iuOpLuQoSqsJvrNGNyyhhdZm2i96IvB/i5WRk0T6q2Yb6MLcKoRBzRyYGd5HpEMrelR+gQjOyS/jujU8rZN4zgBOPzaTzrdJWsjqY34lo56Rj7kKJMfPPP4j+el2F0AIqbRLF8ta7zpKZZoyJ7wxZq7TSaolEnvje80We4PnDo6HR5f1c0AomTa9srlRND72hj4mfpWXPh03bGxOM9eq1cyWeZGdZfUq9B0KwhvdgsrZa1oULUuicYxtH/3q9xlyQEldXccN3R44vspk/wAtJ0HbId8zE55miccrlMP2NAmuFkeXLzFnYnexTo/V0NaiG9zVCORalsMutIXTknWXpterc7aI+Ka1dE5qLH6KZXIx50yLT07 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PN0P287MB2843.INDP287.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(52116014)(7416014)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yKfueWJQaySEEkvg5e2yEfA0hY6jzkO9IPeySlhyolM82wlObi7+5L/isgzWfvbWKADpU8ZQRGejeota9HBSZ5JT7gLZGzdJnjIl2yw1Xn6I4I/pR/kG+MbHG/Pgu6p8HH+hwJvC2pDwj3+ZgDARpaBVrpui89MTdvl42hOdbbRoqZqzTBWpzh2uq1041JrBww/VS4pPieb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E/ecSem3YRN8/nAET0c3TBCobIb34DqnIK/eqr+Us3nXqItlHjhEPqJAXxIbxl8KNProIL1uWTjm8co8zsFVjKxgCwib0ZUmLiZAETiuR8W9S4ODSMNKlReEps24luU4dDyPVjlev/S9GrGkHyo7lB9zfrMNJ70WagytQG9YgN46RvVIRqV/9vYzgUMEpKXHd87/6+MUVOd3D/EHDKr85wbiZmxyR5fTQVJeABrOS3kjN95m7ogUl4iIqaB4MYikocOX8BGJPJjPQdQZeudRNQ2RiNPSoqME76VowVBlSm+mDWN6RHWtZRowiytfaW6rKiSciCHcDnk0QV41wAEVLBwF80BbWIipyvs6m8BIcQcckELtOSptqg= X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: 1200a068-4061-4ce3-8dcb-08dd23e232ae X-MS-Exchange-CrossTenant-AuthSource: PN0P287MB2843.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2024 06:14:17.7978 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7ec5089e-a433-4bd1-a638-82ee62e21d37 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YzuU5Ug9p81eWicufNDsFCRRzoOO0ly98tcgoefGaIwKOKeLWfLrce8t+qMfwZ5vxMA3B+JsYXtuRM5KKyWpX6wP+UjhOTOsxTboCJDP8rXctfKXq09eFyEJO0yFQsQB X-MS-Exchange-Transport-CrossTenantHeadersStamped: MA0P287MB0331 Add Support for OPT3004 Digital ambient light sensor (ALS) with increased angular IR rejection The OPT3004 sensor shares the same functionality and scale range as the OPT3001. This Adds the compatible string for OPT3004. Datasheet: https://www.ti.com/lit/gpn/opt3004 Signed-off-by: Hardevsinh Palaniya --- Documentation/devicetree/bindings/iio/light/ti,opt3001.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/light/ti,opt3001.yaml b/Documentation/devicetree/bindings/iio/light/ti,opt3001.yaml index 67ca8d08256a..05b9a4f510bd 100644 --- a/Documentation/devicetree/bindings/iio/light/ti,opt3001.yaml +++ b/Documentation/devicetree/bindings/iio/light/ti,opt3001.yaml @@ -18,6 +18,7 @@ properties: enum: - ti,opt3001 - ti,opt3002 + - ti,opt3004 reg: maxItems: 1 From patchwork Tue Dec 24 06:13:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hardevsinh Palaniya X-Patchwork-Id: 13919699 Received: from PNZPR01CU001.outbound.protection.outlook.com (mail-centralindiaazon11021142.outbound.protection.outlook.com [40.107.51.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 119A814EC46; Tue, 24 Dec 2024 06:14:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.51.142 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735020877; cv=fail; b=LApEgaYCRIn+jM3PmkXdnsBkq6R+jU/4ZzwIyOPCcNBwr0QXtPW0p1k/GvtLZPU/wD1TLReI5zV/RPNbffIXfFYZaUVjH+eZVD0DnbvgUQfYgdoGfivwjEjvwKJ+f4+79Hn85TdNBujmsksbyksTFRpnuvtrer9aV18a45L2CBY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735020877; c=relaxed/simple; bh=m6pdy0sFW7k+5pcG1eWdRFRrt8DTD6CTH4k9BoUJIAY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=PeRhCJWCufWL+Rb/rJEqkcIs+a7jJpNocArrNKFuzu3fS/L8DrAEZIqLQYaZrBMCrwx5cLqoKWzQLvAWIhePKwLjBpz6Db+J0top5aX/IS4jUl0FDOcdDDHvbKQDsxuIy3G4BBq7edy+5B3mFiHIl0xRjHAYlmd8DjzZTlx3HxY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io; spf=pass smtp.mailfrom=siliconsignals.io; arc=fail smtp.client-ip=40.107.51.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=siliconsignals.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=siliconsignals.io ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mdXE8ladetC6OH6YzMi9Jn6ixiH/jinBIC4sE/8JUYx4vOM12PwwUMNsOwt4H8jpaHq7WhTsI+j6RB1MSMjOnpbRdjfHVvRSOrI26pCfi9sjxqx215WhLu37+mKAm4pAqN5YWKa3OFt8YAme9FScFjnSAts3byvr3xxOdVZ2k3+pwOtult6Sz4rJoHFBqH8QizaEXPMZ4LBcNjv/IImTaGrqb2yfmrBnZm/g/TdsRjxyO8Jqf3rJCSGw2yNORA5cX3ml0j9v3VjPJL23ATS5fVBqB2DQWKVrfYcLudpaxTvK/SjHW4YizgW/Sl2mTYdBnX4T/dRGAF6VCrqPAmdfRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=teCbmW17gteq/hTogXQpoKpMYO3rjaCPo/wJkgj+Ri8=; b=Fq2araakXRmizU+2R5bP1F9tlbrk6Ekj+WYPSuSgVQFt/QkduUe8N+JbU8E7EfJ8bGYgmDqlRv1JVc36UDk/rUKPQ4d2H2q2jMIQzNzmIo2yl13YRUcsCrKxm3xbXzc1/mGcZSFf707ZoPaHNf7nFO6Ps3hcC/69TNNNyMC+M0Rw48H5BasdzDnQ35LHSCMCGHVMwMl2cwD5A3xC+8pwdw9SXJNY0rCOmO8+qAiXFmDRAPqbIcUwrCgfgYaPQBqox0M5x2uf2Frnokkf2NG/wOvKsMjf149j/t3oGvYA/P/vHVZx4Bs3whvvtvodf3v67xRjnE/XbspAiVOjOQcn6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siliconsignals.io; dmarc=pass action=none header.from=siliconsignals.io; dkim=pass header.d=siliconsignals.io; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siliconsignals.io; Received: from PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) by MA0P287MB0331.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:b0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.21; Tue, 24 Dec 2024 06:14:32 +0000 Received: from PN0P287MB2843.INDP287.PROD.OUTLOOK.COM ([fe80::1134:92d7:1f68:2fac]) by PN0P287MB2843.INDP287.PROD.OUTLOOK.COM ([fe80::1134:92d7:1f68:2fac%4]) with mapi id 15.20.8272.013; Tue, 24 Dec 2024 06:14:31 +0000 From: Hardevsinh Palaniya To: jic23@kernel.org Cc: Hardevsinh Palaniya , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Gedenryd , Javier Carrasco , Arthur Becker , Mudit Sharma , Andy Shevchenko , Subhajit Ghosh , Julien Stephan , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Andreas Dannenberg , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] iio: light: opt3001: Add Support for opt3004 light sensor Date: Tue, 24 Dec 2024 11:43:16 +0530 Message-Id: <20241224061321.6048-3-hardevsinh.palaniya@siliconsignals.io> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241224061321.6048-1-hardevsinh.palaniya@siliconsignals.io> References: <20241224061321.6048-1-hardevsinh.palaniya@siliconsignals.io> X-ClientProxiedBy: PN2PR01CA0154.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:26::9) To PN0P287MB2843.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:204::8) Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PN0P287MB2843:EE_|MA0P287MB0331:EE_ X-MS-Office365-Filtering-Correlation-Id: 5e1c5b9c-c4dc-402f-a340-08dd23e23b16 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|52116014|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: Hw48JdGbW8TzDQbjWJgoXiqHTsIAp3zgky05vU3da55j/zLYMfnaQKtLo32xo4xBq+H8iSXeZG7m8igvbWOkniNri+nirt/V5xomCuRO9oATqR5G/Y8GX98TTc5HNi3r5RShad+Lx6TQCE70dSDa7WskKYjpRa0Fs1m72DMRu9mB9RjxRcw8WTqZfHW6kOZ+IZw1OUblHvFPBBnAk8p+nzbIXgytx2rDIXge7wBig5cHu2X9YDdeaxltjf9bEOK/9Re71Q3vezfTVERx4hA5l37FQLOKeyQfEl7n7DtwrpT1RZcKzTavvSSVSzpfGUas0bRNeQOSxVcv+KV02r93OX16Zyul/LGr//2xVRoTDqz0HjNTRJCmK9QIZKa7YMsJCyfWcBpESJHL9J+nDKjsJ+lYuk5YwORh7+WXGbuOkQLpCv6jaqYZ0sfEtVlZwVlPOVzQi3CchyG1D93Cu8ddb7cFgZN+Gx4sQX0tK1XR8lO/nhxcZzqa/ClY4ubjQx701LPed+UCxg7C8MshIsND2uU4ARYpBn1ovlUHlB0ZrpXnMwCyVDMPIl9RpyJpL6YCPr7mE6AnJS0s3CHuFFMju2pmWp5IdlArXgcvbMh9ib1Eh3qZc5SjAbHOEqSnreU6wXHosRN8gJTSggr0KMsYis5aaUYY19aEFifbXd+a9dhGoN0vqNOz83oHqXyKmCCoXbR0xt/4guBCDls/nxC68N4wpO5sjCnn+H3WeKD1YmK6DtOzRH5Tu/lHeXa3gpjlSYzA7H3SscZV7fejjEcBnH63fLYPX8yzlFPfjlKq/fwFj6fkq11gCkSDZPzHUtdkVIU57CCdlog0jcDZ8WKmpqdnMB7shQuvH8dlof87bZqDSGGIYxb+EUTr+AFUdMrV7PBTvUC1fY1X3nX1zdWS4Kh05bDtMX9PcDBCq4YPsknyl7TfERY2uZhG8xO60Uj2SPD9+Lj8avXAiatxRMySkUQa3RGOBpCDItHEu1nOtyrzDjfo5UhWClFCaZwwiCrDoAsQrmbDuMAKTJz6LB5ygalwM0KgdPMgRboLVgQNag03PiH6NqgY8YshTYEjCJyutk0g4IHa4lVYvTINveuDBl0wU1gt3SLe39Nsk/3fotUdFLmHT9U78g8mrQQAOCY5n5zeN6dkNdcxZGwPNHL1WrYffpinXA2Z6pmUFC/wG9GVKgFNA4EeipKViYDPn5gOFSwQAqIjvplmn5QDEY9RH51zGQW4PV/d1c95gLYn8I7Zzl6Gu3GybaUOgDx0ibUo+JQET499Pw6TPXPpO/GKnRhZQ6cactmaU8vLsLFEY48q34oqxcO6aw0+8uM7dlF2TG/BxV4ynS9gBab4JobvHf/cXLE9WG1/5y9EzWHeE4oq27wvJ6IJsD5P1gs6/HFtELDbtopzUVljeTq3ZH37iuWAdG2IaHdlenWtIqGOt+NYn0Fryj908pv2Q9PLyZQT X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PN0P287MB2843.INDP287.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(52116014)(7416014)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-Ant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po1n045KnrfbzT4OK4Biz5Ev/dz76Xlo1hsFBYOXgwdIIz9mBXdeuWTOiuNhJs3jpWEhxfiZvLjmVxSjFYjmJCNJe2sDl/gU8ojR9HRMe1E8SIEwHCeYXW0ney8we0k7embjvF6v6daAw0mZPTIor/KJCa/zTecwcvXvHnZp36V979qZxrJ2k5grCJ12LwXTXmJI4XD2UHVolEHsclGfF6WCMgdKyqx/UkXA1NW9krJjbpeDSZcmqKzXTpvAiOu0nQ4qLyEBi7EWyzRUt3P9JeDY9DKTYKWluJUPPA8g0CrEthYV072LQmqZAOvjgTPoyuza8KXYOR09UB5bH8/tc8k7etyiKVHHUSiKLbozuwnvjJOMCfq9k07eI6NmEWfvas9xoOAj4L9vQlIPO03YtkTnR67aGlzLdzDvTL24J4TUxQgLcTwyHG+1KioJlvwtRms4sQOs2PJR7kNkeBFlhgrd/8ONAFcbhEF5sF998Lxo9yChP8WZ2T4WiSIiFkHUgIsdRjIf4pwv9r96tlKuqr46VzjkHLO/4EHkkXVI0fDSzlPospwByt8bnn0= X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: 5e1c5b9c-c4dc-402f-a340-08dd23e23b16 X-MS-Exchange-CrossTenant-AuthSource: PN0P287MB2843.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Dec 2024 06:14:31.8768 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7ec5089e-a433-4bd1-a638-82ee62e21d37 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xP0/Zcn7au2leUOuk1bZ3HRt/UINSPXegYmIyz4vluKopJeIcw18hECiHwt66kLG17PTjNNyN/TpIG1ceQQ56xFRWs47r78frqgNTgZVi4c4U26bX/2EiTpbKMAU+pna X-MS-Exchange-Transport-CrossTenantHeadersStamped: MA0P287MB0331 Add Support for OPT3004 Digital ambient light sensor (ALS) with increased angular IR rejection The OPT3004 sensor shares the same functionality and scale range as the OPT3001. This Adds the compatible string for OPT3004, enabling the driver to support it without any functional changes. Datasheet: https://www.ti.com/lit/gpn/opt3004 Tested-by: Hardevsinh Palaniya Signed-off-by: Hardevsinh Palaniya --- drivers/iio/light/Kconfig | 3 ++- drivers/iio/light/opt3001.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig index 29ffa8491927..748c8c2cd3e7 100644 --- a/drivers/iio/light/Kconfig +++ b/drivers/iio/light/Kconfig @@ -475,7 +475,8 @@ config OPT3001 depends on I2C help If you say Y or M here, you get support for Texas Instruments - OPT3001 Ambient Light Sensor, OPT3002 Light-to-Digital Sensor. + OPT3001 Ambient Light Sensor, OPT3002 Light-to-Digital Sensor, + OPT3004 Digital ambient light sensor. If built as a dynamically linked module, it will be called opt3001. diff --git a/drivers/iio/light/opt3001.c b/drivers/iio/light/opt3001.c index 65b295877b41..542af8612d34 100644 --- a/drivers/iio/light/opt3001.c +++ b/drivers/iio/light/opt3001.c @@ -949,6 +949,7 @@ static const struct opt3001_chip_info opt3002_chip_information = { static const struct i2c_device_id opt3001_id[] = { { "opt3001", (kernel_ulong_t)&opt3001_chip_information }, { "opt3002", (kernel_ulong_t)&opt3002_chip_information }, + { "opt3004", (kernel_ulong_t)&opt3001_chip_information }, { } /* Terminating Entry */ }; MODULE_DEVICE_TABLE(i2c, opt3001_id); @@ -956,6 +957,7 @@ MODULE_DEVICE_TABLE(i2c, opt3001_id); static const struct of_device_id opt3001_of_match[] = { { .compatible = "ti,opt3001", .data = &opt3001_chip_information }, { .compatible = "ti,opt3002", .data = &opt3002_chip_information }, + { .compatible = "ti,opt3004", .data = &opt3001_chip_information }, { } }; MODULE_DEVICE_TABLE(of, opt3001_of_match);