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: 13741914 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b="Tp6wdJI6" 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: linux-hwmon@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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BykKlJ/yEwgEHBFpPhJzmRIwkiw4lbHB3PltKvjPlYlrS2QgFe7dit3HUnLmn3?= =?utf-8?q?SllfxvEAwMU/8A3+4YjvuNmoc+iczumjoics3yPUP5nBT5oQhYrGK/0c=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)(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+RwZUDem8dgeSIVpHJvH2n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EpQg2/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>; + }; + }; + }; +... + From patchwork Thu Jul 25 13:27:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13741918 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11020111.outbound.protection.outlook.com [52.101.69.111]) (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 3199D19B5B5; Thu, 25 Jul 2024 13:28:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.111 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914107; cv=fail; b=cvp8yzb3Zfq/42h9WoGrZfmzMVVcaTAMDzgIPRLULqwYx3lvVztlHVmDpCFpgo9B5pU6jQiYZBrDPr/GvCOo+3gm6MkpjdCUJONlGQp87H0WqQhumGE0AWQyzr/jR+tf2mx7VsNjgl87mEY4P2qryag0uf6OYmZdu2IawgRImUw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914107; c=relaxed/simple; bh=xUOzJhYgGi7tOD03S2/glWYlpwIkiosXRfldjdIrq0E=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=CAJUQ30Xy0HXNJPnH/nFFGX8L9EejCn+7kkgvqH1JaFCy7XxwAgD51+1LDj9Xq9kVggmWPhbsexfdK/ZTX6uAoq9QHQwPG46G2C6SYM7lidyfejUerL3RRcDJwrQDzyGQc+J+Kw96ZnLvqG5YFJFjy7dc36nC/Gb2DagWXWM7Dk= 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=le9aSJZL; arc=fail smtp.client-ip=52.101.69.111 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="le9aSJZL" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pMexg3paIUiOxdE1G6jqxq8cnRCu+DTNM0agRpYM5Notcn9GBe4fZ5SiQFlNf7/XEVjgGi7wsY9ge7I3AVOVuOI1FcXACpdmSwWhoiFq4WVIQOZPwQ9SKSIUPLT8GnM/3wj4ZW/bIzH4kG5aGA6FKx6Z4xV2to60qTFB5S/qggnMj/P1EOy7QQ1ieb3cZRkYeuzlQsV9zNDgnIAt7msVCjOTEizfswBXhqfKxl0oCBbT9DOfjS5EArY9iZPL+zqCsZ1N8oRjUpS2aCsY5wJ5SUomOSEDzeqi3P5M5S+lh5jG2gNvSwRiHF5a8LVS553xnoeIPRrHWMIoPfwk0ecFMA== 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=8M5rTS0hwBjxoUhV0wrTMNvLyx5reO/n4ovPpVOxKL8=; b=XIqU3s8D7FTo+kKbZ5um8tahpCTU1n0VsO63J6PDwNzmpMO23yTKIQpvNuK4PtwMkuvNAWDUU1wQzBgkjz1h/vfyUjx5tP4rdbPzvElNorQiG8g/hogwwZYTi6niptCPBpEdISz4UNPioyigFA6W40rSJobqhtkrud5qMDhkjWe1aKLl++5jsr85jCptYIwYwr6Rn/qWJO+m+kfT1Bk6RBNL80PK6tjcEo0jKU5zzrP0D7XLHztyefAvwDpQwP4/mj7vczXd7U1SpHCQmK8itydKyc1+7nOIlkzVWhnwwwPFr5Bbp1yItZ65riU3V+MCm/3pMeCmiEbrcD/FgQnOHg== 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=8M5rTS0hwBjxoUhV0wrTMNvLyx5reO/n4ovPpVOxKL8=; b=le9aSJZLwVyIdJUCQz2mE4B4ym+973yzTpKAKqhtU8G+Rq+PBZz6qk+kEmxLdHahiU7aTf39jtDnBUglvEKaEWQwmHU5cWJsq4dCmDOr2T1QcYnZzrLObkQeOi/LTpTugqS1gMZhAZM0Kn9so0mOzg0PXt4Bo0U8V+a8N9SWo/I= 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 DU4PR04MB10670.eurprd04.prod.outlook.com (2603:10a6:10:58d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 13:28:18 +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:16 +0000 From: Farouk Bouabid Date: Thu, 25 Jul 2024 15:27:48 +0200 Subject: [PATCH v6 2/8] i2c: muxes: add support for tsd,mule-i2c multiplexer Message-Id: <20240725-dev-mule-i2c-mux-v6-2-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: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DU4PR04MB10670:EE_ X-MS-Office365-Filtering-Correlation-Id: 6ae2cb55-40ec-4d8a-f682-08dcacada461 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?EofLyaLIM6lxv8Q0XJ+W+tds3E8W+Mj?= =?utf-8?q?42PK/erBy/vrJTuXuXfD+ufks991QQ4v0QBQTpwtNbYdqdeQg+6pTqnR53kbGlx0q?= =?utf-8?q?9nPflfy1qUD+A92yXXjixg1RRM0K5Dp2GIULX6EvnYhXVqxTDVC8IMDQJUk7awGmz?= =?utf-8?q?8cEx54mOaiufkl7tdkOHWLwIn9rfXSfpUxqSXQ4FwruaE5EO0nghF2xe76TLQD8YR?= =?utf-8?q?amMk/7J3zvdQdPEFXaG8ksIlL9RZce2VYQZp87gr/ObBunQvQAKOYvebGZWqyqFp+?= =?utf-8?q?ANhJv5vnXU2NheWJTc9OXFJYAciPqKGj+DSlhUBodJCBw++IhLDfKcM3dR3t8+Pze?= =?utf-8?q?egZYZoyZkPCd1AGgGwmR6DaiUHRvZZaMAPcDU/MRFDnGnGFEpYqXD9x7XfmQiEIfS?= =?utf-8?q?oFNdlQf/7HzkZ6vs3RU2tvLG3Ms/1kivmjzbh6VEs/eL0Z3v9BsF7qpuaOgFZ35mq?= =?utf-8?q?o5roKd183Smou9MS3teb5M4sVbVRHqylh3v/TohFFvxw8+Mg4ctIhGmgNfymBqNke?= =?utf-8?q?xc74jnfcXJoD1yJaICXR0XrTxU3giSedqhl8H5BtezEQzYxYs6t/y8pOqIqpPuA+7?= =?utf-8?q?gW4uC/g80KzJw5yQTDo6r0RgWhPlM5ltYPR2sBIY7b5V2dfpZU/jY5EN1diEezAaI?= =?utf-8?q?RsIjYnMNW+++5CLMvPzZipevuJ5eHPTNN3GnfSe8eKeRt3bQ0NZkT8NZnqya6cAJm?= =?utf-8?q?6u+k6xD1755JtFxMahTgzErwkQ3ZsTiaCMDUCtjDZlVHDVYGKVVYnG3PA1EbC9yVp?= =?utf-8?q?RjYVtfg6YVYaVXxxQFgJ+adOdfTzNcs1AhswRstyhpxJmzPeAN96izBTiB0FAuv+P?= =?utf-8?q?szoO0WSbfLFE1ZaipM6lLabVZaYxoLfyiQil88ecJZck3CFmE0SCrU9CdNuKX6lvB?= =?utf-8?q?Bmh9OUqTlj14NE6rDkPCBBLjyJ7UEt0rr9egX7qOxQz0xlK6UGUcYXnxNKcl+3pH3?= =?utf-8?q?QQyQ312AmRoEpWk9TL0lPmJu9XH2QJjMLAFYuTI0vvJgrHite0DXB/+PhpQvgcGG0?= =?utf-8?q?nqKb+9he4axyq18dlLkUpJD4jvLdGODch3nGHBnixvsCh9IbsZlUNlE2q1QTePANH?= =?utf-8?q?sqHnHbBD7NU7y8uXrcG61TxTBdrtbm6m+H9yrnxbi8AkGuUzZyfwdc3Ly5Fb/smpw?= =?utf-8?q?oHIb7jw8y4J6gCo0gZOckrjfXpLXFtHfWYonBzmfLVJmBIuhgPDfk+b7Gy1QZBgUT?= =?utf-8?q?OXwGzQHEcuZ4CNsnUCZYUOfRCs0pAMnMpNUR7ACt8DHKC4e9FO0Mi2pel5b8QBvDp?= =?utf-8?q?5Ejk7XAt/5qSma/VdqYHP/tJzR12YhomDO5ODNWknZfyY5pQpg6IJGshU2WwB7R72?= =?utf-8?q?uTTJME12G7BBjtcmLa2eOpomc+Hvd7RzmhkxuTUdfQX7N1pa1VrFlIM=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)(52116014)(376014)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 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j4K4uQpuPRqje7YlpqpTvtW2zg9r10xbF3pMZ+KKAHTZt3J/Gd7aIc7lZ?= =?utf-8?q?gVHTmqtoOUWQCax8d8LOC8h4JegesZu/Qaz6uBj8AX0R1eTyR2CXodDOc9LVqjyDp?= =?utf-8?q?ZsDuf5lxe1+PX7upzexywAmxCwEAQf9OK8NGhdirU9xUXqhwX6sB394ocLR2wfxpI?= =?utf-8?q?Q6e1pQbFwy9WiYeOFDVMlnkE5V2vKaDRwp30jM5QUfisTDhJ7tqfijsrMA0+MzPTn?= =?utf-8?q?1pPy1nrc8+NC8KWHs25Y5setQNI1xHMSUFti8NQLcRISApF6PoV9hTsara5ekZfny?= =?utf-8?q?NhV6fnbStzxCi2897EYJc8ZQsFCJz2pRwgeGe0Remac27hHc/dpI3eZ6RAyy0EZek?= =?utf-8?q?pPwHVuPfdRevsmHQ/qIuRbOGQRB71a7j2G9Y+G+tmqpBEMttDRjZFvYgFDp9t9Uqu?= =?utf-8?q?i2z8Y/7p5WTOwsZcExHliXqwMjRfyGk3nSKcz9tqK3MIUg1UDdIINtDRdq+YCBS3B?= =?utf-8?q?OvwLX9//sD8i9TQwnzgAJ94z2gQCw0f5E+0FjKx5+0vlSD67+hHrqh0k0rQI6hEpS?= =?utf-8?q?ktg3RGFQG8HRe+YjHrQKRjCeqlIJT6Sl6xgtWfRKL3jV6gIwMf/iLbefVS2C1f1OY?= =?utf-8?q?+ChR4ETtW/xyn4LgYPFp10mVppU/lRFsAXIZ5TqdHOjneX0QWQPihgtWAN4QJT5/C?= =?utf-8?q?wr44PL4ByO/ZEo7qjy7ICbm7/xd9W/mNGw=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 6ae2cb55-40ec-4d8a-f682-08dcacada461 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:16.7943 (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: f5g+EMos8vl+mKqyIzAniOTYloUBJAW4I0HPCsbMCA976v1EgVbj3SVHXwZIu3gd+Ca0VafWo7h0Ig2j1heDIEF7zREFQEJP+TJGgfEz5Lg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10670 Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among which an amc6821 and 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 (amc6821 reg 0xff). This driver is expected to be probed as a platform device with amc6821 as its parent i2c device. Add support for the mule-i2c-mux platform driver. The amc6821 driver support for the mux will be added in a later commit. Signed-off-by: Farouk Bouabid Reviewed-by: Wolfram Sang --- drivers/i2c/muxes/Kconfig | 16 ++++ drivers/i2c/muxes/Makefile | 1 + drivers/i2c/muxes/i2c-mux-mule.c | 155 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 172 insertions(+) diff --git a/drivers/i2c/muxes/Kconfig b/drivers/i2c/muxes/Kconfig index db1b9057612a..6d2f66810cdc 100644 --- a/drivers/i2c/muxes/Kconfig +++ b/drivers/i2c/muxes/Kconfig @@ -119,4 +119,20 @@ config I2C_MUX_MLXCPLD This driver can also be built as a module. If so, the module will be called i2c-mux-mlxcpld. +config I2C_MUX_MULE + tristate "Theobroma Systems Mule I2C device multiplexer" + depends on OF && SENSORS_AMC6821 + help + 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 + configuration register. + + If you say yes to this option, support will be included for a + Theobroma Systems Mule I2C multiplexer. This driver provides access to + I2C devices connected on this mux. + + This driver can also be built as a module. If so, the module + will be called i2c-mux-mule. + endmenu diff --git a/drivers/i2c/muxes/Makefile b/drivers/i2c/muxes/Makefile index 6d9d865e8518..4b24f49515a7 100644 --- a/drivers/i2c/muxes/Makefile +++ b/drivers/i2c/muxes/Makefile @@ -10,6 +10,7 @@ obj-$(CONFIG_I2C_MUX_GPIO) += i2c-mux-gpio.o obj-$(CONFIG_I2C_MUX_GPMUX) += i2c-mux-gpmux.o obj-$(CONFIG_I2C_MUX_LTC4306) += i2c-mux-ltc4306.o obj-$(CONFIG_I2C_MUX_MLXCPLD) += i2c-mux-mlxcpld.o +obj-$(CONFIG_I2C_MUX_MULE) += i2c-mux-mule.o obj-$(CONFIG_I2C_MUX_PCA9541) += i2c-mux-pca9541.o obj-$(CONFIG_I2C_MUX_PCA954x) += i2c-mux-pca954x.o obj-$(CONFIG_I2C_MUX_PINCTRL) += i2c-mux-pinctrl.o diff --git a/drivers/i2c/muxes/i2c-mux-mule.c b/drivers/i2c/muxes/i2c-mux-mule.c new file mode 100644 index 000000000000..062596869651 --- /dev/null +++ b/drivers/i2c/muxes/i2c-mux-mule.c @@ -0,0 +1,155 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Theobroma Systems Mule I2C device multiplexer + * + * Copyright (C) 2024 Theobroma Systems Design und Consulting GmbH + */ + +#include +#include +#include +#include +#include +#include +#include + +#define MUX_CONFIG_REG 0xff +#define MUX_DEFAULT_DEV 0x0 + +struct mule_i2c_reg_mux { + struct regmap *regmap; +}; + +static inline int __mux_select(struct regmap *regmap, u32 dev) +{ + return regmap_write(regmap, MUX_CONFIG_REG, dev); +} + +static int mux_select(struct i2c_mux_core *muxc, u32 dev) +{ + struct mule_i2c_reg_mux *mux = muxc->priv; + + return __mux_select(mux->regmap, dev); +} + +static int mux_deselect(struct i2c_mux_core *muxc, u32 dev) +{ + return mux_select(muxc, MUX_DEFAULT_DEV); +} + +static void mux_remove(void *data) +{ + struct i2c_mux_core *muxc = data; + + i2c_mux_del_adapters(muxc); + + mux_deselect(muxc, MUX_DEFAULT_DEV); +} + +static int mule_i2c_mux_probe(struct platform_device *pdev) +{ + struct device *mux_dev = &pdev->dev; + struct mule_i2c_reg_mux *priv; + struct i2c_client *client; + struct i2c_mux_core *muxc; + struct device_node *dev; + unsigned int readback; + int ndev, ret; + bool old_fw; + + /* Count devices on the mux */ + ndev = of_get_child_count(mux_dev->of_node); + dev_dbg(mux_dev, "%d devices on the mux\n", ndev); + + client = to_i2c_client(mux_dev->parent); + + muxc = i2c_mux_alloc(client->adapter, mux_dev, ndev, sizeof(*priv), + I2C_MUX_LOCKED, mux_select, mux_deselect); + if (!muxc) + return dev_err_probe(mux_dev, -ENOMEM, + "Failed to allocate mux struct\n"); + + priv = i2c_mux_priv(muxc); + + priv->regmap = dev_get_regmap(mux_dev->parent, NULL); + if (IS_ERR(priv->regmap)) + return dev_err_probe(mux_dev, PTR_ERR(priv->regmap), + "No parent i2c register map\n"); + + platform_set_drvdata(pdev, muxc); + + /* + * MUX_DEFAULT_DEV is guaranteed to exist on all old and new mule fw. + * mule fw without mux support will accept write ops to the + * config register, but readback returns 0xff (register not updated). + */ + ret = mux_select(muxc, MUX_DEFAULT_DEV); + if (ret) + return dev_err_probe(mux_dev, ret, + "Failed to write config register\n"); + + ret = regmap_read(priv->regmap, MUX_CONFIG_REG, &readback); + if (ret) + return dev_err_probe(mux_dev, ret, + "Failed to read config register\n"); + + old_fw = (readback != MUX_DEFAULT_DEV); + + ret = devm_add_action_or_reset(mux_dev, mux_remove, muxc); + if (ret) + return dev_err_probe(mux_dev, ret, + "Failed to register mux remove\n"); + + /* Create device adapters */ + for_each_child_of_node(mux_dev->of_node, dev) { + u32 reg; + + ret = of_property_read_u32(dev, "reg", ®); + if (ret) + return dev_err_probe(mux_dev, ret, + "No reg property found for %s\n", + of_node_full_name(dev)); + + if (old_fw && reg != 0) { + dev_warn(mux_dev, + "Mux is not supported, please update Mule FW\n"); + continue; + } + + ret = mux_select(muxc, reg); + if (ret) { + dev_warn(mux_dev, + "Device %d not supported, please update Mule FW\n", reg); + continue; + } + + ret = i2c_mux_add_adapter(muxc, 0, reg); + if (ret) + return dev_err_probe(mux_dev, ret, + "Failed to add i2c mux adapter %d\n", reg); + } + + mux_deselect(muxc, MUX_DEFAULT_DEV); + + return 0; +} + +static const struct of_device_id mule_i2c_mux_of_match[] = { + {.compatible = "tsd,mule-i2c-mux",}, + {}, +}; +MODULE_DEVICE_TABLE(of, mule_i2c_mux_of_match); + +static struct platform_driver mule_i2c_mux_driver = { + .driver = { + .name = "mule-i2c-mux", + .of_match_table = mule_i2c_mux_of_match, + }, + .probe = mule_i2c_mux_probe, +}; + +module_platform_driver(mule_i2c_mux_driver); + +MODULE_AUTHOR("Farouk Bouabid "); +MODULE_DESCRIPTION("I2C mux driver for Theobroma Systems Mule"); +MODULE_LICENSE("GPL"); From patchwork Thu Jul 25 13:27:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13741915 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11020111.outbound.protection.outlook.com [52.101.69.111]) (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 0BD0D19AD9E; Thu, 25 Jul 2024 13:28:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.111 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914104; cv=fail; b=VHoe8OTJxa2lsRoeOMaS0PkV18YsZOuY8TQRs79E0N3QTLMsTqeIfNsH1LJPPrcKmVqOwXKRmaf2y/OjdCj48SuV9NkafHIeXiTIs00+8bk0k4c3R9URHTD1qJydCMGZG4/EUVzvOdK5FFJkjTFnFMw6s/lduhJ9n8jVVbkWd+A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914104; c=relaxed/simple; bh=D9LNB1n//rGX4TqqfcxUKOKGzRce0TYHvIo+TD+JOi0=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=c2WaMiRRJZSZjXCh+Dl4BJQ5JGMHNQaFSTawlXGkmP52IKJOAs6j6r67eovK+ozdN2n/SSuLjWUvbaEPlEYgrNNwwlF4tpaSLTDUrm4X7ZFnp2jHHnA4p9sHhQUsldWI/9rR4x8uLtrDgZjQMZBaEsI0toYvjSUdZS6fVxDFq8A= 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=dBmgrh3w; arc=fail smtp.client-ip=52.101.69.111 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="dBmgrh3w" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BQXKp4sw/wTFPPYldp3gMbk4RGEPIoiNvRhp4vlwiTfVpdfJl8KHmciNpmEipy7tEzqocWlhc8sV/hGVfs0+yEl6wokPOMhdIorbKWZmp0JjILNU/yz4htz3+CICFi9vjlWV4Ky+srOSx7yrtkAAPaaW+73MWIT15HrNKs52hU+4IVuMvQtws1nRys08fzPGoeS1QjODj24cWcnZypZcw0QMrhh0g7R4si69CBYBhpx5FKu/OMnl0hQN3gK18vHuyj7nJndjJB2SQqOlxmQ/U/lOIvNmq9piUbGPwF2m0UWOuSxOJBJd7cSAiswX4/MPcQ9h0va8z+Oul+Hpe/Jh3Q== 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=lBpVZjh2NnQubKNFxCn0nUPLaAPSbgyPx/mM4ADWwPs=; b=NoMXVpbNf1xPo4Q4nuRhfLwhGO1CBeIZ+oVuOqoZU2yS6aj4JMPmxy5KGugl3+6vZFBwqXhm1R8mGif7bN1znp/1x74ff/jextYirWQUy/r1snPSi3M/Tp5FuseOwxTMA9WC2KqlG92cYmPP/csiMiCflpQ6XY8h1QP5ZiBv2cVdvW3tD96JG4PKw6Fg2R4vHYHwmEkrtuS5xiVkQ7uKnKAiu0tnSJ1nMfHZ6JlumPh9sUtHLLm0ZDD4Suk3vvn8C8vyjUgPfHk6NOcsXIfzjy50ItEdVYzwObv+PvGeOPpG/lpphWtrTBu8DMEnGqz50aCqNSMKQY7dkYe6dl7T0A== 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=lBpVZjh2NnQubKNFxCn0nUPLaAPSbgyPx/mM4ADWwPs=; b=dBmgrh3w1IZsEyFg+W++/kfJC4H5ppP52jdYM/IsHon01nRhX2gDt9IEu4ZT8E6tW5oyUsq1ePfBRe7uNjH7VB4tgXbVl2BPPO+xX9dp31O/X0fiXy/aJgSpvV5OhuL11UIFFGuF6FpGwP9ko4Cta+jALVzRpEEdftngPI9/wCc= 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 DU4PR04MB10670.eurprd04.prod.outlook.com (2603:10a6:10:58d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 13:28:18 +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:18 +0000 From: Farouk Bouabid Date: Thu, 25 Jul 2024 15:27:49 +0200 Subject: [PATCH v6 3/8] dt-bindings: hwmon: add support for ti,amc6821 Message-Id: <20240725-dev-mule-i2c-mux-v6-3-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: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DU4PR04MB10670:EE_ X-MS-Office365-Filtering-Correlation-Id: 25a9be1c-1492-4a1f-fde9-08dcacada4e8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ib5MJR25cb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GxnUqyfqq3Vv5STLgI?= =?utf-8?q?x0Ts5jD/kbE9v/qO6hjEaGY6CklDUFqQlR7cRvQhJm5YwKJHgZ3K/D40ok9TOg8To?= =?utf-8?q?uc6k/28eEdCJEeKrGr7uKeUV1his48Gu3tAyGVj7pzkadmwauH5PtZybcs5yONs0t?= =?utf-8?q?Z054OW2tszlHQfn7OpTszzTa9+etXHygpr93M9OwegYffgKmwCQo7y42gYssmpYJD?= =?utf-8?q?nojreGtQwyX3/olvOjkTI+JfS40oDdGTnVeBOkqa3SMe83q2BxOqJnUK+115L6T0E?= =?utf-8?q?FAAwH66dGlc5gVo8N8qESSf0EjDZ2AjCORDLYtkeJxXWzE6F+eVijSj8QpIqKMDTg?= =?utf-8?q?/0tSzImoV5p2JXJqwlLOSFguBspw+fGywMypENenORL1h64C0gOKLG2UoVDeGYpnn?= =?utf-8?q?bnwBRUQ36nqu3JF0DBIed8skeKvcwzgcbIORCM5hhjwl5kzczFt4IoJoJvQ/hHvqw?= =?utf-8?q?0P4AJXOvXnPH?= 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)(52116014)(376014)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lAmQmYTbrDGN0GPMrft60w+qqnJm?= =?utf-8?q?Z5aykMgvl+m+q3kU71oS/C7dtLkKUnJrJy4+q1Cvu8l3m4Rpy4XK7w3ROY48shkCz?= =?utf-8?q?4qRqs+uGUXaQftGXsAsMeVBVBMlahO4zr4oAQFyC/ybFGuoefeEnNNQ+Vfcm/64E0?= =?utf-8?q?LcYVAthDz3wC8kqyJBXgg8ChmJQpu6/b1RVxmMgk+Fu0kejb2qpvBmSsEdJQXGdJE?= =?utf-8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Jn3zZqdBrzn9PrtDRugUmT1ggoPYOwvdn56Td4i8XjdE9gAIrWTew4Z8T?= =?utf-8?q?cObJGG7gZO4S6/w726YDcyY6TLmYuwDeqmGk5D+z7VV6ghgKQRjl5cGWNnF2iyTSq?= =?utf-8?q?O0owSjGImHJGP2aYdiEXCXiQYsmxFI7/RDN5nHzvFgwaY+Wsg2mb10aBaKgz3O+L1?= =?utf-8?q?VZbT1eNHvHu8Wt1Bv9wanOKoDhh6h0THUbHW7+OgczPj4SxsWmOVAeNYOsQUSF9zd?= =?utf-8?q?JBwvoiouhn60G9aBk9RuevGQ0rSMqRDqzl1pWb10dosMaiqJcBwyZdOYt+AeEGm9i?= =?utf-8?q?h7yWwIEJsqIqWN9TGpY91pGwlOqBRsma+rbKRTEnbH4xBfHOzhH0+NeBkwcc/PLFA?= =?utf-8?q?sTzYeSL/yGTs+uvA7R6scDIxYu28ZfEk9A3gY3Vjn/GMmfBcrPWfh6xY/noKZB+i4?= =?utf-8?q?O8ygJycVmR8NH4kDlgReDQBSm8ZbRKW58A=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 25a9be1c-1492-4a1f-fde9-08dcacada4e8 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:17.6511 (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: nV14Va1gmMh6j/5rcK3V+cV/L60p3i7J5ZBkHRF9AD9xGPJ+VxLUzBP/GaqEhZPwGIuNxpKpzW7JgE9Xv3WaWdjIQGpfLr26Iy1B9QZ4XiQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10670 Add dt-bindings for amc6821 intelligent temperature monitor and pulse-width modulation (PWM) fan controller. Signed-off-by: Farouk Bouabid Reviewed-by: Rob Herring (Arm) --- .../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 5d3dc952770d..24f8aca55f15 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -368,8 +368,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 From patchwork Thu Jul 25 13:27:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13741917 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11021098.outbound.protection.outlook.com [52.101.65.98]) (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 D402E19B595; Thu, 25 Jul 2024 13:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.98 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914107; cv=fail; b=sEwRapZ9m9R/v+u2hlIRNQaqzf9X+aoh05LVwCE7O8JN8fi1567hNCBR6lSFIysdWoClDAkcACDxcuYr6qf/1P4G1gTaK4ZaGTodkrYgpsk35B1FBbaBt2d4lc52WGIFYREcAqmWDZuOdhANm0nF5XH68uDSob60vavUK0kCu4I= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914107; c=relaxed/simple; bh=xxDr4tH0jYVtI1uNZVM0QYJAjQECE9PrtTFs4OrIjlI=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=YAznEZu7ArjHxofNUDI9o5idkyPORnPTpvxRdQk6fPTWa+8QkYLRNCo/OoqvQ/bmeex93teTkUyEOCKYcUUHVPIy8mINllgAzsIf67qZPMYzPyzYK2Ay/Y0HBsxRK5GFltVRXlUFDzb15TE6/EtxGX93zvF1gL9OSeQBKQ0+cs4= 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=BPjhWkU+; arc=fail smtp.client-ip=52.101.65.98 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="BPjhWkU+" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RvWSqEbAflcZdoLz3IdsIjvrxPSyTVUS7HZkdXREvykRCs7/yfkL4yJ+GSYpgDLVwfTqVlyUEEJUjhozYE4AaHBoTN8PlnRMA55Dw0/2q4bGdqNpFQdUP9mfSKAbZ55S7ghgW6hozwaamb3wzL4QrjWm7vFMA68WgxjGAySO17VnzrjuenA+2rqSQMq1ns+OdKecYs1fykJCRIu47Gis/TReAyL6faG5NMcWihsImS7mibLdbCkd1nGSM6bQeOg9xzBpD0gNLiyU1qZV4CgUWIDiy9pmBfjfKFgWw4rt01/+SEkJiLbCoDQJaRmRk1j95iBzlGH80KKdVT504g3E5Q== 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=3fm8yQ+KBG2t8PH/TgkrdICnoRfgysn+qCLCtueqNFE=; b=mw6nHmUcN3KkkNSE7qSJuhCaoD2u3CKwOh3t8KkOHpTDa6Xz2sIWqKERD0iohqvGcU48u1FYAu94K5BQenuSicStuTqiW1he2QWfUpYFsOhMRAZGuT8/Rd446SA4NG7zvyIApvd4XV9owqSD/PWp2ilR2KdQ8pe/a71lvYgm8TaQyEiNqZyMFzocJ7iFPxDmDo79WrC5elIP4h9FH2B2qH4m9d3CoX/TQ4e2bL/SxgyIUawEy1lIdGRrgnn9sC+kK+l/4Yzs1lS4R6xxAJgU4impoxXBL3DWqRNDDZdLiY21mt3SWHw3vG9o3gEm7QXIVWC0FBcxi+eA78MR0KbTzA== 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=3fm8yQ+KBG2t8PH/TgkrdICnoRfgysn+qCLCtueqNFE=; b=BPjhWkU+13DFax8JieB3eV5fj0TKwGa81P7ptw1l/lLsRSx6qPSPAbu+c/2M7XU6AG0ouncTqQIsFYIZmlb9KCZjDwrnba5kJdpUlRtIaP2rMroAWgHNpF6qk9cLPgSMdSu2knRXu01wEkjknHviccEOwnvwEvCeCdXdd6SUQDs= 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 DU4PR04MB10670.eurprd04.prod.outlook.com (2603:10a6:10:58d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 13:28:19 +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:19 +0000 From: Farouk Bouabid Date: Thu, 25 Jul 2024 15:27:50 +0200 Subject: [PATCH v6 4/8] hwmon: (amc6821) add support for tsd,mule Message-Id: <20240725-dev-mule-i2c-mux-v6-4-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: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DU4PR04MB10670:EE_ X-MS-Office365-Filtering-Correlation-Id: 05f8472b-b959-42a0-f3df-08dcacada56d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?8nJ13TlqhYaa7nBj27dueOk+sb1e05T?= =?utf-8?q?w7Zvu4IlAdgZF2wxg5Q0UBx8fg48C2GR2Fnl9Z2VstzH5HwJSSa0+lTfaQ9fktQxL?= =?utf-8?q?C6/iHei2GWHGWAlPZzmz+aB+m0vFbvlklUuPdebMH3+s4HDlb6b4RY+dczZz4vS/+?= =?utf-8?q?AzmO1p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j4ESiozAu75K9PPbBCfAPxG28BoyZSb5uv3CBZqxd3CNIfBK5dE?= =?utf-8?q?8jTexsS/B2IdZHFdeYquiv/41uZOFi19MROrOcmEJCguXiybnpuUyS4sCibNuaMJS?= =?utf-8?q?MBl/mPEY59kjiIedj4+GIBIQJ6mSON06/4V8LVapx+94prZnCptodLsrtxdgMGPPH?= =?utf-8?q?Wx/jvqNFRmt+wZFZ+51oANtYpKlZ75CWY96fx9Tub8fzUIS5jLECTJTo48T0IkMSK?= =?utf-8?q?QsXlU7O1MJ25XuNTMTS2C5y3gbpgTN9Bf1yPXVxxn32XkYsilBlw2zDMHi6YTB9I6?= =?utf-8?q?trqP+XKzc8TGKhPOW1BvkNzN/L4Nx+YcqsIrne3UQ1HzJOAomVppADI=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)(52116014)(376014)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?6+3V7esgrpIVJo/98j26ShvotBeN?= =?utf-8?q?Hcr/v/OuCYjVT8kNxNf8LsijBGoAL/J8stmHA1EUJxBUlk0eRZC7e/Ca1G5CpbzYF?= =?utf-8?q?0B4VF+tummI8YEtZX/sDCz7O6vrlvaLfKVP6y1f2idrdVrt2cVRADqu9mMQRc+exP?= =?utf-8?q?j6Rxbnkbw44Dqzw2l6juXKv0bCOcpdYuXFanVJvln9RG81VxXpveu6AQpnUBK6y5v?= =?utf-8?q?qa6r6k/Bd6GXl1fXCQXWWMQ/ikoIxHGZl0ZT5EAxf7P5tGDxriEyzPzsN4nxnocZm?= =?utf-8?q?qLgBinLhJK0V12TgP/n27rIwosIqNoOxXBR2c6d0b1JquEAmF0nFWQMFOaLiuBvxK?=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f-8?q?oU7/DYI81JDbgucEWLpAQOTR/4OCI80Duyml6JrVUAvbImjrIKrl1ex67WgzUdl6b?= =?utf-8?q?RdGNo35mritPKtiGmdbZNQ9KmSSALcoJff0HaRNQwwYfWmGiXdtTTiDjFhTAhP71J?= =?utf-8?q?Ugob9X6Iv4izsKXqmN4Oa7qdp0FaSqCtZLvPmLbuG5OITLZVrcqbnfGMnWu54lhpy?= =?utf-8?q?MVs7lFaYWl8aVJEAqtkEIS4qBGk8bdMZ7GZIBc3w2K9o5hNxbjj0E1oYHXushquPu?= =?utf-8?q?iwPNqNQOqkqb7ysEUoDrhE5Fnqz9VGp7ydeSXAxdMtS5P02Wq3J51kt3+FYwiq+tG?= =?utf-8?q?zEMExJlUtUqsC8aN8Hwb7dmH5kFMli+jdw=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 05f8472b-b959-42a0-f3df-08dcacada56d 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:18.5776 (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: 0xgVVpPnS7yA6YU40lrE0LqbPMKg3S4WEbUSsOX4KGDeCBHKx1/PR5r31O/mZ9HEO7GUgzQ483voMkRKKuX2suSioKYKM/TJXRfAxI2sTWs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10670 Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among which is an amc6821 and other 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 (amc6821: reg 0xff) Implement "tsd,mule" compatible to instantiate the I2C-mux platform device when probing the amc6821. Signed-off-by: Farouk Bouabid Reviewed-by: Guenter Roeck --- drivers/hwmon/amc6821.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/amc6821.c b/drivers/hwmon/amc6821.c index ec94392fcb65..a3fdbcf01ecd 100644 --- a/drivers/hwmon/amc6821.c +++ b/drivers/hwmon/amc6821.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -897,7 +898,6 @@ static bool amc6821_volatile_reg(struct device *dev, unsigned int reg) static const struct regmap_config amc6821_regmap_config = { .reg_bits = 8, .val_bits = 8, - .max_register = AMC6821_REG_CONF3, .volatile_reg = amc6821_volatile_reg, .cache_type = REGCACHE_MAPLE, }; @@ -924,6 +924,13 @@ static int amc6821_probe(struct i2c_client *client) if (err) return err; + if (of_device_is_compatible(dev->of_node, "tsd,mule")) { + err = devm_of_platform_populate(dev); + if (err) + return dev_err_probe(dev, err, + "Failed to create sub-devices\n"); + } + hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, data, &amc6821_chip_info, amc6821_groups); @@ -941,6 +948,9 @@ static const struct of_device_id __maybe_unused amc6821_of_match[] = { { .compatible = "ti,amc6821", }, + { + .compatible = "tsd,mule", + }, { } }; From patchwork Thu Jul 25 13:27:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13741919 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11021098.outbound.protection.outlook.com [52.101.65.98]) (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 76D7019D068; Thu, 25 Jul 2024 13:28:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.98 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914109; cv=fail; b=dR7EgHDc7YrlktN5vJsfOyfaalP9ptjF1jJa77Gee/PYeIP6QYZU2dTGc4w8r6G9ITFfQg7F15PfEcUxzCiExXy2LjJF+s6EgVL5cmnxlwAgRYh1pVQWqGqmuz8FrwXy49ZxwdaIwiBjnaVIhS2adoUiuqEISdqCHgFGxPrbIhA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914109; c=relaxed/simple; bh=z4FqVvzL9gYCTOPTU7KsKuOHbjSrV8y2DJ1eaJqNdZY=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=GMQIjl2XTAyYR6sJxRFtlxwJ8Il5Y63wP66hSYnJ6p60Gb46yheXP/qScocRN8WfxLQYJUXtivr3wZ+0b9mgEMWyQOFg0bTmsfLwU16NDBk0uOJ2lqBFUhNuTic6gpD0j5Ff2nGlGSnYwkLOdWcq13fzgjPtbi3rb5+KRyJi3nE= 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=jE/7Pgjp; arc=fail smtp.client-ip=52.101.65.98 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="jE/7Pgjp" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=P0Sp0XhLdLNrckxTmbjApHCY+d/YUiXbdIVzf7lN+/XpGD1POh9yPVnmp5Z4if2EYKWH3ESyRM9gRwWfQ36J2eoIUoXH33ayNAwTcWkM22jovbJTEVksTfxTiKUo+PlQ67998YHxeoI27M9QHlUfmPH7Rf7L0s5KK1MilG94Spcx4+bf0GFTxdmXLy0+vtcTsFoA2uwjO6JHRsW2QDS7CG0OhGVjMVay7sEP9IgpgA5f02rI4aIPMK+pc0aRlpY8lmqDEzUYYG5BRjN1jtqX8EpxqL/NYR5j2+t9VZL3AROFbqhwqSP1b4Fnqr/J6lmjUXnmOKxfS2fx6xvkdUBZyw== 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=BOz94KksZbowomQ61lp6xZjrFFg4NqyshzZRPsQz5zg=; b=n+RamgmhlreBpj7mar/fxBw1oSZ75Gzys6SGSFkN27bVSsMb7u5Pg/QtgMPGszcDJ/3OkXntryjLEo+MINcPZgsuNDLIKIMW8Opx1CgfL/ciOAuGcVU60Uryrkc1/cpH9v2kQJYVpm5Nsd14HTNFzEPvWqQgZRjoSFYoBF5NQdhVDvds7Hi0QattXLLZjROT2OUoY2EUrpbZVGkiJ2G0HA+WX36OLkgGAw1/BS9ZHmwM1JxArpeAexe963f7PNLJs3TAoTCE7ogZtHK/TPyX6h9yDNyd6RDqcdFmzE3qFXgH1lRQg/Vbb0bxoQWNeU9apC3Omfg6t6TTkFgxeS737Q== 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=BOz94KksZbowomQ61lp6xZjrFFg4NqyshzZRPsQz5zg=; b=jE/7Pgjpb95EQ4PckqINBhdxwSINTa9AoAwx8XRwuVyCSA6CqECxGWz9WUtZtY3W9XDkkDja5J4gAapdrXrd3eNaFBAdrN1unWmeO+U2bIcNwa+6G3ZKn49AsaFVsKCrLbAWAajSQ8ZPLl95481mcuVdiKRQVjMWpUlu1ndp7D8= 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 DU4PR04MB10670.eurprd04.prod.outlook.com (2603:10a6:10:58d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 13:28:19 +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:19 +0000 From: Farouk Bouabid Date: Thu, 25 Jul 2024 15:27:51 +0200 Subject: [PATCH v6 5/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3588-jaguar Message-Id: <20240725-dev-mule-i2c-mux-v6-5-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: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DU4PR04MB10670:EE_ X-MS-Office365-Filtering-Correlation-Id: 93471893-51cf-44a9-6490-08dcacada5fe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?E8curxPqsgaosNtWP8a0yV6HSMUTedU?= =?utf-8?q?w+0aNV/NiibW6mozXANN28TtWqV2ALfh66IxhiPoShvAv/I2VT0nwUclxQSjrHWGf?= =?utf-8?q?s8rwhWt4SpFHc9Gvd3gGsMxo2JB5iKZzRCclieqnkxkZelT0/CrqaTGyvq6+s2Lk8?= =?utf-8?q?t9CE3OS9ZbYjhW/A3EvgGd6+yx3lo9U5WMTo/PtjiRZD0NcpXBp/DNOGed6Ob+AAf?= =?utf-8?q?EUlwJoFgOo5SUSqAhfLTMRVfrMfGtzqJPl/jtGDWy428EkHBcccOv/rJ5c19pz4JW?= =?utf-8?q?s5wAOvQVhNlKdAVAeBkWdFrbA111s/I3/0pc/GlT2RBvqhsXToKaTam7PBK8Rp1WJ?= =?utf-8?q?BwkOF4e8TkBLuNV1F8BMhjYQK8rDdaXNHvS9IZs56qSpGhJsSdstzSxglO7+mJKqq?= =?utf-8?q?OD4L+HDs6gaGjiuyKjDlK71hIQ0sRt2KtXpT5UxjBRltgvDWBHWKdn4BJ2vBSuFqh?= =?utf-8?q?3gTN3DRJfGlEBFfor5QB27i9CE9pBlEsvMdjo1QcDcgWm/Xlxw2k1YS12Np3tFoee?= =?utf-8?q?fspNeuAYl2spz3u9JEPv4WhNqg15MogBMlpze9HkDQjZb1Zo5ilI+SFXbqsvmZSlg?= =?utf-8?q?oUKBn8gExODif4IZeNtPZTXaE9INCLQsZ7j/C5WfnrEfl1fhOpNX6h9R8wnsW8pWr?= =?utf-8?q?oRgPsajGqzsWMyvc3M6/+opElho5nY4MDkRC0uov+ka12TTEUGde4TTfkfD5N7/3C?= =?utf-8?q?2kZPgk4eByXBn02Aq/KsZcSCkk5TG+3sKxjNdeFUjFkCz+P0KxCF/ZnxdlxBy0QZ8?= =?utf-8?q?Zxnn1HEQRtGj5kJdu9LJ6D093Jm8mm0Ep4BuvaJWkcRTcVvpiWSMvqwaVanUs+lCk?= =?utf-8?q?NkONISa12BHvnCH1Je0DGM3e+9lbjucdsg3b1S6kvQBwTsPL3m7Fakt/aI5AsjKXx?= =?utf-8?q?fe+gGMiWLuR5F4KF32SY4FFox7PRtFtL1opDFnsENoBt+A5h5SKASSFLfeQadKfLy?= =?utf-8?q?cRyZf7DUqWEf1xEaTQlkrhDfZnmff0FW/fm7Y9O36X9a1OQVCgkR1uBWTcY1fSzCE?= =?utf-8?q?xfoNfD4qlEssHf42eYPecsS7x+bT1fIreDPbsMuvzbOS5wTpli46fn7fdYUl0z8C4?= =?utf-8?q?TUG5YLG4V9gBZrgVSdHRs53yvCXUcIYWLYo7jQhAdtUR9qnVjFGc/Xa9KRsFPjbgk?= =?utf-8?q?xumUxcWuXhvgXri0l6hh1cX3UiTN0BOTLKLcMfzvpajj4nESoKI81vrNVUsyK0kkg?= =?utf-8?q?0J1VelekL2VSasP6VmxmnGIGHIjmSqTIpA1ZRN59Hg+2TIM347PHtQolvbE91WUT0?= =?utf-8?q?zI7co9KncidAgManBXeO23uIodtwNht4m4+jBEsIXkhDkzRfmjSM9KM2C25Js0OxO?= =?utf-8?q?XWcz9oW+y+nH/ZhXdpsOYVp45jj2/WoWOCUWzGq8TfE5OE8zW+xQcTQ=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)(52116014)(376014)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData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ye04jjuztRbb6b+jCaHHVLMJ093qW4L/sR9iBu1DCBACUeRimvmRfO+qwkvTB?= =?utf-8?q?PxlDuk0zzSh2SIas3oLNnjMTLrSsX6ssQJt0pEK91t8XdHU3s6dKjBsNyAyCEBNoZ?= =?utf-8?q?Lf0Kto7mkOJVeXLOt0Seb46JY3F3/UrXmXBoLoWIcxNDgnY4t1DidiBdNb+lQORho?= =?utf-8?q?VM4SwwV4p8E4GwY9onj/E1zBt5Ah2jmSxMCoW/Y4P5M0n7uwQ6J00/6bbTNnHMrvT?= =?utf-8?q?ESDcI9DJ443UWSUdRzKBw7/alvnKL4ye8R7jZzOhv22sr3g2TGD4nUVBGBuv6HZr4?= =?utf-8?q?Pa6KXEojZaJmwfNLfA24izvSK/mWzWG92V79pAxxlPPWzNjHX6NqstHqc04JSQORk?= =?utf-8?q?sYhK1gTH4WWM2DtndoXNnX/VTuLI9Mo/Y7x621y9tch4MgaGHqy1e/Dee6wDVenXB?= =?utf-8?q?NWduqjvli++N2X+mET+9/CUbYKAFtWYBDLS2uncA4qWdkm89v2S7A4NPRN1Ydntch?= =?utf-8?q?3a6ziEi8ZYjOJI3BQfBQ7a/HOTcIOSZQHn2EXv8cRauPiVWrp+kNA8+CWNQ+TScxT?= =?utf-8?q?nZM7t0EDB7eJC6TzGB62IYSl9RVy2huhp9CvDhSZ6OmnYE6qGbN81JlmgBjCgjY4k?= =?utf-8?q?rfVjyOpeVcnVVhDlteCx9+dzk7Hi+ze5Q7LQViTHaQcCWEhqM009bksKysNCac5M3?= =?utf-8?q?PwZroh4yLyJXgWPWYG1XNkR3oZgCEGzWIQ=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 93471893-51cf-44a9-6490-08dcacada5fe 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:19.5078 (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: JbbVxIiLDU2+yLDLgSgTnJBsAFDloeBXUU8Pp6lTaog9e+uSA3TKMDlQLNSjvRdWo+iC92VfV9wZ/gVDlO4U52/1yb+NdNJ2ao88kmRyGXM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10670 Add the tsd,mule-i2c-mux alongside with the amc6821 (tsd,mule) and isl1208 as a default device on the mux. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts index 31d2f8994f85..56f87a603581 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts @@ -32,6 +32,7 @@ button-bios-disable { aliases { ethernet0 = &gmac0; + i2c10 = &i2c10; mmc0 = &sdhci; mmc1 = &sdmmc; rtc0 = &rtc_twi; @@ -276,8 +277,25 @@ &i2c0 { status = "okay"; fan@18 { - compatible = "ti,amc6821"; + compatible = "tsd,mule", "ti,amc6821"; reg = <0x18>; + + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; vdd_npu_s0: regulator@42 { @@ -313,11 +331,6 @@ regulator-state-mem { regulator-off-in-suspend; }; }; - - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; - }; }; &i2c1 { From patchwork Thu Jul 25 13:27:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13741920 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11020111.outbound.protection.outlook.com [52.101.69.111]) (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 108E919D080; Thu, 25 Jul 2024 13:28:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.111 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914110; cv=fail; b=PvwtZK+lNWC1Dd7gJJ9VCN9cRnWeWEs1MwFYm+lpvC6RsoHXWHbAdSLWNnirVDGRz6MY8zzxQamDw3OofztrLeCDGQ8DwAVqs2FF2+S2Stzt4vQhx3rZl8DeAEIbwnoYPKJDU2Y6WgbiWwDCxyN3ti+5dtFndw4nmw4rx57uJoc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914110; c=relaxed/simple; bh=UtSI+Z4rhlvu720rD8lKlp9GhOla7RSxRM3ss3vsguA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=nWfzUcW5DrNc1BRokZ/oG/G37pRFIasiIRhbWHVmlkTrkjUlW4gFiSrD8oEOK1LrC9HdAddPYGOYj0NxQwlp0PWkAHK+VzpxZ7M963AhxKwZCqa3rnaDh6hShw/nUuqy4ZgeAY+Sh2YEUOQS82BU+2aahXm2xiMbe0rrE2ovnEw= 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=CKopePly; arc=fail smtp.client-ip=52.101.69.111 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="CKopePly" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Cr31u1tEpDEsIKXGg2hDIg0yTFz1ATVtHkHoPRjVhhgVMCG0wmdEy+PRKXlNpIkzf36dx7KHKW4qEqk79f3ZF4N3bBzcBlC4kRCUVbZmXDsEhzi0y7u9czb/tJfvYcK1IB3lwChHuwyQ1HiHtltGMrkS16vdiOLhZsCAa09W/KHij1kCbGX+EepBCSkieAfbeZcR+KUBZbOjX73wRfHy/hR/0hqWrONDvJzSe6UgcmuPwkjLQ06vOs0FRa+O1k1jmyvSLVV+VH5VujXLn3nmAt35H6wtvNc4pZ5CbGjJTETO7a8JyvgXPxcbDMl1DZc0LA7WhLTWpaW2USLUMzD8Xg== 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=8i211aK1CQNyJCBZqzAK/lbL63CBSHQuaE0fah+7Cb0=; b=nKAQogLyC/ENU2I4z/nuB4AkG+ZjRtKpEPFIanQ8rRlck2oKnaT75Fk0MckHauMInXHHoHcT0ozznCGzD4J1zfuvS7j2LKaYpabqFGkc2LNgJxPe3l5PI10XrBfVnll3xJ7K+MHhAVQC4G7yXi7nsjxkhy2klvC5hWKIN51f/DXMrZ3LjLknXiL0RBwvmZD7Qkaz6l1MNiI2vu8rF8jJPIvcr9lIiZxSxtW04A/Sz0sop6zhTHMHYpZH7G4O3b71iZrtbRikwiESLbVhef7IhXSHE0jo6lvRopLBUANp04r3FkOOxsHm+shXzSb58+AnJtz4LNoMM+ZpLuBWw/+2Lw== 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=8i211aK1CQNyJCBZqzAK/lbL63CBSHQuaE0fah+7Cb0=; b=CKopePlyrTYj2tFNx124/kmkCsw60I1shIG0X8okNfTlj73i8c6iqfRxWq945JptybNJER6Mn6WAI1NjsFizl9V8oz+CfXny31lQZsjV9ogJKp91nHtnGjYNiUbrPYwtgF9OoINixwKpdt80KF6v37CMepvyvOmKp+BhkNo6Fog= 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 DU4PR04MB10670.eurprd04.prod.outlook.com (2603:10a6:10:58d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 13:28:20 +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:20 +0000 From: Farouk Bouabid Date: Thu, 25 Jul 2024 15:27:52 +0200 Subject: [PATCH v6 6/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3399-puma Message-Id: <20240725-dev-mule-i2c-mux-v6-6-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: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DU4PR04MB10670:EE_ X-MS-Office365-Filtering-Correlation-Id: b9713c8c-8288-4300-e883-08dcacada68b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?cR2tbSHV84NA4jbX4/gQ1BE8DALpdGU?= =?utf-8?q?zTn4f9dhlbbpcrHSlxsyRhJqVyxhTySYhbWjiIrTbkEq5CpLdJkDGiHvdAqgaWcFf?= =?utf-8?q?Ct19AxWHm7xcRJH9QpJiIxWx2yzJZZVUCtRN9vRTIuy97Xs4JMFkuAFRK7/e960rp?= =?utf-8?q?oUG+diEVnKl3j3rjbDUisR0aaBMG5wC3odg8FzCdLL7yorD6Ac7eNzjW4KWgSh8qK?= =?utf-8?q?0huoYnTH8S2rm0G5jx/gHEgsfMTnE4gGfRBHVJwkrGUUL2ilEbHOMtinoGwMyF2GF?= =?utf-8?q?scWk+oFWUrMJWqKTHmdj4FWXz1gs+zYF4DQoZF9em0TApA8AA1Vvqvz8dzyeevo1S?= =?utf-8?q?3ycfFR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qtTeu2CnhDyoyOM1AXTS2sL+FqfK/H/9qK1chT8UiHZQtE+JlDFfP/mp+6W?= =?utf-8?q?+Bv0rSbpzurYICWYL9ms3PgaJEKVYxWEvya8cZNJ6azidgT01oClJJSoHxOV/aGiN?= =?utf-8?q?xsAQZFfbivgoI44LoO+brw3GKm8EZr3+ohs9GWzx2mTLtxn1vGAEIvs=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)(52116014)(376014)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lNXXPjDVjpgHFbSdyFCzvJw9aYQ6?= =?utf-8?q?Rd0XzS65OPgeh6fRMzHqXHXCh4Ap/2WMbLHqTkaioef4niPqDjfwNGQXorAGu3cpH?= =?utf-8?q?5FzLX+ibuysrfX3yG0+I/5/0GcM5CGX8GRDcRC59IcJ4aPvUkZvmjlO887OZBoIAC?= =?utf-8?q?/oS0vrxGP2eRCds5/Js8YuFOweFYYlFfu5+FwMeZg8U/FNLmyZfYMEU3D3jWxVIhK?= =?utf-8?q?c3q8BfdUDxBdEbWouhaS4NnoEEBSYoYJJOTRJHYg4KOPuVnnqaQayf0SCtsldSRW7?= =?utf-8?q?rr4Cp783HOzHwN85CahQWSSrI1sfQFKgRnhMQZHP99cm1GO0x6HeruxFScAd5X5KC?= =?utf-8?q?nc0ny7NhD58zLXcWskOhtCZEhzRs2D6cEZ2b1IcAvYPLN5VJDtl93BuEQANM9n/yK?= =?utf-8?q?nkY0aNmtZ4TDbOqYaig1jmmIv+DqEoTWw0ny7fwkjKCPXUJP2piSMQz2yPpM6EPYP?= =?utf-8?q?wbb/VVN/YLBvEZ2u817W46WEVjNach6lnzGm5WS5JTGG3sS2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Ax75ESZp4n/spr1ACxL91p?= =?utf-8?q?onxGsrgms1qS2bUUrRzHCPFUrkXksKVNhhPefi+qbGY2s26Bj69/SGOvHJGMIXCg/?= =?utf-8?q?8myx4aifEbjDp/l1keQapUTYXdnRHYE88/KQn85XXDfppJys8nVOjlA9KD4oduuFQ?= =?utf-8?q?P6PU0Mmi7ZwnxxDVMxskr6NBkE3RxHv2LQ=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: b9713c8c-8288-4300-e883-08dcacada68b 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:20.4490 (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: QXDDnVgoZbjWyNj1GQgNmoC/TJAXtSkWb5sTbf9PMh6e2jfG1BE+2vm4yKCz/qYD18sqqkFLGe9uuQOQvEIOxKnN56b2uwoTsXThr/1v8vw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10670 Add the tsd,mule-i2c-mux alongside with the amc6821 (tsd,mule) and isl1208 as a default device on the mux. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index ccbe3a7a1d2c..72a0bca57385 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -10,6 +10,7 @@ / { aliases { ethernet0 = &gmac; + i2c10 = &i2c10; mmc0 = &sdhci; }; @@ -378,14 +379,25 @@ &i2c7 { clock-frequency = <400000>; fan: fan@18 { - compatible = "ti,amc6821"; + compatible = "tsd,mule", "ti,amc6821"; reg = <0x18>; - #cooling-cells = <2>; - }; - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; }; From patchwork Thu Jul 25 13:27:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13741921 Received: from DB3PR0202CU003.outbound.protection.outlook.com (mail-northeuropeazon11021098.outbound.protection.outlook.com [52.101.65.98]) (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 9A79119D88A; Thu, 25 Jul 2024 13:28:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.65.98 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914111; cv=fail; b=dZcRGkksuFDcYr7AnMa/hWKZhHkrFKBRuRNYpRZv/lxFNASudCeV50dqlz5LKJyHnnBc1WWnkC86T89YY9MSHff/0Og81k+8rUWGtSO9PuMFOOUbn7Zb/DpblrDCMnZMx/y12XuDbJ/BnurpzrHrnYMep91M1tz3UCA4q4UV9Ko= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914111; c=relaxed/simple; bh=0ycskgF4i/k1Gn0W5b36xNoc0QCRO5/LXJVn/yn6OyQ=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=slfhnOSmEPiHE5bXU9OLDplQWF7Ncwf4bxLw3wGrxmT6YK/8rhlXEl0GlXwnsFDxDL34G+9sqE6dNZWQLnX/5sDy+USo4q6NAh9YDPNwjjUiNhw7c6aiSmtBXThMwnfB7xLyb1RfdDB9PtEv4HDnyCK3VYAYVC+ieOMB6d3MTLI= 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=KVSxAlSh; arc=fail smtp.client-ip=52.101.65.98 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="KVSxAlSh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ocql6ckHW4sdoxEvVpfnWzJFI3E4jGXe1uDrF3yFzy6k9cX9whJG2UIM3nvEW1cv0REpzlIM/ySOz171lyWvYxnxB0+ZyaIbQyE9XLWE1ijCNVbMnOcAq4CelIf9fBi/d0Vs+1ZUJg2BPirm9vinrDgLuHm+5cmSnOMk5Zc2+hqxrQQ9tHzBfJrSvE40qVpOuLWSZTLwdQarZQnaQcB7q2SlqVRMnlSfTgVTeSOu+6DCoPvkJVq4je4EPyDzPGYBEFoyRjE0PmbS/gTVCMvwmK95xYamZra2/zIxlJEqOPgxvjj38Xo4bVDa+1+dmWgu4Tmncyd8re9tJM6wJzkOyg== 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=vi2HZwiFEVHtrJA2zjt1qkuKLdtn2l7f/q+3qLebRPw=; b=k3vSs3aHaVqZ4NH6/aqTygQudG69T5hFP8QH8Z62FjBINuTDI6IK0dtryz7LFab3Ihy8tWP0YRv+midFNQBOVSIF8o0npi3aPL64GvG1dVBSgg1gaQT330C38CK0vYkQVyXVduchhZSHDHwGVFlSalN9DzQd0zlEDURg0Ht8vBoyNy6yvqBsNnmGXAsj9UCDu8Ufq5wLvEqyyAcyVnfja2ORAsdun/eXjXsynpqH0VUu443oMJJl+lU1AVu4LDSL4YVgf+FaGmdXNWD+hGOY5Db/69ANck9aEoyjfFcsg+W+PlUBSbdQEUjCyEanAWujPYp8DMc3l8/4nD0jKk6/QQ== 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=vi2HZwiFEVHtrJA2zjt1qkuKLdtn2l7f/q+3qLebRPw=; b=KVSxAlShGzF2FjGcowfFYBKlTIFzOc7NZ/S21w2BidphB8kVBKS7dYDilEAK/YlWxgmmRLJ5u8zbEorzyJkHVT7XfaRb9WHVdUKj92pTbfwsYewj3uVb+j1Uk25yxxWIeUCBXxWTaRW5/pGb65kxmuxVjCPLPDmP9CYQvIdeF9Y= 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 DU4PR04MB10670.eurprd04.prod.outlook.com (2603:10a6:10:58d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 13:28:21 +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:21 +0000 From: Farouk Bouabid Date: Thu, 25 Jul 2024 15:27:53 +0200 Subject: [PATCH v6 7/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3588-tiger Message-Id: <20240725-dev-mule-i2c-mux-v6-7-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: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DU4PR04MB10670:EE_ X-MS-Office365-Filtering-Correlation-Id: 96fa4c03-afef-4f8a-0cd9-08dcacada71d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?C3vkGLcQuS1sgyZNl8EqRSzmTgYFWO/?= =?utf-8?q?s4nzx0chrRAfP3VezChke1SGHKMI9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FhD/SVCOfArM/ma+7i8w1E4UBIAavCVM8KfAXxGxhISa?= =?utf-8?q?HrBcMSuvbsvRkvs2YmZfUypJlB93S6sFsZ6vcg0eJU+vN8ZAWVkkkmY+hnTGGW+bI?= =?utf-8?q?AZQ/W6dW2XpGY2qMADpy/FC2KxiT/hmpTHRtnbbK1JdIyaRt2bAnMwR+UkX1K7Fi7?= =?utf-8?q?rbvBXFMILc875VEu+AEDAnyQ0OL4suMXdwv2uNIVd1SULOwOaaGK+4jMMqd1/sbyz?= =?utf-8?q?MDVLCgqc0RhiUPBzMACHyc0oqkXMgMzcIoLf+kMAu9UQgQ+mm/LyxD34We2YGNimh?= =?utf-8?q?GyYD7DuhPWFM/RedNaQKgxPr6tEDaWeg+ysf4IlLqetUjyXQjS96KWbJQeFxoZZZJ?= =?utf-8?q?7JIYjAEXMP492/EpollQokZkVzs80dcFZEwI/myT/R1jTVycoSzfQll2pStJ2dw32?= =?utf-8?q?SOcOZX32ff5a14rXvqFa2+Ws8XSya5H6OV5DTIdZ+kzaAORTywAfo7Q=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)(52116014)(376014)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?OlOixic5GTwXYX/O8EhNeL0RDK5Q?= =?utf-8?q?GnrhtKueMp/Kifqy1T7V4u2QY/5jYr/ShukePUvykitEbgTu8Y29GApBn6zQLjQwP?= =?utf-8?q?plktDzzXL35nZmYk/w1ihqcIwYpdN5GpLNH8JX7PFduGbxcu5ocGxIveJdkLoJ0o7?= =?utf-8?q?5IlJ8LuPd2dZAP7UKW3GoluaV0PfrDgoaDoYJAIpPBrNHqlAvHSpqOqdKd2o/pyjd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OVu19umwbB?= =?utf-8?q?HTGjinnwuQd9WDBuuO97HujkkFefuRx3nE9twSCk3qXqk/cWkKrPujBywByzHyQFU?= =?utf-8?q?22ZDDF+8eaUiBJu/zz0jfofnipkFO3UjfLS0Xi+bulIMGNbiqkzi+9Y3IAy2gBYq8?= =?utf-8?q?gL4chbii38k4n1WHNfHIUZPZIMaD0Ziu181CSf3AkxY67RmIP9bjKXFhzoe+wei54?= =?utf-8?q?7Kw9yslhCUFmg8RJwuETZw6999T9Mqbdrv0cI5x8k2v46Gb7SVhq8zfJ+aK0prLik?= =?utf-8?q?bleiYx2q0RrcGfTG6WW5ybH9l5+cxV2nuTfyaQ6YlnzFfYuSwZdpzaIsRMiWcjKnK?= =?utf-8?q?U4qmDKPeMtVd4ZS6q3obMEjU2YKBhTfGimHH0QK8YMydm+KPlFEC8NJyVEUM0IsRT?= =?utf-8?q?cD45H4e88ZVOupW9gDU25r/jFijed+1ZFipzgpUT+g7ZC5wmmwqzVIv3+kAl2gRIq?= =?utf-8?q?OgzIrJzq2JRbwLscFYdUaNnklRwaNGCbTg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 96fa4c03-afef-4f8a-0cd9-08dcacada71d 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:21.4505 (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: zdLQopNsjeArRxCFepN5u454DSi0y6paF5yo0z+iRE2tZTvAsUN5XBu7Z6mNwJ/OEgcpA1SfFmBdGPBGj+xWY1OeEVak+9J8Y30rMWhcY+o= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10670 Add the tsd,mule-i2c-mux alongside with the amc6821 (tsd,mule) and isl1208 as a default device on the mux. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi index 615094bb8ba3..a02f1178c60c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi @@ -12,6 +12,7 @@ / { compatible = "tsd,rk3588-tiger", "rockchip,rk3588"; aliases { + i2c10 = &i2c10; mmc0 = &sdhci; rtc0 = &rtc_twi; }; @@ -224,13 +225,25 @@ &i2c6 { status = "okay"; fan@18 { - compatible = "ti,amc6821"; + compatible = "tsd,mule", "ti,amc6821"; reg = <0x18>; - }; - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; }; From patchwork Thu Jul 25 13:27:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13741922 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11020111.outbound.protection.outlook.com [52.101.69.111]) (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 3E63E19D8A4; Thu, 25 Jul 2024 13:28:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.111 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914112; cv=fail; b=kzwu8BpvlOkDa55am7h8hkq8VHEeOF91h2mWD7fsvvbBYhhP4nipdqKsAWg6WJQgWA6RaPkxFyzPhY1n3r9dTsDbHKJmgVPYIt7dsuGShpjEivWhno48qXo2DS7OstTby8XsrVRi6mtDe1QVS1pNRSqMZF32gRZHJGXpFj5SJYg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721914112; c=relaxed/simple; bh=ZqLxvdbON4HGIDwXyHoLXPvWlZD6EQcsY3ekUxJ7maw=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=iFb22wMJSziVTc5zOkIWR1GrZLKUq0OgR31pygUlYuKQLNFrDSAsx36qQbNLzFSH6QVziUvuHGoLaSSZC+Mxmbt6yBmJwmJSwm9gYoZy/xTc0qJe0/Cr+3We9AJ204cAS0PkBgSvmILC95EsmxfnWFVwM28fY51pA39e9BDshHU= 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=i3YzIZuz; arc=fail smtp.client-ip=52.101.69.111 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="i3YzIZuz" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LK0sMfNbl40xnHjdPY/pgFAY2pYhCaUoSjgEaRnh7WgChVTtjBnpjaAfi+DM+jfFDv2sC6YNL0vr5eCLnSpe+sbcrqFQb/MddOK/3VCYhg0yRvg3TvebiqPOz4zsd2lofVPcLPFB3Hcuu7FP9byh2bcDt1Z+4hwYXEcGRQ3so0YsJS4oPQ+J14N/93kLoJj1NpX5b5GDTUQcnZw8uzP0XY4sDC4uAe0xL3apUsoup4YOchhJpGGn6fMr1ihrHD9pnvM2gm+RJfEkpibC/H7YrFoO+hoUGvfHFNH7T8FdxzZAgergAB9hg+dFxXvhj7uBCNvBwAww22PvmmynmjoacQ== 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=MpOnVJ2Fq9UBRXgKUtAdUe3ZeBAX+dIsb/Jnqh7FOQ0=; b=XaXGDTHH5N4F222rM+Id7DMgXUxPhupQ45JOuU6Eno4ytpP0vzcYK/fkNCqtr1wZLawmOyXtYsYd6d6qlL3u/jrCrC5spNfoYDZEX1uAt07AKwgoQnrJkBdnrlglaJ9s4zXTLEKQswgBMsSZQfWTeIEFz5MNTh55Rc3sPtrq6UJyXp7y0S8a2pOOTSmuGV4x7iTxnL4rZKW77KkFwyLbnq1N9XEYiRrKyYUUxoc9GWj6/w9NAU4U4IJTKtZCq0roLZz52R002IWSjFtlCC48OSq3p0ssXIFxLA4wS0e/eNhNFzeFm5HQ6A5dHOpKULb6DETU2E73+Sm4iKv/oUIibA== 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=MpOnVJ2Fq9UBRXgKUtAdUe3ZeBAX+dIsb/Jnqh7FOQ0=; b=i3YzIZuzQJDEiQ4RYCFrDgpMkSKkoeRs9+/Ad4EZ9w7QQUzw+T+4PZjmB6LqPFNSdHoEneE3bWvLcK563DyhrvUXncmmOgrdGJt23ywQSEUunbRmavc/JYL/TSSMrJRFk2TgWvUtntg06HiwcQ+7e89jZwI+OhKPGJ9vUpMSC1M= 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 DU4PR04MB10670.eurprd04.prod.outlook.com (2603:10a6:10:58d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.28; Thu, 25 Jul 2024 13:28:22 +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:22 +0000 From: Farouk Bouabid Date: Thu, 25 Jul 2024 15:27:54 +0200 Subject: [PATCH v6 8/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on px30-ringneck Message-Id: <20240725-dev-mule-i2c-mux-v6-8-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: linux-hwmon@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DU4PR04MB10670:EE_ X-MS-Office365-Filtering-Correlation-Id: 77719568-08a0-47d1-b7eb-08dcacada7bd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|52116014|376014|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?FUeyD9eTJWiENX1PVHCD4hCvKQGx+F7?= =?utf-8?q?x3aKsDsVeFIeecI8sDwDzalfZnSWjQAxz1XXHcTrbOivnT0eG1oaEVzyE69cR2feC?= =?utf-8?q?/sIZsFevB1YztJxenJ3QkpOLfsWIYmx8Ig0R/2n0QEwFpGQH6N8peqrVaxzsNH/dX?= =?utf-8?q?HaCmjMtWQPUwStluTFujy7asLbneMm4meeRdCkIRBJoS8k/xepptP0LrHalPiZtWD?= =?utf-8?q?a5uqWPskVXYfSEdxldtyjV0GOUnZISeX+6m8csbcG0FkW1UG3JybuCHNP6abq1qfE?= =?utf-8?q?mG8JUiU2IpaccuzB8ia0bIFKYDx/JoBI/cIbpcnsIdgARNIiAfFDgtFwzfiYJdj04?= =?utf-8?q?o8Gb+837tdAC5RImPBvXXl2klTxOcKsqhHunVIkpLg7l60Arf/6AUPVgaWc2MCfL/?= =?utf-8?q?1FjysZehqQihKDJvAdmzs50nCqfZKsvApBkl5pXzbfbpJaoLHHKgJ4lqUPH8vVe0A?= =?utf-8?q?MWwtdgMCIsAgl0E7xKB6h3F5NNZr89WWdv3HnJ3stv/lVFNfnOzJyWCN9mooM3dBY?= =?utf-8?q?j2aezxfbpNJe8NoymhUyxzRk2DfMKO6qPHhV1hCDQfPSE7o7bqFrWZzbYmC8d/idG?= =?utf-8?q?x+i9o57VNuRVR7oR8bfcknp0Rr/CaoQT/JoLqYqYv9NP3g5tsxVxZfx66T3YQvViU?= =?utf-8?q?IrIr1TPtOvDAYTh/pQWbsg0zIDqT1tcnB8HFcS8JSgZx7KDHn3xhijz1LtfNB4sXL?= =?utf-8?q?SzmOf9avFoMee/NbKxqxUm5LcvXdc4THN660k/FURn5eWUMKOWOsZ1UoeaaVUTwUG?= =?utf-8?q?YOsGLWJKSGdBm5Rc2Z3RIA9Wh7/szhCP1zpS1aEcXRUnboZUgvo+Zknx94UqIt+pO?= =?utf-8?q?dKO/fvGVDjJaV/BkYYyeKFoxneR0zRMoTKS1bXLZ9/cXalN5GjSo9Em9IG4SyxxDg?= =?utf-8?q?jIQ64Jjdhj3FwcClFcCwDmlTx6WcBtIZoBxdr08VIHmq6Tld7IG0+FHn2ye7MRCu8?= =?utf-8?q?2jv3b0PICpVRYzeaDKGyXFqWj4AjQLGZbYKi6584l2OGaD9ayICap74m+yviCWmFh?= =?utf-8?q?aRVOGAXM8QAzsdZLizZNR0uGsfDaGkxtElUjdfcob4y6jsqhrGhoEttTkACRvicTj?= =?utf-8?q?E2HupRum/sR1y0ZA0PjCyIx4lRaVziG3FKC4RMlCeODVWJfXAxdzajWE1rmow/1El?= =?utf-8?q?sCa22X2uX81c5BibuXrZfU0/SP4Ir5fqzzzOH/rCqCcOU9aaufGC055WhPSXD27mV?= =?utf-8?q?gDX9lUed4wY+72ZtBugkGivlMAqJMogGOF2a4uSH+1IaKmBwvoDLt86WUWwOTsENl?= =?utf-8?q?gndhm1XuMsCUJUCsIcnad0siN8W4FUsIFAPVvl2Yu8fAIcsPdiChnY3+jR0aw4wyt?= =?utf-8?q?xGiCjiRSZ8ERKeeU0DcblRHCxY0vdCp+xa05dmy0Smo1jrdT6KPUY/g=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)(52116014)(376014)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?bcOx7ods8oidzc0euAkhngsJbqRX?= =?utf-8?q?3JoxmRefNxFs4eLgVmwGvGFNzMstYIrSCZNIZoHxLziGqh9mfPtCs3ZzP2WAFRV7c?= =?utf-8?q?DiHCVY7ao2M6BRLrempGdvG9/8h+pz4u5hUE0o8rCZmGx99UbuXQG+TCmgulAQ9L8?= =?utf-8?q?8JSZMfcfXPV8L9cIgfzmJZYAMQYLMRQJs1FP7L4Iw0R1IrPsVLCnt6wNIY1UleOv8?= =?utf-8?q?LPF5AE2RBNISS9nMutarIzVPcrJKzordUeZmCcj4a/mzpDj24k+6EsNvBuqD7E7+U?= =?utf-8?q?9HpULwe2vmGGDxpYi9HR1pxoPlupl4/IWv7Z4iDOqVI/IloBFmHo8f/iC5wixdJkQ?= =?utf-8?q?tTjzij8CCmuEj+XMbxuWRe6kQuh57rxg7+IFhHHHQKLwt8HMywI1P7GUgpU+yPxKD?= =?utf-8?q?SrlLjebC/NP39psvOvKg+4h4unkJQpKHVGxc8GLI7wQTR71d2pKvYbLUhrGKwB9ha?= =?utf-8?q?Ahy6HibocDb7f+S025B0goSUUt00gWxq7bUWF9EAhlt4cIrTzDGH+G6CuOLiGTQGs?= =?utf-8?q?8E08Ov+BRBmPPiJ3zFj7kPteOiQBRoz85wbM2hBXL8haMlq+0PQTao+VUWOgMRe3Q?= =?utf-8?q?oqtfffOJJt6gl6EWMmjx2k2LbhAZfvGNJhlvGxvxIBRflKuNGGLZDI+bUMpVszSd+?= =?utf-8?q?8Rz5b3EQC5CcfPBymiHArQkBiR7LEYbaNQoqMvljStV8rd6+PDb4HwV7/Frg7zXQ/?= =?utf-8?q?X6h/adqvWSR2DsyLxCKzcLLxz/9hF9VCPliOStfoGPIdkvfUHMtk1KGL9oGH2C765?= =?utf-8?q?JJ1Ux3r1QHaOQGXElrmvkHjjszeLB0V5AfTxHt7ZbkXPzJXwMmV+BXWpJ2qd2B43u?= =?utf-8?q?Lq2yfqGfY+L5U99tOUCPl1oBQ7IFHhOYj9FVsMy9dggJU5MAsFCu0KHowesnKvBql?= =?utf-8?q?nUCbwSG41meO+qwDrBSJVResoO8R/iz5nOGF6DcUkYfHpKfSn1UsOK18wuqJj6qNw?= =?utf-8?q?ki1jwMDhL49QNTxZ3NoOyAKWhjcygKbB475bk3trjoqUSj8hLxBTy8S/d7nb86obG?= =?utf-8?q?zQqNvm3f+807JnJ7ywVSlJ39/WHMoGBpUqibXS+OeRBhZH9bKWt9W9zR8RFVWn+84?= =?utf-8?q?+ZhIKluhXU/Ogy8/IV0Y/B527dHeuL/G1EwFUbXgkf5reObyi37SKKVUI9vSEW2lz?= =?utf-8?q?YX0XRO0NdDEHrtOy/hIRqa//9+RVxNUoaJzIj4C7r1CKgrgAz3fbQ6STDqF7PpC89?= =?utf-8?q?laS/576fywkTCpTjE1dnvndSjf7xxyuU2kj3F3YSWyPxPZC12dWx2ZgGY4flwPd0C?= =?utf-8?q?qqV16PcaJPJ73qdWSr+EfSDFT5ZN2IFH8xlPuki37O/igKDXSmc5mBEgPTTUycjlf?= =?utf-8?q?A7AbXSCA9yqZw+KpbRQ6fJ9J8O5LR3z3sTycuosqYhyU5sKvAN++3tH/eO3quxuxI?= =?utf-8?q?ObWSor+zs2ocL6d0c6+rSBG2u/BVf9qWmRQaiOyss2Cw1AmcY6F3VbwE4Det1GzO1?= =?utf-8?q?IJGglvs0uo8IAMsDge1UTsLxsnCuuTz3BY1YuVhHknh/BfAZRz0xgXfaNZpzhfNdU?= =?utf-8?q?e9lO1FWmjFC6iBtMkITMkPbj0EokcG7srQ=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 77719568-08a0-47d1-b7eb-08dcacada7bd 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:22.4531 (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: Hva0Dwl7eo/bT3kYiTon6aa/SBwxDeB0keg+nw1Khohzwj0YIMA23F3NfiSgsGQ3nwSNBMGdIb1AahGyJBqRuAMoiavPh+iUbjF/2h3viNs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10670 Add the tsd,mule-i2c-mux alongside with the amc6821 (tsd,mule) and isl1208 as a default device on the mux. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi index bb1aea82e666..a683ed3e2fce 100644 --- a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi @@ -9,6 +9,7 @@ / { aliases { + i2c10 = &i2c10; mmc0 = &emmc; mmc1 = &sdio; rtc0 = &rtc_twi; @@ -292,14 +293,25 @@ &i2c1 { clock-frequency = <400000>; fan: fan@18 { - compatible = "ti,amc6821"; + compatible = "tsd,mule", "ti,amc6821"; reg = <0x18>; - #cooling-cells = <2>; - }; - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; };