From patchwork Mon Jul 8 16:12:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13726839 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2130.outbound.protection.outlook.com [40.107.20.130]) (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 86A3513B7BE; Mon, 8 Jul 2024 16:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.130 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455200; cv=fail; b=n8hwylfkylMGXuWE56zIjwtQ4yTiszp6cbtZwkqUJi2AN3QaYxmP98QTB86alCAFDpz2NsFR+gwDAspTGxGjCdtxpQl8yLMNvRR6/5qQuL1uXg0dmguktp9RZpXLfkYZ8QoOPZjGUlR5w+E/RpBDZa3PpQF0ky4x5wSMDtuCCiM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455200; c=relaxed/simple; bh=uxjNQsin//RpLHGPJiutNOqul2+aED/LlFWL5Coaieg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Ab8nvupbrQn9rRdGpvp9Ffe2hkXuq/Wtg2C9iuBNk6oJ5+NCOwZPxvXqm+17ygPnBpiqMvg6i8aayZCD7PLocHmxtQhUAts2PA2MDkCA1I0S+JSHONACfY32NZrkMQYxbrWCtX8VDa3hlNFbghZnESxA5Gf1TCJy3S4xh55Ue1E= 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=G18nvGtE; arc=fail smtp.client-ip=40.107.20.130 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="G18nvGtE" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QWvTdMwIpfGoxklf1P4u6YuzVts5H3pksDgO5gbyB79WfVBSC0BQJYowEdI5cT7R//oNiHktixPqAeg7I5M6nXyqZqMIh9d/VTfQ+UxTFu3S+L/txsYPLOnb/KH+G8Hfm7nwja+C52DTsXUcocc7ZX7XPX+2+ntW9u+XGX54mF3r5UDQMjTuOledrc4BTlP/uzDTALBN5cSvWdm4RCz8O4oR+RDuskauY8eQxqmKNpHPG18QnXdS/kW5pnrlWUGq/Co7z00/h5P7j0LK8na7hAe7IRF2Mu5YBiEVQBrA0VfGrU6xGxzSfCN7IbgBTHDcd6VY26sa9WBGx8gCjYG+Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=4ZRaeGul8ksk2vs5d9Ox3E6MuuZILO/56GodZsU2vVI=; b=Ryc5JXbBou62mtC1SUBNMOb9L5GbI7lXMHxEJwNJIuK24pjzdHcpf6DIX72LFjKJHCVn62abrTTnStt7mVZszDntpzBIjWqsQawjEVvz2OXMQVt6tIHNTUskpY09sagp4F8kZ7gCKys5pP2SL0mR4UtVdYtnfi0ji9FE8/DOIaba3N8O4Mu1jQrCAw04eJeQQ4HsBZu+Uqk7/DbNmGmS9fGfKlY0DJsJa+Wokx004dt7jwwB7kDn5LAubJ9aqiXcpiHIVnbF0Xr/fVw5yxFNpWAWf5BN6ZTHkaruyrk6uz/q+Ku8aFBfM6C2Us+GnxY9Pw0n0IctOLtm1sIiyfNV6g== 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=4ZRaeGul8ksk2vs5d9Ox3E6MuuZILO/56GodZsU2vVI=; b=G18nvGtEX7n3AlDv3N04NH4GGc/py1kwYiXpFWG3K5KmgFKf1n9HerAo0nzMAjD8hxQ9sTa3eoLyRuKEqR3WwliwSHg1NrNfWVmZvV49cdxKZm6UXfSIDcZWEZFdeTe5F0wRTWIZn/Xs6BHrp7Dn5Tz1teUhS+uCDbnrVNDl/lA= 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 GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Mon, 8 Jul 2024 16:13:10 +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.7741.033; Mon, 8 Jul 2024 16:13:10 +0000 From: Farouk Bouabid Date: Mon, 08 Jul 2024 18:12:12 +0200 Subject: [PATCH v5 1/8] dt-bindings: i2c: add support for tsd,mule-i2c-mux Message-Id: <20240708-dev-mule-i2c-mux-v5-1-71446d3f0b8d@cherry.de> References: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@cherry.de> In-Reply-To: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@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: VE1PR03CA0057.eurprd03.prod.outlook.com (2603:10a6:803:118::46) 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_|GV1PR04MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: 6c308390-5271-4189-f433-08dc9f68dc77 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?4hstHsXSmm5kaWyp+T7SkwnlsIlPO0A?= =?utf-8?q?kR7y8gKmPfwLVy6PBf0p1oJF5AXZTwmaZNT310zQe5BTFB3MFVpOCrzOjODV0WFiY?= =?utf-8?q?oE97SSwTnBzneuNKhfxlCqILrZc57NU4AMzAFvk48dPt1PGmY7zG9OIdKZ+PiY0Kt?= =?utf-8?q?5xPlh8mvPtkJ6pbG94ctlMu7mwTQGiYvlal0xtQO1WbuwCiGg6gWEcVp5UUcr1AyC?= =?utf-8?q?CISrNoRiw0s6bLlmMM8n9fM1fZBitehDrXun4Ny4U8NC4if6opnt6XMRYS0mgkmWI?= =?utf-8?q?W0L2dqIkBcLRY378X48aapqC/Z5H0cOhM+2v5R9xXmZAG3rrA4S2aTFsY21jerB2Y?= =?utf-8?q?RgJVg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i6AMifKNBSpgI9ozO02XXp8GrAQDv0nzSyuE6kZMkfF9+1LWtMw3RC5lvFQNUCi9?= =?utf-8?q?khlKnjftZc1Kc322/aoSJczY6F89jS9euF4XvZU/sQcj9heBSt6s6+EY=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?EHeD7mNPY7KO7dgYuiqZb4PkVD/G?= =?utf-8?q?8jT+lxj3U4OkomoohMo4EtDt/D3yLryRjdcB4TZS3ifgqNo5jyVehcSmBp1OrnSbR?= =?utf-8?q?gHujYXDNcgnUf9rLZBzgsgdG3LFWKXPU396Xg8tMtgklVGqh+7+s7F2gl0EF+G+fy?= =?utf-8?q?n20OttaUIk+iW6r3i1GSceGMOOeODbI2vlP9/uKhNoI20rL+mFt+pP755tjCd9p7i?= =?utf-8?q?dOXGceHSxbFaTzq1RO7zGud17OD8UTFiway84KgEc/YN/U7Vxe+Jxjc3RQyywuxlz?= =?utf-8?q?5R4cM8A1Ht6JokGhUMxl+Abv35/nAh99qXkqriyg80o+NBShNQrcd1n16QRPCwk+b?= =?utf-8?q?WitvUA159rlYThH0Vg1ahuTsMTQ6uN9eDSXz0zPAdxPDSN0oqZWHsGpwHQekTuUPI?= =?utf-8?q?MGNygKUu0s1pS7UTdhY4agtKcyVhYosDFKPu9DTjE63hYT3bbWE7wft9nD2HyrSJ3?= =?utf-8?q?GXuk0TA4oZMjOg3Kh+Y7zU9gOOdo6BnPrqgCcvodYRngouaSeOgBOYZvaO1fxZOWX?= =?utf-8?q?/SNLRNlFnZWH0mz0nZ21Usjmxb2D/MlueayyguSZgsY3037wtctj9x3IZI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-8?q?khh73D12IB/YBZ9Swp7PIWaYOKKRjEUmI65neOCDwgkaMalqmH3MjAqf6dLOdEdTh?= =?utf-8?q?IQipLpvx3w8rJUWhPxESGOCXQN3oL2GYyw=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 6c308390-5271-4189-f433-08dc9f68dc77 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2024 16:13:10.4647 (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: E1bH401I8OwuVoqMA2q3+AYFrTdERWp1kZW5sEJcSEwRObEB2gb9nkLRWJD5uBEFCVUv2Habv1BdqCvSP/inzhP1+BlaebtJI4pP6XFhzSA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9055 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. Signed-off-by: Farouk Bouabid Reviewed-by: Rob Herring (Arm) --- .../devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml b/Documentation/devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml new file mode 100644 index 000000000000..28139b676661 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/tsd,mule-i2c-mux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Theobroma Systems Mule I2C multiplexer + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +description: | + Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among + which devices that are reachable through an I2C-mux. The devices on the mux + can be selected by writing the appropriate device number to an I2C config + register. + + + +--------------------------------------------------+ + | Mule | + 0x18| +---------------+ | + -------->|Config register|----+ | + | +---------------+ | | + | V_ | + | | \ +--------+ | + | | \-------->| dev #0 | | + | | | +--------+ | + 0x6f| | M |-------->| dev #1 | | + ---------------------------->| U | +--------+ | + | | X |-------->| dev #2 | | + | | | +--------+ | + | | /-------->| dev #3 | | + | |__/ +--------+ | + +--------------------------------------------------+ + + +allOf: + - $ref: /schemas/i2c/i2c-mux.yaml# + +properties: + compatible: + const: tsd,mule-i2c-mux + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; +... + From patchwork Mon Jul 8 16:12:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13726838 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2114.outbound.protection.outlook.com [40.107.20.114]) (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 97EF226AC1; Mon, 8 Jul 2024 16:13:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.114 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455198; cv=fail; b=EzHFn8KRsZHx3BywpwA2wEwaQMBe/+dlJbnRQZ4j9YFuNK9z18AWOI7LG/uFASUjqc5la3tSw/GPsPjGz3oh2n4Vli2heDsaHhsCC7a35OsC8LKfkc1rgjaVvEppAIyXdosa6G0tyevHcb7yBpM0AvGkvegC6byR6u5OKc+N/Xk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455198; c=relaxed/simple; bh=xUOzJhYgGi7tOD03S2/glWYlpwIkiosXRfldjdIrq0E=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=iBrUssVaRP254EA/u5lJxbje4Y+11du2NrzVhmmvRZNZAA0b6/ChVNQJiVkaCWtC/gSSpOCx+Zyz/GChn3fhaTHLKzABQqI/7lwKxYOlwrlNj/qCH5s6gtztCic+uM+icbhkgBj7EXdtZlZhFvfW4/Ie5ZHUWmJtCN5kOemP2HE= 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=AqBfEx14; arc=fail smtp.client-ip=40.107.20.114 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="AqBfEx14" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZLNZrW69qO/h0frXciJzqzLhbf+yUFu9ULG5LDoIeZNVjOx2/+nF+jQ63+cHxWLUmX+c5zAUfzSBZGY2yAe6bu5hlZ77lQE3NznWEMLU0o7z2nGpxv62tGTgB46m+AX6dMbJiGrSlUYJeRfLNcjGZQDPJsdZyaIlndyTk12dVFL2IOBHlgrWtY4FFdBsoUwRRAjnkc0bz2ORbqrPDjOq+OjEmB1L29ZINOZk9T38kcuM396Yi6ifgJeGv5h8J3unnWAIdg9u7NT2kSuywJ7d/8HU01P1xaFrw/gFvq8h76soGK/rl7EqnxxGH72WEvaNUblc4eq5q2FfOSiN/WouJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=FT3FCZKPZVnj3KM69y0ylE54LBGQdMP+uPpZVOZDoVF87XXrb7tb0gE27eIEZAa7I+RHzWFgA1austm9DJ4hoS831ZWOJIb7Uw6+5yXAs+2obqZpb52fKZjyRvTJdnRDeW6BV9AhgVdiA2/OIMOpy964YXFFaAVbmMB3RKbQFOr2zu5CoMuMOtMuUSxjBeVDSynaSz4bdwEMxa/DfHhIhbiMSHQSwP+vp24g8GFj1Td67HX6NGJh6KEaZeV0fD1hxYNfT1GA04K0ZckEOaTF95y8D164snlHeo8b9hdwO3fJ6zwbStu+eH49kOuEBH5dhR38BM+0tFMvMkCU2R9WQA== 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=AqBfEx14Hi4j0RGGhpynThyXA5r1ZsLFvQmxIGl3N0icrhhZl9Imr1x5F5YjQZOrCGrMzUATSn8nr/B9EhDYzKOGuzoKM9eIM0MAh9hinbj15t3ppP+ngLTXyetULKF2xw0Zp3QrpGtLB1M6pzhNzCyXODz7eR4HuhozTWO+D5c= 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 GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Mon, 8 Jul 2024 16:13:11 +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.7741.033; Mon, 8 Jul 2024 16:13:11 +0000 From: Farouk Bouabid Date: Mon, 08 Jul 2024 18:12:13 +0200 Subject: [PATCH v5 2/8] i2c: muxes: add support for tsd,mule-i2c multiplexer Message-Id: <20240708-dev-mule-i2c-mux-v5-2-71446d3f0b8d@cherry.de> References: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@cherry.de> In-Reply-To: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@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: VE1PR03CA0057.eurprd03.prod.outlook.com (2603:10a6:803:118::46) 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_|GV1PR04MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: 41660f54-5014-41de-1e0b-08dc9f68dd04 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?oj3wrKWgrk5peqlxh0PBhr6tXMszw9M?= =?utf-8?q?ZZ6RKHRHnBXbeBM+IDL5dIgvc7RLGD/jXAOoyCkXyHYXvll4uGm5djiPK9/9Wb583?= =?utf-8?q?yjGTCO4hlpy7yyyF+bApZ6weIhqP/sxradTXqrHWpi+8k8p7xiZ36bt66XyBW7gVI?= =?utf-8?q?gxXcX5EhjdPfvcMjUXGfxvLTFJLCyntqvzcewT/DL1cMaF8so6BXrxbqkf4L81rdi?= =?utf-8?q?FxF092TgLA7ylDVYHVL3ihzxzkxE7jxu+UCknYaGSavjBaok7yd/XhfgQX9CsOL1j?= =?utf-8?q?QvK2tQtNIzqd1lvQLppHaSs/xki4Ij1l4oJ7ZYwk2H0clQRZk6ppds0n87p0kEifP?= =?utf-8?q?pNGnC1it5ezY3yECTQAPjVGvLEzsYcrzxzETt4AEWOY7KAeWSVOdRmgQNNYL0br6z?= =?utf-8?q?XMD08d7O5hTPoCwh40HRd7sdQk0RQgrgz5ThWx6w4Br3nWt1EZp1NOew9blYx/BlG?= =?utf-8?q?YnNtMwukxpkCNbpSHA48q6llEPoAYm9oPeJtCfp2n0wsSNz2ACOfWCh4U+yFDHWGy?= =?utf-8?q?aFZirpcYAyWgDfUwMYzG9qzeHk9d5Vf7TL5tGrO5E3KVQW+CNwsCW3Gnlb9tPvM+m?= =?utf-8?q?mUftv7x8NwaLehXzprh81ZENV1fokhkdo3OameMqYy17kd4+SXaPoU+egdzyoZO3Z?= =?utf-8?q?MxcDOaNnq1BRbjRbcsrKIeC2JkeK9+MlwC+M/JH52atXrUAjRWH25Cqx/mCJhcfD/?= =?utf-8?q?yJH/DPf5QRYpOhvEaW3oX3XJurxbZ04Q0O9r9y3W11QoWzbZNnj4KI93C2TQdhC4z?= =?utf-8?q?DzsrpaRDqSqQGiaxgyjcL4cFWSE8TOjjPxQMqgKOCiXbA/Ojb1jrFYuKb0YDp3s3n?= =?utf-8?q?vf1FB2iU4pBqIQSQVrvJ7DgTW9TnVD/TkdX6YOL6TLk1/LZoOyVHrD9NEqQbEEfVj?= =?utf-8?q?RKNYBm9hUs/YPI7bh2TSpGyfWI6hJPUdPDrZrFHWTDN9Qx/OVzO7Acz1pyJbtjjah?= =?utf-8?q?meir3qiZXKfkIlorw+SMYMEMsV78M8ym37LMqN5S3prd3rFu88kWs+uOdkUHTnlOH?= =?utf-8?q?uNqiUZSORhjZIbX9TFRsIZCtXiT6H1AwooP1zLxPKadUGjewjKt/jdUQ9LAlcxtIE?= =?utf-8?q?Zj0CgUVkill8a1CsiEphhBDErwY8QNbtXoSdIrBvODw9BRf9HJH9wi63IrzSsdhdt?= =?utf-8?q?QItIElLwfdrzE/a1Yf4vnOHfHE9/mnYzTpz6BQDKu4Cp761xtVYeWRS7jijbRjwL9?= =?utf-8?q?f4yzUe7uwp2/zdfuf67zHMlqgB9vtROMs0sWIOQKZQKvIa6l75UM7/9FizlL7U/jc?= =?utf-8?q?eAelhXRAtWBbCeiJ3kCryUC1keAWLm8CRNB2rQNRWUgJB1B852dNCLccWa5xzZg7h?= =?utf-8?q?OpNYu6ByqyYvTalcxrSzGnrQJ2rTPdDc/5S4botJ9UIF0GflEk0eKxE=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?vz/pJx6id8SeNcM/3ZL5fcr0vMvR?= =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Jr?= =?utf-8?q?7a78dNYhUgHNdCcG+gFSI1HIcxi10LgntTVALF37VyRRgEh+gcfUc4DsZfHMK1MAK?= =?utf-8?q?ACf7Xltfqoyt6qTtfhky7m06VzkBQbLn/ZIYcBk4zGfAYbqynSrGKQlQG0v9JBDHh?= =?utf-8?q?Wk/1GA+HypjE3pPVVFfYDA4i1Syav7F0JDIEjA6sm+MIfO6BWl6XIpyhirqLpraD1?= =?utf-8?q?U7OOuWi251S22aK+UpP7O5C/Hrece0IhtEMaN4PX53cshYYJ/n981QEckfYylfwgK?= =?utf-8?q?5hF6BKZ+UYfMeNEee4tfLei7OnXkkWMSrklPIaKyBAws3IOuHLvO4qOHDNEeVLLFn?= =?utf-8?q?EShbA6Zg9Z1pFmIJisnNamHXnLOJ2aim/6cwwF3yqCbULNlLRyfcpQIbsulhuSRfT?= =?utf-8?q?oLdUGT9BVGdiFhg5YQZjx3kJl9dofnFdiUh/w5iBe5bCWbMA2siBQ6THTvStfJUMK?= =?utf-8?q?xKyzHb9YQMDoxqjMi0tczCUOZUAoKPt5ECpW4i5vg96ddhQNI9o5oZv/nq0k50Egr?= =?utf-8?q?Ul4ZfdIR0MWLiPxTMYwHD9DwPnbYKkLNVqZistQwxGMZcU9jx3qZ72ksm01zK2egX?= =?utf-8?q?kM1PdlW92lbMeY4qFU2sy27OefBJYeK9gGmNDB3oJqnAmXewEksvvCCyQA3polOSX?= =?utf-8?q?Ve6/Apl4FuWIp20FTZZ1QGLLfUrBa1bdFw=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 41660f54-5014-41de-1e0b-08dc9f68dd04 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2024 16:13:11.3905 (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: gxKsTB7TSDzDMgmdMzDEzAowUI12z3EuGmq3MnpTtcnn5IK/uXEIVb/Iai6boUjmUC0mQUXlNu6p1f85p5Xvg80kmweChG5eoRLAgCfdM5I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9055 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 --- 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 Mon Jul 8 16:12:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13726841 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2130.outbound.protection.outlook.com [40.107.20.130]) (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 47835146586; Mon, 8 Jul 2024 16:13:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.130 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455202; cv=fail; b=nwEhQYozGcrBVH9T7fZ3SlmZSKE1S43iRBOa8zh1rk63FgWiEufLNP5NXLfKo1mlES7rYVl6lbw3ckDz9ZGuycAcaLdGjDAv+0x6YG3hLgvLFjbIhNRz2obE14TPQO/ODF+mMIAEL10/uWcCpnU5VHTgWSytozSDyG+CIVwkf9o= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455202; c=relaxed/simple; bh=NP9k8yloeg7t5mdGN0rvkMAqqSn42iQ5yzJrUhgibr0=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=CgOpnT1YASqp5bB+tfIVpI+LuyC/E2yiF8MDBBJW/HHtbeMBmQftQlj9yrgqX4NZcQBwaLrFj8ZHHlD39MpRVPP5PxjjfZG4avzh5GcGSrfXOa2GVOtbDtvMXJqaKNIxhOpRD36Rc+Bf3fNtoewb3IgJ0jNpEwlyhZWPRm7kSBY= 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=AOM5EtAx; arc=fail smtp.client-ip=40.107.20.130 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="AOM5EtAx" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HbnVu33MNB//FB+2rIj5Ho+JYMwu1Ma9F1S4Y1gbtjDPtr3LhV2k8lb65j8REwV4rvfjDKuEBJxGJWR6kFUgmegagr/sLWDO3mGsufznDrSMMBzfQ1P/6fi1whgZUL70hmCa40rSEgibME6FhMxIVjrwNkyt1Yx1bmfrkW5gd2of8vLOwMO4JYLwszWS0QFDEUUpEchNrZx+B+kUbbNnkbwqN4d6qKcnRqYn0F/53c/ULewBMFM0r+tSriaNZCy2zsCkl6lNwH3OA0mi6CuUjHI5mDlO4Z6ddp6YZRZEevZmMGvBvOah0aPkR72+jrTf+XCrZ2Lyu6uMflIDjN7quQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=GkOCG7RY7/trDIgoqsitLNlBKtDFLvlpQa96h6aNfEY=; b=jPRyR8/v39jhmy/1QzFLgUtJkx4A3dmfd3B6kbBOfS0BTF7N5DcdRu1vjiQSHTiBR5PbX6aXRM4CfWp7Jv0s3gAM7jC/6aakz3qgj3fTvOTdYTotSkSbrBg9gObfH4oPlNaa4NydytMjLvmD96TlnJH28L3MVgBqzz4RAySLT8WA9/gYklVhxiDj/1sz9h7t4VxfJ2l7/nhoxWqrEDxTCrKWmUtMDO3Fgbw3MR7GSgtoZCBs9IUdjDbflm+yehKRHt1llHBs7Vm55XjGvNYZ1ZTM6PFfYfbFODNXtlLkKy/EcCks5wpN9L1voA3Ob3qw7fPoothoCtAtH8gQ8MhvnA== 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=GkOCG7RY7/trDIgoqsitLNlBKtDFLvlpQa96h6aNfEY=; b=AOM5EtAxMZI46bqvSaYRYfIcg8zLhW1FcVHln4MCKuKRkS34jxyZJvYE4kPPGCMMkG2JuA6DxfWWInSfeD1tXLLLSXloo0ZGGEHw34d8GGCFZfOgv8EzzkHRF48Q/rq5MhY9GoPgUTwiE8yVqvgk1TbXenTw4oL239jvxqjQ3MI= 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 GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Mon, 8 Jul 2024 16:13:12 +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.7741.033; Mon, 8 Jul 2024 16:13:12 +0000 From: Farouk Bouabid Date: Mon, 08 Jul 2024 18:12:14 +0200 Subject: [PATCH v5 3/8] dt-bindings: i2c: add support for tsd,mule Message-Id: <20240708-dev-mule-i2c-mux-v5-3-71446d3f0b8d@cherry.de> References: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@cherry.de> In-Reply-To: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@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: VE1PR03CA0057.eurprd03.prod.outlook.com (2603:10a6:803:118::46) 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_|GV1PR04MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: 80034f53-2024-4555-4fe9-08dc9f68dd92 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?u1/G7AWLFPfjb+Z6DUtPgPFn43CqKpt?= =?utf-8?q?jVIh0+xK5aaZUh9J2McbAcpIEU7SRWkvQy52wvXLZrDpogZNWzOux0lgroz9V4fwB?= =?utf-8?q?gJezN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kzkvQeO8AerjfYBaCA0IQY1rQVbIlbEo5hmnepwMQF98lXSNLrSRcD+?= =?utf-8?q?bvbdmPrMDPuwaepcQhPqS4CoXz9QUkhncENlg9ZCW5NtsRd512a2s2z67lldxAV/b?= =?utf-8?q?JR/5osx8quav3qI9Kxn+FIAupozEr4IQJh6vNy5DtHjZyKc8UQAlZD8xc8Zt1OooM?= =?utf-8?q?nZGPOnsTGlECsTV3ik64d+dLjCHylTGO2Sx9Ku1phavPaHFfo+t8eW3zUoWZcFiQY?= =?utf-8?q?SUMhs6cnOeHdsvVCkyXvNaCXLnfTM3bNAwQLRFlDZL7yVmEbwCadYgxrlUNGnMJz9?= =?utf-8?q?+971+U7SsdE2N4sm0Ll1NAhMqAfkQkbBs+vANyXER1Bn3bwpL7p3shIE=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?N5JrDsuDrWa+JAWxLtqTlN+E8j++?= =?utf-8?q?9EOGFEH3b9HRlfs04j8Gz58y1ws36/YMDyosv2IIPnTll7ektP2JdLZlhQhwNLpks?= =?utf-8?q?n9LXC95DB/kUIlXjfqg2P1gvId3M+w2CAh/aciCRp09rwKDgC+hB9t8GD8MwYnonD?= =?utf-8?q?esqrEl9rrFUhNNjLd6z1wJN/WrzSZrBH5LsGG9sQB8d2besaMZz5o7IFaWgi5aALY?= =?utf-8?q?QCJqaV/fQj85pB18M5A4Q1ww5X1J2m5vh1gaWl7pyWMpLYZe31aghfAQC9O+Xewce?= =?utf-8?q?x4VcqqzcUyC/VdD0nPFXg6TVOkDg8BAX8VnWE9b4Od2uMHt+TaeW4DEDJUn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f-8?q?nrfcyxfrA0qt3zvQkzCA2xT/dN39ABmF9JmN36yboOgGfQxrMnwntS5o0IvphNAG4?= =?utf-8?q?KeosvMKe2d5g2kktyJKN9CSk8FDjjYaz1fKIU225r+VPsd316UdE9PTUo/kA/guW/?= =?utf-8?q?qqfFEnwyRCNn41HAhkI02j7ZcscWRh1FqJZCZ0EipRXb20q6gpk4uQWPSZH0IwsHB?= =?utf-8?q?GteIbnUieCVHvD8rtYT+J5cnKJmPKaWGDTsOORV09GxrNo2fVS2zlOdXYH4B+RKlm?= =?utf-8?q?9nfaQBMuLh6fznnR1N0tuoxVRrpqNz+ZtHvc9IlN/O7SALwvE1nqAx/P9PJ8L7VqP?= =?utf-8?q?A+rDqrSLhS5CJYXQlF8vfW2izZ/52ulMFg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 80034f53-2024-4555-4fe9-08dc9f68dd92 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2024 16:13:12.3105 (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: qQxXZU7xvwyI3BSDfDz8MSeVTJu9J7/QUQNz5149O+DE+XYsbGDMdMiDM3EChwi/hXfNFm85ZqX2scornan1fcKmzD6loLU9dwFFzLCJUiw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9055 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) Signed-off-by: Farouk Bouabid --- .../devicetree/bindings/i2c/tsd,mule.yaml | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/tsd,mule.yaml b/Documentation/devicetree/bindings/i2c/tsd,mule.yaml new file mode 100644 index 000000000000..dbbabba8dd6f --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/tsd,mule.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/tsd,mule.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Theobroma Systems Mule I2C device + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +description: | + 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) + +additionalProperties: true + +properties: + compatible: + contains: + enum: + - tsd,mule + - ti,amc6821 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +examples: + - | + 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>; + }; + }; + }; + }; + }; +... From patchwork Mon Jul 8 16:12:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13726843 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2114.outbound.protection.outlook.com [40.107.20.114]) (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 2060C1487C6; Mon, 8 Jul 2024 16:13:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.114 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455205; cv=fail; b=G825XRBv1FSWYwa/D4ziuXhsi/qaSz6jio7sDZvSofMcGd6EwibPQCZsMINtzK9cu6EjenomusECGrZL4qHhCzk6+rhdgp3taIggkfVQJUlGvmqWu6oFipZnWm246Jq5Wcz5WA2b1aQ0SqB4C82t7siJWi+LSC2DhIt7+NKo0QI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455205; c=relaxed/simple; bh=N26xW5ZbC/263wDEtAd6u+B0wIf5K1mGerf90NpudD0=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=R3UMj0eWr8ceX2jCeeFRL9zTt1E8bcFjh92O8zzUbS324r7zfmMg/E+8TrojByqXm3jUEOljOtJ7dirz1I+WWEslMiL62L5TgX7h62n/Rt2BxeHJ7oE7JduWXDhqWZD6B9boiCL12DqK2GIQ45bcmId5iaFBuxyWsV2o6eitwOM= 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=SSANh13J; arc=fail smtp.client-ip=40.107.20.114 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="SSANh13J" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RU+pK7M/VUauv7AQzj8zsHUeAqSa+cZTsZEqw5FtUJ2n4ogO3ZHnRnbczZPpP7Obh5ZfMeZNnbIPP5n21jHxUDJtfFEZkj222iuBoYpu4AM50d4ujb8GJIJHQ3tnRdaAhqOSICbr4+q9zOnrEuJSIQ93lqSRjs9FcCAxpDXFXhhAaP5VkGDbFrBpme4HVzLQnDFKAZQjVW4YJVEiiyA5TtQ0dpk/A7Y+uq3BnXja/T+9+OExnQh6PxAo2eYkuzcEEuHVUjGl5LrI+c/aifFzXbsNhx3+vFBE/YmZg/zEK64DoN0jiiOFuSYBr31METYuv9xIXA/ajWwMdDrQzQpTAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=Iuhp9T1QHEFE9Wfc7m8ueDzm/rOJFzpQw2ytUIQmKMI=; b=G+UiW0SQ067odd6SesRnZ1pot/8wthy9ZcRCigwASE0lkzLc4mNJ2HlqkQk0STPPhhpcfyOJ31YvRPQHfsxXTRtTMRL3Z+yr6jz8UHe6qbdN7Mh7cQvibOCM0DD0KlUPamODCK0Qim0VRePgNp9S2N+0KoW7LUq05isfq8Xe6pPfR36WUyDrNu8Ym5i2ZyGVmOH7DNOztdIbmSsysF/qtAF/wOZ+NLCeJWaOy5F87PTqD/BQ3kBP7aScSC3Ejer+l56JYTxQJP/I+ynEUeWwF7xBVzyc2OEvVMhs6BFmJUNXJSJsK16Vc24DufJsha1D4wUzXjWMHs03YW8m1XMb1Q== 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=Iuhp9T1QHEFE9Wfc7m8ueDzm/rOJFzpQw2ytUIQmKMI=; b=SSANh13Jjnnjf86NnwyXiluAKeoGqSUVT7QHNQHofxIBHjuCRolZ3uxi32C6NJ8c5KFn2vE0Br8JiMTWV9gPBJVyBXFYbnb7eJhyPfZTP9ivByeQ92UGzyxynKGwJrqoD/5pehFw6rM9KTlhVE7ehmHQIrwQys3K4my2fJHwgIs= 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 GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Mon, 8 Jul 2024 16:13:13 +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.7741.033; Mon, 8 Jul 2024 16:13:13 +0000 From: Farouk Bouabid Date: Mon, 08 Jul 2024 18:12:15 +0200 Subject: [PATCH v5 4/8] hwmon: (amc6821) add support for tsd,mule Message-Id: <20240708-dev-mule-i2c-mux-v5-4-71446d3f0b8d@cherry.de> References: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@cherry.de> In-Reply-To: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@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: VE1PR03CA0057.eurprd03.prod.outlook.com (2603:10a6:803:118::46) 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_|GV1PR04MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: 847aaefb-ef19-4dfa-bec2-08dc9f68de1d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?U3GfrNvHbuEBxhJhnEiNVsjrhI3kSpP?= =?utf-8?q?/4EyQiDjfGOLVmadGd0CRfygfSuvyGsZg/SZp+s/txhrJYdLGpPBoMxWA6VIttDxI?= =?utf-8?q?QhSRPamexa2WtaWCSq8P1xIyRAppKt6FnpkoiCclzVYGnfjs0ut21WjNVA5++x4oq?= =?utf-8?q?9TzgBr4g0is4X4hKrEMzzWpJsa3lti0Kc9EVgae7GqS60qMdHXzVlSAcb4x+Ncr0O?= =?utf-8?q?8/TeXMDNpjBiQJflSmJijnUBYvw/hfmY+UA7sw83FjrSsg8AcN6UrBhum6DjfMuqr?= =?utf-8?q?p0/p80SZsiGTAswzylW56PH4DgBjCpebs6a3djUrAeXDzlm+azLarh4BqVOrQqmKD?= =?utf-8?q?mNsZjku2W1P4EjKmDua55n62yE1J8R2wcXo9sNCwXRy0KNBvCj68LHYTvjtE8VkM3?= =?utf-8?q?OyVqI2LUdA05gq7J9/Gy5CMvY/KteFI7cO7vobzeomwRuFWcUTe7d89dse4XrXqKL?= =?utf-8?q?g07dEYYkhvXOECIMEqLz/X7RoGDvm93BBsgMXCQbtv1BeIYSWfZpmR3is28Pz5lXe?= =?utf-8?q?UyGBpWZtE1fwTo6HmmdHCbMq+YjFvyCq/6EWTyCW8EOG7LISYbCNP3e2YzauI/bgo?= =?utf-8?q?rMCPlE/HZM4Vdf3AR42FxjluSezuU6PToVKuLq/ZpdR5C/j7Zvn/R0lx8C5qbolVo?= =?utf-8?q?99RMb6iyxFcqFh1maE3T+MSfBG7nKCSWQEXqHekPqp5iw4Obf2qDu1m5DYq1zASaL?= =?utf-8?q?TqviFQOvekERGt3PVT86RnzCICbBAhm+NCuOmBEmjoAYIKrvTfueK7KJrtG7PPfJp?= =?utf-8?q?TBYFlAtVEPBoP/pFcVVWOFB2AzgUm0oOGwoFJe1In4HwknbsiLue9qd7Zr1vNJOFC?= =?utf-8?q?tZNnINBGbEODcqcBYChHvXrr0LAG+zrZX+Yk6X0nVlf/QKt8nGlVTRQ+16FCIrYfN?= =?utf-8?q?FwQ3Wl0r14lFHnG2m02539gLLiV8hfq6YvUB+gsEEVtkLhYrSqM/CICzUc5cI6cb6?= =?utf-8?q?wePRS6CCCIyZTwx8srSTGMVAGCO5uQ4I3efteqSjVsoofZCex0YTJ8gQhVmrrDMIb?= =?utf-8?q?mSatoSbmPf3cSsIFz1BJiEPWzPUCCIPixbPPQ/VSmBEdm1U5v01ar1mZeEh53wK5I?= =?utf-8?q?+Qwg5bmLcCSMdb8P1ZwHy2k+/Wax1LeZr0mmveYmbmMcB+zNxb5nxOMtwekdQwKMm?= =?utf-8?q?3Q9OETd/Sc1N1e5khm+9/OkeGwyLi1yNfP3hN50YO3W7Z07qJF4zkE0kiy7l3CRlB?= =?utf-8?q?HD5nQZBO/fAoV+Pkv5UngBVmfp2Anoyc3WBuUcb3aU6xdSKRw745lupDMDZ+Li3Sv?= =?utf-8?q?TA7cneWIG28znW74EH2MmZoLPcqa1I2rxIYvPHlcV8z+PpDIkCBqlv6cEKsRxuO56?= =?utf-8?q?hKCH9TtHImeZfXjyyXjyfVMkwwwKUU+PTa+cDh8W8JRjh8f74x4MTjk=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?1iA46S+FUuCaKJHe4hHRhio0fyrt?= =?utf-8?q?yOyD1NKIu5HsbpP/ISsBJZnTaYV9bz4q1QURLHYfD7kr7X1r0E6UPgA7KaiA1BdL2?= =?utf-8?q?7gS+Q+K+4vrf/GiSJYWI775JnDN1FTy9/qYsd/DQ+p4JX8IrO1c7trBw7pP/Jlj46?= =?utf-8?q?orKsvd53eutnFTnuaxXhe3r8RAR35pXGUVpa3m0k4jKsjoh0Cmvw8m/2x1LzCKWoL?= =?utf-8?q?k7qQMf7LdzmEw+ocRnXot5iobh7UFfiF9kZcvRew8BoE7PVwD75PCoCWSOpSsLLS2?= =?utf-8?q?MU28VKSF68ONPgYeyXRFNI4Ec9UIuD72P8kTSnG2VcBF4mZAq1LdLG2kU6W7zbEKS?= =?utf-8?q?+k7DQBStseEnO5OvY85CaboInuGhT4AiFC+sSk70DA+La5HOs4WOJzU3fJN4E1NnQ?= =?utf-8?q?KiyJThWbpx2+fZ2y72yNWxloju+oT7pdwPzZ6lPxhvEqvOdH1Zw73NbT67ubVJ1B0?= =?utf-8?q?m88YjI0cTq8bO9V7PDVvmGe3/i+QnevGJfRbF7oM+fCp/NqSbZY/YAZ2R93vS/321?= =?utf-8?q?Ip5aKPTm34bYvtxrhCX9KwMYqUnONt+Bg+29E7fzqAIrQunkk/e/2aBPUXLh6b44n?= =?utf-8?q?AWU1c7pp5n5EwxabiQo+cjWFf+JEwJL/q4XisFsDhjCaw23Vw0lAn3GS7HEJtTcbW?= =?utf-8?q?9yy8Qef/NzAQnaaHq01PdMBduVv2P0p1pnJvyYTV6oQMu9AJpCO0oLgYV4pmyqK5Z?= =?utf-8?q?UDhSyDwmuP0hocXsON3eb3ugIaI5BYUIL7jheS/4ORqMbAozRRLZN+A3nHdeuoFtG?= =?utf-8?q?QlG7osXUVpTFPwgzZtzSG2Vd1fvpzViHwRYuJccgrIUuwj6QHgbcHUr0GC2YJKAmf?= =?utf-8?q?gxiNr2tJ26jDq6JYBYQ7E5g80fiT0bL7lcZoircECNd7WGX8vGLLhrr/Iw6xGKrPK?= =?utf-8?q?gqQt0/VnRiCtWD+GYncAkvEEnqsYiCXtd8YHlufygqJ1EQTkWDumt6RYy/oYGw4s7?= =?utf-8?q?FpL4I1qLAwI4LH/ZAv6A59QfLPv3Ht63M6JRsmp3cgBt4URR5MQJQEqZSRj5Soasd?= =?utf-8?q?X+LzJRrzKSdsnnT6EEqE19Cvc7YarcXHHfs4gCE/rhBKxkAoRw3iH42auv4bQ690X?= =?utf-8?q?uU6QV4/tcI19mFkmnvhWaM+tb0nZkIuicobEFPQrifNbjGzzaT6ekJNEaZSrnzk44?= =?utf-8?q?qlsJ1mwGG0k11cFNFIX2e/7o7QEtx5ufELeH5SeZbky/6OTTFcVbiW+g5U0Et1yjU?= =?utf-8?q?CNLhXMGUTq4TnY4hOgPwL4ptC5zx3NuL6nEVOzA6keiO+5NtjM6xeeS5l0A+MifsM?= =?utf-8?q?WklIsU/dyOP/NFdFy/bfjOBSnoeeZC14dhBze0ybJeqAuw/y0/MExykpW9dz2IuMJ?= =?utf-8?q?ec9B4ZHNS5OWiW7EPNl7JEilQAYR/Y6iyUsB2rRx+TSg2M5EXa0u3lSSGRIK3+N7z?= =?utf-8?q?NpQsYetMp2O97TKdiGdEM/fSBdMMIcIIsahQAghZtqRiElbUF/Yf3+e2AKx07ojy3?= =?utf-8?q?524LTauwXmgHVTgnlUZpBCE7Y81nnQW9YvbWRus8OTA/fvc3SEbf25wWqkrhtxePb?= =?utf-8?q?1QIh7PSq3psThAgzaQ47oLrROP0nMKnBGg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 847aaefb-ef19-4dfa-bec2-08dc9f68de1d X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2024 16:13:13.2394 (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: 7qrU/ktXOr4qYFP2FQCA6iTQxLhxRwVLU1u64Tyln4r1xMRCLK838tFwbek9ePImZxajHBaT13R/EkIT7L7Wf9sd04Iuo5r+4J8E14wGY0U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9055 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 --- drivers/hwmon/amc6821.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/amc6821.c b/drivers/hwmon/amc6821.c index 0661cc6a6f8e..93c3b79b5f13 100644 --- a/drivers/hwmon/amc6821.c +++ b/drivers/hwmon/amc6821.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -895,8 +896,17 @@ static const struct regmap_config amc6821_regmap_config = { .cache_type = REGCACHE_MAPLE, }; +static const struct regmap_config amc6821_mule_regmap_config = { + .reg_bits = 8, + .val_bits = 8, + .max_register = 0xff, + .volatile_reg = amc6821_volatile_reg, + .cache_type = REGCACHE_MAPLE, +}; + static int amc6821_probe(struct i2c_client *client) { + const struct regmap_config *config; struct device *dev = &client->dev; struct amc6821_data *data; struct device *hwmon_dev; @@ -907,7 +917,10 @@ static int amc6821_probe(struct i2c_client *client) if (!data) return -ENOMEM; - regmap = devm_regmap_init_i2c(client, &amc6821_regmap_config); + config = of_device_is_compatible(dev->of_node, "tsd,mule") ? + &amc6821_mule_regmap_config : &amc6821_regmap_config; + + regmap = devm_regmap_init_i2c(client, config); if (IS_ERR(regmap)) return dev_err_probe(dev, PTR_ERR(regmap), "Failed to initialize regmap\n"); @@ -917,6 +930,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); @@ -934,6 +954,9 @@ static const struct of_device_id __maybe_unused amc6821_of_match[] = { { .compatible = "ti,amc6821", }, + { + .compatible = "tsd,mule", + }, { } }; From patchwork Mon Jul 8 16:12:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13726842 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2130.outbound.protection.outlook.com [40.107.20.130]) (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 23B031487CE; Mon, 8 Jul 2024 16:13:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.130 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455205; cv=fail; b=Tp5choJXxOJIiq8gWy5qSuMjAuh1rOCmxNQ1HEc/7SPX5oEW2QyrL49hawZR0YhW7wB2u4dYciI7fwry/d7fw6Wc7oGTBtNeR24ZUNm1mcGZq+2hxs7cejMTqyLYtcTVQAl94kwRGLp7vO4BOEFkgjY3A8cxPseM14xfR4mZbtc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455205; c=relaxed/simple; bh=z4FqVvzL9gYCTOPTU7KsKuOHbjSrV8y2DJ1eaJqNdZY=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=uGsAlJpYKNY0zpOeS7W5mqKyI/tL3HdRaFEznyn914qtsjlnx0KArBj+23n2kA5LVHRpFIFvPvm8Zh6+Gz+kRDKfG/D7m9yQtu3VNPtIickQ1ieIhKi0F26O30mvUv5prd1JZ0pM8Bu+zGsDFVEF0vYIpit20FVpqpVcx2CHcgA= 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=SytKgKmR; arc=fail smtp.client-ip=40.107.20.130 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="SytKgKmR" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MOQT82E/kMBI0VeIOqh7ZKKLoVngutQpl3GJ9lI6Xn1MnFoSFafP+pXGK0SFjxmfXsezWDRnzqF/OkivCjFrgx4IB5SO8GKv52k5q3lquPNUMcOfyPueCo+kJFNj5YQv5nX95Ja5Ig0GOjIaItWlqFkKTzvctpKyjP21n6RvK3T9gji23uYuWFSWMFQG43tiQOt9BQI0RMwNorGcZVy5KxqHxZWkAp1eOc41TNLyZ9VJhewZPW1bedrX83pcg4QjONmizn2VmDtqIxDXZhN0MolMYefjyiUQSBmZFp9qpLe6qI5wLlMLMDj4Zj5lTzTD54Rwyrtld/WbkvcrdmgZrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=ZQIg+9U6Pai2XXhjPxTstRcGpsLRBMwOj/O6FAVX94QcDaBtiJ0Gjoo+FCzgTL48wF+aiyT70vHhYr+YbElQbb8dtP9Xn8LfWnulXMWVhtNpt8vOvEOZF1i5vhOIEkJh9FBfI9CZ1mnv3g9ObZcEG/GwjU8YX7sJv3KmnfnagsOQJfuX6gzHHqufpHTjIUquYa4twCd+y5rDbVJH4k2ehk+mmC+UdmelD+TaUy5/0Tq5EazWLX7ciIQhmJXkmgjFJdaHhAjfH+pXHhEF+dCVpA/PlShUoTTZE8hlJO+7XU0+Jsmoo1XxEYI4HDNd32hUOGG5+zCOcTPs/E6xZcYqdA== 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=SytKgKmROcVevsUQvNlb/BS9Rzi8lqyS+5PNr1N4NfhxHk2dkCkvBYgKk+Cqg9hqajG7oUUReAJ8QwrYhEG9nredFmbDsOUBSOoDSKNcOqZlnzYdgYDAPa47Tod9IEONvhqgXPECOGtOUdxm75ahaSId+IMAuwQdBadYAH9QOZw= 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 GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Mon, 8 Jul 2024 16:13:14 +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.7741.033; Mon, 8 Jul 2024 16:13:14 +0000 From: Farouk Bouabid Date: Mon, 08 Jul 2024 18:12:16 +0200 Subject: [PATCH v5 5/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3588-jaguar Message-Id: <20240708-dev-mule-i2c-mux-v5-5-71446d3f0b8d@cherry.de> References: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@cherry.de> In-Reply-To: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@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: VE1PR03CA0057.eurprd03.prod.outlook.com (2603:10a6:803:118::46) 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_|GV1PR04MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: f62fe91c-3e69-452d-f8aa-08dc9f68deac X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?eGntt7Q468Y5AN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CkqALIAuqkCHrU3uZp0mBKz?= =?utf-8?q?HkXQl3qdPYkAl2qorIdiUsmEwBs96TBszQZPuY28m9BwpHUDwHgBimsG1T2MXLBKj?= =?utf-8?q?BAwXuX9/xlJnMlvvcUfYQJJVNIeL1H+FH7stIh33P35ts4zuy50Y7eK/nY+7JTCEl?= =?utf-8?q?KEweIXTQT4DzMTDekpHz/Muqu/fqhbu4zzECkl15Au6JRn8g3LI5OTYvSpuDhkVbq?= =?utf-8?q?cnsfvlBzbf5oGfT4/v/phLEag2c3VwU219O1rnM9JZpO1NCYmEB9fHMbIWld578JD?= =?utf-8?q?husYNYU6WvGnKDEuqErUxTU2X/aMP9P/+1VPD1MQHuX6J/3uo9tlskWxYJr3kyja6?= =?utf-8?q?u0hdWVGB/ejjE+F57kZSuDRs2lsp5ONthrKMI77hmlqHbfuiH6foh7abiEy5KqhnB?= =?utf-8?q?8qRdk4Bo8FdargFEeV7P2TUWo3B8+8hGW7WReNkq2hmm2UGDbUvYXMvfqvsQD5ZQR?= =?utf-8?q?xn66lF6VN8kJnluMaefcoo8YmxdqJ0HyWK8La1SE/3ZAhS0nEs6+cH8=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0gUIUgpw6JaSy7LJlGh68l2vg1Kl?= =?utf-8?q?2ctWNGq1aH1rTbsEukgTfH48tpFGMPbBgNyZhLqZehcfT0V8P+9JTUIb+qIX7BRG8?= =?utf-8?q?UIEdJ3lHhAsR+abO9BlrDOBtgPPp6TOZa/qk3GgSrpPkJM/7QAcDm/IiGzgGZQaIY?= =?utf-8?q?4PJsw4BzzEBa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JvPBP73EhLLp3fAHlFSBjAbXtdQgtrSbPjyy1xxz6PC6?= =?utf-8?q?TYH2n19omVaXzOtcUhT2rtTW2zViO7q002B6aHFL8+ZdkVO/ph4d0s7Ks6swP5BYz?= =?utf-8?q?8ZI7CXbGk1q1zS0+x93r+pOqHHMTBDeI2PrZR/RyU3U2sI6MNHh8xZlYQY+b+4/FB?= =?utf-8?q?3WM1mDcRaJUWsVbAHuJZu6GRen3Qej5d7XP62K3LCDs/G4lZXhYntA7I59WGZALGF?= =?utf-8?q?gPRt5Ltd1E/MO+XmmvOziTrQfHvdmr9nld1nbcsKrWAFl/eIpyhTBcURIVQVA3uI7?= =?utf-8?q?sRe4iLvTYEWrgVhaMGN3QF88W6zgvHhrm//j2uff1ZAsLfaghO54l4iw0g9eetvJC?= =?utf-8?q?L7xcIAZewMmEdX6xO7ZMAd19koyYREOoycVpk89efjoXCI01U1ABtqhBiDX9z8XhW?= =?utf-8?q?Sft++JielkD6prxkZ13yDSe5EtfUdoKFUo9R75hyfXos/q97kUEe5zQ/ITjEVVsUi?= =?utf-8?q?wlS5kz9A/g63lrpU0P85QGyoorix1O2jow=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: f62fe91c-3e69-452d-f8aa-08dc9f68deac X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2024 16:13:14.2158 (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: qW+xxWWtQ4qS3lITrv0aEJxRvwIs5yt2UvgaPQpoyi6hrQIhhCu3FCc1lYLDr1dCvfZgoLSgNMjWXHS6LfhLtSliXEwu5Ymrvtl2WcirCJ0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9055 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 Mon Jul 8 16:12:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13726844 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2130.outbound.protection.outlook.com [40.107.20.130]) (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 545C3149C57; Mon, 8 Jul 2024 16:13:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.130 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455207; cv=fail; b=dOUTk6hgUEhqeKlBNLzNwar0RYFCRMJrz2BTHro6KN9OmWTEMAubcOYWYnQ3Oj34tjbI47vTTd75koz3YmgX1m0u4QOmDQrOk2SV0DbrCQ6IWt4IFEqTdKzUfIGQJOHY3IpzT2bUMrt2ncogz+KIqU4PLAiPJUznzS3JCSJtQMo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455207; c=relaxed/simple; bh=UtSI+Z4rhlvu720rD8lKlp9GhOla7RSxRM3ss3vsguA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=LzVfnCMwG4Gam9QB2ic5zZ1b4rxL1tpNQSiiGKlpklAaC0kbjiaGaQLZSApEom3ljh8s4jBFK7AiIEBKmGSQVFYpjoGYKr4lQ+Kg+F+cfAsy3fxKGJCBHPX0SJUh2qoqEOBSjpPvl3EbCA0BggfAIZJHRMcliFNB1/3Pl5ZyQPc= 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=ju+qvyLw; arc=fail smtp.client-ip=40.107.20.130 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="ju+qvyLw" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a8ok65AecJML8/v4S0wiBK5AJc2bH618HtotQYrBqGTEEYMBdr2wVQi7mSFRtczsb6rfkPxrIQNJxuxMhS+iG4HQrxSRrMHUl/43ce3Tm7RASnvAmcxC0pGza5p9DypU1PClNSJ2m+WZLdycTUrDntVfoNqTNdqHVMPFeXYhHXTRaqRQXPPFQ8ICdE+AMUMBh1slh1HhfGbrRgtAUcYflR+RjbQcZMZA8J+bzQ1wf4awnjtwnawzaQgJMr+2EUN+R3zv4y+3aIOnx96PVfN4sBa2jJkL3EylZ6OOvihEbxPPLrzH5WfbprHPJWoVYth1GRgaB7R0SCOGNXKYKpQGjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=LYYsR4hnfSWrklrQudgIUl7U+i01Ffn4e0YOX3A28vjfreVht2sgdrZAp/JoaBs277HBbfY4d4KlRuf1j0TlCcwURKeuqxn/D2SDST7JVGcvLX4RDE20yizmlHprgynevIafmR4wojM9ixiMW/NifENDlmzIfnm1eATCTEgdK4sEfQFH92jyUv7nY0tgKxImk54VeEtOOS66kYtNlsjYfiPuZ5nK40dy6cN1tgztsAuQsk3fkp68Z/d1NN/qIPaeMBOR23Iq05QRkXZCt/6Ec6elimhi0jnEN8qjcMOx9g9WGGdpvY0/gg/YYVRu08ocxiIbF34etSWH+L4+T0BrSw== 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=ju+qvyLwPyzDFZtk3nlZgSfxdSmN9177+Xxyo/YRe7xb5BbTO8TrbY25C8ChEJWBWQbU27djn+ebOMeqZzQUe/8J8qEkak4TB8V20rt7tR6N8w//vok77gYENWcEbQgfJ0TBb0RnKA/WUHA/ZTu7KzcuRYf7KBa6ZOm2pyqOYE8= 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 GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Mon, 8 Jul 2024 16:13:15 +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.7741.033; Mon, 8 Jul 2024 16:13:15 +0000 From: Farouk Bouabid Date: Mon, 08 Jul 2024 18:12:17 +0200 Subject: [PATCH v5 6/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3399-puma Message-Id: <20240708-dev-mule-i2c-mux-v5-6-71446d3f0b8d@cherry.de> References: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@cherry.de> In-Reply-To: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@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: VE1PR03CA0057.eurprd03.prod.outlook.com (2603:10a6:803:118::46) 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_|GV1PR04MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: 40d2750d-7239-4373-3136-08dc9f68df3a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?B88knj1voOjKEn0VwgAWHqLHMvMUv1T?= =?utf-8?q?5ZxX5DyL4de/pghuEyQjk0etpVpil6JXXaxaQNpqkcTxpOQnS+97Fxv9lGN9bhkfI?= =?utf-8?q?lXAOnWRQI/txpxqIwuna0ptDub9ABjAlwOf6276hg1lZqGhHFqSIN+GQ2KqoIx+kj?= =?utf-8?q?48SYgZN4Aj0XEexlRj86RpFxgBiyYGgKt1YwpuSzGALPvXCSPkn+z6XHHn6aIA74h?= =?utf-8?q?tKiuC36U6bBcI3RCyPhqJoDsPlVz8xnuD8ak9QNwFMREsJrjKu2+09KiwoWjxImIx?= =?utf-8?q?zfLbP1rl66lrNhVD4FwLa8tBzH3UkTgE8tMycswizV+6NgBDdecfEObIrvX/Zv+TA?= =?utf-8?q?krynhQyqK+rWMUwxCJbBW1hxlO67hLSJa8QDPuH4vazXP/zv9aQeyFDVqdF2fbyWt?= =?utf-8?q?PJZx3/iDxqDQhQnqwHTikTI4MX/M0M3MaT/V6ap6O2D5ml/DTK7roooaZo8oZEiFt?= =?utf-8?q?e98CZ9Ehna5SlPMpjVGngmrIqtR7tOVld1GGFoN2dFbU76vverda/iUt4h3BQqdlo?= =?utf-8?q?Ut0qS4a7osrmz6imSoRkKc9HMj+zddDebZsTs+OkLFU0soK6Y0/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LI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?2Agawo+NHXutgGoQrTMTxQKYebaH?= =?utf-8?q?2o3vN9Ub6Y3UKDasBh58xLLpxAF8WclcGTH4cspLs0vRzUT4BiPxgAL1zTpn5TE5i?= =?utf-8?q?dr+hm8oCdr0EWWlHYL5k+L8SS8UgRJg+yNToiETHsd1fTbFTzvg/rhELftbZVRmN8?= =?utf-8?q?mumAjdxMv0v8ZNGYjX1ufym6FrIMT0q4t5dEtjTn7531NnUl1YclvCWeua+7Q+Rz4?= =?utf-8?q?bs80YzC6B49mfYA2parQpUNfe/4WU+MUCAoxjonADtlM80IKAC9upKa6byq9cRqgB?= =?utf-8?q?wnxo1n/cFnoIUYUxr4gI68VNp2KYUL63LiW2M47TgpzbPI5xydQzVuLBksms4Mry7?= =?utf-8?q?tgkepZE5b6+Zizm9DRm3XoQCOnJgjma2ps2IIhrm2b/YuFV9WILG1XIQPlIp8dL14?= =?utf-8?q?G6XfHaBeOEbSJzpKXPsK96mSa0q0/eu4kpNSnVxOHIAzdLeDX2BLHFR8o0zWsHIOY?= =?utf-8?q?neB2VaWfJXFqVIflmvSut4M5C+DQBDUcy+bIUxaV6XMPKhpvnDoiSKn+et7X18xu8?= =?utf-8?q?YQIh7vf1baIJyYIUIJljbL+Xcn4Ycpa0H28TfsXhJLf0R8T1qA20lS6NvFIkQ6RbB?= =?utf-8?q?91Por36JsIRZ6YWl0A+eDhFpnyWk0yAfYMEqJdFsBP5GY5gtd+kycEJNaSi+3njGn?= =?utf-8?q?igOY2YNYa3moDp3859Pkn6UtWqAbt+iz+eAQRfDHM0x5Xi4d1kt+C1UmnzQLH/XYQ?= =?utf-8?q?C+I7H3uOXWgaXLTO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7239-4373-3136-08dc9f68df3a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2024 16:13:15.1106 (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: nOCbXcqN1x6pACrsr/HlcvHKpWGYhUiamk2NiH2a8U0dE/TvMGk+0nH29LMpdTndqwbjrf/lQmGw6TRqWAztzn6QBV1JIsbrq7P/Swbfprc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9055 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 Mon Jul 8 16:12:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13726845 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2114.outbound.protection.outlook.com [40.107.20.114]) (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 7B0CB149C77; Mon, 8 Jul 2024 16:13:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.114 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455207; cv=fail; b=Do5LGBq7cCmWv3nQn6PUExwkqiGL/wIQrjGp/sZHXISr1TlqpfBLGlZhbMk9u5tRz3/PtaIVCI/OfMmvoJER06plv2orGBsqAlMrHowx8eErSlIwsO2RhlTejNJqE5tHmWc89k2naW3NjWb4N8gaPWvotGdMosUp44SuVLvgFSU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455207; 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=oNCvJPQwOr0HyxaSdtSWMS/EvtcVczj0zaMAKl7Ju4S80HdUIIvJi/4rWxLP/7qWC5kiazVngZ34PwIGnn5kw6TS6dHZP3jTALxjnhQKb7fb+RvvF26Lq2PpN3FKCl2FPfzG2Si46R3xbcLfcfa+HCEmWmi/nMO68xLYa35vxEQ= 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=dVksHG14; arc=fail smtp.client-ip=40.107.20.114 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="dVksHG14" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a6Xv/rbNLwaHAjfMl128vNUAzgWD28MsfuhnwWn6CkE7bUkULkC2fEo8nnxKiKfIKVlIXDZIi+HoqBE1loQzTNAUwnhKzLyrYKXGxIKdisPuVu+Tqq0VBU/iypOSR6KnywTgQSY9gS5B2kPO3E5LUiyoP82tqpC+C0/9U1Yrxu3nTWEV5HbnVd6oDyds3tddaii4e5ak9x18zgDcRRA56T9gkjrXydqi/m06ONf71hq5LqyYD9LFasYnZS3LJ+tJ6KZ81i3cnzlqgJtxLzYnRI3bVBCR4PI44xMhqiylzg9Rf73ay3EgwoyEfw8W7j3uKXFK/feOJsXss2qBfvf4Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=FSCladac6bDy9IXlU5BqaCLl7vrZRBXixfcSkL34wxMnAFmxbShuBoq6UXwaWU/BBCG04WLDkPyTlqOzvdzNcKExL/e5UMXXwLzdGMepr2WSoVBX9+jW6ZGxzvP9dvyKJfCU7moe5IFRGwj6up6NaydkKCSy4xyxbIJgJm0EL16LAei8MK5ePdP8RwkBKu9xiOUY/Pgu3NyenP1tgrwRAjBwtiDyJFWGdl4ayh3UpyUFh4MBgHndWQE0k3j58xyNWMrOhPBpIe8IUunYFh5DkyGG5VIQPd5VE84vble2S/JrI5CMNTnwJX74cYLhuMa1Ef5Uv8RKDvNYceiEQlmtOA== 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=dVksHG14lPI4JubCWWQIxwnPabJ4TXm0iUp1UMohc4BFjoBK3Ur/Qvji7juZuN7XbaUhawpNf5YigooEYkxht5EmZyEGDMaBYiZBMWC16irO+T3MEv7a3lFlpze1u7F2BmZNb6JuBLyvaD6y/K+wmWLGWytQ3lfemIrDpZHqOhg= 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 GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Mon, 8 Jul 2024 16:13: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.7741.033; Mon, 8 Jul 2024 16:13:16 +0000 From: Farouk Bouabid Date: Mon, 08 Jul 2024 18:12:18 +0200 Subject: [PATCH v5 7/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3588-tiger Message-Id: <20240708-dev-mule-i2c-mux-v5-7-71446d3f0b8d@cherry.de> References: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@cherry.de> In-Reply-To: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@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: VE1PR03CA0057.eurprd03.prod.outlook.com (2603:10a6:803:118::46) 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_|GV1PR04MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: 6e39e594-6242-4e10-598d-08dc9f68dfc4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?F5o2NzdTugefAY3U9O8A6rg1Y7DL7/m?= =?utf-8?q?PsDtJM5N6Uf438P3bcml3JNSENwHd65pQOmZ3eveOah6DWuisWh8dQ+ELxSmva9u8?= =?utf-8?q?q3t8BiDgn0WfkRxFetLI2pSb5Qeyhdi/bs7y8pNp5mjTZMFWUfWRuxyfVuclhBgZM?= =?utf-8?q?rlFm+ceNw4a4ge2U/Vbr/iudMwcNWxWfc42t5yfxfdKOQYDGBgb0ZgbFdMRcyK16J?= =?utf-8?q?Q1GAgnzwF3XnYvpNti8/ak5PD+hBSCR99qWRteBR+3Z5qU0uCh6RINk9qbrux62S9?= =?utf-8?q?L+mB3Jpi6nCKtfN9R7CF3rQbOjJ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bTZ/AmgdUXgs3f43B7nn+t0MNty?= =?utf-8?q?DW3++kWgf3Qg/NFmDnxiNop8zLCfpgLCOhS1VFWGhA7vWEd1E5JEef5Ayjt9WybXm?= =?utf-8?q?dnE5eI5bYjT8Vfc80Pm9WgcY/89sp1F72ib60JwSUm/TxoGoSdOkRbf5Tkp+Els4A?= =?utf-8?q?Y2P6nxMaakPS/ccwH5/LQLOhC9y05DRHse2BEBtaLIku+uqs6Dm4+dk=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?3ZlJuutIK5LgH4/GkxKzR7AcOTRP?= =?utf-8?q?ir5ZJj7LyFb5SeU+4OjSdIetKIwia/IEtl92tJX5IMVCHpDsYDrSKE4ibx059ITpW?= =?utf-8?q?BfxyLN3PU8cwCBjUr32edME9Ip5F+6j8V22gKM7d9hmQZkRmpo3OUqQhN7fu4L2zN?= =?utf-8?q?m5KpQMl6HW1e7eKuFf/KYkcLkjnpxA7bsnvr4XQKz113l5N6OjJOLiHagPdwsArHL?= =?utf-8?q?9CNEBXMO8kmaP9DcKjHQ4CdmAO5hOO0tPZ+C3n9N+skv3eS5grpb+dGnU2Qqczme7?= =?utf-8?q?thW/b5ZgBy/8IgveW8zrQEWprJDIx0xAjCHFvO94V1Yh9EoAb+KQMnm/ZPfAKUtQo?= =?utf-8?q?JLi7ataRNO/cJsBf17ojVi8CjagXe+tVSNAYem3/leV+FyX9FGCVk63AGTvZ/Yf46?= =?utf-8?q?yyf7GVwZDCAo74wVuUl1e8zkQef6XuhBbSJ0wGnZyJM1HEHa3KeANSc06mxrliy41?= =?utf-8?q?a0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zVTSaWG1e3Aykq4BQFfMvNqIaU1jxlrIvNbgex?= =?utf-8?q?+SxDhG3RTsO0yvJzK8kVY2gAekcdXIfIdF2UjtNef10Aib7ZDhqzKJYXFw90ZQxyR?= =?utf-8?q?5M8xtuQjrZ1QAqCzggAixjOEQNgfQm+5iZQYuO3qEam9TBIGGpC8SMFfrF35xOZkP?= =?utf-8?q?3et/8ioAyX5FEktx9iLLZyzsz/Jc6NdmDw=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 6e39e594-6242-4e10-598d-08dc9f68dfc4 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2024 16:13:16.0428 (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: kGr2+W5CaN9aooDeFZu3V2WXJKY8ju9TBGtWcZ4OKgHsRHudeJLq6l1YQGspKjBP2RYcDFgzAoWUdYQDsxfQwAfkmLF4Sz18mOcQSksuQ0Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9055 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 Mon Jul 8 16:12:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13726846 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2130.outbound.protection.outlook.com [40.107.20.130]) (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 57EEA14A619; Mon, 8 Jul 2024 16:13:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.130 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455209; cv=fail; b=tk2/bznoDIyjycr6Dg2MjIvsZSWULWcrUTMv8NITvun+vOOjXeBtSqNIxbS7wRwpWEDrM0hvJ+HLzTBNv7BKlVkxXCGn3cQU8W7ldDy+DnuHaRtIR2IhbSES25A4EyjFXdF670U9L6z04o4BiZqZD3kLmVj2zan6PLoPTst0czE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455209; c=relaxed/simple; bh=ZqLxvdbON4HGIDwXyHoLXPvWlZD6EQcsY3ekUxJ7maw=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=RvjgA5KvPD05Pagx4GcOqFNSEauAYGLAkeaMZaBcGL425xaBZhErcmXH7CSFXp9/jk/A8fTQIXfWgLlC50M7LUyYd6Wg3TUt3zcKbx6OY0FCULRMfQ1bhacbX8uaE3401k8DsGQIlhjxfU6uOAoGyWu3VkF2ERu8AS/oqpdmfjo= 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=dWzl2WoQ; arc=fail smtp.client-ip=40.107.20.130 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="dWzl2WoQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DILS2hHwavnDJM8fgxnwZaFdr9oyqK24Vt+TLYMiT9zeRk2PiDrWXKHijj1lTvVXF5ohCsio2I+HVVxWtkHIsUB3+AYdEWyS/Td6YU+fy/BBbCe4RQRstEFRA/UrlaaucV9W9cH4Wly8SY+czqI+yWr6n3qDw62H92iTCnAx3o2svoZPqxQ9z4prFeHrRt0IAe2JUmRB23oP1/OOJiPghA9CUcDZJdWYTfrZDloG4LDnxWdVGF2zIe1Qe/6QOJEU9RR2dGNajn9uj/T2XPJDvty4x+eTG2HNS5ihife/+RQio0yQN+b7QlGKOwMucuXkRIlVZnpzB2OVhFJw9kyAxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=d2hrX1uJyXHDmE7Q1+qitwUOCZqUVy+vE1iQ2TBszbS2Y1nFSE8r8Y3G5P/n48CH0fh77mdlVuaHOsi6v9ZDElAkkN15aXrcBBJ5sJB1nc4a50Psw1LTRadzc41G0Omxa9jLQligj0PVdySx1ehpmWlsvrcZzlGM+bAZS4vQ6UzqqmpTLF56vcpCotQHhTRchXpxkv2t83UsYTfL4038sGNf5XDAfSSsrqWbV9gwyBzZ5Y/c0BOg/9pf6tbpzZe26Y6rQcXm3QEsRvIrboWgiNZYSbNzY8EqWBtDgQZLmGpLjDAmiPyqhUJRqtfyQh7s4B5xjH+FGoS1izbvSCec6Q== 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=dWzl2WoQxnyK5MCGzU1jtLefTeNQ2J/jMsgzlnI97iYHTslR9FHNGZ469MpFsWs7IsDax/8SdHkLjthlDF6mRbAPEOT3zZ/MHD1cjeaz/YPjOkm9f8KbpfL6aK5hNCmvpa5Y1n2yp3P3R8ZguvJrlvnwpxrO0KYjCuid1h7Vj8U= 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 GV1PR04MB9055.eurprd04.prod.outlook.com (2603:10a6:150:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Mon, 8 Jul 2024 16:13:17 +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.7741.033; Mon, 8 Jul 2024 16:13:17 +0000 From: Farouk Bouabid Date: Mon, 08 Jul 2024 18:12:19 +0200 Subject: [PATCH v5 8/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on px30-ringneck Message-Id: <20240708-dev-mule-i2c-mux-v5-8-71446d3f0b8d@cherry.de> References: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@cherry.de> In-Reply-To: <20240708-dev-mule-i2c-mux-v5-0-71446d3f0b8d@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: VE1PR03CA0057.eurprd03.prod.outlook.com (2603:10a6:803:118::46) 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_|GV1PR04MB9055:EE_ X-MS-Office365-Filtering-Correlation-Id: 4a3594ba-b66e-40f9-5138-08dc9f68e062 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?l6G603xBknFdPqSxv8eeleg4lD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MzXh3VOr2YHpUOgDLtQVVJbkrypQal5zoblpevOuQvsTBijLcMBnAR78rjVcoy?= =?utf-8?q?ISVOWTwMMtIKryPbqU7e5Aul6KnJLjLFtXdX/jIkqyHzRdjVtsi7zvOilwL3uKTso?= =?utf-8?q?/qYxPmf/ICWeLmtkq6Z6+gONtZTKvNzZSLsSJ6jWC02UUsqhifBLL+s68gf/8FHtt?= =?utf-8?q?DktN8XANBNhi1vXkDjK2xwkLbnHkw8Nmawry9rUkmbv0kuSILpqy3UtS07LBjdM7E?= =?utf-8?q?YC3gPEayUBeXSow1h7GVWK/b15oNMwvbexVUOxufOqM7/6jh8t7oGdd5gS7iwYshQ?= =?utf-8?q?WTuKanqf7g0xsWpsdBtZwSlrCBH66By0WwLfjjXQdq5VjfEC/jf4SV8i9X3msJZpS?= =?utf-8?q?RI95xEWG4JPS9481+PefVHCAWFoYTYHxh/+wJgjmb8CtiSW7WGfVdAoZteFEQqGxg?= =?utf-8?q?oiLPuaouKNaFXVV1Vc47HlLBAzzA+EvMZK7IQyVps9C/15DdR8qhT6U=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?1Epjxxks2LI6UAt/VQS/qxjcYbzj?= =?utf-8?q?kHSqCHNibDWzuD5JWxvJQhX5kaKTKKQwkZfVTpN6zEiDPo5Dmgq0kvGponNs7lKDm?= =?utf-8?q?7ZXvrQsTLHQNNWRYlqOMXb1bitHJRbh/YtwtkRGA2Hly4+QWaAmxXEO+VDZa0QtEN?= =?utf-8?q?/XIlw2VLD5OzWVuror2vl8wNlfW9S+brLRDxrUj+ZdNy2VhQHnQ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a7CNkz?= =?utf-8?q?1igtxcusOS7aEOEOOWDeA98bIHH+nibI3DglScIjpR/MMTV7fsx7gN2DKC3F/9jsH?= =?utf-8?q?IC03LGoV/OQftKJMphMro7dp3wGPIa4lkBpHAsiGsheGN2v8VJdti4sCcIbRKVilr?= =?utf-8?q?zhTNh3WpuJclxpN+Jvo6J/gSyH4BShI8J6S6nmZWM/URV2Iwmgy7V4ACIPpDWS2g1?= =?utf-8?q?SKPPbW8UQuR1zh0QpI9x0kGVLdPOpxrxAjrMcpGKpzTBV9f2z+am9OsH/iYg40CGQ?= =?utf-8?q?+yh0qyId1unMOiDtuEKExtEgxAXn+F2E8lwLAHUSiDreIMe17Jt5TzA6V/bKGKaYq?= =?utf-8?q?HFzlEoGv3qfBGOG9SWFTxVZI26nGwy9nmB/qAUAJiFvSZVdemUX3oBTo9KRGUHqUk?= =?utf-8?q?2H0/k9VbZStRk60z7M4kBjHNc7d9Uu0OWUQCd6h65XbD6m7ZTsIEudYubcOTxW2d9?= =?utf-8?q?+FknfQRkz53KKmgtwEGZYlbloi0s15ruqQ=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 4a3594ba-b66e-40f9-5138-08dc9f68e062 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2024 16:13:17.0607 (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: VAjHBOq8y2sZSz7ZjNAJNg6uKqNTRXZq6WYV0LL8wmEpPKp39xme/NLjpfEF5pxVf5DDdqS0qsdQQkkp3Ra3Fxzp8kfoHwboh6ZGL3BKEjY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9055 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>; + }; + }; + }; }; };