From patchwork Mon Sep 2 16:38:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 1979694 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=cherry.de header.i=@cherry.de header.a=rsa-sha256 header.s=selector1 header.b=ZDQXZaZx; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=devicetree+bounces-99101-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WyDwV05dlz1yg9 for ; Tue, 3 Sep 2024 02:38:49 +1000 (AEST) 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 36E41B21978 for ; Mon, 2 Sep 2024 16:38:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EDC431A265B; Mon, 2 Sep 2024 16:38:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b="ZDQXZaZx" X-Original-To: devicetree@vger.kernel.org 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 506DF3B1AC; Mon, 2 Sep 2024 16:38:36 +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=1725295121; cv=fail; b=kD72Ao91PT/a3Ak2D7kkkIICTd7Mb8XJlQRiBAm9hfbSXT/OiBuwDhC6FCRicoeBzYi9yb4P4Zyu42UkwXuJhqXy5/BDZ1vrjVLz9ebqZuzHA0EnCLsHmZrTI6n3AMd9TxM0sDCOtMbAA/omtBg+FW10O9T+5F+4V3i4M6ITZaI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725295121; c=relaxed/simple; bh=SfE8/mJSj688fz7/D9o92rF+AocyZF/L3sDEh7JPBVo=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=BP179XaeEBPkAXPhXwxu4qIkBHO26hXCh5S8jigKWyc2lR4owiBqOPpE9KYUuJ1s0d+DmHiDSq9HWzR+jn/KK9tOYWhjr50OnWoNBORw+gEZZMonnrmajCvC1O2SwKYoqd8RiBqli7I83TALUaVy0YnKaBjJRq6WdQkoWlY3YCM= 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=ZDQXZaZx; 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=b+CBAbf9qtrOLnLCtD2iu9pYrUJd8IiiZ+rvpDDFoMrAsMT9CfWxzhDfuNZasIENpMo8swEvazMtLQch/RC94oJPvojZFtFrGZtwt2CcYOsnDjWVzTESpQoBk9/l9HVNfLhzWECo9qCgcVLSwR3Bhr5+2gdrud5RKsNECtPPimT/Z9iyomZVTqpjjGDb7bziS1uS70qMnGg05O2Ne+jjt/k8PCJigAgtPB/bxhYUO4JkwNydfp3DfzDJeqkJ6qwJgM94zKhT39MzxH+G3x7ZbnkWUzm4dlxpK37cxrHh8JU58KwtXPY2H1hqja39P6IALWAHD54cNDzosHG375Oe/g== 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=rcoef2dM8l/6IOP+6VXDoZrZ0qTu1WQx0TD6c7JIpl0=; b=ojL3Be4ZZV6lI8hsM6WLzVl48vjpat8X80oXTM+s+XhzV1joPCYH0K/8wXRHiU1Tt8Ih56sjmMo2BDW2w9zNI+qZYKPKcjWSNVxa+Mqqxx2hUABojcqL7QkhKhxV6B1FD2+Pf7Q06M8zFkYvlbcufMN/ptt77ClsH1RGI5ryCnhpvBiPYf4W9ALKjEMFGdD7IgL5gYiDIcfZYmryfLMT7513qIkUd4MAN0MMX0g/woi+0K/9Xqsfg3P+VvIkQrln9VRxYoppo9rHA2gzOZ5FIKmvRpoQyHlddyVdVHqWLVf/rZopTzn9vjPi+IoI0giWY6reIiWbgEuz9zWEYtrQXQ== 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=rcoef2dM8l/6IOP+6VXDoZrZ0qTu1WQx0TD6c7JIpl0=; b=ZDQXZaZx05noz2z/2FTTWaAKDZwr7KyztwvD6MZBb97d8rUAeW42NPnwtzO8tXPTpQqGFcuBs6/Zq4jI3li/23KdJJYt51ZNjZHMHi9Xuc7JeEeZ9zGNqF6QOk9ertzEmd/Vlnpsl1Ii9gilQzoBYT8/VV0t1veKxRbGwcxbRmw= 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:33 +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:33 +0000 From: Farouk Bouabid Date: Mon, 02 Sep 2024 18:38:14 +0200 Subject: [PATCH v7 1/8] dt-bindings: i2c: add support for tsd,mule-i2c-mux Message-Id: <20240902-dev-mule-i2c-mux-v7-1-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, Wolfram Sang 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: devicetree@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: 43064fc0-cf52-455b-2cfd-08dccb6daf9c 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?c7qNSrZ8/IEW5Kt/yB0LuJGconcrakh?= =?utf-8?q?6G38sQ/H6+DUcCnpHHJMdXza53QvDPiSgAp4cQXZKhJvnBK9gxcEpeMi+f/m/fY1T?= =?utf-8?q?qeDgI8BA4zzSYyThDfv8VXLUrcxLmQ+rcLczSZ2FZjgmWBRL6B8caahbWCPz61tdd?= =?utf-8?q?9eJ666aEXymBGYbvNsm0pVXVZgZ8/yP+F86ULJEwH/E5bMPS0YphdodcnZyCCOSth?= =?utf-8?q?VCdsPRuLzib2h8Wvu/nPGGas21FHYRlBAh99J+3/i1aPQgfBFcpuuedrprrKmhExu?= =?utf-8?q?ZdaBkg/hbOtYjpV7puh5TszwkcAW0Dh8A91c1ZOwBbyyRiaKqIQV/RgeV6MKLbgkx?= =?utf-8?q?FCqa0hOdxjKSEucITfx10geoYflURWuR419oovYn64jendz41pecz4vywGcOiXi7D?= =?utf-8?q?CFydeqx9g/CEYfN9Ld9kZIiSfdNoveRDGk8dyXRdKnMb5qTqXxJjem1m/FLC1nE+r?= =?utf-8?q?IE1wfW8101lMmM/Uu4mQBDWsDfUOnmf2bffeLTYex024Kty4sczdDYSu2N0GpI0/q?= =?utf-8?q?z46sacw6Q6XtL0IYnwl/7JYEC1EqgjRD4rCMdHZ6fQVrYdbROSoiYG5aySKVbw8bj?= =?utf-8?q?JfN6eAvo+qeiMxBqvv/hjX6hZ3StRbMcId5VztFOzsa5TsxxZg0yo6G+UDPJZ/HhR?= =?utf-8?q?pax0bJzLLeMrmlhoxh3muCRiN9FT3K3RzkjoYP/hZX27DUp60EFexZfAD6be8eE+R?= =?utf-8?q?GZVu1SQDexy/q+ogL22k4eo1w5u/2Q6vxyRauYw0K4Cvy4Boc60K0WsiLBX7e87Vr?= =?utf-8?q?7hixjerEOeZiq0Je72LLLEpli+NiMBqS2epbi4s3RUvHPumjKytLjqN8DYz8SGTsS?= =?utf-8?q?YFmYSZm8+XHO5VTiZwvQHoJasofyj1WTcNGqzyZ5rlMsj+F1WGPITjELSGcMft/pO?= =?utf-8?q?t9UZRb9uGGSBHatWumF3/mXAgEE4+MqF0xnt9jjtwZAjkBRBZvKTa/hVsYkuHgpZo?= =?utf-8?q?38Exb0FjUYyDA+wVW7p6ROcrFqSqg81hZjSG8iwPV4TlcIRTEuas/5KV/qOkualjh?= =?utf-8?q?X4EZPBvhEvgooBv27fABMMW3/ccpAj+ssqrNp/RKtr/zbuU1/QmdqpxN7jDMDE+fh?= =?utf-8?q?wImfKbrPX8eAqe2yV+/HpdSe2QO5XLU248wK8ggRCcmw+M9056GA4thnKu+sDmDpJ?= =?utf-8?q?Jk6bP2qDrGTqw9YOliA1bCrQAxdS8WRbG5wx5gbl7QNjtDETojHsM0xts3oW6R40i?= =?utf-8?q?BFCH0gqUy9ZGrDLyfFkZPXN/a+K96mPjjlU81Vc3znnO8yRowA8ZdHj7gHHrL7cLY?= =?utf-8?q?TUakMMcExMPOkaHG6vOBijC0eatVyldK/AFQAZgwwc3KRVjtgKaMpnL8=3D?= 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?8+XER1LDoYz/XoggFPxkukduw7Wu?= =?utf-8?q?ILLD8auYOXknLqg50C0Rl4hokHnnNaBbUFxPPFg80hN805gTKcrdGnLrAqAvqWnCU?= =?utf-8?q?PjSxrCDD48+aKw5n0nWnHdAcufWlB1VRNARP4ikuRm+pRNzevF1VlD8u0E4i/WaNw?= =?utf-8?q?DVtJh2BfPPOcVytXOaRuJtGLgtMyj9/a++rNXpQtEwZNOJrswSXW2wD/ZDbsL9O0L?= =?utf-8?q?7auBvjHY0WJ8ZPtMsG8XJPVvFX/GtMfEVQj8z1lfb4N9hPECqJLb1+ylLwdJgEj+l?= =?utf-8?q?q0gpYBxZcFvuiyLeU6MCXJeGq31G9zHRpZPL9yhcP98ddbOBILzFrBj0j4gsHr3ae?= =?utf-8?q?Ll7NDvzEyms2zwLtQ5h0Z2SK/wD+RV8xXKBlbqH7jne+WIDatasdBhdtiRDrKa8Gm?= =?utf-8?q?9ZNTV74MzDkX1n/bcV/vMEy4uoGEbwxSRB2L7qG2ObxxGGMgk0P/c5/HfawsRAqCl?= =?utf-8?q?b1HOpAr/3pd6jDHN2x4J2NQuMYACPNf4jSVfOknr0qZPG06pEu8hTsR/FfLyDDT3f?= =?utf-8?q?mQInI6nKtjDquyxLktDKP0SHsSGmPDnQ2pTJ43x1v/jcWlUoLjEJSKimYmUqjM5iw?= =?utf-8?q?/clcjQyAmcK9wmCZt2CZnIjOhgp+2t9HEsaBLXKCWdigByZIqTmUEgs5FuYoRYNXv?= =?utf-8?q?DdR6Ltk46346ZjQCELH/uAuEVLzb1laHbJz0rFcTmMagxsuZ5nXyZpAxyCSQ2tBs/?= =?utf-8?q?usbvy7OTmyBwjSubD4Y3A34c2A7P0JK5NRGSsiY5dLPwlN1Hb65TisS8bAdKStOeY?= =?utf-8?q?ZaXEZEm/5i+d4EobFbyYvrvD9+agGIwjTqh5Hdh9j/AVYwcrYXsnwVEAyhr8+90SR?= =?utf-8?q?pyq3f3DJPeWrQTSgnRdmXfH1pGV2aRKxxpJg3SgI3OL7+JdIWyTUwgf5BvhBMVSI7?= =?utf-8?q?EoQJsOC5frEL/f6HzFX2bVLd+cr0pcmjDszflI1P6Ab2CIPMd8HcudCp7Yenj2Wr/?= =?utf-8?q?NxC9RwCQKvHx5dztKgJWbeeALGWkMqRLxCOl+8Z5feoOshJSWYP5gLxK4q+fjzkP2?= =?utf-8?q?dom0Ge4hL7WaQ3zg914HpzHPttta2Y3xhl1DtcQsIlGhRIsWj329GUUAqSnaNuPAj?= =?utf-8?q?g0LYcveEdxMwV6Mrkk2hKPaMJWdMRq+9mdqezO8dxSM1jBseri9RfvSCCzw1i+HM+?= =?utf-8?q?FftpGmUCLOx7g8EQzgpmmPyvOtt5r8znqCiWXLrMZLzybWa1VSqLcshYrmgxoKdDa?= =?utf-8?q?G3PNXG48aqhxnpJjIJanFL2iexJYRS5KYHVm6ZUJ9YXBeyWO7dpU1DflIcCumM8Aw?= =?utf-8?q?2riO52jtEOkEJVSFLX0vsS0ctU4mrtB2E5MWShqzyYPr5/Tu49Q705oOxfbIm0c4A?= =?utf-8?q?FAvzJ9VjWUKdn1+62GARpXRl4wSjHuR0pRWep0RFqjxVZ2eNuDs18WXjZ6oNhNA2e?= =?utf-8?q?Oko/trSuBywAqq75IznpMTkgahsmkhzHy2n2pOHBKx86xn1b29j8IIqhFRG/p/Si7?= =?utf-8?q?WSndL7Sc4SPOGxwC+xNxDF6DEDBsnekJixKYqESrYOMTOHePkWqCILa6x8/y2glxL?= =?utf-8?q?hDjOnGw4gNinJTIn3g3i9NP12bAydaVDGQ=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 43064fc0-cf52-455b-2cfd-08dccb6daf9c 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:33.8561 (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: IASnpBhMlf3nXnXArPXZ89HTaWVk461BbMkA8B6Sd2i7wSEhrQPhsjhIaS/AKRvKfyGO/2gPJjzyMJ+Qe2iynIlEu+2XQ2kDsMQnJ1N17lE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9645 Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among which devices that are reachable through an I2C-mux. The devices on the mux can be selected by writing the appropriate device number to an I2C config register. Reviewed-by: Rob Herring (Arm) Acked-by: Wolfram Sang Signed-off-by: Farouk Bouabid --- .../devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml b/Documentation/devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml new file mode 100644 index 000000000000..28139b676661 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/tsd,mule-i2c-mux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Theobroma Systems Mule I2C multiplexer + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +description: | + Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among + which devices that are reachable through an I2C-mux. The devices on the mux + can be selected by writing the appropriate device number to an I2C config + register. + + + +--------------------------------------------------+ + | Mule | + 0x18| +---------------+ | + -------->|Config register|----+ | + | +---------------+ | | + | V_ | + | | \ +--------+ | + | | \-------->| dev #0 | | + | | | +--------+ | + 0x6f| | M |-------->| dev #1 | | + ---------------------------->| U | +--------+ | + | | X |-------->| dev #2 | | + | | | +--------+ | + | | /-------->| dev #3 | | + | |__/ +--------+ | + +--------------------------------------------------+ + + +allOf: + - $ref: /schemas/i2c/i2c-mux.yaml# + +properties: + compatible: + const: tsd,mule-i2c-mux + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + 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>; + }; + }; + }; +... + 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: 1979699 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=cherry.de header.i=@cherry.de header.a=rsa-sha256 header.s=selector1 header.b=eAiQEdNH; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=139.178.88.99; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-99104-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [139.178.88.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WyDx43WfKz1yg9 for ; Tue, 3 Sep 2024 02:39:20 +1000 (AEST) 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BA2FF283B7A for ; Mon, 2 Sep 2024 16:39:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E62C81C62B6; Mon, 2 Sep 2024 16:38:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b="eAiQEdNH" X-Original-To: devicetree@vger.kernel.org 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 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: devicetree@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?ZldEykz1Wz0N1ILQa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JoiLe+H+h7y7XJ7g+KmoaDYDBW2iylydcEfSejQ0tymcG3QpQIlPjrV?= =?utf-8?q?TIcdVRBVEPf16xPqDW1fgKqiixVJgcYEn3MEGcxAbwYtTFg/sIm/1xt8/a9XCkDuu?= =?utf-8?q?ukCfv+ZSYcDuEj4RAbOzbLEQsXCVQLM5kDYm38BcqXsYd5vSEqVBKPD2Ko0MKJO5+?= =?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?/BF554oxZoJVfCKje9kdA9di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Q0S6yusb0In2kJdFrwh7/GrmkzuTeeNR6znea56BoSytzEFV?= =?utf-8?q?LvzjcXq+HSiLyICO0usmPVHKhQorMX5Nyu/WfTtG5M28xjsa+X+7SvjFYCW2BEpck?= =?utf-8?q?YE6000XuyAoYc2wOtbA2tiVyPahDCZph9WvMp3cVq4j7lt+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