From patchwork Fri Apr 26 16:49:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13645093 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1BF00C04FFE for ; Fri, 26 Apr 2024 16:50:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=F+jKCK9QhvC5IGPGLCNmCxl6trjMi48huSrNdLq/Jmw=; b=iJ5CCDLeiApH/rWOepaOW9Y7yE yogOs0CzKeRGR1mGPZXsk2uwIoRVO+0wp8E9EO3ILcDZxg+2xT9YQYRXmd85F5NpRNdekrVMzVgpu BpL+5jrwARka0SmuObk30JiXf5LHopn5GrYENCLETsx5Dq/bxi99I0OKaxjCD2L58BVNc0lizxkSX zgnrOUKXplhwvSwPwCFFnb43vX6dyWlc0COoBzeR9qmM7WAijQlk4z17HFHWaw4EIXlT+vYXbFPgc SK7yaTpVK5lvCIA4QiEbK9eNQFa0hsaPiNGpoV80CQveNWezzSAk2pLQrBsiLwSRnRrO9gY4/yClW oFYblUgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0OmV-0000000DJeg-2Aev; Fri, 26 Apr 2024 16:50:39 +0000 Received: from mail-db3eur04on072a.outbound.protection.outlook.com ([2a01:111:f400:fe0c::72a] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0OmT-0000000DJdc-0bKP; Fri, 26 Apr 2024 16:50:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VWCcHj8Z22PM5c5O1CjJFcHSrwPqaCgR48MwnFENNSHYu88G3OkrFr2Nr00AYGUxLS6XcdDxQgUBiFgt57rd3n3bMXTRTSHMQySBCH2Zn7SA7Ea8F90AJm+PLVibNKnOKepNMkVV1Z33aGJ4PCur/FnFk+iG6KBT0rUTQVdROPB6KOu/BMrDu4f0xpbNsz+lXsHZZfiCThwIk1D9G03VmfX+GIxyO2SzHdSDVHFAv45HBfBdPJAbQsKEUkGQJFVGBfVFqURD8aYefVVpchSUIOpnxpKVyUA50Ub8eDPcixX39IzK0R/4hhFWraMr+NLM/2fm4uD5H0GiIm8f+jItGg== 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=BOZ4y9LpmO3SIsxBmkTLzn2Xo1D8twp3LSzmvFtE+a0=; b=nrk0RqR7KD0syFtm48tRnOnPluZVC84PE2cdjwetFIZ+vq2CK0c1yvy6G5Xl+/riEP0tnrqeT95NWl42F4gCqLd0QDPSRvMVKY1vQzTZhgPctpesO+2JPW8swp5TXxiI0RCNYDkGBSxvcbbHIbEO4dGrJidRo2N3h15lGX3WFc9jMf0eVQBAwdreDWaMCCrk7tRU712NTFrWGCTvV9cRu/n8CeX2STH1KFarDUzJAGxPcSHM48QM7Ur9+BTf4lEGq8ppkeyKmHQUWr5VT2kM1wCWDYL+BnjJ9ygysgYNp4Y/jAQdSxGck1nfVwUAj9O0aV55fV39sUfKV1yyc09ZHg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=theobroma-systems.com; dmarc=pass action=none header.from=theobroma-systems.com; dkim=pass header.d=theobroma-systems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theobroma-systems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BOZ4y9LpmO3SIsxBmkTLzn2Xo1D8twp3LSzmvFtE+a0=; b=jLIE7gozIYwukbmwqUCzdK6/FIjGr+M0zoQWm+DN7Quvnj6DeZeOrBzxLJtD0P2SKd2zNRR1PwZ3Nve2i7Pz7yKpZReHwS6SlZ5LWkN+0YC4VjhuLiG7oM9876jLabVJacOnp5FViSBuNPjJprDJ1xOWrsT+p4sCeEACXLnXmXP5CvQgLvrtqteJioQ/aUGtca3p/UgzR4wO8szDMYcBI9mmNw+vAI+t6/eBtEUbIYtCqxn5YO++pIGyU75Rflo4u/vpeSIDJYRHOpO+FT87VW5pwHmZ37vnJE8fq6drhLAItAg7v4YV/Jm2ZtkxA0ikxxkPJjlBtRLGZcsCbKAihA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=theobroma-systems.com; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI0PR04MB10230.eurprd04.prod.outlook.com (2603:10a6:800:240::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 26 Apr 2024 16:50:25 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936%4]) with mapi id 15.20.7472.044; Fri, 26 Apr 2024 16:50:25 +0000 From: Farouk Bouabid Date: Fri, 26 Apr 2024 18:49:32 +0200 Subject: [PATCH 1/7] i2c: mux: add the ability to share mux-address with child nodes Message-Id: <20240426-dev-mule-i2c-mux-v1-1-045a482f6ffb@theobroma-systems.com> References: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> In-Reply-To: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> To: Wolfram Sang , Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Quentin Schulz , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Farouk Bouabid X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1PR08CA0261.eurprd08.prod.outlook.com (2603:10a6:803:dc::34) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI0PR04MB10230:EE_ X-MS-Office365-Filtering-Correlation-Id: 01dcd41a-a324-4c5a-b457-08dc6610f831 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hMmsHCro9nB6ECTvue7+x06TibQOJXc?= =?utf-8?q?ABSu6urxiA4VQxk21b7swa35AVkDw45HfP5iuHoH+yll+TmuenGbQ4gRlgRBmTqKM?= =?utf-8?q?WvRsZQkelGz7U6Eh/pzvnGrXkUFsFiuPnEgWMveGwDB26ztIPqVt9dkLUMOsJKqiC?= =?utf-8?q?OoJMwLZmWxGK/NrlOxuH2n5gR2SDxYGjmtxNxIY4RgFpCLfGOH1NG++xq/T5Qa1t/?= =?utf-8?q?LAk/s1dGjODKnFMfaEmuEO2F3V+iQxxpSTD62eSW+QJ2Na+AJnuQx3H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Ayuw?= =?utf-8?q?rlCQ7z7ww/RRaVe3irSDNSFwN/jDiJEUb4uKNxEwj3PUdjvMDgVe5wxrTblyohhya?= =?utf-8?q?WFb65wERQd+JLQFZtM3re7qUSBJnLgsahuNnr8GH08VCONqn7oNPDfzYDk5gsRtQj?= =?utf-8?q?uqVZhmOagGpWcLxh/M4J/jJf/JQ5Sx1eWLg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6382.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?z0EQ9AXF40papnYfGZ1Y7blHgpFu?= =?utf-8?q?AZdHgkhhh88ATDMBsY96Vm2ApQ0kwYA6UN9C/YeAoI7QnI3pz5x17A93AcGD0gjdb?= =?utf-8?q?p5qdZCpSeO7/Hc6tm/y+Q8UhdIkeJ/Nj4st6cdmpWgrk8+8CWsKK3t4yP4+AWuBrp?= =?utf-8?q?0UMbaaJdZpqwUte86RzcENGY9qx+KSAc1In/vS4JGey65zKPQmJY5ZIWwQ3phwi7U?= =?utf-8?q?EbREkzDPCbJQUlNd3TC8sNEqVTvU0BkKcHhC1UqRjU02fjJITOJCYe7OVND9SrVM5?= =?utf-8?q?9iI2xCTUDCqPYRbKNoVx5HJUT2Kt7Gitklf7yxhfdUL6Gush5q1J3i7jM+HO5aAhc?= =?utf-8?q?Q4QCN1YJB6a6Ovx0lXpD/tW4PBB31RT0j1ZB3/tXqEZwLdPVRIFhbazbENt/gHfLP?= =?utf-8?q?x8qAJrZYh8o3CX/VqF9IAu+1EIqSCQkz4UZEqrDURu7M0mVFpsgzwGMaJWdKNxnCq?= =?utf-8?q?ToNsniibMct8jo67xS4cyjL56Xr533IkpPiXkjdz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oGBVQ/cJ6Gjy9x/TAqbfyY8HSbyTVpx?= =?utf-8?q?HuO37QG4GW89Ro3DR+hGboCXYPdrmeFr8UdKuDdJpfhZq35eTokLWoshEDqTZtIOc?= =?utf-8?q?wv2qUbdXu649M9pEARTmOZj0rIpDg83rKFB9xLFv9v8PrFcZ9FY7AWzUnaJNgqlAF?= =?utf-8?q?zbiDS0G8gQV8qJQEIBQjozY1C2KJYCElHzCIaR8PoTwse4NQTTuyqQI=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: 01dcd41a-a324-4c5a-b457-08dc6610f831 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 16:50:25.1088 (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: s31FsMxDOfV7owdLmFX60Fksqy+dhoPm+0I5FmeNv1h6Y2P1UPM2FD25PXg6OSI0A7K/V1PCMCy4vq76ABHWvnKu/W2074f4SMgPtC69b2XZaoJdip3iFUUIx/py5FS9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10230 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_095037_232540_FA049F78 X-CRM114-Status: GOOD ( 16.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Allow the mux to have the same address as a child device. This is useful when the mux can only use an i2c-address that is used by a child device because no other addresses are free to use. eg. the mux can only use address 0x18 which is used by amc6821 connected to the mux. Signed-off-by: Farouk Bouabid --- drivers/i2c/i2c-mux.c | 10 +++++++++- include/linux/i2c-mux.h | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/i2c-mux.c b/drivers/i2c/i2c-mux.c index 57ff09f18c37..f5357dff8cc5 100644 --- a/drivers/i2c/i2c-mux.c +++ b/drivers/i2c/i2c-mux.c @@ -331,7 +331,6 @@ int i2c_mux_add_adapter(struct i2c_mux_core *muxc, priv->adap.owner = THIS_MODULE; priv->adap.algo = &priv->algo; priv->adap.algo_data = priv; - priv->adap.dev.parent = &parent->dev; priv->adap.retries = parent->retries; priv->adap.timeout = parent->timeout; priv->adap.quirks = parent->quirks; @@ -348,6 +347,15 @@ int i2c_mux_add_adapter(struct i2c_mux_core *muxc, else priv->adap.class = class; + /* + * When creating the adapter, the node devices are checked for i2c address + * match with other devices on the parent adapter, among which is the mux itself. + * If a match is found the node device is not probed successfully. + * Allow the mux to have the same address as a child device by skipping this check. + */ + if (!(muxc->share_addr_with_children)) + priv->adap.dev.parent = &parent->dev; + /* * Try to populate the mux adapter's of_node, expands to * nothing if !CONFIG_OF. diff --git a/include/linux/i2c-mux.h b/include/linux/i2c-mux.h index 98ef73b7c8fd..17ac68bf1703 100644 --- a/include/linux/i2c-mux.h +++ b/include/linux/i2c-mux.h @@ -21,6 +21,7 @@ struct i2c_mux_core { unsigned int mux_locked:1; unsigned int arbitrator:1; unsigned int gate:1; + unsigned int share_addr_with_children:1; void *priv; From patchwork Fri Apr 26 16:49:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13645095 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2058C19F4F for ; Fri, 26 Apr 2024 16:51:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=1dFOa7jVJjm9f4tWopWDbmepIqmWBm6FQwLsy1Ab6+0=; b=HQusU33R9yl6/yrZqqbMZ3fHAA jWX0oyc7yYnEBwGTODqTankcbZCuyIbdYg24GULbr36a2uaMzgjAqxZk85oAH0p94zCh0iYdUZaPI GOZMF8DOmXB0WqSylDRE3HX4RV1IiSYmByFI9L03/EPlVgnPcixOjreWj6eUvRHPRWUZxhj0TOnIp uEZivwXnzW0Nq1+bZZBN0pTwlJO1XuR7T9PhGuhQSZBHTeVC9HOYC0db3Symvu0M0KRc5V88c6Tcn epQotWNCS3HOvVmX0vH/nPdd1q+E0jlWAA8Irqsp4eDXQEV1OVqbGuVZeqSbV/R4WwkkNkIVgyXR6 drqYMgRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Omj-0000000DJo0-0Gbn; Fri, 26 Apr 2024 16:50:53 +0000 Received: from mail-db3eur04on072a.outbound.protection.outlook.com ([2a01:111:f400:fe0c::72a] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0OmU-0000000DJdc-4Ajb; Fri, 26 Apr 2024 16:50:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eZTiA10mU/pwlP9fiinbQbSgQ+skoRGQTmN+2aS3ziC4wwgs5Suska3lmQzN6sydCejFKe5QnlpwAUzY/iM/4XbcgK8C29nDTNslKweZaROwmlAJ++PTN4It8W6YjvJ0kP8YJ8rkbOGb4lGRFDOhaO9yj9Y1luRWLtMWcwcCeWwO/VA7PDMYt/do1BxzSPinbWuQ3uALWhZerQVC4woWN8AHLSpMO3d3sQv/F3HKsz2FoGPNT0OWH2tnSbDeO5cvIAwBsrCmdSlMSyVo+8fzIKc45ib0I32karUDNR6EUPXXObHhGFgudSyW9Jgl13+H1jW1m/dgi9WKwBqDxckTJQ== 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=jALs9GKntVlZQTeo6/+1x1V4OtMgbK0DQtN+qnKkdNs=; b=HvymQIzM/HqFbcEvU1RpOUssD3hsQXvsS3NdX0OqgsNpsgjs7d8+Q0h2BtRjdXQRLiG9NJyd9IcGQbDFZ3QIQ2CGMCTDd9T8xEcJTEpXi4rPpoPCwFChTdq6Rs73Vw8qyaUnCi8rQ9c5ktMMcc6KZKGg3aBluwyYSF+FmOJIcx54M0m8RY24lcSymqWaxmO9eixNJgWTDf013MdDwX3SrYuJA73BjDqsWXSZ2BMYKjgBErsjgV9CN3p5aqRtgPPEANy2S++sN+wbnnYUBRf4bzsahV6atFqnRWfRVb3MNi9BhbQ+NlQyFrbLO8l7gvLtOs+0+PnfqhZVIQViNV5Z9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=theobroma-systems.com; dmarc=pass action=none header.from=theobroma-systems.com; dkim=pass header.d=theobroma-systems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theobroma-systems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jALs9GKntVlZQTeo6/+1x1V4OtMgbK0DQtN+qnKkdNs=; b=GGbAw9TQHqUj85sDgjOjkL/PjupDDDae9oq7Nr7bpzzoZ+OHPt4s5meYTukfwsDjRKJp41rQamOa6rTUp/aO7v6usWkKB3FR0bepNBxXcefUnIWUkcnYk7vIQ1k1iytoDsc46o1UPwhaMlvN7/n41a27d6E3T7Uazrkr9wCj8XHOIhgaidS7YVVkhTS4SO9GfMKNYjQGc3siF4VeQHXzxpcZnrmNoLR45BsDjV1NubhzhBomC3501oeTaI+hrcfs5EqNF+x0r4muy0x794JkX4o8Y9yslFoAn9P8NFZlKHxBdehM19qG+C7P5WKq/SryhwJmzI31RoO9w3Fg1rzuuw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=theobroma-systems.com; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI0PR04MB10230.eurprd04.prod.outlook.com (2603:10a6:800:240::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 26 Apr 2024 16:50:27 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936%4]) with mapi id 15.20.7472.044; Fri, 26 Apr 2024 16:50:27 +0000 From: Farouk Bouabid Date: Fri, 26 Apr 2024 18:49:33 +0200 Subject: [PATCH 2/7] dt-bindings: i2c: mux: mule: add dt-bindings for mule i2c multiplexer Message-Id: <20240426-dev-mule-i2c-mux-v1-2-045a482f6ffb@theobroma-systems.com> References: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> In-Reply-To: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> To: Wolfram Sang , Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Quentin Schulz , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Farouk Bouabid X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1PR08CA0261.eurprd08.prod.outlook.com (2603:10a6:803:dc::34) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI0PR04MB10230:EE_ X-MS-Office365-Filtering-Correlation-Id: af46b4df-ff1a-4c96-0ccf-08dc6610f956 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?4tqGMhHf2wMh2C2x0iXbZuGqC8iNbwk?= =?utf-8?q?2x3yFx+uURHuBslm7PktYWMv8LZ11KBsxqr/klIeC1wEN7x4nHZUMhP1sQbbsNFkb?= =?utf-8?q?rj2YPKhKQ0Obm8CHM84bsANt65aBo5ws2nRjNQLBFgMLrU4u+b4Ykm53GOQJbnnru?= =?utf-8?q?blOwPyDbFVoFi3j+uQsboV657+hUiZzQzk7/ZHyoAAu6Qd2Ep9+kJTyHigLuIhkgk?= =?utf-8?q?joMouwhj++t28pZ50UGxbwhppcBGBInu6KLjy+V7dIYF+vaQ9F9f4Vid63aZPya9n?= =?utf-8?q?KA9JLWWPykJ1P3PaHTozx+Qw7t149he0IGwNT32pK4Itups3ZLyKxig30zNKne5ih?= =?utf-8?q?aCreWGV68eUuhXFpCSVmsRymS4aHiYBPuJ7rjBLlBxsf/B6pCAX3bUBH5TLEEITGS?= =?utf-8?q?bImsqRHw262Nfgg89/idvv6n0KxdqN4uTtCrQJZlq/N+eGV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MB6382.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?bV2k/usdZgoSMH+wmRUJACIaHVs3?= =?utf-8?q?Le1WpkQxdAMSnBWTspm9dZmD2RApHHivtu7BwSJDEfOlxhT5eMlGW7wV1t5PndS8g?= =?utf-8?q?kyuCoOzrDXRH9NURG4abedj6AHM9g6uEw52OhyQu3lryvDu5kdn+nw6pUwCHHMMK9?= =?utf-8?q?HdMNBstwyXnkVepzwvrsD+NqQbXniFom4mzV1Dj8e4atIVJMu6VcnZqyQ00UipxzL?= =?utf-8?q?ATtE8bbFS917gJihLdp/xYGFEKCCTKHPO7D6i+YG4GwKnDeGbkCzVOqaulczGbN1z?= =?utf-8?q?6WOvK/aiSHiw/vFqINdUqZTX99IwU/gRxAo22cBB/DoDTiND0NB0w+dwu9k2XqEdt?= =?utf-8?q?ctDj2no7l/3xxlFhMt+UcYBurvvoZ6FDDr45s0sYCOXPe8XwoVzjEPlsK6q+Cgl8o?= =?utf-8?q?2yzLV+LkiO3i3a6qqUgBF/6XZfr0lXWaxS976+LpKuaKBMYA+4Im8qrGbhfDVdSJa?= =?utf-8?q?O+Nbnqtpjot7vWlxjMs+8C5H0LQi0stIhdTLXCUuMEypsBtJ0egIbakG2k5Fm6klj?= =?utf-8?q?NwB6ZccEMGcSMueKlZIpcuC04GOgvJmvq+8ABWKY296XHayXKv8W5WQ4goBY4qN1R?= =?utf-8?q?GexQFHfVoZp1WbOMkTJsMMYHfZ2CWrwgPQasnzo2mpFnDEAj5Ce/C8DJvEJEH6BIU?= =?utf-8?q?7uwPxIG3Wrs2yjDKjtuiLz/Yx6N4jUVX3Mc8RXLKKNpc2guoMuDO/ZdKm5at2+vTg?= =?utf-8?q?Kyk68N/HZW/mpuWpV8N5zq4g9YIUgLLa4J3l7Aec85atInodKcSjvpvKn3vEyjAhx?= =?utf-8?q?51sMqg/z4HE/5YphiS0MP0g5eQHrkog96S/aMqDB9oR2viDYfyuZHM4EZMDanz/TW?= =?utf-8?q?ilGj/8/8p1NWKoVfvTfZ7IXI/mKGaTeU5/+usfAcHGymnZVCXzQdxdKGae0boyw76?= =?utf-8?q?MLmrdwb7lLCAIwPwehSsfjzpiZUK2Ie4uxoiADsVTQ1JOriC0Bog53yW3+at5PDj0?= =?utf-8?q?PM25Pp2PCDn7aG3fGPA0TOtpP+pKsVeoLmm3UIaxQKUGIFqY2xyhPFn8mR9yncTgS?= =?utf-8?q?JqDJIuwTVx4lOMWgaMp3jr63T9PJ5Yl5Z8/hdFZpxxseflP7HulKjivhjAy7dxO+L?= =?utf-8?q?akTVjxrA7EUUVUl4IMZzttJgREzTZa3jyTWTlEm0GSo9qUEbcG+fpUKoPZDqCfpqI?= =?utf-8?q?8Msoap4TP+o4uvaaIrViWHkxeWbQjyMcfszG9fa0XBvuyHw5KDIKTdCSzAvbBZorH?= =?utf-8?q?xy6PzIaBHtyj6/nDg4Cel7UzQUrh+dDG1CggDb3zSPJdeSD/D6wDdwSLKNZ/3Nn2g?= =?utf-8?q?0wm0y0oA3gv9LKcP0SuYBjQ7NIFt0UuMRTMcU6HUhSeovLImeV+M5U2Pty2teNpjH?= =?utf-8?q?1gsz2tJqWD+8SLGvLpIev9BlproPqxdFsJGo+QumsfJefAk1v0yB1SYxjJIJPJunO?= =?utf-8?q?5Op4YLll2ZIllqEsGr57n/uSjzgG0aqauEr55pairBsYNq5d82SCtorfVgBYJXk5R?= =?utf-8?q?jXsY1rJzSBOf8ksQ9j/CNW7gTiGp/Q/RpfN7YRipgSh3prNm1zeuur/uSIoBCUUGD?= =?utf-8?q?Lr0CtD+fgXyjoMA+OJhSdo1wnP/2B9b0Ok/XhQeydK8ygQRZEB2oth4=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: af46b4df-ff1a-4c96-0ccf-08dc6610f956 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 16:50:27.0357 (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: UEfeJGkXKgeKFCwo4RCRiluJhh1vlMIspGuJWNh/vlBw/OdXtDvBr4DWadWoSi2fIcu0AATlzPet0th2WfgRSdzJqz3zYmcmJ0uUzzxgDnZJgZAzxYH2EwJHoFVQVlFD X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10230 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_095039_192816_BB2E2A1A X-CRM114-Status: GOOD ( 12.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch adds support for the Mule I2C multiplexer. Mule is an mcu that emulates a set of i2c devices which are reacheable through an i2c-mux. The emulated devices share a single i2c address with the mux itself where the requested register is what determines which logic is executed (mux or device). Signed-off-by: Farouk Bouabid --- .../devicetree/bindings/i2c/i2c-mux-mule.yaml | 80 ++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux-mule.yaml b/Documentation/devicetree/bindings/i2c/i2c-mux-mule.yaml new file mode 100644 index 000000000000..458e4661cbc8 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-mux-mule.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/i2c-mux-mule.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mule I2C multiplexer + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +description: | + Mule is an mcu that emulates a set of i2c devices which are reacheable + through an i2c-mux. + + The emulated devices share a single i2c address with the mux itself where + the requested register is what determines which logic is executed (mux or + device) + + +--------------------------------------------------+ + | Mule | + | +---------------+ | + ------+->|Config register|----+ | + | | +---------------+ | | + | | V_ | + | | | \ +--------+ | + | | | \-------->| dev #0 | | + | | | | +--------+ | + | | | M |-------->| dev #1 | | + | +--------------------->| U | +--------+ | + | | X |-------->| dev #2 | | + | | | +--------+ | + | | /-------->| dev #3 | | + | |__/ +--------+ | + +--------------------------------------------------+ + + +allOf: + - $ref: /schemas/i2c/i2c-mux.yaml# + +properties: + compatible: + const: tsd,mule-i2c-mux + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + i2c-mux@18 { + compatible = "tsd,mule-i2c-mux"; + reg = <0x18>; + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + #cooling-cells = <2>; + }; + }; + }; + }; +... From patchwork Fri Apr 26 16:49:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13645096 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 12405C4345F for ; Fri, 26 Apr 2024 16:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=frPc6tRkcV1M2AoAfQ6xfwCP9r11h7iuJQIpi/t4kc4=; b=1IuvlaYiTKFSH+JhipcfjhfcFt 1NZoXNpPgSlkJn2jvx3lDPn4G3RWEjyVRJ5LmLj5rrfnFb9z97D4Y7o/v7Y+E/5/HvFKZ5D2pgZWV G6wOzLTrLALLH8RvcaNnpQML75xVFl1QYMxSecaClDUoV02NeTU9H0rNRbIMCGNiifwva+lLsdJYq wXHePyV4uxRpZZf2yQt2rPkypxVW0iyFB2XHDnDiFJAEvrIoM8xwSk8W1+4N+SYw+B03AynKCM6C1 H5wwz3hedsARqPSgo05/yRGQzCKBexUBEXcvW5zVQGN+hycEW6gTKksDk+2it+pqVrF7bBOp90V+f mUBZrcKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Omm-0000000DJqb-19Go; Fri, 26 Apr 2024 16:50:56 +0000 Received: from mail-db3eur04on072a.outbound.protection.outlook.com ([2a01:111:f400:fe0c::72a] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0OmX-0000000DJdc-0tz2; Fri, 26 Apr 2024 16:50:43 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=acqpz69g688Jz4QcoODm8y/EK8upjlqB2q+EodhbxBRXqghqqLbaHpHyC/pnN/635AqxxCD+h6hiiUYjgqnV0tJjXe/cegejbA7bFaIGUewkJtpvkzuAk08eHNAKhJT6/dv2E3dcWZ9gKEMkXkCFJ+HJsi1PxDhkTFAhOGH/coiqW6qy3cMIDbjTsikcNPn5+f36Za+K8ivCWzCt+V++efPZJZOdAz/DVpI06pCfp2FMNVjLnksUfVoafHNVu+SXjx4vOwizFUFqO2qVy2/H3Yl3ptGzjR5Gx8DEjA52vClVdAuGTEKfjnrOQNeS9t0GYWk7eqq/r7d7Pm49Z80tSg== 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=+dIG2BkAXgcQbmkRkmzTuBvQ0ASz8UsVLrstqnA3rAI=; b=AwAngE3JgjfsS1khruOqbZScm/dhmVlKcLJ7NhgEodNvNIyeAuGriv2R5mBvSAtIvUTBv64biaMkOZjGXIYDrhbo5TUGhXSkbsSLALWmU67Hc0zVeXIEOO5x4O/JHornyETGhY9LSBO0sKXYps/Lgr5GjUwlLOLWrXhgF3w9t8DgmQE6fumMvsYSDNuLQF6Peroo4xRjKtGF7ASCOHhcuFbyDnkuBGV/205ZV7/JfeCpjx7kjc+2hy8gdgxfn+Fk003dUUpZs4948beAC2+0KODBm1jv6+uGeRvZL3/lb97n633Yr7RVZiw3HsX8sh6DR1DVVNI1WOAo6Ww4n0oPUw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=theobroma-systems.com; dmarc=pass action=none header.from=theobroma-systems.com; dkim=pass header.d=theobroma-systems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theobroma-systems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+dIG2BkAXgcQbmkRkmzTuBvQ0ASz8UsVLrstqnA3rAI=; b=LUC44oMCItY3GmJEm+38939SDC4R3DNwDJrtxCYK+cbPjeyA//ADHxtmIeEHMzl/P6RTGfd/9c65t1TcnOoCD1b4spNoml6U6Mb9tfJlW7as6dD5a4V8LovmFKwPfyg+PRLQo1p7cGlzcQTeO26JTeXTCCs1Osgxq+eCdGFf8uLS678iMj45hOjBD4LFlA3PGdY03sVAw6OvAFKTOzER2MJ51uE/dpOHrGea4o/cF0BabvG8QfrZDQYs7f+d4DyZ+g+i7p8aysqJvJkef32irxQgSu2kwQLEg0Qp0aeJIsAmBXFguSqdCFVX4JOJ3FruAf+PiJCBGwWl6VdaLS2nuw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=theobroma-systems.com; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI0PR04MB10230.eurprd04.prod.outlook.com (2603:10a6:800:240::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 26 Apr 2024 16:50:28 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936%4]) with mapi id 15.20.7472.044; Fri, 26 Apr 2024 16:50:28 +0000 From: Farouk Bouabid Date: Fri, 26 Apr 2024 18:49:34 +0200 Subject: [PATCH 3/7] i2c: muxes: add support for mule i2c multiplexer Message-Id: <20240426-dev-mule-i2c-mux-v1-3-045a482f6ffb@theobroma-systems.com> References: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> In-Reply-To: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> To: Wolfram Sang , Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Quentin Schulz , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Farouk Bouabid X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1PR08CA0261.eurprd08.prod.outlook.com (2603:10a6:803:dc::34) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI0PR04MB10230:EE_ X-MS-Office365-Filtering-Correlation-Id: 73926b75-5b7d-4748-f092-08dc6610fa22 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?gQcqJskI+yHfXCQ5UTU+lrKyuXy/klB?= =?utf-8?q?zFt57DFOEhedXUNoXJ4hk1BijOgSO4gE8BwUZv5Z9sURYws4hwOJ1uopGbi+tomhy?= =?utf-8?q?dXMGhVx7bu8zsocVjzaNV9X8UPIm8DKRkhluRPLe6A9dPRaUpcJGtqXnEkyFbYpze?= =?utf-8?q?/vgWe8PbqMcfwpTXVzU7IH7oX/POKMrV6NGmcSgm/5cNrH6YFKI+taGiA/WNs8dEi?= =?utf-8?q?7pmGQsi+BEqk08n/Xk3dE0utcE9A/sS6/Br3KdWxrhGgEQHuhtAEr+6xFgmM6YM9u?= =?utf-8?q?FfTnE71RtaKff1mV6rfLId8/S140B8UyQDrJDt9NQyGQ78apO1eu0G4TG/9E+/8Wi?= =?utf-8?q?0DkJRd1ujCz4PUwrraKsHO9HV1KSTATsGkdkpXx9GaPcU5RVdM7UBE2OskgMg4yZa?= =?utf-8?q?amOtU2D39F/jusx38rAQVKgDTznIzbyVNeK+r9kG4gLGAQ6UY3F1TFWzY3EEkQBZ7?= =?utf-8?q?NlzhiKEFkGKbZ4bvuMRv61Z2MrgNsdis/OPcUMkhLCONudLgvw+deA8+E/525PtRq?= =?utf-8?q?qlbrX8N/EznMQunx/mEi+wlwYsOhpMhcD0qpZ2CsP3pc5rnTUvBJZyc7hd+wfqveg?= =?utf-8?q?67+EeK915NuIghXTH8jUxuPBIJVroUOzMl8oQuqthc98iRLwUxIV+WBnTZfIirGrW?= =?utf-8?q?1uijf3E2xU5p6TTj5RIOZkXrmstCxuYd2WJ8rnN96YjlBeYngJ+40ZnbmJY7UXBlL?= =?utf-8?q?Myy9QTEXqzY/47DsUlp2dvqgaE22z1yVDsjHo8bp9nckXBhJlQO1I40h1N7E35+4P?= =?utf-8?q?NoO+I+SfRK284lNLt+O+nqCiKoOjZZQjFVSl4VN0IlfVU2Nx+zXcarq2gbzlRPX6M?= =?utf-8?q?bq6u8+ebzaLQ9kdA1UIFxT68pANLraaTo3xhC2aPPkxF04ic9YElgBgaBhnDCx8e1?= =?utf-8?q?OFM15lke2bolIpo3+Ll/eVAw2rgpf3l85FWCtaD5h38Yt8BqhDXb8OCYUDxxFfiFu?= =?utf-8?q?J8y3RAeVtXu+oep2tp16+L99PMyAduhy5n5efxpsTCEu8Z7sfaDnRjIHrQfPfW25M?= =?utf-8?q?1GbC6mNaCGMtI8ZYMQRVYfdi/7jQUsT1b6dGG1GCBD1ai3ajBQS/VtdTNREt1VPPP?= =?utf-8?q?RknigiRk9E6c5hLsyR2U2ArhXqKO1L/rNiXKidt6l2paZrrsL5PhO72wiKaKZrsde?= =?utf-8?q?ly0IWvLbgdhyctLg13ApfCL+8wI1EF1yAC4bDkBeUVedsg2Fb5SDNkEkIVPf3wICv?= =?utf-8?q?wkgUSQmT08p+UJeNr1mBVDdmpMNHurklWZqfOQSnSVJ23kW5gueDO+LDdgx0D5rj9?= =?utf-8?q?ql2iw0WyoR5P3ytTGHV+aAKkaWIDTd2tWow=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6382.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?oNvj0Nidlrj7vOTKb/p8uDwPQnHj?= =?utf-8?q?xtSTH/aiyOKbXD8n6mrnm00zHt+J75+yqOxJ3Zx+5AGIlKiERUcT7ZWG1nG3aIyM0?= =?utf-8?q?4vOSJh/y2elCaE9ZuL0uKb8d/6IuZkfvffl2hhY3ypV6wsUwqIm31V47aitTsWNkm?= =?utf-8?q?SXOjdEusG9rVht5Am+dKdzzEVoJ+i87OqX2UKnZw9hkMOublQNNDgz3hRJti0e2Kr?= =?utf-8?q?ZJexJBIQuHAeYkz2vw5Kzg90sfM2mhI+gmB95cr7DAZvOujd10zpct2qptaswsjee?= =?utf-8?q?dCWDZJhgqvFGaSvdNWkI+xKvtjLVMykPywJfwRkk4itB9vnm+yAycJsix3EJgzOOA?= =?utf-8?q?PP/9tw7WJHwrkeiLKVWmFD88sOwtyCHomm2Ap7ZRGfGINIgK21EHArmzxQy5neWUP?= =?utf-8?q?3NihwjZCpx5uSf4hTUlSZqg62p3uXuxjLbddEhf9r39a+8axBXlA6ly0Niujy0qEe?= =?utf-8?q?IT2Yv+TEWY48gQmiqYtrHXuypbaPC83cGzcOjc5/5UAp8UD24hVZOkNuSayvsKfDl?= =?utf-8?q?WKnJGPqnEC1gx2Ev3GhdAHGUryoD7OjypZ88ENJ5xud7tef+mLWd5sD+y3NrW8AhE?= =?utf-8?q?BFeIePyOhxT0isgmjcsUpjMRS69nnYOFCTTn2EDk4yO8tOF8+97wnfckHm8IjqrFL?= =?utf-8?q?pCGWz0V4Dcqn6sf6XA6JYwAzS1ZSiaUSETAN6Q1+sHmJ3r3HmWOOxncvyg+gkL5Ky?= =?utf-8?q?BQGc1LSpAZ4HZjGsnauoUh5VG9cpz5YehrZgaZgIIXBY1DLTj6p5dajUjrBxgSXsv?= =?utf-8?q?+7dMal/rNKUeqE3NHCHMxMrJ56YetzhqF2b1gdLw/ixZgPmZd5Xwkse3vRDbVpRI+?= =?utf-8?q?vS0WWzlGTkb+gGc7R5DE3vl4BvCfc8ftcxEPDyZSm8gxBYHuxYNoVVsPevPbLjExY?= =?utf-8?q?sw4/3ga8h9hi2wBn7yhFdzZ3pL/LuZ69MHDLAF+l/qtVIhBc/0YTWer8AWv+qnEXi?= =?utf-8?q?Xhi3/A+/MxS4uXZP1A+Gquq48cKgcr0WpZfynUh3cDqgF3WMJG5OjhrE45HGVt7TM?= =?utf-8?q?gJGTjlSQzA8FO2PWlSiO6p712RLrrYWnYlZ6XAveObANXw0DofJm7cGLH5aK4HMjD?= =?utf-8?q?XGhv53O6OCETYXmBEOOW+9VeG9Qr+pB8zN8+d6dSLmA0A0opKQacePdwE/HrafKnx?= =?utf-8?q?04I5EeQjmosdn9U4Cp7JRnecMxN2jJBUgLv8saAJ93ltrn/nmA8kua59Rla85aNuC?= =?utf-8?q?XrRWFRC8g8LY7akejd67NrmZ0xB0LJHCGJSrcY0csWNP7SR3C0+DWGTJVEs77Gb50?= =?utf-8?q?eYg/IcYDh7CAqk7Xh7yYgXry8fW6l3r1jkg93DVLAuVJbfBhxh23OG06BJOKPbSmD?= =?utf-8?q?Jbely1HC3stMXj7qrfferxDdNKN0J5WjgVWDHo+inuTebl29a5tfdsGZA4KT4mDFw?= =?utf-8?q?HQU2zVS2h9ELK87DajjYa7TPS/+JA1IPM7SheP01ZMe5lIpWgYVu1KqMkZF+XHo0d?= =?utf-8?q?WQwaRlZWJxm4Xn7mBDTPQ5822rZDPA+80l5ULMDwsrCMDH4M2+s/OgeNXTeAX1g+I?= =?utf-8?q?Fi+Cqc/PUtwo9dsJuovlVIwqeUuJIW0qRhzade/r41iJ9TkueFJWyf0=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: 73926b75-5b7d-4748-f092-08dc6610fa22 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 16:50:28.4148 (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: d6HpQ7j4xLdWWVBdM45lnyVMSwXBXj5eUqaEcXYg0I6AMQcnyyDDxd+quU3B0bH53h590v/8DYoUZvMdpLLkyXgGw7JCZNixDvyeYrICWFhxdcTYYrS8F8csj26I3TcP X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10230 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_095041_517260_4F339161 X-CRM114-Status: GOOD ( 19.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Mule is an mcu that emulates a set of i2c devices which are reacheable through an i2c-mux. The emulated devices share a single i2c address with the mux itself where the requested register is what determines which logic is executed (mux or device): 1- The devices on the mux can be selected (mux function) by writing the appropriate device number to an i2c config register (0xff) that is not used by any device logic. 2- Any access to a register other than the config register will be handled by the previously selected device. Signed-off-by: Farouk Bouabid --- drivers/i2c/muxes/Kconfig | 11 +++ drivers/i2c/muxes/Makefile | 1 + drivers/i2c/muxes/i2c-mux-mule.c | 157 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 169 insertions(+) diff --git a/drivers/i2c/muxes/Kconfig b/drivers/i2c/muxes/Kconfig index db1b9057612a..593a20a6ac51 100644 --- a/drivers/i2c/muxes/Kconfig +++ b/drivers/i2c/muxes/Kconfig @@ -119,4 +119,15 @@ 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 "Mule I2C device multiplexer" + depends on OF + help + If you say yes to this option, support will be included for a + Mule I2C device multiplexer. This driver provides access to + I2C devices connected on the Mule I2C 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..da2a9526522e --- /dev/null +++ b/drivers/i2c/muxes/i2c-mux-mule.c @@ -0,0 +1,157 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Mule I2C device multiplexer + * + * Copyright (C) 2024 Theobroma Systems Design und Consulting GmbH + */ + +#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 const struct regmap_config mule_regmap_config = { + .reg_bits = 8, + .val_bits = 8, +}; + +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 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 i2c_client *client) +{ + struct i2c_adapter *adap = client->adapter; + struct mule_i2c_reg_mux *priv; + struct i2c_mux_core *muxc; + struct device_node *dev; + unsigned int readback; + bool old_fw; + int ndev, ret; + + /* Count devices on the mux */ + ndev = of_get_child_count(client->dev.of_node); + dev_dbg(&client->dev, "%u devices on the mux\n", ndev); + + muxc = i2c_mux_alloc(adap, &client->dev, + ndev, sizeof(*priv), + I2C_MUX_LOCKED, + mux_select, mux_deselect); + if (!muxc) + return -ENOMEM; + + muxc->share_addr_with_children = 1; + priv = i2c_mux_priv(muxc); + + priv->regmap = devm_regmap_init_i2c(client, &mule_regmap_config); + if (IS_ERR(priv->regmap)) + return dev_err_probe(&client->dev, PTR_ERR(priv->regmap), + "Failed to allocate i2c register map\n"); + + i2c_set_clientdata(client, muxc); + + /* + * Mux 0 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, 0); + if (ret) + return ret; + + ret = regmap_read(priv->regmap, MUX_CONFIG_REG, &readback); + if (ret) + return ret; + + old_fw = (readback == 0); + + ret = devm_add_action_or_reset(&client->dev, mux_remove, muxc); + if (ret) + return ret; + + /* Create device adapters */ + for_each_child_of_node(client->dev.of_node, dev) { + u32 reg; + + ret = of_property_read_u32(dev, "reg", ®); + if (ret) { + dev_err(&client->dev, "No reg property found for %s: %d\n", + of_node_full_name(dev), ret); + return ret; + } + + if (!old_fw && reg != 0) { + dev_warn(&client->dev, + "Mux %d not supported, please update Mule FW\n", reg); + continue; + } + + ret = mux_select(muxc, reg); + if (ret) { + dev_warn(&client->dev, + "Mux %d not supported, please update Mule FW\n", reg); + continue; + } + + ret = i2c_mux_add_adapter(muxc, 0, reg, 0); + if (ret) { + dev_err(&client->dev, "Failed to add i2c mux adapter %d: %d\n", reg, ret); + return ret; + } + } + + mux_deselect(muxc, MUX_DEFAULT_DEV); + + return 0; +} + +static struct i2c_driver mule_i2c_mux_driver = { + .driver = { + .name = "mule-i2c-mux", + .of_match_table = mule_i2c_mux_of_match, + }, + .probe = mule_i2c_mux_probe, +}; + +module_i2c_driver(mule_i2c_mux_driver); + +MODULE_AUTHOR("Farouk Bouabid "); +MODULE_DESCRIPTION("I2C mux driver for Mule"); +MODULE_LICENSE("GPL"); From patchwork Fri Apr 26 16:49:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13645100 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5062EC19F4F for ; Fri, 26 Apr 2024 16:52:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=5IwnUe53CKLyEOPz9OeBS+PevyO6W9Q/X8bGKHC3Yf4=; b=HRsZy7dgu318dzmvviljnFUN0E PRXb1YYAC8JlScJOctQZKcpu/uiQNmE5Km4QpZ0zLc4zMQ1M6KB9JaZ99+kaXAlbTNSFrSQUlAxZx FBjmEspqggmLU+tCNIuL+dnFMm6bYA/57qYd39E3BXosr7wsrT7vWiuP+TxDvcoq6gIBhX4bW3S+5 kC82s84z7oNZcaZpBpW6ECdQWvXWPKZVmtaKGCh1Fg70G3rTdoFcJSafLNoHS5v7UElHOJ22SucqQ H9X9OCxTGD8vEviyPtRhzByC9Q4mPM9pFDGpydjPzhxCdV0Iq1sxd5d26n3KDPHqhQsEcwsd2Vnkk HLUuy++Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Onk-0000000DKUF-1SL6; Fri, 26 Apr 2024 16:51:56 +0000 Received: from mail-db3eur04on070d.outbound.protection.outlook.com ([2a01:111:f400:fe0c::70d] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0OmZ-0000000DJe8-0mhN; Fri, 26 Apr 2024 16:50:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DU4ftIo91daBlzHVJFA56euaAquCq50XGDSskRncSH53vzJg5X8reSXCmYF3I5tfgLE86eoZQ2/nVK2eXPn9zy40HXZXsVP097PyoyEGfWJZQn7naRa1Lv9+ufku4VvYz4X6gf+MZAnV8RXaQsRz+t2WidAiFQneHpLzbKAV7ycNAC1n6BIsx/z9vVLSJgQropxxzQRTNh1+tXx2Rt58HxD2FjDQjKhRnKSxPdDlKfyrM5z+D1S3F0/Was53DN0ya036cfegQneOvMBhD6lGiuzZ9N3s3RI0sku8cyrfFDVwg5R8vy2phoIwUU/IybThB+Imgfur4ekEsRpMZOMVzw== 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=3oRT6bHEb9rMmvzVNQAdfABwzPzcqwjzZRzXFe/1ffw=; b=A+pbKGbINzAxmKFIHXbriEWH8n4mNZu/WlcyPn/4lqgf3VFAyugKoA0CDXpuR3oh4KcGfA/uwM9GW+jgyXy+bXY7ZmVKGAk0vy+5GddjmXPkMMTO/g64ax5/NDbJo3rstM06++bwcuVVUSNMRnkA5Gzgizgyd952QomB3oZ7r8OGnwDasypYrXDYWaz5IoK99tc8ZkGjKxNMRlW4JC9QdSnQoUpU1hjCllpHwM984fDANT6OHNo2Y6uurlJjsF7ceiM5zsFBKkeAKIxkYg1sAnKKl/cCNTK5eeO/6RGJrXxK7cm5afmUnU+MOf/a8ckpgR49jDBjkQpCa0SgkFdDUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=theobroma-systems.com; dmarc=pass action=none header.from=theobroma-systems.com; dkim=pass header.d=theobroma-systems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theobroma-systems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3oRT6bHEb9rMmvzVNQAdfABwzPzcqwjzZRzXFe/1ffw=; b=Yxxup9gJnRCuJ1WaZqEFbL9QqkZXUGpNMrysfbuHcygzNSoP8jJW8ghQCHde5geHu7wMvg71KRKJprDlNYCG8DTSfW9IZQ2DqxdZU8UB5x306nAvxixbL06JxPXTopg/AmQv4wUQ3n4a0FIDDPT1FvOMFPM13xw+xxylQ5wdzqQMBP8t91uu4Sjigv6VvfU9uGJbdZZPL3h6aGlr3fiRxy3f8bvQO3ewCi4Sf9JcfneBbzocbfMLmlZuvRy5BFOjt7c0mNv2Y94/W7MRgih5ao3vCH55wf8WeRf+4Pa45rFyDjEIFgTze6QI7AL3JSRF7Y3v2GuAMswNnqkequ/wVQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=theobroma-systems.com; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI0PR04MB10230.eurprd04.prod.outlook.com (2603:10a6:800:240::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 26 Apr 2024 16:50:29 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936%4]) with mapi id 15.20.7472.044; Fri, 26 Apr 2024 16:50:29 +0000 From: Farouk Bouabid Date: Fri, 26 Apr 2024 18:49:35 +0200 Subject: [PATCH 4/7] arm64: dts: rockchip: add mule i2c mux (0x18) on rk3399-puma Message-Id: <20240426-dev-mule-i2c-mux-v1-4-045a482f6ffb@theobroma-systems.com> References: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> In-Reply-To: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> To: Wolfram Sang , Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Quentin Schulz , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Farouk Bouabid X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1PR08CA0261.eurprd08.prod.outlook.com (2603:10a6:803:dc::34) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI0PR04MB10230:EE_ X-MS-Office365-Filtering-Correlation-Id: 8969828b-ecb6-4721-b5aa-08dc6610fac7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?SJc0xdce8hWfDoxVwhS97L/KGRpXsD5?= =?utf-8?q?SxriejJMnYdwptx2puvX4p9a7bkw7Q/zZ4aER3ZBCMth3R5saDXcrg9AigWAaJa9t?= =?utf-8?q?A6Ze4b1ZjcGeXYQWpNQ8ysSQutKHFdakdV752DLWtw69ZNrCwBM/mlRXViIafJpd9?= =?utf-8?q?r9Cn6rmqyGLN8mXMjrq/1MgHdwczfS00OsgnbI7Vs4Odo/gscgrBbf+xpoleNSIXN?= =?utf-8?q?wwfK/5E+VE4VnVolj+3e3bOmWPvc/ky3tXIRCaOFfMiKIm7Y8u6Mo16J2Zzw+ORhd?= =?utf-8?q?9MEHWXxWIAUBztOpxrp437KezGxbd7ow+OO7VakkYiDivov1WocPWW5ZPP3La0Y4p?= =?utf-8?q?0STrMLEHKkDNX0sprZeuZWvvrNll1UvEU04PukvJO7eiWGrPrqvemzjgH3UZFvXNQ?= =?utf-8?q?DCzFLqN7I38+5MBz+zEHoRiT5yJhy3OQ8+r9Xn1PuzpzJqMulWb58dC2l7P+jEHlb?= =?utf-8?q?JRb/rXXDlbmSbczfPvmbaXcXqYdg+N1lfsCB0OXTpq+GHPtgLypdQpO6AYfZzZfW6?= =?utf-8?q?VsKc3LzMI6/ZUOnUFkFJoO4WJK7c6UqijIl9b6zFRxy9C2r4ZsFBJvRtNaVzVhv7K?= =?utf-8?q?2UR8DKRdx4LXlTLlTOL7MeEOTP01eJIBaFxQABBOZSmFz/oldmUYJyvb7LbnpgLDZ?= =?utf-8?q?F9P+4C058DWJbyg/JZceN54UR92Kf4qu9OabkbDiN4Zkjzym+0vQ+4n3FBJIExPX2?= =?utf-8?q?z6etfOIf4KBjnoe+K/m07/xt4y5/DTgqrulL1mhLoi5KYQgRJgLsMinrurnS1Q89m?= =?utf-8?q?bJdbADGhwUkSQItkM8jG2qs2vsnEX7kOjzIkHqAJ44ns5FaPvcrxa1UaQILB5s8va?= =?utf-8?q?5sAkU6gCoumaqWLMt2wB6dZfaOwCaGy5sh99kJiY/qHXurXpfxgws5tYugU1Y3+5Q?= =?utf-8?q?Di9Ew//rQiHfDVCGX51m+sjJLxliYhmuAUOIJaGvldKpEvxMZcAd5GRtqTPcEQRmT?= =?utf-8?q?gW7vHbHSaiyWdYRjUmMnKoaARk0lK1tgNXfHR1SVQv2RpeFNPn0zknVtq8q1dTdwR?= =?utf-8?q?LT48H9haCwWbKnrQfrgcJha9iBaKcQdKfuaouwxOhGDPB0SF5po9i40wn6P90W7Qq?= =?utf-8?q?fWYXxISFGHZexc/JiQiIRYA3QFhOuEptvnc4bmleKEnw2tTZo24oo9qFTrJWNKkaN?= =?utf-8?q?ASPIBvhLEHLq2WzUmzlcABl432yrkh2Y7f/uf6U3J9HVQZCd57tD2TlsZgxDyV2rF?= =?utf-8?q?3xJj9Epvr8IW8P5e51vEUnLmvR7cX+d+zYdTcDhvQJh6oPvsRAGmdCGhJbeJ+Mq9k?= =?utf-8?q?wtp84yDq7vl3FKJ3CPqQahLku5GoQFajg4A=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6382.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?oSDN/d7uHyntnYUMVfD9NI1h4xfz?= =?utf-8?q?qsW4HmMuoqcl6wV1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tqkqi7nYmGx4/oFwp5q/GBbPn2PjgaU2ko4bp8FxabPdp?= =?utf-8?q?wEWbCCncl62AquZxkiIpv/sPie5ihNFIR24PPCzShizyizavsa6Ibd+XHSclDmTE5?= =?utf-8?q?XsWWRA5fEoWD1IZ5ydUgVUbkDo35UeH7YyQ99sCYpdKQYUbRJzXqH2LMJ8r/HgSMG?= =?utf-8?q?mOcDIb0HrpCIprS153anIm3dd5dbHO3bnUXgTi5pvSo5Dz3jyoGYyUEL8CQYIyNql?= =?utf-8?q?03xkdV96Rn/LWSPfHCNlKGbo3MHwIu+bsD+5/MsKGsOsApl5n6JdUrZb/iJlQfzqT?= =?utf-8?q?CAt8vgKs/2e58+BfEy1JxleLmhK+Tr1jltIS9WZy5mNJZjz2/f6S9tdsIIOB2kzLM?= =?utf-8?q?mGKgpZPNueZjISvCTonkleERAgfWPQRdDYpHUN0KX82CCtfMiXbA3eZCxRTfse43B?= =?utf-8?q?MVF6hGNcxPotAf17YjlDT1EMQtLKvPBJmC+j4pKv9jp3C3kv6pHLWR1c52p7qEW8b?= =?utf-8?q?1K7HL1BjFF3gxjAd9YAOBBq8JdfwsIkkZZeRJ8GG6XNOMmubGv+1rV0nhFn6b7eZe?= =?utf-8?q?390fbU5of6EOBahvX/hFesmd1t4IdjI8mY0qBTbe016iqyMNFgvcsXbxMzkSHsAtZ?= =?utf-8?q?oCVFQLkRxSTZe1WmuWIpxTRug7/+8mm/7OW/gmZ4dUWH0CheVAxw/yY=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8969828b-ecb6-4721-b5aa-08dc6610fac7 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 16:50:29.3699 (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: mr6wYiSKJNSAELW9kyYyA/smD7pz5N6lHzP1ZxUKHQDPyUh6vxHVD5nmsWQK2HNsqd9877KKGVC/EH+TNg5HCsxdXrSyo1Nop/dKxczT01KLQKRl6mQbjsWqJFdo1RCK X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10230 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_095043_359860_C1BC3696 X-CRM114-Status: GOOD ( 10.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Mule emulates an i2c mux (address 0x18). The amc6821 is exposed behind this bus. Add the mux node and amc6821 as a default device. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index c08e69391c01..e7313be24c1a 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; }; @@ -357,10 +358,23 @@ &i2c7 { status = "okay"; clock-frequency = <400000>; - fan: fan@18 { - compatible = "ti,amc6821"; + i2c-mux@18 { + compatible = "tsd,mule-i2c-mux"; reg = <0x18>; - #cooling-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + #cooling-cells = <2>; + }; + }; }; rtc_twi: rtc@6f { From patchwork Fri Apr 26 16:49:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13645097 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5893C4345F for ; Fri, 26 Apr 2024 16:51:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=2qfaxdtJ2reLeW65QD2/ZS/cRlTn2bYHNpeb54EHYsc=; b=euoosrrVQ8HXw4hTkDkVt6OT2r C8GoxKLLaq7S+RoB/yrvGhoNVSAJIrEarXyrf+0hV9ded7iw01pnmbOkCpix0L6+r6KMLmkUNyKdi geBOTErvjXKW707joH19AgtSa4cplQAFA5AUwX0MzRtP+yzJLO+BhIdYy+2v+E+hE989yWyU6JXxQ u6hLrXW5Fsm4Fv/euuKp0Mu3P7BCP+YiWp1YqBl7ocgNk4Ei2xZi3G8AeDTbxvlwiEtMWj7g9GGVV ESCQxLxDtwOdZjySTdtZK2rMYbkKYFnitb2wVUPV0JR18YWarjXEyC/IsGEeb8MtaSTFLB9C7yuDE iripq7QA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0On1-0000000DK2c-1zEI; Fri, 26 Apr 2024 16:51:11 +0000 Received: from mail-db3eur04on072a.outbound.protection.outlook.com ([2a01:111:f400:fe0c::72a] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0OmZ-0000000DJdc-3hsS; Fri, 26 Apr 2024 16:50:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IcNiyYIDiPF6XPtDGfNVxXAPlApu+UsNl2anTryhuBFRD4NIQN8nTcxwn5hyprFCsSOeF/7p3y8Lq20cvey11QuaZ3LKzTqDGKmKQ7DUBL2vxEO6v8dDg0LUFWeldGGXHN9GoYUPUNqb47ZgTyiSf6CX/8b07Wc04cAUh35Ac8sw2Kfxgxvn9Zt8wTB5pBKV6E34a8OA+1+CFMe7kG4sYph4o8v6jvdk9aPQ7s7HLzvgS2E1FlhK86NFAkX3nrt/ha4Y4Jp9ZnIQg6vDCsw2j3nFVYjoW+v/vNnxnyp9PX7bTsGde1uokvt0r+5wV/yGp01TvogLOgKwaul5N/6iTg== 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=AfTD2b9CFw2rvlZSr6YZp8cWQ+HrjZKKM8wxPvSxOI8=; b=du6ePffiq1yidWmjb0cXuoKCD1zieSrKzJgfDtB6Y7MRu9h8PYNgsFdvN9tt/cwxhsbrYdWIZcpjjzEI9fyf3toA7aRsMz+0osu8ypm4XAWcZfiLn3Z1h6OVe7kH2ig3DNsQ4n5GizF3rAb3NO1q1J9x9OvScAVz5gNcqbYfhMjCI05sQYrkZ2EVzqRwPvVPPppFQ0f8O/mVRcmATJBVy/fsPSvcGgSmfsOeXUiDuf4g6lgf4ZvNbZp5ktVJGqdy1vB4eKjocnwBNiICNqLAm6GD8HxSCXfSLFdkvf8zGys+7cHYCVSSyM75CF4RUvBJZEWvtJqyqm9zmlbqHpPDag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=theobroma-systems.com; dmarc=pass action=none header.from=theobroma-systems.com; dkim=pass header.d=theobroma-systems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theobroma-systems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AfTD2b9CFw2rvlZSr6YZp8cWQ+HrjZKKM8wxPvSxOI8=; b=cAUaEvYF0hbRT/xtcbU307CXFjohDekS/YhoYl6+gZ3oLikr2sL4mEwP4M6w+WqKxTLYStSPnb+jUuwGWpapxZSGGLTvQf8QHv9jzPNDY/YQppFdSHxRWIn68uhStzPWcK/869VV+v8ccwjKmBBc3lYJwbDIDlpFKATD0Zdv3d+QB8vuCMGTrzZZQwQn1kM+wI74riqfv9dXATj/4CGvxL1rlh8FWCLOsvcP7mi61kmHtepd+1wwOS6vm3SyAMPt6KWuZIW+wosYJN8ZDqs6zX3lcHi09+sDAa0OIV70G8SycIUs52lg2PDqgh69nZfWaf2Hf6KcQKXr6lOaN/UMvA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=theobroma-systems.com; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI0PR04MB10230.eurprd04.prod.outlook.com (2603:10a6:800:240::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 26 Apr 2024 16:50:30 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936%4]) with mapi id 15.20.7472.044; Fri, 26 Apr 2024 16:50:30 +0000 From: Farouk Bouabid Date: Fri, 26 Apr 2024 18:49:36 +0200 Subject: [PATCH 5/7] arm64: dts: rockchip: add mule i2c mux (0x18) on rk3588-tiger Message-Id: <20240426-dev-mule-i2c-mux-v1-5-045a482f6ffb@theobroma-systems.com> References: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> In-Reply-To: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> To: Wolfram Sang , Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Quentin Schulz , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Farouk Bouabid X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1PR08CA0261.eurprd08.prod.outlook.com (2603:10a6:803:dc::34) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI0PR04MB10230:EE_ X-MS-Office365-Filtering-Correlation-Id: 2b884afe-464e-457a-c4d9-08dc6610fb56 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?R7/Oip4pnCnAclh9uxa70RKK+FmCteb?= =?utf-8?q?rCMiSF9obNeY+jm/G9Rt3F1OWdTWz2J1XJZwW73vN5gcQQVIjUcFMZsYfEP/kuGLT?= =?utf-8?q?ZffXnWXvAbGukkisRK45mwIrpPgIjj7IqFEofYdhyCSqk3kr5nA+NaZfGMmjEk+ky?= =?utf-8?q?RPkurLcOByVbN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GqZaTLBR2pE/+WMehpHGaxjx8r3yWM19pCA5LC19npRtmHGAFH?= =?utf-8?q?S202vQppVe/CViUuaD33OqLUokuCpTdYjed9OMZAZ0ntWivDdRzuUjGvT+Sc0ay23?= =?utf-8?q?2ZRFQO/zDw4FhtaW9f/Wc9ymmXAzOZ9IeP3TamFBUoA81Q/1UyQNurIPE4vcTHcxO?= =?utf-8?q?PdIY99KXN7F7q5W+wY8ZrOZ1k+ZiNt5oC+yGdA8CUjJG45tlaajSCBtyBnuU0yR/k?= =?utf-8?q?ra/vNpaXxE8rYc+KZMrmDUYDxrqPMw7bnVw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6382.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?GRIccdeo+LbgJrooitVZWM+5uIvb?= =?utf-8?q?dF2qnDGNxlwvW3onbmlGTN8cjlJtyRwEaMeOViySrz5yhPHPnvddGvXm3W3MYIDIv?= =?utf-8?q?kc70VADLDlySgeBsA31dYNlydoZOjjKpn6NcSrL44nUwNC1pNvbIxoRoHDYJcgS78?= =?utf-8?q?SfLRdGiSW36b2i0LMv+KDiIYbbkPNCAfqzsp+EKQb6NK3ajd7Ozq/QdFrn4+mTfi/?= =?utf-8?q?69T4XG/05Ht5DPSASvWI91xV3kLEmHFKZqcltpGkhE7KgMrXFGoDTCagxV4/nd1gE?= =?utf-8?q?7NDYU51m6+ZELGk+f/fmnzWmkVXol5MGkwbaq5FGLJWrEd47Y8L4feMZubzBAjXf3?= =?utf-8?q?X97nM4rSPW9RzjZDaVVNGI1p4at/2tBQYWo8C92cyliLhWgDK4Qf7246QCGLr1BrD?= =?utf-8?q?lqDw6Kml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OXYa5Og305A3TbyR6hskJntwOi+dLOB5394azMw3LskZKMhWxafaT7X3DNV?= =?utf-8?q?I9XqQboxMtCTWo7E3mpfNRhZkjTYqtdz7Z5CY2cRM032lKn7M36cOEIkfCDLbfQ9v?= =?utf-8?q?UTxRcEG6LqFbQaMb7qpQszURefJp3HSXJqX+wW1AlT1978yxbjONAlO+4b01JkpPy?= =?utf-8?q?uQzHjm4nOiWVu7+SV2y4jx62vAU9wSBvX+Id2U66/3dj0KdA9p4n/n13LZc2igN/V?= =?utf-8?q?kHjWpepFe6CdXeWthHQp/egTsFFEA8ByyywBqyjWSu1YBubkh7KIHG4=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2b884afe-464e-457a-c4d9-08dc6610fb56 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 16:50:30.2782 (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: Ttrcv7kjfCJf3aysuDCp9c7S65BHCyQqzIZoDd57c3LjRgpDF7r99YUaMV5NMIVGQQWUOmtb5NaginVPtgasJYCoppIZagkNRg79/vCVBthXa6Hn51+FMSBLMVvZn024 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10230 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_095044_121131_3C76873D X-CRM114-Status: GOOD ( 10.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Mule emulates an i2c mux (address 0x18). The amc6821 is exposed behind this bus. Add the mux node and amc6821 as a default device. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi index 1eb2543a5fde..5ed7d51717bb 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; }; @@ -210,9 +211,23 @@ &i2c6 { clock-frequency = <400000>; status = "okay"; - fan@18 { - compatible = "ti,amc6821"; + i2c-mux@18 { + compatible = "tsd,mule-i2c-mux"; reg = <0x18>; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + #cooling-cells = <2>; + }; + }; }; rtc_twi: rtc@6f { From patchwork Fri Apr 26 16:49:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13645099 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E245AC4345F for ; Fri, 26 Apr 2024 16:52:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=cVQ8PbqsHi23+TDLkKP4swS0EJi4jFtiy1fflQrMEs0=; b=ymO2Eyqiou4FuFiIOtGlYAH/OB JXYU4Y7/EVco3HgydQ/1axIhUbI61WPG1FbrY0iadkvs+/dvXCXIwdt6TLM82FIloVnQq/Jy5fdRi 9Yd9rhtMS8F8zoN481zvfXNcYc/2dA+bFlvTmy4YwoVWEJMW4gL9jZWeK9jrN8Jf1Y/me+KjYx79/ fBQPocKIUWX+R3XTPobRZgL7Ruab50fACOQWnK2MGYeF+5Tq2ZO1K6DMHiBHeMpMrfz1BQWN1n1DM chzqSHLDC5zaiq7WqcoXcrHHxt0us1SDTz4K0Ld0So6Q+3ICCIb7xVSix1aAWtlh9MiUBu/m+6KCi t8UYol1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Onl-0000000DKV0-1fIL; Fri, 26 Apr 2024 16:51:57 +0000 Received: from mail-db3eur04on070d.outbound.protection.outlook.com ([2a01:111:f400:fe0c::70d] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Omb-0000000DJe8-21QZ; Fri, 26 Apr 2024 16:50:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IC0FGtYvnw+mO5urIZ7NBorltzvYaK63CFHAyy2zqiuom2W9nlO/C45H/6Ccx03Ox03msyJpFtRXPC1DNBjrTYsxv8+nGpapW5Dq7aOOZKhTaZ87CjKwvLjWzMzt2PpqhqXJRaz8uda2KbcA/0iKGhOjEozRV5/pwS/ku5DSRBrSIPA4kI/gVaoOKSr5zwTdKit6mGWddxdP99hGk04av6cxDiy1SdPML5CZm/klhcirAKWdS69Ke6N7pv5GMe21QWmhucbPt76ghWPEhQRm1HCD8a0GuRHYFKJfcpeopCP/rMsqG3WNU8IxsNT14lZevNq+fxasAqyZD82Z5kWT8g== 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=XSOxrfAk8esZpJgQFqQY0d2QAz9xQyNddfITsHJES/8=; b=Geo6AKh1s35DEDGAh3dL4ByyQkbEqdY9tDbc6ArlVs2Cv9rXm8Sh7Bcd7RTCroxora5b8BxstgtZGIzohV/kmkxOsPv2/onaVydKEjrXeKRsO+5m6QeF0ZsO3D5MG+TO2cFALTBOmrFGtbtlttiM378r02xizwvx8faOPx7B0DzBr7H2etiZu9kQudWt5YL/M+aN/iAT/aWYe0t/fyT9BdM6S739xUzJPbXJnJKkxcXGy6RDJvL98nh0nuyGE+qXYLNcfFGHl8/w+gOjOoXkUxcaPcOd2S2L+XXTzyULzXehFhDPL5liPgGIXerHsgzzNs0UsPs4dhMNOjTIEL636w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=theobroma-systems.com; dmarc=pass action=none header.from=theobroma-systems.com; dkim=pass header.d=theobroma-systems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theobroma-systems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XSOxrfAk8esZpJgQFqQY0d2QAz9xQyNddfITsHJES/8=; b=WdO9oFrUnfdW90ZMsJVq4R6fIJmW3cRguoDO4QJGc0Xl3siv4dnzQz1wKVOAUjOPnJy6QgnhJt4BHjLU+tlPaRe8ONn1XmCaHpfh5dbYxyLk8J7tt317yGQvoQGh+UxOg3+a5MZsm9EgkdhXZjAEbtAvwcbauvmi/dk2GCWUFYD75ytjpFmYYFNlHHp/dxBBT/1ruzOITyWjuQ7bwKSY6UR5j5VcxGs+V+3M6HLAIJhASFQTUa94xHPp32RWXUg2VWerMjLLbT8hz5eimz6IpVHxxQUneVwyf/yLQLWiscKXgYSv0P4Fj8Vjb4WOIHxolBfm0odTnRkX+g9R6XifZQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=theobroma-systems.com; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI0PR04MB10230.eurprd04.prod.outlook.com (2603:10a6:800:240::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 26 Apr 2024 16:50:31 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936%4]) with mapi id 15.20.7472.044; Fri, 26 Apr 2024 16:50:31 +0000 From: Farouk Bouabid Date: Fri, 26 Apr 2024 18:49:37 +0200 Subject: [PATCH 6/7] arm64: dts: rockchip: add mule i2c mux (0x18) on px30-ringneck Message-Id: <20240426-dev-mule-i2c-mux-v1-6-045a482f6ffb@theobroma-systems.com> References: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> In-Reply-To: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> To: Wolfram Sang , Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Quentin Schulz , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Farouk Bouabid X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1PR08CA0261.eurprd08.prod.outlook.com (2603:10a6:803:dc::34) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI0PR04MB10230:EE_ X-MS-Office365-Filtering-Correlation-Id: bc4004ce-145d-4de5-e9ed-08dc6610fbe3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?x4AdSLI0ApoA6FBE3h9R4mbt8PI2nAN?= =?utf-8?q?PgjUkaxeHcGoss1v9J42JeNw7VzVQG1sGB/5YFmFXBpTwa+WLcGCzRStid7AmFagB?= =?utf-8?q?UARde8B0E6ZafVeSM3iBqh0z+Am1dtz+6EkEgi9fzPa0/bPpmG5kUZ8lY5uTZfpgF?= =?utf-8?q?de1ZqSFRSHp0O2aeQoyYXXlMQRLGLKU/PHDET32GDg1O/ihwJzdNeAbLPJXKJxHtl?= =?utf-8?q?QWrnP52iZ+hxVxrhuCrgSGnqrAhD/+e/9Xu/M3WeBde5zzP02DZlJvpn84iJvUhGk?= =?utf-8?q?0qYEJSbk/3pVdbSDjDlEkX6kzO4NOW+a6PRtOqUGvuvw2gBMhiTPdVPhJ9Kv/micW?= =?utf-8?q?HylJoDVMaEBpjBKOdWghn1KLHCrjbt1tYVzi5Va+x3EiJOm9f0rjvGSZDxeQgalCT?= =?utf-8?q?onQUhu6XvlZJnYeLAzVlnK46XPYAqAr7rSCTlVRGi20AW7LNKmxVBLedWYDrVI+u8?= =?utf-8?q?orQB3c9HJmtcvRfB6/dcd+Xcmy2w9BKkIGUIYJw0AhfRFXAH1BALo8qGRh+z8KIMW?= =?utf-8?q?HFb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E;SFS:(13230031)(376005)(52116005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?wCdGNX34O6vNRWrPDkjruHp/ZmkV?= =?utf-8?q?InJQyDlaHdSe32sEf75kXwW4BsVWMa/bW8+O00uZuviXPgG86n36P5+ZbQnsKxeBf?= =?utf-8?q?viw+CEaITyUd30d9gYtzrwT78BHkPSyKjLTQUv/2kTsSaJYkhKs/wMlkIYCghyBpk?= =?utf-8?q?Se/VvT7gBrbdmbo2CsJzU37gNwdEvgIp3L07+wsEZ9s2dG7SNCbBb3en7Vxk/9yqi?= =?utf-8?q?MKqsw2EGhXP541RaGNPoBXykBw5z6+MC3J/vLTcUekaRLp1O9flUlfeYSuB8XmU2A?= =?utf-8?q?nk+fT16rtlHz9vv62mqmgZa9EpI28ZHxo3Zh/IxLpqUTHbERFRuc96IFtROLdRo+K?= =?utf-8?q?t51a9xmHRDcmVjxxP/v0HhOX3AaA1RV/0gvAwRvwpQOHsS5GePmiAy5Sp6L/VWkTo?= =?utf-8?q?zAn/+MZU5r/NHZOd0ohNP0tcsjwMBAxHIQdTRjAnpPPTo4FRh9dOiubJDZ8j3Mkwn?= =?utf-8?q?ft9crIcPJbJpOaAko0ImfSvSVSQAzoeCo49BRV1PWdBm0CHrKycZsreuhgNERBEXW?= =?utf-8?q?GPyNJcMqyhwohLCy91pFAOuHfSYobQP/HvHDlPFFUF0QS6MFCEWMxEWKJsyuWfP4q?= =?utf-8?q?OFNFw42tLCCPoKTLkx9FNPm/kcHIH4W4vv7oUqOWTBgUxijxOQ3e0/AezoqFeKXJc?= =?utf-8?q?wM5rteAyWei8A2LOAdeBZotwPvuOSroX3OU1evESd8a084Z9D3akcH5trlJD8PT/z?= =?utf-8?q?l9TGwZGD3oEN1YnxV8HE6wohDnGGK/nhl+JJTNCBlVAksxl4ZpdWXc2v7PsQ6HddU?= =?utf-8?q?9LFRvGfy7XTm+iXjsF57q0SY1XSCqvpIWQRH7nxDrs3Fg7L/fJ4w1emLlX+msI2AI?= =?utf-8?q?FgSQ1g1Kgb3sWx7XLErJlkZevqfp+mLOI3xU16IEHEG9kuT3SE0TKnUmmTM697Zkc?= =?utf-8?q?NdVi1cZYLHnvD3YLWheYeWw0dUnhGuGlYY4zvABCMgYeyvsl8cj8uBhHPHI6Wuxqn?= =?utf-8?q?+GvoO4Jbz7VQLqSK4bcT8dS3kPcLebMETco74VhQ9yPtw4+xLRcTjAuxi3hnsM0YU?= =?utf-8?q?ww7GTuRUswBYo2Z4kZJLpsV/eJ57QX7TXSWwawW5C82wpWKtoYJbDuD5Cgd9CyXge?= =?utf-8?q?lLPcOhQE3qo+5PInrSQqvnFTlb7iSCRdVjzuubzUz66wJkMK4RDhSbgGIuHQSxeZl?= =?utf-8?q?eA7PP2qcoshveowb8Ri+/yuWpD1RgjbcHgyxdK7w9VQPlKB9d9ID+W7StE4TmoE6x?= =?utf-8?q?FXPuZbsO+j7YcOciaKW8PudZjcV50pNUAi4vh+NFfZM9cJhvyoWJJjAfjzBxTXCHd?= =?utf-8?q?fWgMmArenqX2X94NwNSpTVrw1A8okZ9Qg/sZEdzpLSE+2DYtWz7Mj0m5RWo7/Ujw2?= =?utf-8?q?BW/+ZwqEvw817moACMSFU5QVHFdfSzZ4+saBsSrAiok20S0EcHABQdBqti5AoKCFA?= =?utf-8?q?YDRk9HMQn3SCw/LTcFWPptxW0ZGnK1Js/eAaHg7jNgDX9AzfvH0JvmJGgMSTRChpB?= =?utf-8?q?19k5lzbDSb0hKO0OOAzt9VFoAwjc2SdZWN7B9OBG1Gpc08c8bCCEl6OijQri5yXnL?= =?utf-8?q?g9B/4MWIsLFXLTaUUX5wZIMH7WVO3aR/73LzZEAld0S4ic4aASijXLw=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: bc4004ce-145d-4de5-e9ed-08dc6610fbe3 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 16:50:31.2500 (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: 6FSG/iBB8k97NUM06cFJhjjSQ8jiz/oT0kk7kaRksI3TTeO4ySKZJuDO+v3C0zi5HO314pGebVr99+spj7LBsAqmDWZBBaaCJgfUJJPwpK/Mf98TModBY/lZAXO9Xuta X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10230 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_095045_796902_3E10E867 X-CRM114-Status: GOOD ( 10.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Mule emulates an i2c mux (address 0x18). The amc6821 is exposed behind this bus. Add the mux node and amc6821 as a default device. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi index bb1aea82e666..eea906379983 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; @@ -291,10 +292,23 @@ &i2c1 { /* SE05x is limited to Fast Mode */ clock-frequency = <400000>; - fan: fan@18 { - compatible = "ti,amc6821"; + i2c-mux@18 { + compatible = "tsd,mule-i2c-mux"; reg = <0x18>; - #cooling-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + #cooling-cells = <2>; + }; + }; }; rtc_twi: rtc@6f { From patchwork Fri Apr 26 16:49:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13645098 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DD24FC4345F for ; Fri, 26 Apr 2024 16:51:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=eVcOeJYnfQPTnyA7C/DOzU2gLoD+Ju7vNfXTe+TddhE=; b=sxxyyZM5zh92dl+RcEtJu+RJiW gI55c+GKvQK+ZGQ9Mxp7YYBHOWNI5PCOC2FTDxezoaIUCzzmNzxFxOa28g/aUzT3/ZP6rTRmhxFOm DD54x2ngPmICT6AyPGiClO5Up0bUUM2xZDN63ugeTuwpEL7QX+WgN70Aq74sEhL6f/3bVGeowiBH8 eZdQXNIdb7nvUn5qjkS8TNErv1N8mNSCSXrAPXGY33irpjhKFJXiB+7EakUPSjx1EJU0h3fwh6cm0 DpoyQbIKntT8L7jfNLitT6fDya32w71o+xy2hNkoSEq8iwyxKx4aPxOT6Zt4+UReWpq+6j5NUcxuX R8+Pyfdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0OnK-0000000DKFk-16hS; Fri, 26 Apr 2024 16:51:30 +0000 Received: from mail-db3eur04on072a.outbound.protection.outlook.com ([2a01:111:f400:fe0c::72a] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Omc-0000000DJdc-0waG; Fri, 26 Apr 2024 16:50:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eIaY3MlzYvxRteoLJeLDCQeKDodR1V5XovAdHvZXfLnY1MpRXvj03rdJFHOjK5L8NdP+ciJezI8uo5lhdG8O2xWtJNd7bP+X+Cz3WiX9Cus7MUCarhGPh86IL7QvxAiAlsCKadvPdRv7DHBPrkBodojIOsytTUbF6ZkJoTWPxgbCReH1H1yieceRllVqKBTx8NtK+WhD6j7LY3OnPxKMqAK1DQ3E6ffYUAqkLPumQ7lDNYjWgO1tGXE4C/dh/tJmAwFXvrgT3uiq21x+S4Di1QP7fMijb4PIh8qTK/PDpACgw3sg3RokDNDsOootTGRdiAcjVvX4e8tjjaJoPPwZNQ== 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=6+tqej12iMLgAtLjL8uwuk5pk924kUdFrETt8Sox3po=; b=TbcEN9HJL30P2izlpv0+bSHaoct/tDzt4GA83SSvucBjTaUpE+hJooVKxL05akn0mWnvQMYm5CwH/KYnmx0oQFgbo3tTYM7qacj4XrpPyvJw5wzACcWDjYIBq5woYEsAejAiIdRjUYTdPAaSuV2abVTZh7Wl+xckdtdsmQt7PSz7v/awjmFYnOwbJiawHObx/DQzoir0VgoEYa0jnNh6tO6Wj98fACqeAAf3RdHmf6pIargopgiKz2yJOBi6zuiQLckv0/lRKGpmk6MChtkvp2vMobOxiYHxAu2OTs/jBPiChL7CdPFJVivF6YTUrCb+jyxQ7LJTT35MqoasEJAVFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=theobroma-systems.com; dmarc=pass action=none header.from=theobroma-systems.com; dkim=pass header.d=theobroma-systems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theobroma-systems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6+tqej12iMLgAtLjL8uwuk5pk924kUdFrETt8Sox3po=; b=cObI1hfnV790bAxSqR+tUcyLrSg0d3pjShQEK8I35KlZSR8QJ2CMe7kRG+QVv6dWyIGpYkoH1wIgYtMeQ+azS33UZz8ej16AjRYNK5bFFLwNodbHb4zU9DEkcr82E0ACHrSoLUq6nf4UTIv5cDw8lH1TyZdJaGnEknjprR5Kfpp35CNoB2ADMk20yxozpIPkUjr505WT/0nKcF17xQ/W7GRwAVNW1OyChr1sS/i89O/LCdWsXKmMLNUjHuz7lTKSvOE60F15YICj73RoFBFHbU8KIG/LHHo2oTbT4MH5TaDlKJQrZV1EINOrjk0LX10yuj/QnnGmsfALea0tC95ckw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=theobroma-systems.com; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI0PR04MB10230.eurprd04.prod.outlook.com (2603:10a6:800:240::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 26 Apr 2024 16:50:32 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936%4]) with mapi id 15.20.7472.044; Fri, 26 Apr 2024 16:50:32 +0000 From: Farouk Bouabid Date: Fri, 26 Apr 2024 18:49:38 +0200 Subject: [PATCH 7/7] arm64: dts: rockchip: add mule i2c mux (0x18) on rk3588-jaguar Message-Id: <20240426-dev-mule-i2c-mux-v1-7-045a482f6ffb@theobroma-systems.com> References: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> In-Reply-To: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> To: Wolfram Sang , Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Quentin Schulz , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Farouk Bouabid X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1PR08CA0261.eurprd08.prod.outlook.com (2603:10a6:803:dc::34) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI0PR04MB10230:EE_ X-MS-Office365-Filtering-Correlation-Id: b8513748-6e6a-4b56-fde7-08dc6610fc85 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ZisOZlesz8X0FDIMNky1TgqjLBQFz7L?= =?utf-8?q?07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QptlHdxpxiJqrAoPuSsdHujsVhbspcikIAPZ6zic6xIntJyPO6u?= =?utf-8?q?AA6U52VyNFPU7peTMn1v/zHdaz27ghqXMaF0JEhAmtbA6r35tLjCamk9+9lliRvKz?= =?utf-8?q?xP8tERtXfS9p5QOxJRKSd5TXoEC1SlLA3J1Zmg5+tHPFyHlc1wI58cR3pgUOfxtNh?= =?utf-8?q?8utWxJSSZlijKfy6yU4DHrfFaq0orX/jb30XdK8k1RMvdsjPMX7lOfBgZ9A1h+/un?= =?utf-8?q?SIpL6InxGuzVkkyx6EjY/5foIQx2c5marv6J9Q00np5J38yimr732DjtijX3Sym/2?= =?utf-8?q?v8OiA0UHnHywM7JJ4rX5smXdQAaavISZ4sJ7Fkl/hHiizM4tNdSRAnR4wLn1DakCp?= =?utf-8?q?fTkOqTt9ThmaWspgeCu0Q/SBjUR8xwJDhyw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6382.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Xpk1exRJlcV6dr9prgqtqK32k9cF?= =?utf-8?q?AfCscohlPKdrZXJ1N8Wj8NzEUljMkjkpTjQZrKbTZj4tmxe7H2an7dIfq6d6a9/hc?= =?utf-8?q?AWtHoBUaVTohQMN2sMtU24h1P2U8zRETdjDeVuJny6iCKYCsmF6XfkKz8ra2VZOXQ?= =?utf-8?q?/c/BgTyXAh9gf8rX4pgmrQc3fgSqKtq75yk1YsvvCTblMtkIQ6bDBFwzEkyo7wSSf?= =?utf-8?q?z8Y9JqRpynwNYtdIaseHDZwpm9Fi5KjZA9Z4nyYO+HJHIJLry0APuhweDWOXRzTkC?= =?utf-8?q?0kx1Unj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3srzAk8gnZCXDfrkNGUP2PkQ7j/A2rO7cnrb6tKqlyPWeSXyMJ5?= =?utf-8?q?iToBgcXjDBEoRBZIIicGnuzBnaWeV8AGpwatSApYI3+SbjUESMlRJVx5DfLqQtK8d?= =?utf-8?q?s0m9hNNUPyAun6acpxyBNwj23DoRRRkwzzCfBVjs/k0TxamiFEuFO2NyQRJePUPJ1?= =?utf-8?q?c/PjPNzGoWFnimab19RUHQ851yZFWNzG6Qr1CBBjLtSvSlo41expTlAivLT+u+6dY?= =?utf-8?q?L1OxJUHDpIRQsXabc55obdsu2ipiyh8KP7strPEienav0c3l/NmVEUPXoH2J3suPl?= =?utf-8?q?wL/UgJ6pm/3Dy70lCqA+wFO+5y92Iu/x0rVViZHqNukz83zfTKY90IACeCdVz3cEd?= =?utf-8?q?2L2RCsn2SvZ4B7NQq32bvV7ZFXZhXEUBzkgbcHf5F2DwRH0KAYvER38=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8513748-6e6a-4b56-fde7-08dc6610fc85 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 16:50:32.2888 (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: VlGWb623iCzuCMvWkEUcYLCz6jqnHsT2gCKroLsIHShQHHFyFVEsbawc2z6edXDIl0ZK1TLYRg6B7hdDrYC9amPphhDwhLSp/IuflN41/IXMJCaZ5Hcy0LppO0Dyfdvr X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10230 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_095046_507938_F58EDD2E X-CRM114-Status: GOOD ( 10.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Mule emulates an i2c mux (address 0x18). The amc6821 is exposed behind this bus. Add the mux node and amc6821 as a default device. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts index 39d65002add1..14f1322c162f 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; @@ -249,9 +250,23 @@ &i2c0 { pinctrl-0 = <&i2c0m2_xfer>; status = "okay"; - fan@18 { - compatible = "ti,amc6821"; + i2c-mux@18 { + compatible = "tsd,mule-i2c-mux"; reg = <0x18>; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + #cooling-cells = <2>; + }; + }; }; vdd_npu_s0: regulator@42 {