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/gfJyi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CXLnfTM3bNAwQLRFlDZL7yVmEbwCadYgxrlUNGnMJz9?= =?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+TaeW4DEDJUnU2P7XN?= =?utf-8?q?XUx4IS5QINPOcyodWZd8KBD2SD2KYzVrBm3yuJAfigi7YTxnl3oZ4MOV9AV/+pAr4?= =?utf-8?q?f6710Zfr6OXGNjaaEBhiML6ei3dyOmIzg64xj61yqQZGAsZYbLDtBYd2iK42Iub/t?= =?utf-8?q?ZNSu6tagEKLbEWlhGkiQKpt8GlLG6R8UenCfcXivTBN9z7QpsnmDh5ksX4/PHXI6H?= =?utf-8?q?boPe9sNTXNoSA/4kLskEVYZCm7scmgWIAmN/00m3/jS5YwjYP9od7skwCjNbfX/b4?= =?ut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h6fznnR1N0tuoxVRrpqNz+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>; + }; + }; + }; + }; + }; +...