From patchwork Thu Jul 25 13:27:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 1964760 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=Tp6wdJI6; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-88126-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WVBXx1573z1yY9 for ; Thu, 25 Jul 2024 23:28:33 +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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 53C2B1C2108D for ; Thu, 25 Jul 2024 13:28:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 372DC19B3D3; Thu, 25 Jul 2024 13:28:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b="Tp6wdJI6" X-Original-To: devicetree@vger.kernel.org Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2103.outbound.protection.outlook.com [40.107.249.103]) (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 1B27DC8DF; Thu, 25 Jul 2024 13:28:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.103 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914103; cv=fail; b=mljFZRUY3VEAfFlJzRtrnhMDZBb8hGbUDtvGdwKM1Yg39CdLQDiJkTlPxiP64SOutBvv/42wEA5xY6KtpBauoFq7BvBBg07kLbVStLCEC5yToi7XU5WqrexjsBtUbRYCmOP6NufuTQDQMly2jwWGhoqu2obFZFtll5yXvLba6e0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914103; c=relaxed/simple; bh=lOV3HE0uSbeu/p6G5nGyp06dKB1oUIhTixyTm0q16Ew=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=eNI6x8p9mgM4gDLY/l1B4MORrXs+QnRyD51WxzBlqltvmT+grE8U2SwH6chSg1cKNcq4khSD+jrGHlt8mYF3a8VMijLTwvbH+OqLrGydGYfs/IbcJVnxfHfgCw0ObmmRFbWWspVYVM6615s5LJtNM/i1NHKw63ZD2Z6eOv+sA7s= 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=Tp6wdJI6; arc=fail smtp.client-ip=40.107.249.103 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=EqO0hQ6M9AGoR1A3cvmttApuAslsbjFahD+ItQyOk7RwJHGs0M9lMcEPyqzf8pQv7PGhy6SWsdB3VjPIzoX+nJjhlYCiW1Htxt6GbxQKPaVILGCgwSuHV/EF2yCxDpSUtgOTrnTXqmjJB7gHivJy61MMwx+znuFulpoF+uG2DTZe1lUJOr7focvcquwOOm0GToWApzJXAoZBTScXTq7e/NQ1HfV5ARfg4EBMN3isBFh2xTIo1Wbqu07CUfAQNtWKV4nyip9rZGe8fGM1XfOWIgLj51ijswEdJhCUwQFvs7cLZfWGYWVuQTizLLiQXQWaeqWCLKqUmsxW3SxUPwDLTw== 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=pJnjelccAqGsu7IfgKRzMYfmKCxrKBYH0bERLOYy5IY=; b=P7D9VxLA4ZyKX0Y9Q4xSfxogKN7lKQ9R8ZjE/1RWb8QZGF13SpFewkDXzZgLG52h+enfbVCC1kgVcFbk9LBvTpSXyv5ox1gHX+3VRi29k+HvDnu8JPmZwwgCE10cgBdvJfcwk5Jn2CtWYIVG/7j0Ip+0TmspMbjHd037Q9RQDi/LvXp44mtXfDb2MehQTcuf6n/rr+2QSi5oB5vRFnwR4GueIEGcz2Rm/GZT2Ws+bnQg2gPqVwVGtZ0PQlA3vyLM7DrRQL36sipSqSLQcfjKs1j7upX0XU2Gxbgmwy3rHVIr0ZhArWttOgLmGh2T5IK7Lhrzv9CuXFi5rjoiqiWuKw== 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=pJnjelccAqGsu7IfgKRzMYfmKCxrKBYH0bERLOYy5IY=; b=Tp6wdJI6zkx7geDeY6dm9pF8JZD8tw83xazhQgnRDyISmFNlV93jRk0xCZUuJWUvVi4aFe0sTQFFOXM32GrrveHR4xeOYN9UwAkfMxozlrLlKfhjJt0zUMI/Uj/s9ZNCX4kRfokmKejtO0tmjNJY9ivRoSeh3vXHdl2ZxHAKbBw= 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 PAXPR04MB8287.eurprd04.prod.outlook.com (2603:10a6:102:1c4::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.20; Thu, 25 Jul 2024 13:28:16 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%4]) with mapi id 15.20.7784.016; Thu, 25 Jul 2024 13:28:15 +0000 From: Farouk Bouabid Date: Thu, 25 Jul 2024 15:27:47 +0200 Subject: [PATCH v6 1/8] dt-bindings: i2c: add support for tsd,mule-i2c-mux Message-Id: <20240725-dev-mule-i2c-mux-v6-1-f9f6d7b60fb2@cherry.de> References: <20240725-dev-mule-i2c-mux-v6-0-f9f6d7b60fb2@cherry.de> In-Reply-To: <20240725-dev-mule-i2c-mux-v6-0-f9f6d7b60fb2@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.14.0 X-ClientProxiedBy: VI1P189CA0008.EURP189.PROD.OUTLOOK.COM (2603:10a6:802:2a::21) 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_|PAXPR04MB8287:EE_ X-MS-Office365-Filtering-Correlation-Id: fd26d9c8-dcf7-478e-9872-08dcacada3dd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|52116014|1800799024|366016|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?xFWknPpomZT0o6MW0d+/FuYpgxv8Edr?= =?utf-8?q?cgqYOr0bXgQUw95BHXJpzVfQEa8dBLriah7Vf3WKVrhw1j/X8KW1jsWewRH0FvHeq?= =?utf-8?q?ErDyQjQ8ypmVRG6h37JMjkfiLtgm2de88hDblWxxkZ1brcGSeiZLODPkAMA8sdz9B?= =?utf-8?q?XVVDsSVzzjdsJiMk5X5qg6OT1IfG5NP8kTAtzAminzXJo+ghwx6lQ138z17HzHm+e?= =?utf-8?q?HstodOaQx92tPdATzL8+ODJBBn/teWAf3AbQgNdD7Zo9W+OMns0cEmgf4b5u5jOU/?= =?utf-8?q?mHkiRFngaztqj9sSRSEr4LDaFruGyCHfjrw5MhG/g9jmoO1Vbk9c+gDM5ZkHjHyF5?= =?utf-8?q?NV5FOStW9rVCXSW3ybRepn9iVC2lc1SopIWFyqI7ljgIvYuzSUAW/3np1ZfgPI6ff?= =?utf-8?q?DeY4xTE6xvwP9FSemoBPnfHMrwwBqISQ5qZQcBhJkT7nLfYbm3IFVk7bHm1eOkTYp?= =?utf-8?q?uH/3QHY6akfn2nWpAZkptRusupiuWJReVwu+NVC5yWZxmlKFlh1/L81Rr1nvprhOM?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prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(52116014)(1800799024)(366016)(38350700014)(921020);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?NbxUa2EvpOWXwGcqc0M42GfHnUe6?= =?utf-8?q?L+9XSuikYCKdW85eqK5xTgPkfNmTAQzm5/BP1Vb54QXycJd3vSv4yY5Y2u423NeWe?= =?utf-8?q?Sk7F4KVVZSrPLyvzeofpDAxEOrofDsiWZDOUcuYd9OBWJIMo3IWS+X08LuePjecXr?= =?utf-8?q?uTwhrokIIRJ+sEBxvChLR591vlOn23se2wffbHPJ2DGJPYlRTAL/Sz8W/nR1WROig?= =?utf-8?q?LAmUsrn82nhMqpBQKUhs79tyuZDk3lEFOtEH1YTZeh3Tsh2cI8pEPfkt3qCYxhxAH?= =?utf-8?q?WEoPtCk3il/PD+PcrD9xv9h//t3ybNQ0kClB5ySDGxACen5I09dYSlVVinFy7LLKb?= =?utf-8?q?qKUgHIPIEQT330wR9Uxne4aXgZKJ+Jy3bCJCQOv1dvoRDYBxVKnidVEJDZY6UjM5b?= =?utf-8?q?9+9mFxHxd/Kfn0DItXsBUbnbsm29V4LsCzdxlovSxOuPV5leA4VDG7Jrondx/cnXE?= =?utf-8?q?4FNpi/UDj1PcwZfczwckQUeI3jOy8zK+mZHpu2gy+sPDc1rX/7ec+6Nq8FmOe7EOZ?= =?utf-8?q?npK2k7fdIiwRh5OiOnJV6EzZAld+RwZUDem8dgeSIVpHJvH2nFQkHFuPRueDJx6Su?= =?utf-8?q?ga7xlUDfhlEV4ithJQrQ9hTrbyqv73qW4jKqODLoAouJdqwAstRXllPqL3gWIhTt5?= =?utf-8?q?TsyAv3h/j1uAjwZpBgr/Ztiz8EqB7WEmlrKU8LwzhnPHjKuPSufHF5jGSY9DS3HAs?= =?utf-8?q?JhDINfW253Lkd8d7dbT+dNRUEaHZwevZrF7CvPEG+/wxg3zyaKfD2ZLNSg1wSD7sZ?= =?utf-8?q?hDLlAWlJhsXbvBSOK9m5GH2mqm3rL5LVqg62Mr7PgX91MKwYW59/cgRbDox8k1dxi?= =?utf-8?q?ovH1xE7xeMrPtibEHWvtpgOM5MVoISp4oJpO8UNxolRVluJ0bpl3yIyhsp7Z/5hyt?= =?utf-8?q?fdZ74NpyTJpev+lb700ybQNgKbuUHh9wMB/6kQJaZoC5h5tU84NS22yxIS62O15WP?= =?utf-8?q?+K5IEDWSLc459DrdJXyXolCMRFOVxlueFVdj4YLLJJRfqnbat/BXO9EC9S25F4A8R?= =?utf-8?q?4hdCHyLTPaJyfvbe1AZT74F6XRPjBZLm+vLN4Lhs/NDf9VRXdeyd6EQlTgEo7001w?= =?utf-8?q?U/AxhJFBjxdDwV9r04yuQvQRLer1miULxPdW6sDySYFwWrbNtzBhjN/94Jkbx4ybo?= =?utf-8?q?aHP2czm4QncWIYeZ+YBnng1L5qHHslwsv/9FyOepON8C8AJrfzDnZrjER4szlBS1h?= =?utf-8?q?cGM4k3JXXVEtGZa83KZqQHoISzM8nH9ZB7UbP3FAbK4iCnRz1/JkV7H+Lmjj0NE0r?= =?utf-8?q?qGJywii8VfVrQ1/nNC94gK2JEdnEnsmdWg6uI4R8VN3ZJRAR+82Z2Pzn1q+9c4kHD?= =?utf-8?q?HjJj5IZ/LgiZ7x4mQHfI86kyLNa5XlDVQYHnMYjHVlkybakSrMzul+eK6U7BRsII/?= =?utf-8?q?WqwTLbDLdoICubcAPbyHkuXJGowlyc18I51zkD6pF7+oHbdGWRiFFrr9EpQg2/3Wf?= =?utf-8?q?1+GSwpLJ207niFBkbQcDU4ChWwWC3Udm9lIDgBYnlnEWczcoFpJV4n6dOu9K4Ew7J?= =?utf-8?q?Ly2AdeFw4zAQcS0Lxy2TpMuHMEDu9oUiHg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: fd26d9c8-dcf7-478e-9872-08dcacada3dd X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2024 13:28:15.9019 (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: D5B7c3MikPdCAGIvajGfQUXy44zCTns9LMAZvuSYfXaL4u5qzLkFI7/mvEb95QllhM+lPHqN1ZYLy+tp4Ir++jaAGV/aA06dhqXwkrG+DMI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8287 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) Signed-off-by: Farouk Bouabid Acked-by: Wolfram Sang --- .../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>; + }; + }; + }; +... +