From patchwork Tue Jun 18 16:06:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13702653 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 177B3C27C4F for ; Tue, 18 Jun 2024 16:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=V2z5e7rgCz+d7AjJV8SAIlOSx0KmT8TyU4loHyhJ0NA=; b=vF6yLeZqacKE4LML2qX8uLCp5O 6VFdgNuh+MCXTs1wUs5IZ8dwvn7VIt2VDOGpsTbTNzOJQ2WAgjXNxAMHXhyc5IAhl63XACSds98lR w2WBJMapDpRqY+l8OQxaGp8fmffG7rLmPB9DzQZbWVHVEwI087sq9uQLnhIaOUFakebCCVcJjGjV/ Dc8cmQOS2nen8e6qqM0nTtwMriaaBUeGXIQQw/nLEwBMDoTFLpV5kRCMR3UNdKtrzbJ08py1+H7cP XskI0NsmCK//7xCQ4F6xbslu1Ea5ULnerE6XhVEB91kz05BtExm8egKBOtVXgjwS71DumZqlQzfkt csUQLF+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPH-0000000FlR7-2crY; Tue, 18 Jun 2024 16:10:03 +0000 Received: from mail-am6eur05on2072c.outbound.protection.outlook.com ([2a01:111:f403:2612::72c] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPD-0000000FlMt-317C; Tue, 18 Jun 2024 16:10:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J0uSTurEV0fukxyzHG0yA7EsFCM1pk+gQ9Jl2y2YLTwTv0r9sEZSlSxK1EKeBBEkYY31mKlTopLNUZ+NQQTDzuqOcyWXSbBXZJUp1kYSHdXQtoHmXiEBNnAHoXK3fKY/vgIo0AMJdZAhyY+oGL9hYHxL8AB6vyeihQTTaXtGXSfgoVZiNJaS9qJp5PVwhG5bMxnSMTEU7TjtnsnAAkuz50Pwna1WkHKnHHQ998LGMhiqL1fQoz/kJo2YXh+rne9IHdZRRdckn6yUmMryI1vNWflQ7jQpk2YitWrrWIL2Qrr2EDeqnosEq9DKToKF7f4gqjhwrb1SZbmWYA9Ez2t8Ig== 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=V2z5e7rgCz+d7AjJV8SAIlOSx0KmT8TyU4loHyhJ0NA=; b=elF84OGBo0J2xyxpMDAobO3qFFkC9lm8bi+utWXKYmQ+PB8ckVVjKj0kIoFpAJq7NAV+vjppqZGCJq61vHdNHV65Tk1V6CzV5j7yOkQhCoRHzxVftMjV4PWU1+zfDuBuidPYI1HCycyJj4aBsdTMbTTa8XkbZsR6lZrc6rH7yZ8gvIJIVtd8w2j0IsEdLlOmkGchTD697JfaHSubgjCBQmRf/R1mAFo5Puj87FlbUfRZffA9dpPG5vKHr1+QCKTK+qS4qMK010g+N0Nx5vFmlOaxHSkho1R/du9A9bv2HjZTr3CrmMU5oPlA37IsPBXSkhAfw2mn4X2Xv7CdMzaQfQ== 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=V2z5e7rgCz+d7AjJV8SAIlOSx0KmT8TyU4loHyhJ0NA=; b=JJ9a+hWRcGiKpKEjsLCnImy6AlwQg4QCwNHCyEQHXzfcNaoXEl1aH3KERwQsH++k1Co2gO3jfF9Ao3Wh1bivZs0ECFhckvDzwkfPMOfrknu8pL+6Pgio239T78ZhS7TGLbGw03koLrK4saqw6RFm0wAC7wAl5eqNyYEwOObk6bQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI2PR04MB10642.eurprd04.prod.outlook.com (2603:10a6:800:27f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Tue, 18 Jun 2024 16:09:48 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 16:09:48 +0000 From: Farouk Bouabid Date: Tue, 18 Jun 2024 18:06:43 +0200 Subject: [PATCH v4 1/9] hwmon: (amc6821) add platform driver probe Message-Id: <20240618-dev-mule-i2c-mux-v4-1-5462d28354c8@cherry.de> References: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> In-Reply-To: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> To: Jean Delvare , Guenter Roeck , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Farouk Bouabid , Quentin Schulz , Peter Rosin , Heiko Stuebner Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.0 X-ClientProxiedBy: VI1PR07CA0286.eurprd07.prod.outlook.com (2603:10a6:800:130::14) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI2PR04MB10642:EE_ X-MS-Office365-Filtering-Correlation-Id: 452b9efa-b473-4909-7955-08dc8fb11397 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|52116011|7416011|376011|366013|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?eqa0aZbmQ6KIA6OhJUauOpwbDOAobZf?= =?utf-8?q?12prinCcLD6mkbugbm3lLurosBNWs8XfbjXOhMg+5VN+wcxf8EZYZq+gHqh7ZvvV+?= =?utf-8?q?i4MptSyOp8Twq+kKkyrrhvOoikpO3D3IKoqTpNK49zZ7oahHN/6YQWfzD8GonrJ88?= =?utf-8?q?LdjE8+Sbo5BEOr923hSspicgPtPKMU9EwGfw9xBh9AtnMr8jrt/EV770NrxViXLOt?= =?utf-8?q?h1NsLnSWPNYuq2U9W4hhGfPh+QgwGtwQdvL8uYAio6XxWTcaxI5Fgq7mSuxdZXGZr?= =?utf-8?q?vp1LB+UPMjdfWiQjw7eSCJQ9YBDCiYoDLKZV0980ZkRVN4diDTwJE1HGhngA/vTf8?= =?utf-8?q?e8SahZWcTOkBRih/X5OTUakh42h/VPIajtK4WmohRDA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8bs2yXrXgrMbMQK3hOJ3eOLGrO?= =?utf-8?q?aogemmcXuSfNRDhLplpev9pM31vvqiYeKt0IUuL89kjCFQEVLK7EE2n3voUWvByVu?= =?utf-8?q?JaQ0VKTVDYuR?= 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:(13230037)(52116011)(7416011)(376011)(366013)(1800799021)(38350700011)(921017);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?g9akEK29axWb7rfTOWWliwpihFJv?= =?utf-8?q?S2jFIftPmcXd+PK4VAuGb8N6PGabMBmoVeM/t5AGz6rdgo5Dzxm+JjQwXnIzrdXED?= =?utf-8?q?ZKWCqO84zUgU84sjz2q04bnT1IBPLMQWEZ4CQJDERuJeDMrSnIr3Z/UbMffclIaMx?= =?utf-8?q?xNFwiC5WYZOjnZX+EZNPY2WT+W9iWm0eHk2UAOIKyVLqcosLHpHdo3JoTwInOrpN0?= =?utf-8?q?4zRmdlx0nzS+M6HC1O5He8PagG3FVUj1ipPnLygRROGxcaul5MrdALsBIpng8L7qJ?= =?utf-8?q?G/NfVboJOTes8NFocE/6y9w/6KOTwNh6FPjoFShY2091FM3SYzAfySP/Lbg9OCYxm?= =?utf-8?q?J1ng02f7CeiB4K7X9uhWEQwQdGgtglIOkaMfuicMQARmTfXuRWdm0R0Y4PLONgQvd?= =?utf-8?q?9pDy999mRCznEt9SqBlnudYalIKc29lleHHakJH99oeTLUHizeB/tKSJeWhkzQjEu?= =?utf-8?q?C2kqIlxAQby6mSue/Vhnsx3e93K48HUDxhMweF+ymM+uDiSTb3Q9HO5Nu+TJ6ApBa?= =?utf-8?q?Zhwa8nPpUYxeE99xjLN+1LJpHGWNjeOGgC4QifY9AE/xJGEfa2VouX79xPCP6QHOu?=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Iu?= =?utf-8?q?vBJ0vuhHKjwPPEm39w5h2EKi28SeoZRJzScMxrpLNILybH6z5XAQrPg8nb59OkEZV?= =?utf-8?q?HbrS0zHh+l1THIGZD4FkZJ3fRwapPFZPUA=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 452b9efa-b473-4909-7955-08dc8fb11397 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 16:09:48.2574 (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: RDe1OPC2Zr8WDET/+jmgnUIunZPnxj6OFLXnnzRsfvnIKjDujgcoUcYXRUPytvBfFgG89j3bneTS5Eb0rs271IEzNxOHy/9TLcrfLujThKY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10642 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_090959_848608_D7E87D34 X-CRM114-Status: GOOD ( 15.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 Prepare for probing amc6821 in an I2C MFD device, by adding support to probing amc6821 as a platform device. Signed-off-by: Farouk Bouabid --- drivers/hwmon/amc6821.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/hwmon/amc6821.c b/drivers/hwmon/amc6821.c index 9b02b304c2f5..464991fd7fc9 100644 --- a/drivers/hwmon/amc6821.c +++ b/drivers/hwmon/amc6821.c @@ -18,6 +18,7 @@ #include #include #include +#include /* * Addresses to scan. @@ -900,9 +901,8 @@ static int amc6821_init_client(struct i2c_client *client) return 0; } -static int amc6821_probe(struct i2c_client *client) +static int probe(struct device *dev, struct i2c_client *client) { - struct device *dev = &client->dev; struct amc6821_data *data; struct device *hwmon_dev; int err; @@ -927,6 +927,18 @@ static int amc6821_probe(struct i2c_client *client) return PTR_ERR_OR_ZERO(hwmon_dev); } +static int amc6821_probe(struct i2c_client *client) +{ + return probe(&client->dev, client); +} + +static int amc6821_platform_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + + return probe(dev, to_i2c_client(dev->parent)); +} + static const struct i2c_device_id amc6821_id[] = { { "amc6821", amc6821 }, { } @@ -958,6 +970,16 @@ static struct i2c_driver amc6821_driver = { module_i2c_driver(amc6821_driver); +static struct platform_driver amc6821_platform_driver = { + .driver = { + .name = "amc6821", + .of_match_table = of_match_ptr(amc6821_of_match), + }, + .probe = amc6821_platform_probe, +}; + +module_platform_driver(amc6821_platform_driver); + MODULE_LICENSE("GPL"); MODULE_AUTHOR("T. Mertelj "); MODULE_DESCRIPTION("Texas Instruments amc6821 hwmon driver"); From patchwork Tue Jun 18 16:06:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13702658 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 2ABF3C2BBCA for ; Tue, 18 Jun 2024 16:11:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=JbH/oOXAHGDDIyZmStMPkQp0S13FGoi5kTrrdXpMzQc=; b=G3/LGbSXOm9O58kKk4YO9Zmhqe 4NTHxijZNkl9l0HR7fBOlmmhcpWq3cnrRT79A985w/Nkmi9L3yJ2cU/upwfAaMH1S1E1p5fviOkJP Y2AgqcH7uGqefy8wbcANk0T21nkfECCiD4NbIGj9B4VolppKd2mdyryDokkb5eG6kMZIHOshMTzKf KlStkZjHvd/CTweObXyGg4pMjfJ9zi24Vm5rdh56clnAouA5slM/rsBICjW6M4MRiVmgivFrj/isJ 6FdIbvLTSV0N0wdmXQAlCJr1Mf/aOFqKVJMPs45B1VFWEVMG6Z770ifSIUAZW9bnG6zUDjnMhsNE6 aop2yecA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbQ4-0000000Flwe-2L8k; Tue, 18 Jun 2024 16:10:52 +0000 Received: from mail-am6eur05on20719.outbound.protection.outlook.com ([2a01:111:f403:2612::719] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPL-0000000FlMl-1oQW; Tue, 18 Jun 2024 16:10:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JjLSlvE1CSB6oF6LbzoXYnaL78ccbTir5K+iXJhqmMOEUVQ78O4P6F6Vfgcu01NowazbKF/cYrMd1LWr/Nf39jBl/VrRoHC/bOVS/txSw0fmrvULXNY2WHetGlKDnru2AKClpioCADY1jWCaiwrLEvnOzgvernrTxWDDorgHpicLzyjhLR6IGBVA/amhj8NHBoCpSvsIyBduqHduvHFutfO9l3Vnw+T5C7KbQJCP2HWAUqzrvLKnT4FVNV8IXmFl7ctLSIrEGfOLn0YaYVzab7+cSHjr/HfPZsn49NgLvO6mbZP0BTAu1lH/F0n532aivHVfrw2t0kpG+XGrG/kOHA== 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=JbH/oOXAHGDDIyZmStMPkQp0S13FGoi5kTrrdXpMzQc=; b=X73gm/q8tZKxt8JMGi56KOE9xYj6G86xmm/TjVnZZaXkNaCCnhT84Fl5M3eogW2Afq5q1niR9o7npfem3Ah/JWOMk40qPu6wbDNv1iP8oKqfp01XUEeyVJzi4rZdDtT6di7qKVAkhqLrwnpPv30txhqhttfRGltzediQ+/oHml4ayR6hbnqykGD6I+QT/q+wyK2dAxLxfmBm4id2WTAiscp6EPimcgkxMQ9xTkgGA9uiYDcxt3QsTkU+M1f7bOe62PZrZi6Otl/HFGp3SRIX3K4ClXKwyEmrRnk16vyBqgZhd8ZyCX+It4ZeAkJg4h1acRW574LXB0I8P+orV8UT3Q== 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=JbH/oOXAHGDDIyZmStMPkQp0S13FGoi5kTrrdXpMzQc=; b=n8ZaK3ZTGGoAcjoDWNsLF2tileQPX+l/rJYw1vfcj8dp3fbPSJVBcKmpjmGwUVgUew3N+vqu6u2m8QWUTfqyqdQajc9MUgAV2+zasWbcWV4YGKaJmuTibEglS3/gjdllmThlB98oK65D8s8Pu82YFhOAUz8wAhZ3gjvl6MEhT48= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI2PR04MB10642.eurprd04.prod.outlook.com (2603:10a6:800:27f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Tue, 18 Jun 2024 16:09:49 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 16:09:49 +0000 From: Farouk Bouabid Date: Tue, 18 Jun 2024 18:06:44 +0200 Subject: [PATCH v4 2/9] hwmon: (amc6821) dev_err using amc6821 device struct Message-Id: <20240618-dev-mule-i2c-mux-v4-2-5462d28354c8@cherry.de> References: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> In-Reply-To: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> To: Jean Delvare , Guenter Roeck , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Farouk Bouabid , Quentin Schulz , Peter Rosin , Heiko Stuebner Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.0 X-ClientProxiedBy: VI1PR07CA0286.eurprd07.prod.outlook.com (2603:10a6:800:130::14) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI2PR04MB10642:EE_ X-MS-Office365-Filtering-Correlation-Id: 95f61f70-7e7a-43ba-9572-08dc8fb113cf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|52116011|7416011|376011|366013|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?3Qj2IoohvshEpGAx/cha66DTXb6WBqc?= =?utf-8?q?aLvIwKLemylFNoRAgDF7Fhe9ah1mBorDTG4EjTa7c0xcFWeTkXqkbK+/6ijcDawjj?= =?utf-8?q?/CNQCeIUD7CFWySZ8/sMekC41OhpsJfj3SAKekKdneiI7acrlEfeSUBJfKG+qO4n4?= =?utf-8?q?uen2UnV+NcTq2CdAqLMAH/DVKJ4bP69hceXucMjD0uGmuyu6USkc9yH/9cjh55nPU?= =?utf-8?q?2tzYpf0v4peyekISNaRwthCuuc0Yzv2XhBW2zozjy6Ihfk+AgpfwsvvPN87UNyYg5?= =?utf-8?q?cjccMrzTpRosVbRyUTjz3CfzBkwN2MoavExX6/K2ab7ovOwdnc9SuQbMKlaBOWn7w?= =?utf-8?q?KUVhthU7eeoZwqcZxGx85MwU9A6uY/nYxeSMakl7byxQ8Lj3aC165LHNdJ90C51ft?= =?utf-8?q?c2CFhJAGM+hJk0SMEzToKPsbM47VMjkF9FTuOyk6kXGZvbmIi04GmJ9jCB1zF5cbs?= =?utf-8?q?bhVSvIv/7sj9LXEiXPM07xNs9sHslLH2TEAbq/1FqEcVxQ9ANIrg2yamBoxFhLm7q?= =?utf-8?q?ojima1d/6BIG11knC0q8aTe/uooCvnlhOTys8S9pMApv29V1Vq/d+XviDorxgXR4R?= =?utf-8?q?TQGBuqK1fXW2VKMez9BwvxJpGX8tGGqHzoqKM19d4hcIG2WUtLZFMxi+rOGXRp4ix?= =?utf-8?q?PtBtV7y9kF/kQf2p0jTYRT+U7bP7WWg05MELyTG3zna9NWV2fn2dQ05flZxn/t5r8?= =?utf-8?q?/Na87nmR/J1fX6DY979bJNuol0p8Ajz5gzNIlFPAto18IFhzpFZdUyhg43xgw4fpo?= =?utf-8?q?L6jUKogNKUdJXACdNv+1LNtcHF5sUpoeWYDadYpECRUxziQgppRvTMKzdt0MFeCaR?= =?utf-8?q?sc9FLYNr2e/aV4luUY1FOPiPF2SxhhNBfpg5/JhqGVI8xrSGjldM/cj5gPsxt+7B1?= =?utf-8?q?sYgx6bD5H7LAdQ0vSJZxHgdgL+6D3yOwUHpVCHMFoBZau3Zwg6li8ggMROUbYNtaV?= =?utf-8?q?l1E9YLDESxXwOpvPBEhevYKDt/47Qv3yFVo+8Ny79eCr82yvFrCkAqXuCp9JZcrxu?= =?utf-8?q?wlIh90s2zqs5ZFCf0QGh6vp+MyO+F1GYMx3yGiH5qJiE9LTp6y8rNPfw5CF+xmZsw?= =?utf-8?q?BW6I281JQW3i4lmpHwwZcY2xErouuUf/e27VNOMc6vmyxeoQOj5DPHLKmj5bxefaA?= =?utf-8?q?sPC7sBGfan0o22HmUbDhB9/2ILMjM4HnTbfAltGkgkA/5pqmR5FVqSubpBf9+pGzK?= =?utf-8?q?Ghyo+ZesjPJBC8ZKqvubSGULsYwHUTdg/Nhr6HKFMZrGrYdmIkvhrA3jr/3vRUY1A?= =?utf-8?q?6PSEO6j637VkM9bpirIHTEh3A4z3LckyeyBwQZiHpgm6RE8EwL/9lWOseSeMybJ/s?= =?utf-8?q?J543PmLReRLe?= 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:(13230037)(52116011)(7416011)(376011)(366013)(1800799021)(38350700011)(921017);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?qrXZyv5D7oj6H3lxhadYQS7tvpfA?= =?utf-8?q?HIgKSeQLm145IFgwGy4BZIwyqfd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0gV/1hxMXkHu0q68mSXWQtzNSfuF?= =?utf-8?q?zpwq2GpB4l7Am0SD0u8e9maXZXcSL0ESSy0QVaPV7aDVTAp89I6oJurO1wj/iY/A8?= =?utf-8?q?Rc2qqbwrO5i/mbB7cqWM3PiIrBmCPrToRUe0r5W4zYB2iHmw5lT4R7tbBoRSCdV0t?= =?utf-8?q?fu40kixdQJK3yR/5CdvSi/ULs0PS7NvsN9Vkw5MdZ3xLJ+qHxrEpzc5WANl25U82e?= =?utf-8?q?RytTq926n1fS8j667kHgNXsZtL9iOZHMNh3aFDBpFkx7sLGqBApgRTW7QPWFAaGF8?= =?utf-8?q?/K6rPawJAlIb9yCs1/XTU7mNKGddzLluvwhM9oFP8r1T/q/Lume3n4PStcQt2SPcR?= =?utf-8?q?Tap9EmvOXidYKtyOgl1FARSJ9mxCXRA0vBm6XZuNsYccVXDVZVrXnfUF3Y6qZjW8G?= =?utf-8?q?IRm/9XEN02ztG1CMr76/2XGjbp36LHH4UPHRsNaOi+GP0ekfIEzQeVczmw1J2JRpy?= =?utf-8?q?1CWTrjnQWJKgh0cLc2uGH0pjCrHR238k3ibaSZaDby5jqLxy8kGF1lzqbUlMvuAa1?= =?utf-8?q?4CXvkKUZaQMgwTARROofaE8IZXHJ/qI+89ddO+4Hr2EwlCZndtlJGA7DlkixiFIbt?= =?utf-8?q?UIIN0rVgXvrqNh8U5P/6XK7tXCM9IcfBaA=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 95f61f70-7e7a-43ba-9572-08dc8fb113cf X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 16:09:48.5399 (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: KLBJof5A25VOZb534V4uYZkYRKYHr/cExC3MaYtzC2tj69/bYoJm/PPUxb+92GjrkCYQivIQmkNDjOAnDNhO9H9OSfOuhFRYgZEWexUk82g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10642 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_091007_796187_2839DF3F X-CRM114-Status: GOOD ( 12.57 ) 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 If probed as platform device, the i2c_client.dev is the parent device (eg. MFD) and not the actual amc6821 device. Use the latter to log errors instead. Signed-off-by: Farouk Bouabid --- drivers/hwmon/amc6821.c | 62 +++++++++++++++++++++++++------------------------ 1 file changed, 32 insertions(+), 30 deletions(-) diff --git a/drivers/hwmon/amc6821.c b/drivers/hwmon/amc6821.c index 464991fd7fc9..17456d7c7cfe 100644 --- a/drivers/hwmon/amc6821.c +++ b/drivers/hwmon/amc6821.c @@ -290,7 +290,7 @@ static ssize_t temp_store(struct device *dev, struct device_attribute *attr, mutex_lock(&data->update_lock); data->temp[ix] = val; if (i2c_smbus_write_byte_data(client, temp_reg[ix], data->temp[ix])) { - dev_err(&client->dev, "Register write error, aborting.\n"); + dev_err(dev, "Register write error, aborting.\n"); count = -EIO; } mutex_unlock(&data->update_lock); @@ -389,10 +389,10 @@ static ssize_t pwm1_enable_store(struct device *dev, mutex_lock(&data->update_lock); config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF1); if (config < 0) { - dev_err(&client->dev, + dev_err(dev, "Error reading configuration register, aborting.\n"); - count = config; - goto unlock; + count = config; + goto unlock; } switch (val) { @@ -413,9 +413,9 @@ static ssize_t pwm1_enable_store(struct device *dev, goto unlock; } if (i2c_smbus_write_byte_data(client, AMC6821_REG_CONF1, config)) { - dev_err(&client->dev, + dev_err(dev, "Configuration register write error, aborting.\n"); - count = -EIO; + count = -EIO; } unlock: mutex_unlock(&data->update_lock); @@ -459,11 +459,13 @@ static ssize_t pwm1_auto_point_pwm_show(struct device *dev, return sprintf(buf, "%d\n", data->pwm1_auto_point_pwm[ix]); } -static inline ssize_t set_slope_register(struct i2c_client *client, +static inline ssize_t set_slope_register(struct device *dev, u8 reg, u8 dpwm, u8 *ptemp) { + struct amc6821_data *data = dev_get_drvdata(dev); + struct i2c_client *client = data->client; int dt; u8 tmp; @@ -475,7 +477,7 @@ static inline ssize_t set_slope_register(struct i2c_client *client, tmp |= (ptemp[1] & 0x7C) << 1; if (i2c_smbus_write_byte_data(client, reg, tmp)) { - dev_err(&client->dev, "Register write error, aborting.\n"); + dev_err(dev, "Register write error, aborting.\n"); return -EIO; } return 0; @@ -525,7 +527,7 @@ static ssize_t temp_auto_point_temp_store(struct device *dev, client, AMC6821_REG_PSV_TEMP, ptemp[0])) { - dev_err(&client->dev, + dev_err(dev, "Register write error, aborting.\n"); count = -EIO; } @@ -544,7 +546,7 @@ static ssize_t temp_auto_point_temp_store(struct device *dev, goto EXIT; } dpwm = data->pwm1_auto_point_pwm[2] - data->pwm1_auto_point_pwm[1]; - if (set_slope_register(client, reg, dpwm, ptemp)) + if (set_slope_register(dev, reg, dpwm, ptemp)) count = -EIO; EXIT: @@ -568,17 +570,17 @@ static ssize_t pwm1_auto_point_pwm_store(struct device *dev, data->pwm1_auto_point_pwm[1] = clamp_val(val, 0, 254); if (i2c_smbus_write_byte_data(client, AMC6821_REG_DCY_LOW_TEMP, data->pwm1_auto_point_pwm[1])) { - dev_err(&client->dev, "Register write error, aborting.\n"); + dev_err(dev, "Register write error, aborting.\n"); count = -EIO; goto EXIT; } dpwm = data->pwm1_auto_point_pwm[2] - data->pwm1_auto_point_pwm[1]; - if (set_slope_register(client, AMC6821_REG_LTEMP_FAN_CTRL, dpwm, + if (set_slope_register(dev, AMC6821_REG_LTEMP_FAN_CTRL, dpwm, data->temp1_auto_point_temp)) { count = -EIO; goto EXIT; } - if (set_slope_register(client, AMC6821_REG_RTEMP_FAN_CTRL, dpwm, + if (set_slope_register(dev, AMC6821_REG_RTEMP_FAN_CTRL, dpwm, data->temp2_auto_point_temp)) { count = -EIO; goto EXIT; @@ -626,13 +628,13 @@ static ssize_t fan_store(struct device *dev, struct device_attribute *attr, data->fan[ix] = (u16) clamp_val(val, 1, 0xFFFF); if (i2c_smbus_write_byte_data(client, fan_reg_low[ix], data->fan[ix] & 0xFF)) { - dev_err(&client->dev, "Register write error, aborting.\n"); + dev_err(dev, "Register write error, aborting.\n"); count = -EIO; goto EXIT; } if (i2c_smbus_write_byte_data(client, fan_reg_hi[ix], data->fan[ix] >> 8)) { - dev_err(&client->dev, "Register write error, aborting.\n"); + dev_err(dev, "Register write error, aborting.\n"); count = -EIO; } EXIT: @@ -661,7 +663,7 @@ static ssize_t fan1_div_store(struct device *dev, mutex_lock(&data->update_lock); config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF4); if (config < 0) { - dev_err(&client->dev, + dev_err(dev, "Error reading configuration register, aborting.\n"); count = config; goto EXIT; @@ -680,7 +682,7 @@ static ssize_t fan1_div_store(struct device *dev, goto EXIT; } if (i2c_smbus_write_byte_data(client, AMC6821_REG_CONF4, config)) { - dev_err(&client->dev, + dev_err(dev, "Configuration register write error, aborting.\n"); count = -EIO; } @@ -815,7 +817,7 @@ static int amc6821_detect( return 0; } -static int amc6821_init_client(struct i2c_client *client) +static int amc6821_init_client(struct device *dev, struct i2c_client *client) { int config; int err = -EIO; @@ -824,16 +826,16 @@ static int amc6821_init_client(struct i2c_client *client) config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF4); if (config < 0) { - dev_err(&client->dev, - "Error reading configuration register, aborting.\n"); - return err; + dev_err(dev, + "Error reading configuration register, aborting.\n"); + return err; } config |= AMC6821_CONF4_MODE; if (i2c_smbus_write_byte_data(client, AMC6821_REG_CONF4, config)) { - dev_err(&client->dev, + dev_err(dev, "Configuration register write error, aborting.\n"); return err; } @@ -841,18 +843,18 @@ static int amc6821_init_client(struct i2c_client *client) config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF3); if (config < 0) { - dev_err(&client->dev, + dev_err(dev, "Error reading configuration register, aborting.\n"); return err; } - dev_info(&client->dev, "Revision %d\n", config & 0x0f); + dev_info(dev, "Revision %d\n", config & 0x0f); config &= ~AMC6821_CONF3_THERM_FAN_EN; if (i2c_smbus_write_byte_data(client, AMC6821_REG_CONF3, config)) { - dev_err(&client->dev, + dev_err(dev, "Configuration register write error, aborting.\n"); return err; } @@ -860,7 +862,7 @@ static int amc6821_init_client(struct i2c_client *client) config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF2); if (config < 0) { - dev_err(&client->dev, + dev_err(dev, "Error reading configuration register, aborting.\n"); return err; } @@ -870,7 +872,7 @@ static int amc6821_init_client(struct i2c_client *client) config &= ~AMC6821_CONF2_RTOIE; if (i2c_smbus_write_byte_data(client, AMC6821_REG_CONF2, config)) { - dev_err(&client->dev, + dev_err(dev, "Configuration register write error, aborting.\n"); return err; } @@ -878,7 +880,7 @@ static int amc6821_init_client(struct i2c_client *client) config = i2c_smbus_read_byte_data(client, AMC6821_REG_CONF1); if (config < 0) { - dev_err(&client->dev, + dev_err(dev, "Error reading configuration register, aborting.\n"); return err; } @@ -893,7 +895,7 @@ static int amc6821_init_client(struct i2c_client *client) if (i2c_smbus_write_byte_data( client, AMC6821_REG_CONF1, config)) { - dev_err(&client->dev, + dev_err(dev, "Configuration register write error, aborting.\n"); return err; } @@ -917,7 +919,7 @@ static int probe(struct device *dev, struct i2c_client *client) /* * Initialize the amc6821 chip */ - err = amc6821_init_client(client); + err = amc6821_init_client(dev, client); if (err) return err; From patchwork Tue Jun 18 16:06:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13702654 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 D8206C2BA18 for ; Tue, 18 Jun 2024 16:10:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=BgH9ucL89hK0jwnd7puxUDWH+xKljqh6MCOxoZfCfFs=; b=by75TLBDdrys70jDJ5HTofp6l8 Vv6rT7eAWTC667ANTsCc2ZiookPlobClPCWwv1FIfy46OLo6e/oGdzxfecZdpRoTDDnrgDh94ZxDx N19Rtxero9LZdmNVTVCV0YUqNAvPkfAztVPczGLu5QeU/wYkw7UbEaGyzwfe2Daif6VPIcAy+7ddm AvjGymQsBuM53nZuyy7rqjnoeWrlHB0/V2+hmPrrKIPkc8eL7/+s1QbjMW7gBu/PgrmI/hZWsDd9D t0OWVS/8I344KFDsibuc12OsilbBLhAhjKwp1pFRacTTYXUuSLK90xAguPXY5i3lHTDv7582EiZLv 2LxkF7gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPi-0000000Flhr-1KEJ; Tue, 18 Jun 2024 16:10:30 +0000 Received: from mail-am6eur05on20719.outbound.protection.outlook.com ([2a01:111:f403:2612::719] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPG-0000000FlMl-24Hs; Tue, 18 Jun 2024 16:10:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PAgSjy/JdurOGKsmHM8s0VjGRfJqaA1rKyAIauMDQarLSsETiZdMfC7wZpqj9vDlHAPD3udDk6wKfVwKbZkWkPdsKlzButL6tFVt5jrZ3pamg41VfbfMWOc2hs6O/3y75mU6ldBS84yJo04h5UmiILnlcnWFNMGQb46296lLN7aL+tLyBEF1YwqGAPTrwIYa99KeJhHUe9TEoqtD11G8b9U84t/vylZp83SGC39MDH884fy024p3pTluIoBOE70q6ei+RBrWgNW8ng1dvWOl4Ql/X+Vktgt1RbXK0+Kna+dD812UhRJutO+tk4MngE5UOvr0GEK33n9oZwabXzwuyg== 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=BgH9ucL89hK0jwnd7puxUDWH+xKljqh6MCOxoZfCfFs=; b=XQ09VBGqT+fGtVgvLOlQXB907s3U8fBVQM8ptuqhRMtaMyINarpxpT7yA2V+4dozjyyQekxpa0nFMMFR+hl9DQwVB5Rik7ZA5SEdrmQVJaouKMgO1i/zGE161DHPQmarOB83wleJBHJom8dSv2mL7k9IGMnvxkBJJzF7J4oJsFs457tiHhW/Ls/AtfjGMQtOnR1hzyINjETuKqcnDrx25qLOMHRhyzBp0U0Fhi6GwPjzvYqvW/0ihCMYUi2v8Kxq6wT8RSLRxBNK4DU3Fk8tIChtdrVDyMNPVS29SkMrnNvmQHrluRpf07Yp8+7Zw5e14EsBcvI1zGb662wsq+14Jw== 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=BgH9ucL89hK0jwnd7puxUDWH+xKljqh6MCOxoZfCfFs=; b=fYDLuztcqV+wOCT1Sq2xF/JbeIjRK5m6t0tE19nes8cAmMdxT4D97df/pyG7WqscNdqNHO5ztP1GhEOyrLOjt2rrppvOsLNggZUdNa+aOdD3iEKq8RDoN6dbAocu1tTPbOw6IL2+SpIUlnZprmd1gOiPBMmN4wYlbkO9WXCxyRU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI2PR04MB10642.eurprd04.prod.outlook.com (2603:10a6:800:27f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Tue, 18 Jun 2024 16:09:49 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 16:09:49 +0000 From: Farouk Bouabid Date: Tue, 18 Jun 2024 18:06:45 +0200 Subject: [PATCH v4 3/9] dt-bindings: mfd: add support for mule Message-Id: <20240618-dev-mule-i2c-mux-v4-3-5462d28354c8@cherry.de> References: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> In-Reply-To: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> To: Jean Delvare , Guenter Roeck , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Farouk Bouabid , Quentin Schulz , Peter Rosin , Heiko Stuebner Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.0 X-ClientProxiedBy: VI1PR07CA0286.eurprd07.prod.outlook.com (2603:10a6:800:130::14) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI2PR04MB10642:EE_ X-MS-Office365-Filtering-Correlation-Id: 66c30662-a547-45e6-88f1-08dc8fb113f9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|52116011|7416011|376011|366013|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?74WTgJPwYY+ONb6FCKRik7r/hO17MH0?= =?utf-8?q?5mz80cYz2RZ+rgKRXnNQTY+E0dN8I3hKZUcKd0B5/ju6MVD8bWWJWXQnF3A84vdfk?= =?utf-8?q?JvEpvEdngT1pHVbFbBXJnAKqEFZtSM7c76jw2/MwaXZieXFQSTbdvckn9xmAyi3KV?= =?utf-8?q?kvgV+BfbwIgAjFK0lqH9k5ZdPt4lZyJUivyQnAHs6hi9NkWoYFhvf7JBIW3fPEUVi?= =?utf-8?q?skCGHffVYpoWf8os4g+tMByz/Rzi9BorcNkedt0rYEwTDQMGaoYbS8jslSD8QO+AM?= =?utf-8?q?xmziRNg3Jhfmp4rCR8wD1MsKk0bwn2pQYT2fIXeWQfRjV5/MDV18RvwR65qrWZ+sF?= =?utf-8?q?BHoRHeAUbJI+dqqsRyMMq2ieX2JVyYn5ZjvxPCZChyiJaF6tXl5l7PenU+CuK12v1?= =?utf-8?q?OloSJ9Vj6qJ1DUbevB+W2Wqik6izOcaK2T6caa521J9/eTibp5k0HWTO6iPLMRtKY?= =?utf-8?q?e6H4m7Rq16Jd7XlUH4nLwnE17k3pvo+wvLc1paPUmK4zQevp/+xLbi8lTujwYsJEE?= =?utf-8?q?wegJqIkwrctao0AWYfLrSjIOK3FZjZar6WqDTXzlgbniaiayDHTMjmqYGUARcu5PN?= =?utf-8?q?Pyn+jZnJCYhBUkzZPJPoD44MOooFGh+SGZnMzW2qh5mqKlIweIoa2dnZyYerzmFlF?= =?utf-8?q?aloD2eV5HkSPTwUQroviQKOAgvz4MJKF49laZSy+vuYRXR/7HOo8TqTF8XudpGZvU?= =?utf-8?q?D5mdBzY5A/FrruOVLChR5NZwQGLS6ikuBpjQbCYMN2Bcsu13xbqpFGGTxupXDA7wL?= =?utf-8?q?+ud8F02lGXuQ1lYfznIDja3qFrBNd3cCKHdueWNSiARggFpymunnwqHwQ7sTxJ9Ln?= =?utf-8?q?4GY0XDj/9aqa4/YgyuoCuGJIKabHLc9CeeKAghYsH1NeyKqgrQRWuzhNFyyq1Zij+?= =?utf-8?q?Fraoo934le2RofojRdoxITAU0AlHj+uC5ZquEYrcNVPNtw+uedNLYV/K28GJgWIdn?= =?utf-8?q?zC76GZWjEon8WsUGoy3bBID4BK7PVZiPOsMiL3daQXBONKJQLyHFqUgtlvaZoXZ74?= =?utf-8?q?3wRcFxBFDODhvX9s2w8jSapGhBpKdU+t30gmv3+FPOkOIhT7qC11r2weWnJL7jV96?= =?utf-8?q?t/O+c4paBYlHXaFIMnTwEkLOWLXfNFErf1Zl3ogo199g2AM79DyUrTuS+4gVEelSC?= =?utf-8?q?nNwHm6uXMCXjUoFYlIpAmPlhPIHwHhRjRBA3bJfrNxaquCUDfBF0Y6X/O2bKZFkbn?= =?utf-8?q?eiQmteUkBpj1x7wtD55FTmGEPg9/e620pBsUXXSqdwKUxlO7bCjZ8/bdm57un30Jd?= =?utf-8?q?t4EnBul4jXpvAyoBSe+3/ivm9iM8qWt9I7A=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:(13230037)(52116011)(7416011)(376011)(366013)(1800799021)(38350700011)(921017);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?t5H3qJspvLHxF1LhsTittkWwE/6Q?= =?utf-8?q?ke9dXZowHQVAnWYpZbS0srMzUqDherXFvAM1e3NsyvbAcfpoQDMslsmFiBuwLM/km?= =?utf-8?q?F9v2EWjSchsIzz9SqaF08zdXVBNg2UmRQnstk+0XZDnUfTeukxeyxjkWIj0Rc6Agm?= =?utf-8?q?dvYZPlzZSz4dcARL4ZveGtZE2wgpF3ExkER3e2OwZHftqFT2RMsI1rIobOJp9rtwY?= =?utf-8?q?6djGVgYBH6jZKDMmufN5rSpa3SCMS7TsmA632M8mjUBH9SwSHmTzi2/eiUkC73Ux2?= =?utf-8?q?r28Npad8RTdndl9ayBfaOQH+annLPnRjgsGmRLjtnnpm3zae7QlJtx8fYRU29+hWp?= =?utf-8?q?4k/ZlQ3o1gTfbLCKyuZS7rPZc+M7WLKGNMA2FCIp91UAyYpq9v2KPtD39ub42Jq0n?= =?utf-8?q?PRX24O0TUK6qBnp3xN7DH09n9XRp8woSS82KDWIrvsSBpb1GNPiELa5VBnrupEh4x?= =?utf-8?q?K6pOhGFTrMallyxwyQQ8lAAeYfRIT8qfQwHGbgViHqrokvcuecSqrRz6NJJxLy7FM?= =?utf-8?q?hb0sF7T1ID/ljRjtOPhALGqdQPld7nMUIKT97I0nmQa4VBmp/Kx8wosWyuF1+7UxA?= =?utf-8?q?jCdzooqpXu6LWECm7JD0EJnZ+yT74zaSM0HmOI9P3sl/LXYUcvxE4zOWJbeBzMOeh?= =?utf-8?q?suxSTT9Bez7Is6KfQ9S32Vx6zNssVQED6Cf+DbagsOOlseZ4ueSj7aX3/RtLD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.de X-MS-Exchange-CrossTenant-Network-Message-Id: 66c30662-a547-45e6-88f1-08dc8fb113f9 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 16:09:49.0910 (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: B4JPImVgy8Nv1t3O6QNSPbND8tlcVw1BLlPE3z7FEurOBxEDXniu3JyuVQgJfa6nhLO1FsWiyTQaTTgrE5q1WlSz2M9BeuTbsiITrnaYUrA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10642 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_091002_701311_81251C2E X-CRM114-Status: GOOD ( 14.05 ) 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, among which an amc6821 device and an I2C mux that exposes more emulated devices. These two devices share the same I2C address. Only the I2C mux uses register (0xff) as a config register. Add dt-binding support for the Mule I2C multi-function device. Signed-off-by: Farouk Bouabid --- .../devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml | 48 +++++++++++++ .../devicetree/bindings/mfd/tsd,mule.yaml | 82 ++++++++++++++++++++++ 2 files changed, 130 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..ac9dfc936272 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml @@ -0,0 +1,48 @@ +# 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: Mule I2C multiplexer + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +description: | + This module is part of the Mule I2C multi-function device. For more + details see ../mfd/tsd,mule.yaml. + + Mule I2C-mux configures the active device that can be accessed on address + 0x6f through the 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 diff --git a/Documentation/devicetree/bindings/mfd/tsd,mule.yaml b/Documentation/devicetree/bindings/mfd/tsd,mule.yaml new file mode 100644 index 000000000000..ab532340a17c --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/tsd,mule.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/tsd,mule.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mule I2C multi function device + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +description: + Mule is an MCU that emulates a set of I2C devices, among which an amc6821 + device and an I2C mux that exposes more emulated devices. These two devices + share the same I2C address. Only the I2C mux uses register (0xff) as a config + register. + +properties: + compatible: + const: tsd,mule + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "^fan(@[0-9a-f]+)?$": + $ref: /schemas/trivial-devices.yaml + + "^i2c-mux(@[0-9a-f]+)?$": + $ref: /schemas/i2c/tsd,mule-i2c-mux.yaml + +required: + - "#address-cells" + - "#size-cells" + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + mule@18 { + compatible = "tsd,mule"; + reg = <0x18>; + #address-cells = <1>; + #size-cells = <0>; + + fan@18 { + compatible = "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 Tue Jun 18 16:06:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13702652 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 47E65C2BA18 for ; Tue, 18 Jun 2024 16:10:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=PnZwsozoI3H87NtXzhxmoYVOIrhnbDSoIu2s+sHSEGQ=; b=fY0RS/QwhyB0iHo6xKWi8CXkCS bn6OgVFanD2+miq8eHsWX+A1r07STKjvdl5iIySLi7pGrVH+oNDy9hcmCmspB30rUSo/kP1BB51My GldwtrS9vD+jCnqqlGx0ZnVDgFypGLJjDlWRmjijG9ERpEkS3M20ikXAHVhnT/elocitVq3Qb5ovW tsf3p4jFw5F96Ze7rvCts/NqpvXc5Scq9JA1gVkU1STlnNfuoZp5dcw8/kcf7nBMbSP1zjGTTFTLh pCb68gnmWK7JDy7SLe0D5eMer8u0brDtAOOHzK3hVPPxrH7J6E5WC9rxVRlDUxinkrreuZR3F9mJn /N9DWDhQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPJ-0000000FlSD-0NBl; Tue, 18 Jun 2024 16:10:05 +0000 Received: from mail-am6eur05on20719.outbound.protection.outlook.com ([2a01:111:f403:2612::719] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPC-0000000FlMl-3I22; Tue, 18 Jun 2024 16:10:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XpnDsf6e8ytsU4iMTM+XfLNb1phE3OWHqMPLyPkl4ht4GKGYdQI12NGSZK/7Q5swgoa6EhYcqdmnCY6ooAd9YOuNZlGce6Bm2u79X9L93scFxdD8iIy1tUb3pDrV1hL53yX66/DUnYUQTorGYugLfVSfeZD7Dclcfu+U2OkUZEsv80RqvC3LcBrKiighICGYd+qOqxPz+EonE9LheauyEssHvTESsu9Pq/YEah7SYbQwD4btLVqdJygXzsX5QlmwLiHBgVK9ctyV44hTfjJniOnU6i75b6s6ChUzQ7ZPHj5HUbfwM3ZZJbIDA80aO3N9zH/QyKcz4NrhkF/7aTo/SA== 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=PnZwsozoI3H87NtXzhxmoYVOIrhnbDSoIu2s+sHSEGQ=; b=eXf1HMSWunStALSWGknylR88NjtkuGUKmg2IzFCozE004tDTIaNNmG0DoAvnUpkSszLlMxkYe+Zzt8mAC6HpUIv9p63XH2ezR0cfVbrl/Y51F7/YC7Xs41MQFJRiNNpFJ1q1uvKvUKSN3OALX/bxQ2x3wAgHnAEx4lo2I+CRSygA+4l0Z2DqjfepLsySuEvGDg3NCFH/A/bVsWYkuiqWAV+hmPvm9cWtihB+LM+C1HDbbCowfvEKF9cQjTWB35eLabhsdGC/Y6Xc38hH2khYRAIjot6oCfvoRymOPumUHYAsml2fh9E1vCsFZikWASLHVPjHbL40+MlEVe8uSwYGnA== 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=PnZwsozoI3H87NtXzhxmoYVOIrhnbDSoIu2s+sHSEGQ=; b=cpv5e8VhfKXwVKjftMoVJAHwmlLxbzTO9XkgZgFdGUtDRMDqrgAkGJK24C7PTkt+1IusAeojiGrk+PLadogfWjWPSwEysgsBL90t6sD3j5b0/d4x43ETQNwob2vr10pblrgA0mjOv0zTZFYgNAXi81MbbKFnFaYWf/RiiIluAFM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI2PR04MB10642.eurprd04.prod.outlook.com (2603:10a6:800:27f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Tue, 18 Jun 2024 16:09:49 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 16:09:49 +0000 From: Farouk Bouabid Date: Tue, 18 Jun 2024 18:06:46 +0200 Subject: [PATCH v4 4/9] i2c: muxes: add support for mule i2c multiplexer Message-Id: <20240618-dev-mule-i2c-mux-v4-4-5462d28354c8@cherry.de> References: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> In-Reply-To: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> To: Jean Delvare , Guenter Roeck , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Farouk Bouabid , Quentin Schulz , Peter Rosin , Heiko Stuebner Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.0 X-ClientProxiedBy: VI1PR07CA0286.eurprd07.prod.outlook.com (2603:10a6:800:130::14) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI2PR04MB10642:EE_ X-MS-Office365-Filtering-Correlation-Id: 3ebda858-c65e-4c4a-0c6d-08dc8fb11456 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|52116011|7416011|376011|366013|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?b/XNLMIO+6Vwip0dBeLPhXyZErEgW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?BrYEZ7N1YSS8pLLbn/wQyB/Eu+KGMVKa5o/FCPGzikP/PjZu9/xqu5u/TKcYxUhb+?= =?utf-8?q?T9i5VERtb+k702aom18Fcm6zF3NA87hTWEKoidsYvolacUktqsAUVfWR4ZtGQByTq?= =?utf-8?q?WLdKNZe3TsFjexWpL45QsKaE4vSzHwfxzh26cWBHbU6vF2HmaNYspSfxmW/KzDA8D?= =?utf-8?q?EIpc+h5BYlUnfxMp07QCSn0Wz9f6kVA6G418lCeF2+pXjoP7yJBAlKAP+PIGFsE8M?= =?utf-8?q?yWluIoH3aZ6thjDUg4uFYgMHzS1BFZ8PTJr9hBPpZI9hFf1cTvPZthHtKVAu8SFgd?= =?utf-8?q?vlCDTGm8RdcmACRHlupK5L68k0gwPLoa9IP3gi0iqgOMxmT+8zIajPmVbzOHcIfKj?= =?utf-8?q?admv6PJcHZ3bY2hBdVVeYaTFlCP4s0pbpZFz2bQhZRWO2uc/2G42cSUsilrONFbHC?= =?utf-8?q?eBAStDr5zCBF?= 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:(13230037)(52116011)(7416011)(376011)(366013)(1800799021)(38350700011)(921017);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?mkRT58t7yh7rnCyAos3mS+mpaTXU?= =?utf-8?q?gx1bMb0ArKZiU+3LyLEVNexNlcvfAVImgnf+YJ/yOEhGbgB8jGON6PIXFEJw2mogb?= =?utf-8?q?eFN6THOmfVmRBMd//rhGjSAN0OSdOyirl1jqonMaBljwg3evZQlIM/9Gg1fZCbeFx?= =?utf-8?q?XJk/Q+51Rxrfmg/sTnTIrhjcr+VqI9xcD1ETPYK9Ha7CzeirNfOW4G0Tymu5Fv3uP?= =?utf-8?q?ly5pNobRem9+ap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H7peVoOmEVLMiJb/xnCjRY2i12obuPBLYvTniByhYq1a+9bvC9UoT?= =?utf-8?q?3WzEC2fX7N+pAPMVSqvuFmmv9xSQmyibW3jdfvODxtibAl4Euxu5G5NWZktcRcT/+?= =?utf-8?q?V4nAX06TSxUuQDRG438xIawhGYng9LEkXgtDxwb+a9K4jKnX6tKWpr+/EEFUlAsDl?= =?utf-8?q?fc0YeEyHC/nTRuYDc4E1B9PFS107k28PI9JmLeUwEWDBPcHCTVo2mVL7TvXU7HS6E?= =?utf-8?q?cmz65I1evOZb2FqgOa3ME3dyNK8ziZTbxxHtHnsV+wjGngbYRqFtHoDlVgIWgl4Q6?= =?utf-8?q?y698x/EGMmdmDD0LRY1OtcNSZ0ZwiYOwNXJ1qSwOCp/fWx3vHMtzJqmEQ+vX176dz?= =?utf-8?q?kLJhuhjLCUyx8WHn58MJI+wVPyc2rT1lu7k9smPo5YJzJ9HX03+/uayhznrqu6wK4?= =?utf-8?q?PVkcc1CjXLIqU7JuLeagj2uH4Kq6DOlQbA=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 3ebda858-c65e-4c4a-0c6d-08dc8fb11456 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 16:09:49.4913 (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: zRanaumrjH8pvLayHXDVSt+FZOlIN+nRlGHSxxLYAIjAJQpoLMqHmagBmUe+8prOQ9Ok3fdISFBCEevXl0n21dZQUNvwT3G1Xp1/AZW2eq8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10642 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_090959_158606_161764F3 X-CRM114-Status: GOOD ( 18.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, 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 --- drivers/i2c/muxes/Kconfig | 17 +++++ drivers/i2c/muxes/Makefile | 1 + drivers/i2c/muxes/i2c-mux-mule.c | 151 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 169 insertions(+) diff --git a/drivers/i2c/muxes/Kconfig b/drivers/i2c/muxes/Kconfig index db1b9057612a..e535cd9ea712 100644 --- a/drivers/i2c/muxes/Kconfig +++ b/drivers/i2c/muxes/Kconfig @@ -119,4 +119,21 @@ 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 + select MFD_SIMPLE_MFD_I2C + help + Mule is an MCU that emulates a set of I2C devices, among which devices + that are reachable through an I2C-mux. The devices on the mux can be + selected by writing the appropriate device number to an I2C config + register. + + 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..530403adea50 --- /dev/null +++ b/drivers/i2c/muxes/i2c-mux-mule.c @@ -0,0 +1,151 @@ +// 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 +#include + +#define MUX_CONFIG_REG 0xff +#define MUX_DEFAULT_DEV 0x0 + +struct mule_i2c_reg_mux { + struct regmap *regmap; +}; + +static inline int __mux_select(struct regmap *regmap, u32 dev) +{ + return regmap_write(regmap, MUX_CONFIG_REG, dev); +} + +static int mux_select(struct i2c_mux_core *muxc, u32 dev) +{ + struct mule_i2c_reg_mux *mux = muxc->priv; + + return __mux_select(mux->regmap, dev); +} + +static int mux_deselect(struct i2c_mux_core *muxc, u32 dev) +{ + return mux_select(muxc, MUX_DEFAULT_DEV); +} + +static void mux_remove(void *data) +{ + struct i2c_mux_core *muxc = data; + + i2c_mux_del_adapters(muxc); + + mux_deselect(muxc, MUX_DEFAULT_DEV); +} + +static int mule_i2c_mux_probe(struct platform_device *pdev) +{ + struct device *mux_dev = &pdev->dev; + struct mule_i2c_reg_mux *priv; + struct i2c_client *client; + struct i2c_mux_core *muxc; + struct device_node *dev; + unsigned int readback; + int ndev, ret; + bool old_fw; + + /* Count devices on the mux */ + ndev = of_get_child_count(mux_dev->of_node); + dev_dbg(mux_dev, "%d devices on the mux\n", ndev); + + client = to_i2c_client(mux_dev->parent); + + muxc = i2c_mux_alloc(client->adapter, mux_dev, ndev, sizeof(*priv), + I2C_MUX_LOCKED, mux_select, mux_deselect); + if (!muxc) + return -ENOMEM; + + priv = i2c_mux_priv(muxc); + + priv->regmap = dev_get_regmap(mux_dev->parent, NULL); + if (IS_ERR(priv->regmap)) + return dev_err_probe(mux_dev, PTR_ERR(priv->regmap), + "No parent i2c register map\n"); + + platform_set_drvdata(pdev, muxc); + + /* + * MUX_DEFAULT_DEV is guaranteed to exist on all old and new mule fw. + * mule fw without mux support will accept write ops to the + * config register, but readback returns 0xff (register not updated). + */ + ret = mux_select(muxc, MUX_DEFAULT_DEV); + if (ret) + return ret; + + ret = regmap_read(priv->regmap, MUX_CONFIG_REG, &readback); + if (ret) + return ret; + + old_fw = (readback != MUX_DEFAULT_DEV); + + ret = devm_add_action_or_reset(mux_dev, mux_remove, muxc); + if (ret) + return ret; + + /* Create device adapters */ + for_each_child_of_node(mux_dev->of_node, dev) { + u32 reg; + + ret = of_property_read_u32(dev, "reg", ®); + if (ret) + return dev_err_probe(mux_dev, ret, + "No reg property found for %s\n", + of_node_full_name(dev)); + + if (old_fw && reg != 0) { + dev_warn(mux_dev, + "Mux is not supported, please update Mule FW\n"); + continue; + } + + ret = mux_select(muxc, reg); + if (ret) { + dev_warn(mux_dev, + "Device %d not supported, please update Mule FW\n", reg); + continue; + } + + ret = i2c_mux_add_adapter(muxc, 0, reg); + if (ret) + return dev_err_probe(mux_dev, ret, + "Failed to add i2c mux adapter %d\n", reg); + } + + mux_deselect(muxc, MUX_DEFAULT_DEV); + + return 0; +} + +static const struct of_device_id mule_i2c_mux_of_match[] = { + {.compatible = "tsd,mule-i2c-mux",}, + {}, +}; +MODULE_DEVICE_TABLE(of, mule_i2c_mux_of_match); + +static struct platform_driver mule_i2c_mux_driver = { + .driver = { + .name = "mule-i2c-mux", + .of_match_table = mule_i2c_mux_of_match, + }, + .probe = mule_i2c_mux_probe, +}; + +module_platform_driver(mule_i2c_mux_driver); + +MODULE_AUTHOR("Farouk Bouabid "); +MODULE_DESCRIPTION("I2C mux driver for Mule"); +MODULE_LICENSE("GPL"); From patchwork Tue Jun 18 16:06:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13702655 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 95A0CC2BBCA for ; Tue, 18 Jun 2024 16:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=HNzqLlROhiUaVRtvwgh2JlueytI+aFRy0b6MpZJr3HM=; b=K0laQlBrflQySTWtMVfYkqCK5b ZbbeIiAxj+C+/IHzFr55jCofqrIg+7L2dZvdVtZyT+gTHXqjk7aY8mrdkaPk+ooz7SLCdYvo/oMPe vgBEuhtBynKP0PHwgg8b+6TqQBEYkfn4wWtD1RKdc51+HYvs5YiDzEB1hykzaAAk9MTw/2Cf8fpIa se5RtvsME6pdXE92ldXY0HN9Ij1yUlMy8zs8/ZxF/0+OzR8F4g5EZvSYpLPPZeRNWELJ7xuKAgaas fVYdbdC1yQRzsBC5XTPh+EWjxGlZFFimGHSN+H4XipJs8vp67n61CZiTX5GOpfRcLwk5boASaOJh5 vO93CE4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPv-0000000FlpG-1WDT; Tue, 18 Jun 2024 16:10:43 +0000 Received: from mail-am6eur05on20719.outbound.protection.outlook.com ([2a01:111:f403:2612::719] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPI-0000000FlMl-43cc; Tue, 18 Jun 2024 16:10:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wbn4rePg7DvEI8OJouaBzqKDsxmgiQPvbf8Pas8qpBsU1EEBg95Dajv6PqOCeBpgMRskzS445Tk7IeDXTonY7L4uYX1Ve4j8CKVCTPlal6kJ+j5siEh6M9FmgMn5ymX+ZrsV7SquUpNZcdhN0mKO2shQQWK//NMrenOlUxBGrWlpXFVUb0D0XEdfxJUAlwYuUowPHsNXr7SEN4e31/DLdbe5lFYENCP4aqlKHCFwCszRfoD3A/Xh72a51tgj7glTZ0jP6C0tjNmuQ1XANCt7cXbVnC0vIA89y4V/67rvyoWIAgvy9yYpiP+sJrK5cEJWvEjVTDTWOnX1CPo1yxCX1g== 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=HNzqLlROhiUaVRtvwgh2JlueytI+aFRy0b6MpZJr3HM=; b=IohSgKjv4OspN7ykKursZYc6zY6DHKvWKDMDTrSdMWgkQlxrkWtGehbm/XvcK7T81n6wnZfqga+4LlEAIHANszSGUA1VyH/p7A5eLrU5t/nbEaBogftw8/i8k9QB9e2f+jHL/PA/XIdo5aq3zdyx+1VCgVlF5gczGFn0GBq5ktYtixKhcZixoXoXWfaEu3H6pc6HqPcnj+iv2rqrfwWrlez33O0WZL9kB3Oj1VLJavPOx1lRAoiGXSzBQVtcUpNc6oY7PwDNV9edCtHoRv2D98aDet/kSW2+vzrHhJbGM1+Ho+WJwhzPCDCkIUi8bIbtyyh/XF6IJf7cXI6HfSTWSw== 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=HNzqLlROhiUaVRtvwgh2JlueytI+aFRy0b6MpZJr3HM=; b=krHicajRJ/i4D2ZijR82eHn/YR8p0nBi8yZiGvr3E2WS4kIz/i93zYF5O+KVQLVWufp7Cu9CkFXy2um+olf5TfEJltjxV6+ROzsQPNveXv+wk5TF+BGeUpSrhSg6Kx22Q48lTpCJ4PMqDbRw5M3WOSvxoZpIhRocNUs7vbQd7Fk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI2PR04MB10642.eurprd04.prod.outlook.com (2603:10a6:800:27f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Tue, 18 Jun 2024 16:09:50 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 16:09:50 +0000 From: Farouk Bouabid Date: Tue, 18 Jun 2024 18:06:47 +0200 Subject: [PATCH v4 5/9] mfd: simple-mfd-i2c: Add support for tsd,mule Message-Id: <20240618-dev-mule-i2c-mux-v4-5-5462d28354c8@cherry.de> References: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> In-Reply-To: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> To: Jean Delvare , Guenter Roeck , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Farouk Bouabid , Quentin Schulz , Peter Rosin , Heiko Stuebner Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.0 X-ClientProxiedBy: VI1PR07CA0286.eurprd07.prod.outlook.com (2603:10a6:800:130::14) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI2PR04MB10642:EE_ X-MS-Office365-Filtering-Correlation-Id: 65597078-c78c-4f8e-62ab-08dc8fb11490 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|52116011|7416011|376011|366013|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?LH0DOhtwx8dYZOcY5LLiBSY7x+hWO7N?= =?utf-8?q?LTYEA9l/yzsmmCrvcAOuNWOQ44gKjjotx1dJke+ZK4rBZ+lzuCkFswZV3i18rsqOQ?= =?utf-8?q?iqFEJsX6rWco7X5+Xii0bRHnDPkEbUAWoo4R9Tr4eTsU/2CPzAcaZC0pnP0iM+Hy4?= =?utf-8?q?70f8ODrRCDEmW03GEeR74yzWXc5vniuCl2rV76AqRoCU8L2dddA8U6qOD5x6cYV43?= =?utf-8?q?nwsqIhRYI1JrsALdCWYDeEbW70XlIuN/8NPlWacLFkr6adGHw/SZUmx5UlE4x3lUQ?= =?utf-8?q?JbZNpK57pIvPFf4qzefTp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mVpaWy9z1LNB+UsYv0Mqkq7hR6gCPZLJ16rV2iaUM?= =?utf-8?q?w0cpobPRGgcmlmqBuZ3+l1j+QW1zkMCQSNxKXV1NEk3ZsTbe9QsAaZNCt1Yyb1lPi?= =?utf-8?q?bs3XYhyBY3I5sdx8lx+Qj3WEotWRR69FcJYtz7+4KvFdgsTwEzfgL4Upm32WEs7pD?= =?utf-8?q?MMBytRe7d3cU?= 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:(13230037)(52116011)(7416011)(376011)(366013)(1800799021)(38350700011)(921017);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?TXB4xsVhgJ2kT8LrWmRnnvumY/zq?= =?utf-8?q?Rj/p4rb42snvcoba0MpaF3Vx5e1Xnk656OCcIB9im3/uBFjQdhQ5n4k0egqCVYaKp?= =?utf-8?q?zPDOBq+oduqTk3QcpKxw8iBwOqb7snwKI/yWclY2cDLOd8wxn2/YhWRE1V3DYT34e?= =?utf-8?q?BwiKw++UKxWeaJShSbHlXCqq84FAxvdJW6DwZV50atVP72Fm0c8Ke9yWZ8dS/nabA?= =?utf-8?q?9jl+W2cN2q8f8PZv5V1VWUxfaDhZTAVijhC2BKFVV3+y3kx6ea3vSF/Miv4JAPRpA?= =?utf-8?q?wHzkm17kd7NeGbpKpQVoIp8ZbbDIfDR6aG8PXTb3k83dg+35jZmVPWzLItVq9BNQx?= =?utf-8?q?oQUve8/s/7WWVtYu3ZO8TsQChsGt3zMI3XgJpfEzinA5+RP2BvSE737f39lwru3pr?= =?utf-8?q?ZSFdzYHXpdvWfpEt185mdne0QNRYTOZnCk+hMbyGiNqwBV6dhTtwKSx+bqmnyvt9i?= =?utf-8?q?q9+n6kzJV4vuu4obkqYLO2fQekjp3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vAKz6cTR1916G1HMof9eZylRsqX+TZ1JIKL2?= =?utf-8?q?NkbnIml2fFSAwRGu4R2BmRBf73dyXwMmAMUZUAywfBA9Dv4SaJGaDzq3/Cz7C9FvQ?= =?utf-8?q?HCRVCQnw0GhLHfjkQH544kG6/MJEY1rq8j3j94X/7jK76/amSc45Gp3LbcsfApHN9?= =?utf-8?q?mMMA4S3w81N5Rvsoxc/g1/qsqlvyPuOYYQ=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 65597078-c78c-4f8e-62ab-08dc8fb11490 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 16:09:49.7784 (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: gje6fofuReYxtTO73A4LPQBD/JKMApMbGEgrTn/2vLO/Autpo8uidGphK+NEnJJAF1FX1mDk0izu+Z6EyUuCxfj6zNL5fb3iaFmvXX6ZY3Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10642 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_091005_400884_499C4644 X-CRM114-Status: GOOD ( 10.09 ) 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, among which an amc6821 device and an I2C mux that exposes more emulated devices. These two devices share the same I2C address. Only the I2C mux uses register (0xff) as a config register. Add a simple-mfd-i2c driver support for these two sub-devices. Signed-off-by: Farouk Bouabid --- drivers/mfd/simple-mfd-i2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/simple-mfd-i2c.c b/drivers/mfd/simple-mfd-i2c.c index 6eda79533208..1c5853868022 100644 --- a/drivers/mfd/simple-mfd-i2c.c +++ b/drivers/mfd/simple-mfd-i2c.c @@ -88,6 +88,7 @@ static const struct of_device_id simple_mfd_i2c_of_match[] = { { .compatible = "silergy,sy7636a", .data = &silergy_sy7636a}, { .compatible = "maxim,max5970", .data = &maxim_max5970}, { .compatible = "maxim,max5978", .data = &maxim_max5970}, + { .compatible = "tsd,mule" }, {} }; MODULE_DEVICE_TABLE(of, simple_mfd_i2c_of_match); From patchwork Tue Jun 18 16:06:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13702659 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 14F9BC27C4F for ; Tue, 18 Jun 2024 16:11:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=U48VhaRSJKHUsovJodHOiZjnFeQi2efRmK676Qk9A+A=; b=4JzTF7BKFGoiTUCwrOeu5qGruC 0pNqUCeFk/zUGFsmuij+3CYIDAcHezz9rlOsongPl2zSw3Wlb/apbjrpMbICflWjIpqpZy1+bJSHY W4alGfMwYk5DjddvHhdvxjzcgBZ2exCvQV0yBAOt89ZjJ2GNDPktECS45uCXSxtD/1rtIq42bnF/3 Kah1/b9XvVi6Ic7/kZLS77IrYSAW6dBbzHw2EJ60fz8fuNy95vMfcTFDVuNAnbGrFgYBgufGhb9j8 j0cse+KlqThgoCe6esIJh6nxSOhYo5Js5MOXm5Op2Cq06qm+Icj6goLUB+hr9eGXb6pZYHSnVu/V3 3CCoAKQQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbQj-0000000FmOi-3ZRB; Tue, 18 Jun 2024 16:11:33 +0000 Received: from mail-am6eur05on2072c.outbound.protection.outlook.com ([2a01:111:f403:2612::72c] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPG-0000000FlMt-23bv; Tue, 18 Jun 2024 16:10:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ii7JEL3PIanxN70pTmzgiJid4mra4tA1a25NAgxmhtJ0hDAt3tHTwZxmEDxFNLHLJhqesit+EvkmW4O9ub3oWn/HjShajpxKhuw5CSpMohsU7zgXu0AwYVKE0g/RWSaCw6N1pPc0ILGGLTKH99tgkKR6M7nQMH6fRQMlPgcH8XtrGatHUW2WAuBn10uUnykdMr0dogCrO/F4xgKGG7cI404aDrRXhAodkXuwblpw1yn8S/I13BWjPPGp0EAgI5uFuZBnLRofMbVZItGCqloaN/joy0Q+wlww9q0yg8PtA+ErbuiTcYIVpDLwvlPzPHziehGe1T7qXHLm6DAGzkKA5Q== 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=U48VhaRSJKHUsovJodHOiZjnFeQi2efRmK676Qk9A+A=; b=AU60FrT092ygGwnQrmMXD/xGXxIEmKPtTB2maK/ZN61Fvu70jlPNONvq/usPVSwhsGUitPLfTMcW1LMIOkJF23OfCItYCtNmXUKpmOlen8fned/uuziYSHojgxg+e3hxQ7YoyZG2vYB4H3Mmr3oPszQhTj5hc0BVwaBFSgfgTdk3rl7gZ7YSRg4Jk+iM3y16aaZbau7Eh8y1XF/H4gD5Z9Lk2ELANv6diEokgUwyzGJPiazdosP0o4bF3gG273bEUWDYx4EmKoN531aF3OxJPXtmhaNhJGTQ/ue4zR56Nfid3vFjKiuiXD/9rqIsx32QR/BY6Pwz+/R48ycWchtysQ== 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=U48VhaRSJKHUsovJodHOiZjnFeQi2efRmK676Qk9A+A=; b=bES4nJLtWz/C7igf/4IwqeT1cnj6fjH5ODsb+vM2zEkT81S1WT8X1znWjp1SdRSMX8OuqlbrLH4koHGH5owJIQJzo9d2ourC0tq45xU6q0CHIoqq/EJ/PBSWntB1mdz7Etf0KSfggpkaPytjMo6rr+LeckTPch88P1GwJbs5ofE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI2PR04MB10642.eurprd04.prod.outlook.com (2603:10a6:800:27f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Tue, 18 Jun 2024 16:09:50 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 16:09:50 +0000 From: Farouk Bouabid Date: Tue, 18 Jun 2024 18:06:48 +0200 Subject: [PATCH v4 6/9] arm64: dts: rockchip: add mule mfd (0x18) on rk3588-jaguar Message-Id: <20240618-dev-mule-i2c-mux-v4-6-5462d28354c8@cherry.de> References: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> In-Reply-To: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> To: Jean Delvare , Guenter Roeck , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Farouk Bouabid , Quentin Schulz , Peter Rosin , Heiko Stuebner Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.0 X-ClientProxiedBy: VI1PR07CA0286.eurprd07.prod.outlook.com (2603:10a6:800:130::14) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI2PR04MB10642:EE_ X-MS-Office365-Filtering-Correlation-Id: fafd6182-fcd2-4ed9-e51c-08dc8fb114c1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|52116011|7416011|376011|366013|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?4D0e1rMm4ifBwi7Q2RzDzAqssq2cIb2?= =?utf-8?q?cmE1bz+LypuK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45n7yY+ANaLnXuZmcusk6MicWA5cGDCYLOuOee57TSwSBbbkM?= =?utf-8?q?xLx8t5EcjzQYoqHWlLO1etaW3fHoMEvX/+MJ3JiD+7hZdGJNBTA78q+BjYvmbc7Gf?= =?utf-8?q?KF5Z94ygIOcMHqroNmMN91mxQfJukG7CW5mWWAYT4ULQveKnuMiGIAWb2NhsBHqBC?= =?utf-8?q?kYhxJwWH9u91z2zbjitmPoZ6z0bli+5rbheOXvQvPZLSgnBCb32xpOgO9Z86984Gf?= =?utf-8?q?oXMuAJFYYS+KxG+LN8Ly3LacTSU4R9cebvq1K/H6UrpFb2qboPowgLPQsAbt6CUAZ?= =?utf-8?q?onPyvxEMKLisJLyjeGrhSLngvz19ThxbRmLXX4sAwldRmtjLaXDf6LITnSA06TqKD?= =?utf-8?q?d19TBsP6QT6Yq2PW7z5rYvTmunttKZ+FFeZ9MhLwd4+gACKR/W0wiv0fYYWBDlxVw?= =?utf-8?q?WN7d5NotB97r?= 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:(13230037)(52116011)(7416011)(376011)(366013)(1800799021)(38350700011)(921017);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?AfjUd8Hg6bAcFwmA3S4ooDYNMEYH?= =?utf-8?q?bw8gMH7pJlxIQjRsLJl1fOZhQpASvckpUFi0Z1uyNQ6gkTB1oOpc7546haeqfsd91?= =?utf-8?q?YOiVTb2KGzTU+hPZhpqOaniolBvKxj29viJoSVmKdLPKQMLaSGz7f4Ubh77+YfNDp?= =?utf-8?q?vbzvMuqmbrKut5dHWGyuQaGr8LRIpvERmgfB8uO5YUddenMWbnwxDpME+CuLBJYwn?= =?utf-8?q?7p9+M2RBePd/5pY0I1EN9YjqQ7Xcrl1E7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Ji9rdoBufAzEO5TebRc+PWBfWF?= =?utf-8?q?Zk9m2UJGOoM9xUcU9uc9zGnTyj9YuB+ndRI0E/UEWU0ofoMg5oOlaRF+Fp9B1b2nf?= =?utf-8?q?CJCyuXG04TvQoktdXhM8FuNutfup3frQI2Kg31pjjkkK4Mo/TcW82F2PzJCQABFOH?= =?utf-8?q?WdLlIx6G/L/fxsdaKRg/TBAL35/Q5IrMQ8rYVfQ+OcyZCrNcEp0NCqR290kv2aolZ?= =?utf-8?q?DSHYFLlpZmktvnj6WCa6ZEGZmcwpaOk3lbpakoy7lhEgZ82Qhg9MueJb4dVJ9vzY4?= =?utf-8?q?+3+cpPdYBm6YreBVc8RKFmMK63ZRv36w1vKLe0vSw5OWcs1tYocx1vfR16QMGKbFl?= =?utf-8?q?kz+tdXbAWg+Of8rJ1U4B6RvxTVaGRDjPm4sFrNTBqQP53ol+xg+lGTsCCVVODi30M?= =?utf-8?q?N1ST4L64lPwVPp7+S+qkxKfCieZ8fgPRfg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: fafd6182-fcd2-4ed9-e51c-08dc8fb114c1 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 16:09:50.3127 (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: dyvPXUV2ZaWX4xdaLCEUwf7TH1kONlCRtXE9p6Fq0lZDVw+tjHly9BAqi08F115cZ64h8nZIEg2sz9j02PfRzNRlppVrQPB6edI0hGIjUd4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10642 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_091002_707339_642EB11C X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. 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 amc6821 and an I2C mux (mfd:0x18). The isl1208 is exposed behind this mux. Add the mux node and isl1208 as a default device. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts | 34 ++++++++++++++++++++------ 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts index 31d2f8994f85..9c296d2116d4 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; @@ -275,9 +276,33 @@ &i2c0 { pinctrl-0 = <&i2c0m2_xfer>; status = "okay"; - fan@18 { - compatible = "ti,amc6821"; + mule@18 { + compatible = "tsd,mule"; reg = <0x18>; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + }; + + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; vdd_npu_s0: regulator@42 { @@ -313,11 +338,6 @@ regulator-state-mem { regulator-off-in-suspend; }; }; - - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; - }; }; &i2c1 { From patchwork Tue Jun 18 16:06:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13702657 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 513B9C27C4F for ; Tue, 18 Jun 2024 16:11:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=DyJgtSIXL+qYOu8RbmMP/ysmghYyFQgrLVvUP/JGLno=; b=gkKPiQ5czwnHrxJKrPABPLJbIn GZbMtCBzpbjz2i1qjO6fY1x9aqCa04e8pDtzNzsMpD3s0nREwLbdw/LIowAJwmMYF1JFET33jjnvi WUFLkDa0R8cRxR224GsUHs1DrT35+/RtQujtGBN7aOvEvLWfVWI8AuLfvPIyY6Mg0ofdXZ2tAo4Qe SxFPM9CFEpDKW1NxJa6woGrwnO0YrnoxFuGKzOg8FaeQ9kyYMMmvhj0bz4lp6PWXzjg72D5woCgkD rOtUherNR+JbyD4ErQb0RbyWDYs8yubLTqO6WjZISnfjr5ugIoHQjWDpNtdElhzX7e8r00210XfY9 8ddWAL8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPz-0000000Flsy-46wr; Tue, 18 Jun 2024 16:10:47 +0000 Received: from mail-am6eur05on2072c.outbound.protection.outlook.com ([2a01:111:f403:2612::72c] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPL-0000000FlMt-1tfY; Tue, 18 Jun 2024 16:10:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g1ogDyRTqfDlXoKQX/UgONZNrTzjrXI8JzPvB1QTgCNfTCmvauogO0jSUrbHoZQLJr6p0bKs4xi2NjilPAfbGv5Ck7LUaaZO9uCf4BkqubguOW1HuaDf7nNd7ffHOaXEyveGBFb1bS5a0li0Ls9WaHGBP/0ZgU3m56XhMmRWqiYlXMT0VmacNHSQaepcN9opofEW78Wa3Ac2jYzqU893zeaP+jIjQIoy4wK1faZQ8xmRPP6gnM+EpL4cEGOOOcy8pCjfD89oG/AOrIj8vb51sOm9LWUBvavY9UTB8Ww4VmT9sjn6r6rvxmOKuakTfTJvmzyu1Dx0GHMgnxgYB3Ceww== 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=DyJgtSIXL+qYOu8RbmMP/ysmghYyFQgrLVvUP/JGLno=; b=fkXfYwxj3BADWm7CYfQBtmlrwA5lHqWcLcBWyT9LduMjW0dd7m31cTzTPaNGRGsU+KVf8A6WuNHsDvLDM0O6Po43CtcBzr0uew0rs0hoNKrkE7BrU/ntTeJj8AuHKDBLzHMc4ItXbiMMiHYFLbcZ2rsIKpH2z3vFwlIyhAkt8L6opNFeijenr07OXsMiXENMBJfcMMDRAQCawk8X34PUQd5kjbqgoClvLoPfb5rDBBb3s+1mDYEvNXePMWFplmhS5YEc1rebues6DvG1NCjWY4E/ohGlz+dNKTqqJisiHVcAjjgABFLUR2W15ZBLhmMNRVEJmEeTfX7SEfdl8x6XOw== 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=DyJgtSIXL+qYOu8RbmMP/ysmghYyFQgrLVvUP/JGLno=; b=Wkvu7ccFlRgWRnO2lxWZ63/7Gln/+ba9mkGrJNVJFXBD8WcNykhs+O70JWr280+LrxDqgPeO4M1ENpGqCpUI4YlKGz9/9+AO7K2wT3kHcGvl23g6U81ypyRPiozzNSbJn+Cv1FeTarPR2/fk3dPgehEb52eFkK2EHuKfR067vYg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI2PR04MB10642.eurprd04.prod.outlook.com (2603:10a6:800:27f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Tue, 18 Jun 2024 16:09:50 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 16:09:50 +0000 From: Farouk Bouabid Date: Tue, 18 Jun 2024 18:06:49 +0200 Subject: [PATCH v4 7/9] arm64: dts: rockchip: add mule mfd (0x18) on rk3399-puma Message-Id: <20240618-dev-mule-i2c-mux-v4-7-5462d28354c8@cherry.de> References: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> In-Reply-To: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> To: Jean Delvare , Guenter Roeck , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Farouk Bouabid , Quentin Schulz , Peter Rosin , Heiko Stuebner Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.0 X-ClientProxiedBy: VI1PR07CA0286.eurprd07.prod.outlook.com (2603:10a6:800:130::14) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI2PR04MB10642:EE_ X-MS-Office365-Filtering-Correlation-Id: 3bd627c3-7477-43df-dd1c-08dc8fb1150b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|52116011|7416011|376011|366013|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?4lAvmzQ/YUGoBeJHNlkvWbzXrAKyY9H?= =?utf-8?q?TOW1oOGd2x+QC/rSSG8twUqWZAIfogpglhh4jEYBn3QmVxzPW+dniZaKm2XvnAhC5?= =?utf-8?q?6/TDnZYFdj5B7p73RDpXtAn7n3AWPrn45sEFYZk0k0nzXMNFUfCU6RKi6nYVGO9Bq?= =?utf-8?q?sFC6xA3ceo2PkWLuvgRyV9rRMzpPdfP/xvO7cHVXWdyJJXuJhtovf5qP3t479Q0Rd?= =?utf-8?q?BWOFS1Fl/RnzCHCY762yeLTLZA9u00B4mhtT6ChtqWKxbX0dKnW1f1VOIXxRDcGcK?= =?utf-8?q?Tg5EkpZ9blTiSyyswZHXlek2jB0aThWm6XQIsXJN7gfcCWCH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dnRPsHi0X8/xWG2vEhJi5Fr?= =?utf-8?q?9VoQ7lmJLulHVNfIzYeZ/SOzmCGg8EN3TyMvT5UvxjFh8KycskX7r7ITBrYORyLqI?= =?utf-8?q?XWfMA/gYyJqNwUOAbdbKGCwfV/xHFopkRsdLgaYKunAoumqlGIHTEpU6Cjr3nQ33u?= =?utf-8?q?LOcsF7EkHQiy?= 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:(13230037)(52116011)(7416011)(376011)(366013)(1800799021)(38350700011)(921017);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0PVzV2W41gpmd/epojW2THaYyToq?= =?utf-8?q?WbZEYr5746YgiuFB3sMTvM5PhfOh5fGBF3tzXzTJ0YZnYpeYxAVJpXmSy5nWFQ4Ky?= =?utf-8?q?iNoyM6MHOWz4Yy2otzQ8Ymvotjih5mtPqq1k5uxCkyBqDBNxaznACrvBFac8Onxsp?= =?utf-8?q?iSGJoYtqKG3gplGvo7EoXERRfBxgOzaSi9UZZF1xgy4YgsOZkD7/oYIE5RJyKBQD2?= =?utf-8?q?UkKbgk7tSFZHx62gN3U2d1jNHd/GnkupLpXC0F2jGXYMCvFWMtCWBya2qoPMTgGVU?= =?utf-8?q?kxGIdYTlmypcbl5wIcb+m9UwXHsLSHYb0PQJN4vhVz+boFwOGV8Wje4OVgZ7FKv2m?= =?utf-8?q?YKAXxvzUjJbPjJDmzCn5exBjFNlTMd9lRMYk0Z6ltnhvkw5F8VAAAAXZc5oSIM/ks?= =?utf-8?q?nvrbANz7itdB9+Vf/oI4lLADOw1ymuSfUCz8EDO0vRzY2DpzgdRLxbR+osuN6pCjG?= =?utf-8?q?qoXoR9GA/uG0SJOFrVQuiGPxk1VwqpKL5x8nku4/MD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U/q09q6h84c?= =?utf-8?q?uJNQj+rC7cWza8G7X81CZOOtVMqiRFdRVP0zhtpuZzzms+DsRrjcrqlVCY6wYOoEr?= =?utf-8?q?OKJFLfjh/DeKt9RG8dVEhO6USw6GKYab47dOopL3KVltyskTOka0kiY6jzpB0m4hy?= =?utf-8?q?fKvbeyvf3qI0+oFUBehevnOM1NFnMy8m3Q=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 3bd627c3-7477-43df-dd1c-08dc8fb1150b X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 16:09:50.5914 (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: vrfc+VCXVe3ccAuH1/4cGuGX7GXxXDcahyIwE7b9cvNdyrdfgR56hL4achGEi3urfoQC34AJjGq0e6qbX79Iw6K73IeUhnoydP1h9SBx6Bo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10642 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_091007_746266_BE79A313 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. 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 amc6821 and an I2C mux (mfd:0x18). The isl1208 is exposed behind this mux. Add the mux node and isl1208 as a default device. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 33 +++++++++++++++++++++------ 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index ccbe3a7a1d2c..052c01472c5a 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; }; @@ -377,15 +378,33 @@ &i2c7 { status = "okay"; clock-frequency = <400000>; - fan: fan@18 { - compatible = "ti,amc6821"; + mule@18 { + compatible = "tsd,mule"; reg = <0x18>; - #cooling-cells = <2>; - }; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + }; + + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; }; From patchwork Tue Jun 18 16:06:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13702661 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 D93C8C2BBCA for ; Tue, 18 Jun 2024 16:11: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:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=L9CVH2+nmB3hh0/FZvIcP3rpB/L5RVTm2QvU+i5LbCs=; b=AkjUpUAUU1gTrK8eLKLWD8SYlV BjObQld4ypp26WZ+BkOHTWvv33kicC7ua7JNyqeMI4MyBrQoYbAYL3U0nAWaa5Ne5QBrOVmsK5Lil cS3l1KnemFQJBb2dSNaHbika4ccLRtEl9IdGxyNNVN9wx93ahfHcq0xwOVr8NktBNZJLvfcAiIkm0 zZwYlLIi1FbBRX4bg1VXbqTeXeNRL+RJL9yFLmeTvqPZbN9aHf++JVvy9beSkD6I+UYxpreP/yrB8 ULWhhyumg9F95p4T//qK6VMDwnyPxkTGgyIi5jWjy5ko9Von/spNfCaS7fv/oaQf1yt0p6zUOjgia ijMzlaWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbQn-0000000FmQq-1UWf; Tue, 18 Jun 2024 16:11:38 +0000 Received: from mail-am6eur05on2072c.outbound.protection.outlook.com ([2a01:111:f403:2612::72c] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPN-0000000FlMt-3vgW; Tue, 18 Jun 2024 16:10:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FuUDTyoo+9SNh5hGmG8CEgeHgTI7h5Sx3MOI2y2+Vh0Xng+bt/oBWXuOzaBRKYmEuSCXyWhEiN5djekTwFQS0rKpcGJCDeBR8TFXQvFKcZk3ECX+iSHo8rBoe0qZT9oloQDRt6QN17CUhvD4bIMBZ/M6JTJY1UmmGrT/rxkjCMgZdO1uVc+ecDsuRm1mNS77gtBLrPNPirf65FtNVDdBuuQtqL0O9Z3ZAdCb6ukXRz6lhLPp8hI2xxTPzYb1aTJLuYIX6Pq43O2hYEWIlNJffOAA2G7ExvLdIuNza/byZOCtSxoYqcDoeu33H7tTuaO0LY12gngLBBdoS4O1Z55Ibg== 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=L9CVH2+nmB3hh0/FZvIcP3rpB/L5RVTm2QvU+i5LbCs=; b=JyYX+8cgpP33kV9CIkbIW6RyTsNsKjhK/CzEIQs9JBfeCqnkoQmSx67cCcu71jC9WDCQrdcxr1gBVQBOvq5v9tiwWIDQt8hEDQUJB3ROXWfJH9EiPl/54K+x1h3h77/lldyda+owLCjc1c2WLB3+bfNwgb06NdEJ/0y1Lcw16m1U07vS5AHksS6MtCe6D5dYM6LmNCsIg4DfGR3a2ZzuyniGFi93qQe4zFvV8/bMqywQF0fH5VgFGWfgJq29AHf16b5m9C+OlwkeHjEwihOFnDa0W0JRD92wqbApXvzbWqcrcZ1PSkfDdCbB2kRGgLPFIzT6OXZW6M9DMFOI1qrnpA== 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=L9CVH2+nmB3hh0/FZvIcP3rpB/L5RVTm2QvU+i5LbCs=; b=kZ5T0B1v55Q7ugwaoRim2Admph2A6kYBWBCvXs6X2gJF2yPOMreJSTT7yvl7ZqkBXUCgKqCt+mBixO7V1qY3nybeH5zOcm0G7hEjKkMg7CRyTxIqWrw5AEXpb9XNq3akgoglHEGL4oR7uJ0TsUAntRB6rajmydaKbkuG4/EAr+g= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI2PR04MB10642.eurprd04.prod.outlook.com (2603:10a6:800:27f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Tue, 18 Jun 2024 16:09:51 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 16:09:51 +0000 From: Farouk Bouabid Date: Tue, 18 Jun 2024 18:06:50 +0200 Subject: [PATCH v4 8/9] arm64: dts: rockchip: add mule mfd (0x18) on rk3588-tiger Message-Id: <20240618-dev-mule-i2c-mux-v4-8-5462d28354c8@cherry.de> References: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> In-Reply-To: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> To: Jean Delvare , Guenter Roeck , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Farouk Bouabid , Quentin Schulz , Peter Rosin , Heiko Stuebner Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.0 X-ClientProxiedBy: VI1PR07CA0286.eurprd07.prod.outlook.com (2603:10a6:800:130::14) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI2PR04MB10642:EE_ X-MS-Office365-Filtering-Correlation-Id: 8646d0ce-2640-4e0d-4ae6-08dc8fb1154a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|52116011|7416011|376011|366013|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Skq+kqKPjWLZaywB+Bv6dpxRJumD0kM?= =?utf-8?q?g3nCwTjqEl/ePbWS56PwdxMwfgdZPLYoJIyT56tH7Lc8gtjAOgMPwK7d/AglLgb+3?= =?utf-8?q?tj9Fh4waC+mtBOZOhxxOesc/35tkjsuEw6rsBmFe/tn6/NQc0kMMpooi4jZg0+anf?= =?utf-8?q?uAbqgYGtwP+kRD/Iuf1E9pi+fZdh6jP9z1eS9NMaaXdzz9xHzxoXEEHfBAXzeGXgE?= =?utf-8?q?eE1OdcWUSdKJElrg8NVlLpQizAAdp1JTaU9JC/5cV2m68B8/2MZN4uNmeO4z53wpr?= =?utf-8?q?dAN+Mk9Bo1E8M2LWN0TCfo4lzovA5hOkEjA08YqGaN7BMK+xgF7hwTwr9g+D5Cwg5?= =?utf-8?q?FYE5D0K6AQadFLwF3u/NRGFaLz1msmidrmN0xgwUcXoVhhCTk2NbyDdBFdsgG2M8a?= =?utf-8?q?9wLZLE026s3Cb9l1S+ABscrivN3i11TUjNxs9+hcbPjVZqBtFwHRwSlzVUM+6fxXM?= =?utf-8?q?TOsuYROq452A3IHzHF7svM8ZeAx7rUOxyOgpVVc2mqcuWB8/Xsqahhb9A4MAtSmum?= =?utf-8?q?Cg3qFLo8bhC6KyM42599J0VUtqTqmedKWkNrc2JChbAWJiofpx2BHLrXXFeyaiRQS?= =?utf-8?q?EZviSxyYbrt7zyZnjIBTceNf/NRTJyhmlljfZfWOzR7QYJHnHfmIj4QlSdSaAyRjZ?= =?utf-8?q?M3sNbeyvgX1j5/FidfnG2xs6nxzgdEcQuXVWB0Z+0RA97Bds7NDztZdDbaXNW6IrS?= =?utf-8?q?bZnneDl/OqDZRaWDfWn+xx+KQ24pjG9Xzbw41xoFTSODhtnDvNaZS1w2T1vmV/Evv?= =?utf-8?q?RSyBCec/Chmp0qTBE8ldLhaALiC+IGcHKy1iXJx+WGN0ArN/VRnZ93JqjM6EDJjNn?= =?utf-8?q?TgKxyOlLS5PF8yBV+XZPm6Ir+345GZh6FTpeHdMffXV9uSDO3DsGVvmViDScaNfOI?= =?utf-8?q?M3VM0yErjwIMO27CKq54KDJJEYB7VwHGjB2oufV4PixOfDQtzeNsHtvl8wQBvzFlL?= =?utf-8?q?YBoxQW2jFCAtCGsACmb8QSDiBAXVQHqvtWyRQqMrViWEGkKGnkZuglJIl1Sus6Kvh?= =?utf-8?q?pw9yJ8FFr71U/kZ3pheug1q2T03IlLj0fAvitx9V4TYwPmbOA8dLJPgsb+0PUdduL?= =?utf-8?q?+TS5sd5XSeJlT2LRcYm0Ya7Gexiub0cygb5iyJVS1hKrV475hT284ygc9hq0ekHgL?= =?utf-8?q?W38LWcBFaRu5wIsajsm14xEXv1tYjmaFlhSxX0eAkYFXmIGR9skE/6r9YwQSuZrtH?= =?utf-8?q?K8yN5DOgmr8r/dyh9PoYeDCL7eKLiPM7jhwidqq5Z2lXZvrhVA7LWyX658MLy+cah?= =?utf-8?q?kEnD4yilI0iH2119xZxjo2c+y1Puin1s79gF34GIjQXzQiEuX+P9GFUMfPU3o+Q2o?= =?utf-8?q?3ujMRHMbCW5T?= 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:(13230037)(52116011)(7416011)(376011)(366013)(1800799021)(38350700011)(921017);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiS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iPkQijE1JVKH4Wg3yY/roizFlp7Db1DOP3KqQOkCrLCNPZjq2WQaluXyn?= =?utf-8?q?eE+GWyshTzweSBeuvzRjFPUClUMpyO43JnW6rdgzjpSOMT6+VCJyywJI4LuwoPoU8?= =?utf-8?q?C+fD3cVYOkBEJIDJhDpSsQ8jsU4OSndPYrIpBO8FnhgaRdwKqnjtugz5L4a/jBqKN?= =?utf-8?q?izsABYFw0aBB2mHE7HK9LNEJbpLaFpnnNm0LCPnRCoovhsiCLlnEPsvBiMTosecaN?= =?utf-8?q?LAqX+Z4W35Fj/dZA64b7/uWZYOMrp7DTudUFnB3ouEl8TeYd8EibNII3xz2+IbYnN?= =?utf-8?q?JpedfA2ADPzJiAn/GBRfCiQUK512wk4/nX2JNf+fkQ/XhEWJ0zKzNjOFCQFg2s4r7?= =?utf-8?q?Y01fKxu3NQSNSyYsk9tVMXXK97yXA7lTOY2jjCNLU2iElDwJpSXS3O2sWFOh2ANts?= =?utf-8?q?fNxwkzcAzCDUkWe1M9azy3XfHN9r0NaG1ElaCtcLZR0ErNP+/vqrTlHBG5Oz5cRC3?= =?utf-8?q?qvC+YetKusz91xOIjFUGwRbR7oDhkZXM1FfYtZd+oP9W09zx9omZlH8KcMsE80iMs?= =?utf-8?q?0JWV5zCyjvt90+v9hfbZo0P3L2sNHMBHgvKQXJ4FCmOWvstGQdFSZHG7FQXw8+aql?= =?utf-8?q?hDA/Wasuqm0QwB5qzoemWlTPqaNh5UbreaWUY0cZCaQ4AFjovudz2LctDDdDwRtaD?= =?utf-8?q?UyiPJrlpiijm3b2p3h5qCh3sjtN4BVcFMg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 8646d0ce-2640-4e0d-4ae6-08dc8fb1154a X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 16:09:51.0298 (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: YRDcnC5tXtUc8f2Mu0pAVEWlGCe+QpMjdxsXIJCUZ0jWpQJTJ3Q2NlSs4LFs8SCP/+1Tx5XUI7t23AfNYDF/w8ifWxVnGBsSrPnyf2bCKBU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10642 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_091010_516272_7B0D1689 X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. 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 amc6821 and an I2C mux (mfd:0x18). The isl1208 is exposed behind this mux. Add the mux node and isl1208 as a default device. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 32 +++++++++++++++++++++----- 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi index aebe1fedd2d8..e6d23e6d95fc 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; }; @@ -223,14 +224,33 @@ &i2c6 { clock-frequency = <400000>; status = "okay"; - fan@18 { - compatible = "ti,amc6821"; + mule@18 { + compatible = "tsd,mule"; reg = <0x18>; - }; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + }; + + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; }; From patchwork Tue Jun 18 16:06:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13702660 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 6F8E9C2BC81 for ; Tue, 18 Jun 2024 16:11:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=IH9XbuZw25y545jskZu/aOPTcM93uZ6UG+Rls/bNY74=; b=O1mgKQ/W0HTiTNwpCNFZ/JeSVj FliiJBfvD57orcHIHLzwBMX3ojs8e8VCORacuVHwRhb7sGHuV50uK1jm0qox2+dKTicJounKZuNE0 6y+VjAjRwTvYwupcJZgWiyUZ4HTtJYaoM91IUDm/RDM/40J5EpHbyGF5QbdR4FslCShNSLczS/PHe 2fq7mxRTshpFzyQpbkQDDigqUsHpE7KXXit+xOC7ynbwLh/M+/sMuQIpdDxY/YQw+UlBs9Bznl6sl YxdWPDKSdHDwVuNdzv+kwGJhichV2Fr2GJKc1Kxy4X9sxqQn3wCPuIIbkbtpwFCWACD8+Nt3j5cGO nf6WiqxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbQr-0000000FmTR-0gly; Tue, 18 Jun 2024 16:11:42 +0000 Received: from mail-am6eur05on20719.outbound.protection.outlook.com ([2a01:111:f403:2612::719] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJbPO-0000000FlMl-1iUQ; Tue, 18 Jun 2024 16:10:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JwbykTKDFaD4yEo5YzFvnKHubUs/XkvK6LQ+l66Jvzv883KPP8tZy6Mis4WyaqYfvrYn4lCU+8q2E0xPGzpkW9zSrPVP9yIkyxFifCPtiT8hHQtIEC37v8PgKBwucW7Qv26ayTQCoTSlAM1x2+MMwvbBybttfXHULzLUCpcIlmlZzyqFiQW+Jjjosty3QTSLrPl9h3timx0AFALUcHBJ8dyO6VucrFB/OOIFUgP0CaH9+dUSGhc4Ds7q/Os8bw0B2YBlqEgrPCpVS2oQMdbYMoFju7n/FO+DS1j33aZ2lvu+MyS98cO+ZAiZT97YD+hOqg4zlF/L8q0au5Z5H1gZ8Q== 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=IH9XbuZw25y545jskZu/aOPTcM93uZ6UG+Rls/bNY74=; b=drcTPsu2OCXQYU/di9am+2/1JrfYeK0uG34StbQSB4C4DppE1SujNgzM80F5SyIcNzow1n+iy9hDVEssPqx9EU3qkKnkMesRZBhG3i9vvZeQ4RWQsAXDARAU5WDuYDHMMI95+l4x5HyGTyGR8jnAww9jVraGD3Ky1NAeMvNOnHVaZfdWlLRx4rqkbx2iia/tik4/6NU9uOxRorgBby5qXtUO94gFKfmfsKhuBpZlGTJxER/Djn2QbDzQ+GrnEmFi50b67q1KJWHtTKcRU7rLIfsl1x38DxmBOLvLgIPHB6LKhGvW5oCFv4A2AFsfJVBcjITQihjmEyKc8Mc5l+KdVQ== 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=IH9XbuZw25y545jskZu/aOPTcM93uZ6UG+Rls/bNY74=; b=iEDxVhEs7mXDtcXUQthUZTH1af576QTrx5r1235Pa2mMOyQeD/O7w+XxEuTvNsEgfqhzShOY4YZXYxVzJL4a1/m0V1uUrFGMPr3tlgPOOQQR+G4Q7N+R5jAKJChU475/Kn2D4SS1NULFxFBpOseGzzqtAK+vSxffzAXxWFlFBew= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI2PR04MB10642.eurprd04.prod.outlook.com (2603:10a6:800:27f::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Tue, 18 Jun 2024 16:09:51 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7677.030; Tue, 18 Jun 2024 16:09:51 +0000 From: Farouk Bouabid Date: Tue, 18 Jun 2024 18:06:51 +0200 Subject: [PATCH v4 9/9] arm64: dts: rockchip: add mule mfd (0x18) on px30-ringneck Message-Id: <20240618-dev-mule-i2c-mux-v4-9-5462d28354c8@cherry.de> References: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> In-Reply-To: <20240618-dev-mule-i2c-mux-v4-0-5462d28354c8@cherry.de> To: Jean Delvare , Guenter Roeck , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Farouk Bouabid , Quentin Schulz , Peter Rosin , Heiko Stuebner Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.14.0 X-ClientProxiedBy: VI1PR07CA0286.eurprd07.prod.outlook.com (2603:10a6:800:130::14) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI2PR04MB10642:EE_ X-MS-Office365-Filtering-Correlation-Id: 4a2af6d7-26d7-495d-7bbc-08dc8fb11573 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|52116011|7416011|376011|366013|1800799021|38350700011|921017; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Fot1XNkeVTzQbxSX44R4ip7fzkieqG+?= =?utf-8?q?vRZvQSQdxUj5/guyLKJ2aiO88k53zHS3nFg+R3M+a9Hx7kJu+UCQgBdixFBHkE7Zp?= =?utf-8?q?PXaKZXlHVZrR0wRUfhW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SUctEUtaxLMqYPQ1lnOEKop5bh17u8XES?= =?utf-8?q?pU312MuQENJprfZz4IZPKIrJGfqDZ87okU1mBbkNgnNoUvU6me2m0xMyFPPzjEy/8?= =?utf-8?q?ZIj58uOaA3kmaZYladfSsHvyAcAq516/F+UVNTZorVbAtvOr6XW+cR6WB5AAujtYV?= =?utf-8?q?0g2QB8btQ9sGt6shHTpEztsEjIY3QN3gjrvTafN1Ox1kLUGBV3YN+ipOXt1NjexKi?= =?utf-8?q?/+lp2WmyYL0UMKk1/nfR5BbNzyimPRw3Mlb2i7UWMHPtFddNkYK0gTGfW8iGEqwsI?= =?utf-8?q?X1lzUksyZULgR0IjUUuVprFNzamTHG89O8DNXVfCII32LuIanwJ+st4nLgMgtC8Le?= =?utf-8?q?JoPSzr7dwSz6?= 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:(13230037)(52116011)(7416011)(376011)(366013)(1800799021)(38350700011)(921017);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?5tLI4FohCRd1XYR3nAZ+kIaP09K7?= =?utf-8?q?HAAkkWzBTtf6vX8+758iHi8bhq9GctBCyqxQuXYVhvuLzppIfdXDPJQ0Buocw/Kp2?= =?utf-8?q?P4m+86lBU8RYkAPzA0quEtIVgVt7G5OAk4+Zi6AYxO7Qq/4pJnPucKivAe8vD9q3B?= =?utf-8?q?FArig9MiRFPeaF1MJdS9Xe8zKaVxg+nQlQj+5KPU6rPzM2mt8Wy144HglQq02Kl3K?= =?utf-8?q?6udbCKSK5SGL1wgS+IEX6BVMpcw0G98EyFym55R+mW7yROiFq+SLuNuI40K4bY8EH?= =?utf-8?q?NPx0BR3LRniJ6J/cr4GSEG01QpUWMSq1DnS2TmkwbX/PwhWRbCg///0Jo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utf-8?q?YgzHQQFkWfhdoUFb3aL53RX3KgaQLn/CGHoO6AxTsAFrHXaPSavAHTdALDqsJIlyM?= =?utf-8?q?o5qokOs0ZZJny86iA2B5/adYC6OoxSO9fTLq5LnHZ9XtyI2Tck5+cgNDaW4hzZgqH?= =?utf-8?q?Hhr8FrnrUQYI58QCpisIw5wxtfZHnTDNAWmi7hPOwtNA+uyjv+i1x/hDmEtzK71bn?= =?utf-8?q?B1rNSHfQK+oCwr+Z1wNYU9umOXdMB5oGv5+Kp07XdiiLSPURfKvFBlDNfNaAKYYEE?= =?utf-8?q?JtPmJJvIkCTGgoDLM8mndwPLqGHD/hUGVULW206qMRy2C1VXehtjbpgJe7LMT8/sv?= =?utf-8?q?EHSAcWkoKFVm3I5f3psJSwU/Z+eIE5AItw=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 4a2af6d7-26d7-495d-7bbc-08dc8fb11573 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2024 16:09:51.4973 (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: 4OQnwMSj4S837q2UyAyogROOIqTC0478rrDBJhVRsfav5/e2R90uDD6JuulUvmjhzfowUMaz5tLCqxI5gFopHZrrqiz6RY3cr+6hC54Dy/g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI2PR04MB10642 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240618_091011_181609_2823258D X-CRM114-Status: GOOD ( 10.30 ) 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 amc6821 and an I2C mux (mfd:0x18). The isl1208 is exposed behind this mux. Add the mux node and isl1208 as a default device. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 33 +++++++++++++++++++------ 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi index bb1aea82e666..cb84295f118d 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,15 +292,33 @@ &i2c1 { /* SE05x is limited to Fast Mode */ clock-frequency = <400000>; - fan: fan@18 { - compatible = "ti,amc6821"; + mule@18 { + compatible = "tsd,mule"; reg = <0x18>; - #cooling-cells = <2>; - }; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + }; + + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; };