From patchwork Mon Sep 2 16:38:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 824738 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2042.outbound.protection.outlook.com [40.107.20.42]) (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 9C91F1AB6DE; Mon, 2 Sep 2024 16:38:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.42 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725295126; cv=fail; b=lePJKddzrdB9uc4RincziGf+ce6A8ybNtEAnHsmBQ6DC5dowVOusWx1CMkGBW/U6MmbtTNdzNUpfroyNUBkaAWApCxNFPzpYzO0BZGpd02LNegsmOZod0PDipVVtMzjDuzj6zCuDSAQ2fUkRebf9zDpt9Tw00HdXVAxYpookq+Q= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725295126; c=relaxed/simple; bh=GGGzzx4ZW0A16uCMEUJBkPezYZy6d2rraWET88P/LQo=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=RSkTEmJ/640ufjUloJsBZf0oUxIdCjVWL9u025213Ti0MvIhotd7mjnXkrkAyNvba4lFcPgJgkWvUG+3qapBAhxPai/G8TIG3NiXxLJaVxk6WE84ikbM6jVTk0fwJXRr4bIEJ2+WSNVVJ95FxRQJtyLoc6m+JyM7OcmBDXMlbyY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cherry.de; spf=pass smtp.mailfrom=cherry.de; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b=eAiQEdNH; arc=fail smtp.client-ip=40.107.20.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cherry.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cherry.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b="eAiQEdNH" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ntW+LTJXvrzpfjiCkSuVlnGV7d7sO7SAGAdNGeWV923UqwBQZljDPdLZ8HE+p80eVB29n3n2qA+TeSWLbCdc8c08WIMSewdRrLDASXfNIfm038HaHvujnANVbDkyPQxur7unqKpvEOOj/W6JNOHlduHYh+DXqvNcEbzglgRp1OkVUZ6aucN61rnN/mzbnI1lp8VY3cQJe65nYPaocwno0fzVP8lzNFe/0HLDHt34uk7xVNV+1lMSrxROdo0TnYTtHOoyKo5DQYv59rNl6ApMgTrYxW1yA0IoWOn8h70I5A/bb8bHaBGlVTrKgG0r9WsDCK2zjJf2AWuqeWABjUvSGQ== 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=u+d8kkbjE30ReXzbzXlDkTY6YH4knVAS4Xf0qwtzQOI=; b=Hyv/aNhZOExo/Bqd9L7OFjhcwWN5Ws9kcIl4Crb37lnKJsB2+hGIz5lDPINhFbsd8QgjTHNfvEsd32nRD67dteyna5ed5ekmALMMXCflzm8295cNXMdyvZG9dUw5/EFGegxM2689AqgtJA8i8PgNUjaIXxOKpIBUP5hKUCAttirDs53qsUpz/+oy6gIUx0QzZk0me8O1drigQ5l90U7uuA0JGLAZcSU6aC4CsN15nC1VtkxccFgp7SUC3CTiw56JoynPW8QqFY4klaJx2YVeOniCERl1BtS5OF1nwf8lfCVn7i8moNndWDjzJxa1QksKBbmPirLJG8/eAGh7lRNSXA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cherry.de; dmarc=pass action=none header.from=cherry.de; dkim=pass header.d=cherry.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cherry.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u+d8kkbjE30ReXzbzXlDkTY6YH4knVAS4Xf0qwtzQOI=; b=eAiQEdNHkAo3+WyhNTrx4mLv1WazR8uXHxzO/pd8jtCNMY6TcTGh/QDxeAd8R52XGVH7/xnxoSyk+5ROaFaPskzE0S1WHJeLB//PVwIrLaejJ97YaKeZVCtCojPo1r7L19K0sOx8fmiNqcqswHMKq2i6SYuabc1JvMwM4eMkQ2Y= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) by DB9PR04MB9645.eurprd04.prod.outlook.com (2603:10a6:10:309::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Mon, 2 Sep 2024 16:38:35 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%6]) with mapi id 15.20.7918.020; Mon, 2 Sep 2024 16:38:35 +0000 From: Farouk Bouabid Date: Mon, 02 Sep 2024 18:38:16 +0200 Subject: [PATCH v7 3/8] dt-bindings: hwmon: add support for ti,amc6821 Message-Id: <20240902-dev-mule-i2c-mux-v7-3-bf7b8f5385ed@cherry.de> References: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@cherry.de> In-Reply-To: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@cherry.de> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.15-dev-99b12 X-ClientProxiedBy: VI1PR0502CA0001.eurprd05.prod.outlook.com (2603:10a6:803:1::14) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DB9PR04MB9645:EE_ X-MS-Office365-Filtering-Correlation-Id: 14ea14d0-5290-4bfc-ee77-08dccb6db09f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?zeE+vQTCBeIy2JDcQYhdSm3LzrdxA5r?= =?utf-8?q?hdR+B56wke9DCqw78bLFq7toMqdIpS3LvdPeAEViZWTNGPu68UKFS1bQk2orUchlK?= =?utf-8?q?GFp9BrJkheVUAMl+ixzz0YOI4aAGCRbTRBhQGHD/gdd9RIvojASVigmVek0GoD1ao?= =?utf-8?q?Y7iRmHsUKS1c52SgiaPdTo9K6uCpLN0WubnDCBeRl3jVA/K9K7SzwP22wYTs+64i3?= =?utf-8?q?ZldEykz1Wz0N1ILQaNblInepUvW1fTRiPW6azOjYNyK1JyYLFQdrt5/o+esgMp4be?= =?utf-8?q?KpwK6KyWBh8LGhKqqqSrDFuUHuWn5HidbaBkLaWp+veGHaUI1gqpEZPreDESQ1a9i?= =?utf-8?q?9tFV9E4FRyizAZ7CqmhJK6tfBMyokgq/U2Lp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QsXCVQLM5kDYm38BcqXsYd5vSEqVBKPD2Ko0MKJO5+?= =?utf-8?q?TpJwwujm//AuL0YlezI1Bsr1eAne8FV1Nxj3M4i6oAKiZeQGgqvIkkhLSzxnIImXD?= =?utf-8?q?zQ415NcJGssj?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9562.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?bvMuz5I9ipJHaYIe7zISa0RkrjWj?= =?utf-8?q?jwBj+FLOZl7veA1XhrRHIjz2JyKLexbxtQahgKtz9VUzKPcK6l7OeCp36Kdqj3EhQ?= =?utf-8?q?AhGA08KJ/M1N9aGSH4c95tqJ/K/LEYnONmEFD62ukzIuH8vO0GYWiudY4FN8lsXm6?= =?utf-8?q?gPNHwi6ZW4q1MXQDYsZQ6hf84SDxpYboA8G97x4iUqfOOsgFSeTkEOilmVgW91Eqv?= =?utf-8?q?btCpQRzyBLLwqHqDzxOoZKyp5ao3tSstboLnO5+XzfPPbQzLksXMDlz5BbECIYQdd?= =?utf-8?q?M80o6JtijBQ2wK/gT3InO0rewVD/sqTmuk1C+Exwi0oIN2H3+U1R1BjUikt90bzlq?= =?utf-8?q?SCqy1hm4O7toSXcSF+l4vxU2l1MAzIwMMVD+lDMfmHe3i8cZdGd0binrPY/PasJN0?= =?utf-8?q?/BF554oxZoJVfCKje9kdA9di0WO+ILCcZ0O2k39cH0CY6OO5eBOm7OkaT/oCrumzj?= =?utf-8?q?XN7ZOnSVpW+T0DynfFUQZT17HD4K+XwdXRZlGztlduilTSCbGf6I8kiXddrC/YNsc?= =?utf-8?q?bncljQKfJ+Q2cOqHtYdQ4P3NaT20lYdPyvPXO4nk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q4j7lt+nwLYT1d6NfzmWKQdMk?= =?utf-8?q?BFn2V0wIFw4FE1EaUiB2b0tNKb4361I1Ik/ob3cKegndxsRF+aSb94Cyt5JbJFOpW?= =?utf-8?q?B6iegTkzW/6TXe5664U/pVYZNIDy7n+qYA=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 14ea14d0-5290-4bfc-ee77-08dccb6db09f X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 16:38:35.5496 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5e0e1b52-21b5-4e7b-83bb-514ec460677e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: B4Era+LE0+AgF7gV9IjayVGttwHIVACbNXkOG0Z9Ml4UxbagzZ7vjBcJ3e0hzkf4lhxPRAE5dby5azLpTn0Tyrq6i0P9P5JH5v8sXvW5cLk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9645 Add dt-bindings for amc6821 intelligent temperature monitor and pulse-width modulation (PWM) fan controller. Reviewed-by: Rob Herring (Arm) Signed-off-by: Farouk Bouabid --- Notes: Merge after patch 1 .../devicetree/bindings/hwmon/ti,amc6821.yaml | 86 ++++++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 86 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml b/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml new file mode 100644 index 000000000000..5d33f1a23d03 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml @@ -0,0 +1,86 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/ti,amc6821.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMC6821 Intelligent Temperature Monitor and PWM Fan Controller + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +description: + Intelligent temperature monitor and pulse-width modulation (PWM) fan + controller. + +properties: + compatible: + oneOf: + - items: + - const: tsd,mule + - const: ti,amc6821 + - const: ti,amc6821 + + reg: + maxItems: 1 + + i2c-mux: + type: object + +required: + - compatible + - reg + +if: + properties: + compatible: + contains: + const: tsd,mule + +then: + required: + - i2c-mux + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + }; + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fan@18 { + compatible = "tsd,mule", "ti,amc6821"; + reg = <0x18>; + + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 7913ca9b6b54..8ba53cc2672b 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -370,8 +370,6 @@ properties: - swir,mangoh-iotport-spi # Ambient Light Sensor with SMBUS/Two Wire Serial Interface - taos,tsl2550 - # Temperature Monitoring and Fan Control - - ti,amc6821 # Temperature and humidity sensor with i2c interface - ti,hdc1000 # Temperature and humidity sensor with i2c interface