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: 811276 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-i2c@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?RgJVgAd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AMifKNBSpgI9ozO02XXp8GrAQDv0nzSyuE6kZMkfF9+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/MlueayyguSZgsY3037wtctj9x3IZIT3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?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 --- .../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: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: 811275 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-i2c@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?gJezNclsSMx42kDFM3p94eU2kEzvtVoPPqCPCiom+zFXOxS5GRrTi9lf9vr7wRvMg?= =?utf-8?q?Uh6maSgW3qT/EEkGMprpgf+ysIgilZk/5bguwemTviO8UBbOqZS9Oe9wz8ba3TuNV?= =?utf-8?q?mz0mOEjHdhUOuezQJUuCKg9QybktstA5OpBh0MAYymt9R9JnRH+bzFw+tgaRK6eAI?= =?utf-8?q?VV/wS3yEhA+bAgkYdPpnfQP5EGlNEDXU3oizNF0BCPSweIztoYS1iPEBicVhJwQLf?= =?utf-8?q?tnx2PgSdbthhl/gfJyiIjgI698O14VG6JkZ2WM3ZnfN8QFDnWdbh+i491YdF9jH8b?= =?utf-8?q?YUzlmYqTIHIdpEdHIGnD0AI0MPCar80IIvdrY9VIGJ9aQo829TgKfqqUFJjXjtx7x?= =?utf-8?q?1HcjtFgRFTcp5lXwSGTSL9z+OTqsCWd8DMfdeMnwF0P/rWlX1eJPrEb9fSKh0PN4v?= =?utf-8?q?RTQjqLPseaEFCTPndKts/85BTOl/JXPziAfOj2hJUCDGldtNQchbRCvppDii21Mo9?= =?utf-8?q?xGXOwIBUFa2TdW/BugZUQ+Q4bMahV2VsQgQC7RI3svnV4TPPmtyEbqK8YyQaEOMdS?= =?utf-8?q?WPcskJENBMMG8uBpZ18+dUg7gh4GQFO4kIzlK8umocFTPYL945TmYVjhCa96jednF?= =?utf-8?q?YtUeIkf8ffFQWGiJUaZ30BcZqEULYxjv8gGfCWBGTa/AZsuCl9BgXTDhAH61jLfFy?= =?utf-8?q?/Q8YnOzUsjyA5nwF5jEcH0U+ZphKpNeQSkRHXNu7GHS4l30ZUkK8Zn9KTzIUHoeit?= =?utf-8?q?WDmz2WJKhJ28OjAiVcu01+H9BkVVZB+kqpVWRZC+5am8WTnUY5FiwptNpChdt4eWI?= =?utf-8?q?2zJqBNddZdCOTkw5RYDPdTKX4ZAaIqo6ZOZ6NUNdieXIXJiSa7C2PmIz6zF7Eb+Xd?= =?utf-8?q?GeS+MBj+VZkzkvQeO8AerjfYBaCA0IQY1rQVbIlbEo5hmnepwMQF98lXSNLrSRcD+?= =?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/kUIlXj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vZFaCy3OjznWMaI5YKL9SdJrmZn+uMvbc8wwdEcxi9zy?= =?utf-8?q?a+0XoTxZYjB70ppcyZZBeqlP+scfll7gpJfUPRVik1FilEQvYdVc9eoH/OVsu8/zi?= =?utf-8?q?lJ+UvridWaQntYJjLumKtgskYAcIFLcobzwnRQX+xFuptXphl3iijjHKhv0zGQWDP?= =?utf-8?q?6E9Or/NIcWBTlnx8rrJ7BBoaiG3GGHnLegMZWahsljOHJmfit41Spkad4Q8yKPQIY?= =?utf-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: 811274 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-i2c@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?= =?ut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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+29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sahQAghZtqRiElbUF/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: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: 811273 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-i2c@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+mB3Jpi6nCKtfN9R7CF3rQbOjJTBEYkAI8InQdx0feo3W7xyy+bftCkk1Rp/F7Ly?= =?utf-8?q?9gFlqMCmAbU3MBHJSPI2S1DWaN3p3/ZP3B+2f3CGt6QmLhEZkLND7V0XZon9Z9Yn8?= =?utf-8?q?d3Y8GGv31Ndgs4iknaJoRB7ohHl25hDNEsEcVDyWTysAlrKeQkVc/+N+40d7uOaqI?= =?utf-8?q?/X3lGC4aPlU62ggUo6WWCxTMSA1ie9h85ttPGuwrl40WpJ2LDx18cFEqzYLAWTCSh?= =?utf-8?q?n/zlbe7Qz64FyzzF3dCUMXZzgXTLWej4kuz3nRcMpldL/31alYaz+9WO2/gM5CG63?= =?utf-8?q?EGGmuIr+e2qSe0YbV0QjKpdIGF42sFyH1ygun9JeM4hPaub0IIulOYgnwqGS+BSIe?= =?utf-8?q?jce7LH8XIGAJb6R+/WDN6+KMp7Py/dFMkFZxTDau6GlOz3wH5IE/hC5yOThOquNaR?= =?utf-8?q?wDkIjTr6RYxXgC9EdlpaH45PG4bRJo2RjslxpqVaVPpjEpTlGiTD9yTSOqLvckv12?= =?utf-8?q?qkqvPbsrXgp2550XEpbzFurkcWxfw9AMBCOFcku1yxxlW+1NXGieO6085QTO3hOaa?= =?utf-8?q?HXQRTKdnGDwHbFL9AN99CgdGkVYEaM2Ub8JdomEwAKur/1KMYY2ZjDn3/XTOzAPgu?= =?utf-8?q?9PQoTxJDWBOUpOE/vQn7z3+35Yu78OAsTVLygPF4ijWOJi4wcFITJnGOz6xZqhXSm?= =?utf-8?q?EF7FVXWm2IK39Bkmaon3iD5a1TvHchEx3aAe+t9A0heXIY/uiFeS4oP01AepXbnqw?= =?utf-8?q?EFjcMhbM7Lg+sOwXC4SniZWHURL7Iu0+u8JuSFG1TjqtKUC7F7qIf2s3if79Gpc3B?= =?utf-8?q?9SjaF58zsEoJOogM+e//g14fXV1VdnJMTApEcJgeUPOm0NvFBaruq2APPjeElU30A?= =?utf-8?q?CtUXdEfGYbqDSYF37GOgPGlYt61nQoCF7nNF1KbTZ/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-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kCHAry4z5a5YkohanXskxs+31XS0R1tY0DgDKNkdLkpMI1holNo+7xHG2J+11MMc8?= =?utf-8?q?40wrBrsePmjLn7axIkOBInsqpDHMg/qkB+AFRi1/qnZBbyTAu//vAq56loV5ssSfl?= =?utf-8?q?ajnqJzEi29YbstyxH67MR0DYP7bLhEB6cSW62Znf7m0hDxKW1hZJtbzp/yZLgFFbu?= =?utf-8?q?EA4mS3U7uWnyxgvsdjykA1aAyrySMWJhHJ0LeZTb/krRtDRZleVHSiIsO77QtVHoR?= =?utf-8?q?JSaw+ZvCsP0awk4W/GriocuywKCgHdoG9rBK4Ml4yiWokqrVQcXHD/K7C5k88yIT8?= =?utf-8?q?mXtaUZNlB8CYq9MdY7dNyXxE+IAt3acHLyASOUoZNODbAZDklfjOVkKeFDguBzC4f?= =?utf-8?q?UMzyQDCC4PMbwtYp3nUI+P+oo2NsAcLTVSstPVMphg0iciuxmIcjPr68k7/XpjH7f?= =?utf-8?q?EKa1YUnRl7EjQp5l7tQm0cZGV0zwji0/5/ICHHhbjQzP9ItAGyQ7a8bEoFycju9nE?= =?utf-8?q?64ChX4SI6mmLMestY6KOOylKUvmzVTSaWG1e3Aykq4BQFfMvNqIaU1jxlrIvNbgex?= =?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>; + }; + }; + }; }; };