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>; + }; + }; + }; +... +