From patchwork Fri Sep 6 15:54:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13794425 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 E82B0E6FE30 for ; Fri, 6 Sep 2024 16:13:35 +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=rcoef2dM8l/6IOP+6VXDoZrZ0qTu1WQx0TD6c7JIpl0=; b=Fb85MEaMDVDHyZ1TtylzNv9WWS MV/02S1S5DRvW5XpVSSkRsoG55d7vjzOy3G/g5FlPMe1mB1VxirN1hqH5UmwA+c9LKOSZjY8S8nC7 F21imTHlETp5cvGDzS94zLaMHxSaFBf3uvhTSrIRf9NYAZywua7jiQ0J60Hs/xghW3mpfVN12E2yy c1ZqYm1VXkOdXQWBvsze8wVTiao7MkENvW24JNdTQWj1bD5Q1ohHjhUifrzRTT5zRb2tSbTCkIlhr 4si+qvFXzUaVG21ZKft3CLkIvCuLAOI38QTzQb1Tl6WHY3f11SPLlWOmvLwEE+t0P2kwDRDzmvaDi A5g7Fl/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbaN-0000000Cu1L-3uPq; Fri, 06 Sep 2024 16:13:23 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbJP-0000000CrJg-0575; Fri, 06 Sep 2024 15:55:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=l1xSyCGiNfQ59u1LhG7JZiaLZB2vMquWEBKrVJFgXY5P7YbpbW4lRVtrfaCHMmEMF2f9+c341BbczoD02RLSgLevn9nNQaILdJ7lWqhx1Cd+Aap8XC7iDIUlvs+RkBmy07Oz1EDE/e99Axy8hcVYhgxQkGr1BJ1DQhTH6US4YBNh/GyAjMrPFgcnBTffeSh5AsPMFdB991TAk4uYdgT25iixWTbcrr3Hb7qTvqB5KAUu5n4zsOCQxravxuSY1aHZswxVxS2xbbqawKyw1q9rEnsUMA/gqLVewe+DzLd59u4dOGyQMquLehtERX29ej1popNTqWxO3Ukay3yA6+Kksw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=rcoef2dM8l/6IOP+6VXDoZrZ0qTu1WQx0TD6c7JIpl0=; b=A9T9v2YBQGylSFNjbuxUC9FUdg7MJvUnKPwN9n08TKiPWps0Qe0W+X9CB9Zph5mpEviaB9bAtNxclyvW1hezinJF5+PBwmUDeUkl6Bqj5Op9fMHVuq3fdk3nnQtVZwRNjM80lQaIgramsCqN1tJ+MgWLhpoBA+lrmlg1gW7SdlCdkPiUOUrJyqQbCqBPJqJQodb43poO6wVhoSLKiRtQMATO8zVAE9efIthq+yt2cAXOWdrPASWBckbsflfdr5+rq9BLwkxzS4gJN8QHFzOam13hAW38846Ud8bwczPbRFzuc1EDrfW0eXYZmVieZ/PuICb3bXihVIpKGZCkeLnl/w== 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=rcoef2dM8l/6IOP+6VXDoZrZ0qTu1WQx0TD6c7JIpl0=; b=gima8s+u1mbd9mSfIZeo5DhWknDC6RBYU0ds0SSKlYbYVGQP+8PhAziYi2MGdbu8W4nzPkw74egyXv/kkwObqOiFl+5N4uICtsh5GIIu3hX5qkToXc6DZLwaG9JRwVnbE9A0Rd/u8wwMFA13Ky2VG2DG0OpJ437AyrSYdd6AeDw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) by PAXPR04MB8319.eurprd04.prod.outlook.com (2603:10a6:102:1c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Fri, 6 Sep 2024 15:55:47 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%6]) with mapi id 15.20.7918.020; Fri, 6 Sep 2024 15:55:47 +0000 From: Farouk Bouabid Date: Fri, 06 Sep 2024 17:54:12 +0200 Subject: [PATCH v8 1/8] dt-bindings: i2c: add support for tsd,mule-i2c-mux Message-Id: <20240906-dev-mule-i2c-mux-v8-1-dbd28a150e41@cherry.de> References: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> In-Reply-To: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Wolfram Sang X-Mailer: b4 0.15-dev-77eae X-ClientProxiedBy: VE1PR08CA0022.eurprd08.prod.outlook.com (2603:10a6:803:104::35) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|PAXPR04MB8319:EE_ X-MS-Office365-Filtering-Correlation-Id: 3914f20d-8916-49b6-15ba-08dcce8c5f55 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?XSrNICttPdrJzj7JVrR/j2YFbFj7zmd?= =?utf-8?q?ynWb3IKv31o81fkkUnkpCIgXrgKycWe1X+B2qUWnbFWE5UHPqlhjX0WL9yI5uFc/5?= =?utf-8?q?f9gD0w+YkWmHv1gNGGE0YS8e7MmtCvjMpGhDPbW+9+dxomjhHk0tH0wcNUuIdADsM?= =?utf-8?q?0SVMxzXRWSyNcwZFgYCxXKyLs1EYFcdbiwdNvOCifYpHyuRv5T01zLMQ7gO9NxaYE?= =?utf-8?q?8h7OMNW6XSrcSvDzuezHybI+XwhMtLpcoywrq3j0Va1sc9iuTiRp11CJyQLP9Jt48?= =?utf-8?q?E1pMM8wotngpmWXyYSJo7tOWOSX4K2zA2xUrk53eRCixM7aPN61a+eVw2kBgNxvab?= =?utf-8?q?KFcEJgquPbrxwVMxYotBAB0Cow10koEgl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ZthjXYoGO7dn6GFpOC95UJQf9?= =?utf-8?q?/nw0Vcv0ThV5a882AaAuR1QhBm8FqCWVbgDC4XUxUyFo+ZKrAKXmPOys=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?9u2mAAdr33CvYwzo57yEc9Wlrxm7?= =?utf-8?q?yYS9zEG/gKHtzUMIHVTpa+cNuQidzw1uQUd6CN3o5Mr8YB2XBgNJs0dmjd/+LtZ+t?= =?utf-8?q?6gFDUl1sGCspcU1eLTSXV5TPAS2UGNYNIjd7pKI8PNHbquFjH37g/hf0OJG5rmqnM?= =?utf-8?q?CT35uXCgEJ20DMAc9CSmY5tfscK4HMRCrdOxe/Yh7FMftr5ly769C/Ezb9B1Y+VER?= =?utf-8?q?6eQmPTq01/emcgTOnHvyKQvADb0Ywll/8aAMDzlZTDmJ9tpKwPhBSduaZrnWvNCI5?= =?utf-8?q?nXwoDZz9r1N6nVs7yrKtdX0tRHp5OoEe4iJcmD+TT2WMy4KwsoRaPb68BxMKFjDLl?= =?utf-8?q?MBG3MMuxVGiUN0CjpcdICiOwC9n2PxwFzidXT0vasbf9er8ZBDMIYP+gkpUjU/Sxl?= =?utf-8?q?MCccclucaudUXpc77D+/Rkh/ecfZB3OybCJmoHQMkJ6I5FECD5T++U2oAVlG+4Tzx?= =?utf-8?q?/RhRrV+UdrlNn308v5FMGk6DdslfqLGWDfpQPvBCccdgBTbEH4J9t9cGCwxkDz0wY?= =?utf-8?q?gMmSMU6nWZ4ksuslmmP/XAEkrfkNBpUpZkoTXL7n8cO40quqcScKIun4Vi+bq60Ib?= =?utf-8?q?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fh/2?= =?utf-8?q?TSBjlRs4CPyPkITJ07R8le9uiLAP3n8bySRmvum3ItoNu/cKuvwf7MG8PBMqlJjtq?= =?utf-8?q?DJeU0cpwTMTVmw2aR6jijgBoK6IK+4gvBA=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 3914f20d-8916-49b6-15ba-08dcce8c5f55 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 15:55:47.0595 (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: S7NqOAZjL0JmEL0j37tC2nK5VpqxbWleHI3rjjAL8Fo3x9Q9/05uuX3BZIOhSKSgaEb5w9Q4fb1FCyAD/DC9aUYZ44BlwVKxvgIBjbHbzsk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8319 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_085551_457517_4527D773 X-CRM114-Status: GOOD ( 11.64 ) 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 Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among which devices that are reachable through an I2C-mux. The devices on the mux can be selected by writing the appropriate device number to an I2C config register. Reviewed-by: Rob Herring (Arm) Acked-by: Wolfram Sang Signed-off-by: Farouk Bouabid --- .../devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml b/Documentation/devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml new file mode 100644 index 000000000000..28139b676661 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/tsd,mule-i2c-mux.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/tsd,mule-i2c-mux.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Theobroma Systems Mule I2C multiplexer + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +description: | + Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among + which devices that are reachable through an I2C-mux. The devices on the mux + can be selected by writing the appropriate device number to an I2C config + register. + + + +--------------------------------------------------+ + | Mule | + 0x18| +---------------+ | + -------->|Config register|----+ | + | +---------------+ | | + | V_ | + | | \ +--------+ | + | | \-------->| dev #0 | | + | | | +--------+ | + 0x6f| | M |-------->| dev #1 | | + ---------------------------->| U | +--------+ | + | | X |-------->| dev #2 | | + | | | +--------+ | + | | /-------->| dev #3 | | + | |__/ +--------+ | + +--------------------------------------------------+ + + +allOf: + - $ref: /schemas/i2c/i2c-mux.yaml# + +properties: + compatible: + const: tsd,mule-i2c-mux + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; +... + From patchwork Fri Sep 6 15:54:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13794429 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 E3751CE7B0C for ; Fri, 6 Sep 2024 16:13:41 +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=XwKvTt4SUaWenCCppLG1RCHzQEVx5W07pcFqI0wnOLY=; b=KtKsD/tpE/1zE11CoeJt4FwBYb Zk3WI5ow5IuYHborTM6KXfjrqC/ILG86edhMvRC+AZTWqdwjBu6whmzYFTGJOgy9Q41F6EfWBuD10 +DF2Iyz6P1jD0xHPeNRojVBmORUphppjymSMkOr7KcpuIqs6sCrpo9axHPH0F9jdDZsh8ozwDcdnD b6Vfmhm71Fyszc7DrtPL7wKM/YenuieTG6iUSy3cWl26WFpMKdud4AY3mZczrTWjFejW5T6LgLKJi kIl6pzJLBffSmOYQHt+RREryMXHiYqIzlUcDsVejJd/hkhhoyDjHZfQHvTfxKupSgv/c2TTMq5VmW Sr0AZ47w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbaR-0000000Cu4k-45fZ; Fri, 06 Sep 2024 16:13:27 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbJU-0000000CrL8-3AoQ; Fri, 06 Sep 2024 15:55:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=I3r+j2OE65EBQw9MC6lzA35S5x99TxcciMoRMs+Mrdk6hfnUX/EnCMVMO17dgq8p1muQJ4cngghmdgV55omcGIc9jst4QUhf/7KT66PPOo6DKPS2F4meHlJuwESl2ni4L8dm9RIMZ2oLbsAU60r5F1/UqSkWee/THk55ULBoxed+raNnTyeGnsuMJfY4VScg0UexPVOKccwUFGi4MjfX9xEN5cf0Gt18u2OfWgy3k9RB4B3z13V/FMO5Y3Cp0hHVem9wkeDKt2bC/F3PaihwBKWWiW/0sE+x6VvTiC2aHvuoHnriCeNXTQT5IL1D3l4bdH6Bl/PkfSYzbfXewhSS8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=XwKvTt4SUaWenCCppLG1RCHzQEVx5W07pcFqI0wnOLY=; b=jfKsKUd2EKq9BEa7jaYTerd3V+FeOvS5UdU7unoQn7bw8+JCQ3r2kxR16WHrrzjtjAADE2vKicfY2BRC1nZz2PT1Ew8waPUOff3QiaC2IAv1sZrhibqeBAKIAfjlC93D3Es5j3obRWqxYm+Zi7ScHG1fn4q9DfghG4zJayLZDt2Yrsl6D9Hi/YN0u2i3tOW1CT6c0xOVc87FkudEY+B5XPsXVc4sAZS/XvCR3KLtbFICd7Po7gSv01AbFN5kAqzG2k834Btu6YtnL0mIhcO2xbeczp9cM2W2ml53nKJFqoOFsMegnnrFRbG7PyhQp/08rGNhtzI1GVLtD+m7RsjxHQ== 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=XwKvTt4SUaWenCCppLG1RCHzQEVx5W07pcFqI0wnOLY=; b=VJbtZtj3i76uc82EZunCMaVlTUKKDdiUBofV15vzPmtajbPnf6fyOuSBMskrH8ll4dC2n0gVxn7UVBz/F5ncVahnS69HV3mxfEBw+84z1w7bJ9OuCUioA1o10kTcP/DoyqoTjVpAx3yuP6xK9hPTAfLLeruDgjLLIcjUwWUETtA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) by PAXPR04MB8319.eurprd04.prod.outlook.com (2603:10a6:102:1c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Fri, 6 Sep 2024 15:55:48 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%6]) with mapi id 15.20.7918.020; Fri, 6 Sep 2024 15:55:48 +0000 From: Farouk Bouabid Date: Fri, 06 Sep 2024 17:54:13 +0200 Subject: [PATCH v8 2/8] i2c: muxes: add support for tsd,mule-i2c multiplexer Message-Id: <20240906-dev-mule-i2c-mux-v8-2-dbd28a150e41@cherry.de> References: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> In-Reply-To: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Wolfram Sang X-Mailer: b4 0.15-dev-77eae X-ClientProxiedBy: VE1PR08CA0022.eurprd08.prod.outlook.com (2603:10a6:803:104::35) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|PAXPR04MB8319:EE_ X-MS-Office365-Filtering-Correlation-Id: 03200ba2-42b8-462e-de0d-08dcce8c5fdb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?sTaSCUZVO68bpuZmGiaboR6oUoxsIWm?= =?utf-8?q?xszAvLv1CJNq4iARZ9gaKs/FJo1/3/jXHziCyX0ESz/EVIfcCgVGhhq6ew7G1/EoR?= =?utf-8?q?nHVYwJKmGpPcbcTzhDKkRXU3HtXclMkoGwzGz8Ti9wpPYc8Cz8PXCqfkyJqSPZHM6?= =?utf-8?q?dmVS3WQAGOjyb0VzzSMB/JjIe1dI2y+PhOgb4LO3t6VeBHKSH5T1hhGEvcgK/LeJe?= =?utf-8?q?dOIiBVckW2n0rBoJvAMsCUS4+35Ek9xiImcnHrYhloHnkQNhUxsa7Hsv763iDP26O?= =?utf-8?q?DGaNZzAyZZaipnzb8R2cNuYGbUIjEHgJgSvhK8Znya37T2lMmHif3co9eAdDDYpnW?= =?utf-8?q?BhB7IklXgizv14NZrTMI+S1VRQ4N2kQcslBK0MZW8ZDdJtEIG+rfqfv7WatjEPrVI?= =?utf-8?q?8PqaMBtRpg92n1eiu8mU1CgmX+j+TB4j9ioJWE7bZnnxjq4jl2PXrVCROmQKEZhYm?= =?utf-8?q?eXtzGL02odk2QgtoQligJxqcYvBrFPQdQddiO9H0MBS3syX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ispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?HNPHxMiZZB6SVf3rXIEcut5ZQbcW?= =?utf-8?q?SVkOenwHIpFGna8bJvI5fYtw+YOOMcZMsNC9lnkw7+Ip5pwF+TMIPdZf9tCQEEHM0?= =?utf-8?q?RMl0uEgfoz8Zoyuwe9TvXccYmtjdP+3ZCTOUNM74uZr8UlBm2Z6Y+LhtnfuUH6v9w?= =?utf-8?q?fWAtC3yOhruilvGpr/6a6voZSEs+QtQAZfRJ0sChqtql31HYZczbhek0OEhrdJ/Xo?= =?utf-8?q?xQ5OMzYxEesxhq8Loo2gYtbD3nkWi+zwk9bMWw8tFPgnN7GsLFIlxQghez9GpoEPJ?= =?utf-8?q?HgNXu8rjw84T6ZzeNx6D40zZcolrwCsg3RdfuKLzPc7M2BO3BriVUxoPpHKeYcjRS?= =?utf-8?q?BQyBGgI+asiCltrw2gi+HjwI98Ya00hqykS5fB6fxncIBAkY8mtf120C8QA/IzCB1?= =?utf-8?q?e8iTD7pzhIsZgl6vRM0MzYIu7wh1E0T1vUsHcS4fVDBOxg9MGxtlyFECaNYgGICeK?= =?utf-8?q?w6dpJCrI3oK38fl6lg29qyK8U3pNlWui/p865FkBKn1tW4gI3pR2Kzmj3NSdAgbRc?= =?utf-8?q?YO4y8kaip1iR7QOLtH6D+65B8h6xpFGxOhVu26mycIsjPCaBQqstl5scrAKe1Kh9E?= =?utf-8?q?knoAnWH2TCsFZgdv1ge+N8rv9PPO9/3NsTWe6jqSazj+/VF3LfFh8hEN8mztlKwB9?= =?utf-8?q?1CJUhME6WWzxsLt3S65FxCod0zbB+DPmiTZ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dxyCxw=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 03200ba2-42b8-462e-de0d-08dcce8c5fdb X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 15:55:47.9742 (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: LLijPfTB4wrJHfq0LA9MduPPLcIvA5ZkmhW5K8bZf0ySzBcvvRlmj78XlGKvLhms8bNyiEnBKq2ix0oD7KlK7vVqUXzPgGJ0iXyVzvTk+xs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8319 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_085557_120918_FE573E6E X-CRM114-Status: GOOD ( 18.80 ) 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 Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among which an amc6821 and devices that are reachable through an I2C-mux. The devices on the mux can be selected by writing the appropriate device number to an I2C config register (amc6821 reg 0xff). This driver is expected to be probed as a platform device with amc6821 as its parent i2c device. Add support for the mule-i2c-mux platform driver. The amc6821 driver support for the mux will be added in a later commit. Reviewed-by: Wolfram Sang Signed-off-by: Farouk Bouabid --- drivers/i2c/muxes/Kconfig | 16 +++++ drivers/i2c/muxes/Makefile | 1 + drivers/i2c/muxes/i2c-mux-mule.c | 148 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 165 insertions(+) diff --git a/drivers/i2c/muxes/Kconfig b/drivers/i2c/muxes/Kconfig index db1b9057612a..6d2f66810cdc 100644 --- a/drivers/i2c/muxes/Kconfig +++ b/drivers/i2c/muxes/Kconfig @@ -119,4 +119,20 @@ config I2C_MUX_MLXCPLD This driver can also be built as a module. If so, the module will be called i2c-mux-mlxcpld. +config I2C_MUX_MULE + tristate "Theobroma Systems Mule I2C device multiplexer" + depends on OF && SENSORS_AMC6821 + help + Mule is an MCU that emulates a set of I2C devices, among which + devices that are reachable through an I2C-mux. The devices on the mux + can be selected by writing the appropriate device number to an I2C + configuration register. + + If you say yes to this option, support will be included for a + Theobroma Systems Mule I2C multiplexer. This driver provides access to + I2C devices connected on this mux. + + This driver can also be built as a module. If so, the module + will be called i2c-mux-mule. + endmenu diff --git a/drivers/i2c/muxes/Makefile b/drivers/i2c/muxes/Makefile index 6d9d865e8518..4b24f49515a7 100644 --- a/drivers/i2c/muxes/Makefile +++ b/drivers/i2c/muxes/Makefile @@ -10,6 +10,7 @@ obj-$(CONFIG_I2C_MUX_GPIO) += i2c-mux-gpio.o obj-$(CONFIG_I2C_MUX_GPMUX) += i2c-mux-gpmux.o obj-$(CONFIG_I2C_MUX_LTC4306) += i2c-mux-ltc4306.o obj-$(CONFIG_I2C_MUX_MLXCPLD) += i2c-mux-mlxcpld.o +obj-$(CONFIG_I2C_MUX_MULE) += i2c-mux-mule.o obj-$(CONFIG_I2C_MUX_PCA9541) += i2c-mux-pca9541.o obj-$(CONFIG_I2C_MUX_PCA954x) += i2c-mux-pca954x.o obj-$(CONFIG_I2C_MUX_PINCTRL) += i2c-mux-pinctrl.o diff --git a/drivers/i2c/muxes/i2c-mux-mule.c b/drivers/i2c/muxes/i2c-mux-mule.c new file mode 100644 index 000000000000..8e942470b35f --- /dev/null +++ b/drivers/i2c/muxes/i2c-mux-mule.c @@ -0,0 +1,148 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Theobroma Systems Mule I2C device multiplexer + * + * Copyright (C) 2024 Theobroma Systems Design und Consulting GmbH + */ + +#include +#include +#include +#include +#include +#include +#include + +#define MULE_I2C_MUX_CONFIG_REG 0xff +#define MULE_I2C_MUX_DEFAULT_DEV 0x0 + +struct mule_i2c_reg_mux { + struct regmap *regmap; +}; + +static int mule_i2c_mux_select(struct i2c_mux_core *muxc, u32 dev) +{ + struct mule_i2c_reg_mux *mux = muxc->priv; + + return regmap_write(mux->regmap, MULE_I2C_MUX_CONFIG_REG, dev); +} + +static int mule_i2c_mux_deselect(struct i2c_mux_core *muxc, u32 dev) +{ + return mule_i2c_mux_select(muxc, MULE_I2C_MUX_DEFAULT_DEV); +} + +static void mule_i2c_mux_remove(void *data) +{ + struct i2c_mux_core *muxc = data; + + i2c_mux_del_adapters(muxc); + + mule_i2c_mux_deselect(muxc, MULE_I2C_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, mule_i2c_mux_select, mule_i2c_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); + + /* + * MULE_I2C_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 = mule_i2c_mux_select(muxc, MULE_I2C_MUX_DEFAULT_DEV); + if (ret) + return dev_err_probe(mux_dev, ret, + "Failed to write config register\n"); + + ret = regmap_read(priv->regmap, MULE_I2C_MUX_CONFIG_REG, &readback); + if (ret) + return dev_err_probe(mux_dev, ret, + "Failed to read config register\n"); + + old_fw = (readback != MULE_I2C_MUX_DEFAULT_DEV); + + ret = devm_add_action_or_reset(mux_dev, mule_i2c_mux_remove, muxc); + if (ret) + return dev_err_probe(mux_dev, ret, + "Failed to register mux remove\n"); + + /* Create device adapters */ + for_each_child_of_node(mux_dev->of_node, dev) { + u32 reg; + + ret = of_property_read_u32(dev, "reg", ®); + if (ret) + return dev_err_probe(mux_dev, ret, + "No reg property found for %s\n", + of_node_full_name(dev)); + + if (old_fw && reg != 0) { + dev_warn(mux_dev, + "Mux is not supported, please update Mule FW\n"); + continue; + } + + ret = mule_i2c_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 ret; + } + + mule_i2c_mux_deselect(muxc, MULE_I2C_MUX_DEFAULT_DEV); + + return 0; +} + +static const struct of_device_id mule_i2c_mux_of_match[] = { + { .compatible = "tsd,mule-i2c-mux", }, + {}, +}; +MODULE_DEVICE_TABLE(of, mule_i2c_mux_of_match); + +static struct platform_driver mule_i2c_mux_driver = { + .driver = { + .name = "mule-i2c-mux", + .of_match_table = mule_i2c_mux_of_match, + }, + .probe = mule_i2c_mux_probe, +}; + +module_platform_driver(mule_i2c_mux_driver); + +MODULE_AUTHOR("Farouk Bouabid "); +MODULE_DESCRIPTION("I2C mux driver for Theobroma Systems Mule"); +MODULE_LICENSE("GPL"); From patchwork Fri Sep 6 15:54:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13794426 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 13894CE7B0C for ; Fri, 6 Sep 2024 16:13:37 +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=u+d8kkbjE30ReXzbzXlDkTY6YH4knVAS4Xf0qwtzQOI=; b=K5NrH6QwtIffDV7o45oSWmxfNG ZWrPedhakw7SbXU3ziK71ddcNiqqXBF1tnPsQZWwcWsiqkJku/R4kRrSwwrvLinzJRHOmMwXX7rp3 8UBipot7qi8dfM7JUmazibQYKSlu45wE0zDhbZQKoKrful5CVrubG0p/YyXdy+WyR3Soh5DmujI6F HL/zsuFXn+w0VB751ubuo5JOW9Ovdc7vmQRohKjRD3XkGdgcoZyiIAjxufurUxBMMjQvkNzXbrQT+ a797A1mLXeA74uP0N68+tJrMGFpMkw50ERc1lhHCfygfmNBMaG+BuR88NY2p6R8MrXDbSf/HLBKWf ecvsRhKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbaQ-0000000Cu3K-1iuK; Fri, 06 Sep 2024 16:13:26 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbJT-0000000CrJg-2Wmn; Fri, 06 Sep 2024 15:55:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SMnVgQ728q/jtoY3BbUyeaMyuIJn/5Ud03H5qdzLEt3i/vPEuJDJTQUfB7W5lY1xRkZhUwGl2LS2uhr1hM9CIAR1CFWXwY9wV4Dd0HUHGZYjzIFXgLhFexFrHHkJ9YPVTW9y/7VT/5rZCKAHGhK4DEVMSNruHUSa9RDFVAwSr64GgyzRoDTQu27+Yu6pTT1nH5l7Omjn/kWpktKKyUK5bVC/vc1JYk5jzu/k0ol29bgYp+iGhuTEXguvVB0jXC6X3VqQsW1wZvpHCQg6Hm3ATp/bsvXpGToLR47wm/Q2+tVEYawkT1lv76uchvnwyvuAaToYOiPKmXnV4eMLT1XtEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=u+d8kkbjE30ReXzbzXlDkTY6YH4knVAS4Xf0qwtzQOI=; b=QRdN3/7o57w+ebaUibjK1eF5wjZAz8YftGLi+87p+XrxPSKNRD+wngwGrvwbF9uwM4LQZ8Eiz4ejhBRka0L9GtrfvIcjeg3udsYO/BB1pNoRCKZm5L9FOjMDqQWfXyfmqYuDmycQ38bauFHLHgL2iNGUFm9juh5Aa24yrPSYRXuHSKOflmFT1FGGj+xjdxbnVdkvZYQx185QzjOgE16HGAAAafYYW2HxKIJas21JLafCDY6hK3mEHRsCBLe4tJTmWaPeRgacfJ1LLm57DgqdklG4VBg9jqavS7j1EINHwNqrCc5Jd6j7vJU1jyD/ScQKDiHRXfTo+FgE/TH8pPn7Eg== 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=u+d8kkbjE30ReXzbzXlDkTY6YH4knVAS4Xf0qwtzQOI=; b=ZA2Q5Uf3wv8LZdXnfi3c/ADyRrGYSiIUYGs+GKw5+bufPayNaAXxYnkhdbOvJASp64bUupm2JrUcbaYqN96Y+tCzLLGPrmUlEbnasr2hCcsCO9EJArHQb1tKgr736upsFQwO4og7q2iX4NkMpOhJxgU2TQ4eAlddVsMPpLJDTl0= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) by PAXPR04MB8319.eurprd04.prod.outlook.com (2603:10a6:102:1c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Fri, 6 Sep 2024 15:55:48 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%6]) with mapi id 15.20.7918.020; Fri, 6 Sep 2024 15:55:48 +0000 From: Farouk Bouabid Date: Fri, 06 Sep 2024 17:54:14 +0200 Subject: [PATCH v8 3/8] dt-bindings: hwmon: add support for ti,amc6821 Message-Id: <20240906-dev-mule-i2c-mux-v8-3-dbd28a150e41@cherry.de> References: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> In-Reply-To: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.15-dev-77eae X-ClientProxiedBy: VE1PR08CA0022.eurprd08.prod.outlook.com (2603:10a6:803:104::35) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|PAXPR04MB8319:EE_ X-MS-Office365-Filtering-Correlation-Id: ba56a466-5b87-4fba-d0cd-08dcce8c605d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?S5EkQBPdBVbPe+MiISK0tn7e/kGOYa/?= =?utf-8?q?WM6rmRU6Q1ZQ//7ok768SJpH1uecoPyn7mZyU8/x1GkLe1664/7XRTGSGhsCfH9z2?= =?utf-8?q?UWAMqel8ZOzz2JqaugbCrYk12CXUEdDp9a3aecrZQOzUx/f1O1LvuoyOZaPvSzIj0?= =?utf-8?q?d1Y45VsGzU4q3+E/isJhLdl4CxYFfrgpU15g2bj/Ipq61KIz4cvCi0YHmDhET/jRs?= =?utf-8?q?0s84H7xwxH/7Z0uUhJw+7Po9hn7P53bU+uo/EU5rp53aAetnXpKRrpLkYTuUwBbIS?= =?utf-8?q?pQ2hJzBaxv3QK42zZ3mgrJ9ZQ9aMAtKtdaf9ZAzcmU3oCq3+nx8BN4PJyT/4iDrb5?= =?utf-8?q?L2Pt2Ggnb8Hovoa7p6HCNisWH0KcOAb7GxNEcxeDuhirNvftgKOctVQmU0hXIZw1x?= =?utf-8?q?o1WWzd2TmIxCxi1jdAhi6yizk3iwSRJwKRg904yH68pVVicWL9OLbRnnI0kMz1Bva?= =?utf-8?q?OekVe2+4VDtj8N47rqiEe4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L:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?vDQV8SdgI9TfPAprL/sgIAVpEs2E?= =?utf-8?q?4qpX6l809nathh0jotKLPOOvfUVz/iKsXgRKHBDsPwzyD/7jfD8ZpRc2WI5IV52h6?= =?utf-8?q?G+KGDjMIiP/7wVz/unq5cqdaaIhaxmfIC9aQFRFiZMiD4uXR0ZahYUrfCZlU8qoWy?= =?utf-8?q?VNUCzlA3LK7ZXg5ZbQcYlLNIyNRW/EU00C04As2olrELbkzF+AD8jMnUIAHHPcPst?= =?utf-8?q?7glmfMFnaKRSQGkJeR2bJL98PTCCN7t/tqy422b8AlieKzzAa2nWEymxv/XWtwj5f?= =?utf-8?q?Yk7KlWXHuZJvuzm4RdgJ4KHP5Fne7qsKeEpoPwiaYHbAUF1Adh7AZDaT+nvjGUAUl?= =?utf-8?q?S6fhPMfaB9plbV+kR/db3607xkIr0hAJXyhPrjZtTSVpWSO/Dq+rFgP0AvyWh2Giz?= =?utf-8?q?AilVmsbaOVUhpj1AL0t9rRzTMa75KNRh1cLnOyObxqccEo11C8lwgcF8aWmW+RsBz?= =?utf-8?q?RPXPYhI5wfbuNZjVqGX6/ep1mQbCBRcbUrp/7beqVoD6TknIz88uv2S8Fr9j62mza?= =?utf-8?q?vY2rkoa8QPgA/hmaWTBt6MASd8DykWZvkPi+XZuHmtz4E5HR6Bq49URbKlR65A6ce?= =?utf-8?q?sxi6rhqmjZP81g0hDuctCmDP+bRv9GZPOw8Hkaa3GsNgG6Mdg70NTz6rJL1WBITTT?= =?utf-8?q?EY54IhJAHonPTZCmXFpiepuvuFJ+QxuyOZVlRPPUS/1sBFK6Dwr2qyYa4QYoZCtH0?= =?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-MS-Exchange-CrossTenant-Network-Message-Id: ba56a466-5b87-4fba-d0cd-08dcce8c605d X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 15:55:48.8178 (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: N9/HT6WMz9pCAxmC3pOQapFiJgaEjAn5tZP6xOQ9Jt9TIzR0mhmJDojTMG7GJtLfVM5YDCMBZ+f686nuFvoarOGckso0/v8mcJlD9ThOM7E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8319 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_085555_691281_AC31A62D X-CRM114-Status: GOOD ( 12.94 ) 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 Add dt-bindings for amc6821 intelligent temperature monitor and pulse-width modulation (PWM) fan controller. Reviewed-by: Rob Herring (Arm) Signed-off-by: Farouk Bouabid --- Notes: Merge after patch 1 .../devicetree/bindings/hwmon/ti,amc6821.yaml | 86 ++++++++++++++++++++++ .../devicetree/bindings/trivial-devices.yaml | 2 - 2 files changed, 86 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml b/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml new file mode 100644 index 000000000000..5d33f1a23d03 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/ti,amc6821.yaml @@ -0,0 +1,86 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/hwmon/ti,amc6821.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMC6821 Intelligent Temperature Monitor and PWM Fan Controller + +maintainers: + - Farouk Bouabid + - Quentin Schulz + +description: + Intelligent temperature monitor and pulse-width modulation (PWM) fan + controller. + +properties: + compatible: + oneOf: + - items: + - const: tsd,mule + - const: ti,amc6821 + - const: ti,amc6821 + + reg: + maxItems: 1 + + i2c-mux: + type: object + +required: + - compatible + - reg + +if: + properties: + compatible: + contains: + const: tsd,mule + +then: + required: + - i2c-mux + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + }; + }; + + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + fan@18 { + compatible = "tsd,mule", "ti,amc6821"; + reg = <0x18>; + + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; + }; + }; +... diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 7913ca9b6b54..8ba53cc2672b 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -370,8 +370,6 @@ properties: - swir,mangoh-iotport-spi # Ambient Light Sensor with SMBUS/Two Wire Serial Interface - taos,tsl2550 - # Temperature Monitoring and Fan Control - - ti,amc6821 # Temperature and humidity sensor with i2c interface - ti,hdc1000 # Temperature and humidity sensor with i2c interface From patchwork Fri Sep 6 15:54:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13794428 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 84F75E6FE31 for ; Fri, 6 Sep 2024 16:13:41 +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=s8mhuCI8xUg0KfJGj5vUAfFtFVTEWAm7Pr1592ZIMsI=; b=HOmoTdeVertEvj4vIiPXmvwMYV 6vu8RgPhPVIHMK1f6bQHwX9QWg/1CfEzmNT9RmTWg0sXOD5O1knMjU+ibE1TGVYyWWrxDc0SQ7h3F Kmhje3siNgbe32baeTeRwfpwBSZlnt5uvSSf5xUe90WxBH935ntF+kKRwXu8cgo8Te7VvvmmJ71cE OnLEeHZimm/9gXOmBg5YUhLyU7/yBKjiO7frQZzWreVbIVDZ9lWm8jXQJjTvO6BTxEWtMrj2wAXlN NB704U2xGZNABffKW+KyfV2mT2iCy7d72OKQyH9K1SfLw7HiHeKvndKtUDr+MLnrQoFyznysOlSAU D/4ghvHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbaU-0000000Cu7B-1NBO; Fri, 06 Sep 2024 16:13:30 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbJV-0000000CrJg-2A2k; Fri, 06 Sep 2024 15:55:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LkFHK70zpjCVgceRtpsOVvxEI7mkA+rCe52Ny92Asb6sytQoRevckqnJB+usSzklO+cXfHJY6uYEJNxZ5DBkObwpd3rMwQGBABdpYb2Hm67+phjuxWf2sUqmi7G8lkBBy9zZA5JPS/psMcqiAf798DWL2iwe1n8WNJqgdOTUPoajiiiR8FA2M33AbS8VDK5i3rErDzYOSNaLb4v/un6LBOq59vyqaPEUpyzcqfXo8wKFceH8Z6Ghga25lBkIvWnHsZClqp4MnmU5mTc+L/pdP+c/VRL8WHMhXi6UxZe31QOea9CCt0r1U/ykHTKGOTYa2XgcLnbt9smChvtyGz/FAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=s8mhuCI8xUg0KfJGj5vUAfFtFVTEWAm7Pr1592ZIMsI=; b=o2oElQn5mjGZPZ34AIZsjM9yay5PirhSlaTp2tet8Qlraq8jYe1P/rRUCMhv172MYjTJmduf8+VR/klWXgqte0VL0sKVl0ebNHeN6/r86qv2guSJGyQABMfXu3pIy3+Fa6Z3gcDQWOY/BkKuG3aIhFXx+y+n0wNtCalf8s9wwkJzqsi8YmDmPYLOkkPCbmCxZgcd4lhEFjv9ozB8a2w4Tc45wG+688bHzKQ9ghrsXZyO1jp5dGX+avI4IYgUByxDL2ay8nad/Ty1fDVAgx99WGwh8WgRQUo6YW6HZMTrqb3Y97IIXV1F5M0slhUnJUhnDXzePbDy49nIt8RzKwScrw== 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=s8mhuCI8xUg0KfJGj5vUAfFtFVTEWAm7Pr1592ZIMsI=; b=TbXXrFUom6QSNwEzFh85UATWuMeO4I75VLSo2xd+loO++mGjQtmP0QF7ypESssP1OKeE64P411izBK/QletsObptzSi7RLhORcB2eTbPECWloTIqZX/lFFyPJZ5T7NkyGYhzBlCu44+bBoyw7E2OmhALPAUs3yObAHkANev916I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) by PAXPR04MB8319.eurprd04.prod.outlook.com (2603:10a6:102:1c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Fri, 6 Sep 2024 15:55:49 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%6]) with mapi id 15.20.7918.020; Fri, 6 Sep 2024 15:55:49 +0000 From: Farouk Bouabid Date: Fri, 06 Sep 2024 17:54:15 +0200 Subject: [PATCH v8 4/8] hwmon: (amc6821) add support for tsd,mule Message-Id: <20240906-dev-mule-i2c-mux-v8-4-dbd28a150e41@cherry.de> References: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> In-Reply-To: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.15-dev-77eae X-ClientProxiedBy: VE1PR08CA0022.eurprd08.prod.outlook.com (2603:10a6:803:104::35) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|PAXPR04MB8319:EE_ X-MS-Office365-Filtering-Correlation-Id: acced04e-f44a-4342-e80c-08dcce8c60df X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?EX2OLdKr2XBkmrOWo9wqNPjupFVej7/?= =?utf-8?q?DLXipYYZNYy2Ako4crNAQrFTrdao4nqXmH4rJMjmNMBYmyFRnxSkj58+K+vjPggPG?= =?utf-8?q?AAu1OvjaAHcdltzE/t+2Wc7TYEGD9s7ST6+QQiJFnTxKcYAnZwkdbq75u9UNn4wre?= =?utf-8?q?6hiNAp3OD/qXn6JCK3BAX1R8scnI4ZRFcSxbVXaC+/1GgheDwxiZT55fgVvnLiMX1?= =?utf-8?q?6inMvPls/b5aRvr4KqhrAurTTt1MRL7n3AXssjwATUyh2/vCiNkrMw68Uf+EJG4Pj?= =?utf-8?q?bY1/6z/5EXFevwFSW57bumSNYQZzbsrEQ3V1fT2UFZQe7tbgIzH1PohqFbHKebh/0?= =?utf-8?q?eZXjIkWt4V27bESzOEx42t8YyftDd2aTnRtdyJDqKaWGKvrmFvIviBgEScItHNfpc?= =?utf-8?q?jo3KkpoGGiJ3KXauwEWNVRAtu5V3jlXkiX9jsj+rXZMZ9bDm1+NzdNIM6Ryen1Js/?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/A?= =?utf-8?q?8Cd/c+BPXmgZZecmNZIvWSbfoay8Ggi58DWTwA/YGFTpLF5npQ8JZMk=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?nYYuvIUGieR3jDtwWuCMrmBkNJCA?= =?utf-8?q?so0HADorGphzR7f2t7BvCMELpPVI6Aq3JX7oE5ENWL7MDcAb4pW16PWAHRgw1cnzi?= =?utf-8?q?Y5KhwrcxNIVWFq3R2toI2MPriEbOcutVcoGc81rnekQDcyW0N1YsbmA3rO4zxdmjC?= =?utf-8?q?92e2J0Psu6CFCMyFlXJWoCfWgYeyxd/RhSFzhFX0e9fMtckY+mXgqm6nd1nxvcdZ4?= =?utf-8?q?JN8GUHwdbvtZWn84PMvEDhS1NaGTItOn0xP7WySX0FNBBYg9ds3x77JLmBwBGPGhr?= =?utf-8?q?anvpoIHe7b7SoVdTPq+wNAl8N0oe6W5fjMsxI2547COATZeM2pZsrs2oMjEEh2kvz?= =?utf-8?q?5l6i7PkxfG7jR2foD3Ys8Uy77m2f8W9q971dnQnW+7dvmYwn62b9r1iwl1tvacby+?= =?utf-8?q?K/y+XMtVySV+7ilVaq38Pt8ybhcy5eJWqPJgQaxGDOcxVmNgbK0Lg69CmO1oCrB3K?= =?utf-8?q?vM48kpcZv/E9qS2aLxgpqW2wNcV48D3TpdOFWEbZsGjX0C0LPBynOX8oowx6+Vxra?= =?utf-8?q?XS+VeJC7iXTnR9rBOL0vScNESk/iJzXTffi/4dUxj0c9UW4FRRi5olv03smUOcNij?= =?utf-8?q?ja/qEZst2eP+v1UE8MF6BxkigsVyiua91haE5/Ti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sk0uqMQIdlFEa?= =?utf-8?q?EEFPj7l4Hk7+bXsVwu16CffxDqUZ8NEktg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: acced04e-f44a-4342-e80c-08dcce8c60df X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 15:55:49.6632 (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: sE4J4xH4teQAA5FOvdYOMF76b1JQaeMGNSUIUYpcvWhOVoS5+OJvSWJqeSHUcBQQ6B178//kJb+fQq/zYhfQWjPB5NaETb14tq0zFzFWKEs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8319 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_085557_664749_558ECC17 X-CRM114-Status: GOOD ( 14.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Theobroma Systems Mule is an MCU that emulates a set of I2C devices, among which is an amc6821 and other devices that are reachable through an I2C-mux. The devices on the mux can be selected by writing the appropriate device number to an I2C config register (amc6821: reg 0xff) Implement "tsd,mule" compatible to instantiate the I2C-mux platform device when probing the amc6821. Reviewed-by: Guenter Roeck Signed-off-by: Farouk Bouabid --- drivers/hwmon/amc6821.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/amc6821.c b/drivers/hwmon/amc6821.c index ec94392fcb65..a3fdbcf01ecd 100644 --- a/drivers/hwmon/amc6821.c +++ b/drivers/hwmon/amc6821.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -897,7 +898,6 @@ static bool amc6821_volatile_reg(struct device *dev, unsigned int reg) static const struct regmap_config amc6821_regmap_config = { .reg_bits = 8, .val_bits = 8, - .max_register = AMC6821_REG_CONF3, .volatile_reg = amc6821_volatile_reg, .cache_type = REGCACHE_MAPLE, }; @@ -924,6 +924,13 @@ static int amc6821_probe(struct i2c_client *client) if (err) return err; + if (of_device_is_compatible(dev->of_node, "tsd,mule")) { + err = devm_of_platform_populate(dev); + if (err) + return dev_err_probe(dev, err, + "Failed to create sub-devices\n"); + } + hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name, data, &amc6821_chip_info, amc6821_groups); @@ -941,6 +948,9 @@ static const struct of_device_id __maybe_unused amc6821_of_match[] = { { .compatible = "ti,amc6821", }, + { + .compatible = "tsd,mule", + }, { } }; From patchwork Fri Sep 6 15:54:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13794430 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 DC969E6FE2F for ; Fri, 6 Sep 2024 16:13:51 +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=25dGd0E5AtCR8zFuoAAzxvVQNaW8OT1xvILoEmM433I=; b=quQefgP+rFm+LZ8fRUFjDe4N5J WrDnJTr4Krfco6eb+eswjsjOhk4I4rsRZVKA83s2ojmvsL90+0rFqZC8w3qW7gucE6vRTrOp+0+r+ VyxbXL1Ux3v+TUTnT0DtZyxd8Muo23A74RbbOzgOcbSzb3IJsQwKt4svw1AHdCYIewdFE0kKG8f/9 zOi6G/7RA+LY47vaqzhEXpeaS2GhKKgi9RDlXk1RmUtPcfjiQIYVrpKTbIgeCtZDzpYU4hqrOn823 eApJ+O4FsbozmyrT2QWkd/5iO3zqA6CdizLeP0rh7m3BjC8omYBALT8ZFFj+axWyhpGnnkf0jL8BP Jdwy637w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbab-0000000CuE3-3vHW; Fri, 06 Sep 2024 16:13:37 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbJW-0000000CrL8-3iGI; Fri, 06 Sep 2024 15:56:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dczkVQK4Bl1FGyN2g4v6QpU25ZhB5H6nHOxw8ArcJPjFnvJP05P3TsL0gn1Ni4tBzdfk1tRf3P7NM03RSe3m6RmXel/r6XITYihdhicB177T0uqeylOkO1LQwPv5ChivJ7fld6q04Hhepc0NrF6o18ge1rAwGDEpBSaDMrp+5EK8JGjqOvZVqDI56gSuwnd+X+3mLWv+ScDC4LCT4a1/iHUouS5T8BXxJ9mucepCpa+I5Ijr3VGjyFjQKGVB3/fpmFVIzQdRAgEPSOWDxHoL3oqsRtTpV2xwxkxdyY/TEFKZN+JWupC1ItKKYGV9Wv5hr3+JNLRpFRpLY1pGw5IBSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=25dGd0E5AtCR8zFuoAAzxvVQNaW8OT1xvILoEmM433I=; b=xMHAelBx1aRlJuD+fU8KU3IkQnrgZt3dFAxXtL5Wqb6XAkgzFhABDmZYOH7GC6YGUJIo9JAkiexyFuSHrTe1t9UeGqAbDAMaJ2VfvmijtQh65QxTlB2iK0YafFs4c+zCMwRu5SKkNrt21vn/u134KY39nSG4wqTVgwlrJbbarNOJOzr1LfTBk1nLYGa2MvcqgYli2xkKhxSuwevM2ekJ+cTccSFwDbaJF8nH302oZZFQG2L0EEA+EhysMYaVnVAJFAYqsrFWZPijXTB7tqG7BptvRHoYKp8VmiqzoZFGcRkcAmkIY4lby5d0ty7XuHiXVpp55/FKVilRizTvsuplHg== 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=25dGd0E5AtCR8zFuoAAzxvVQNaW8OT1xvILoEmM433I=; b=NqClS21b6Oq+7JJ0vqpqekNYgsDvFrcwSyrUiK88DtnoOe1d7/KT6qfdNP3UZgsPasFwFlbAszHodlVSsEI3QslifZR0BNZw4NktcnFwYH4CGgLpNtZ2GgKNWGh4XGk6IKeGWX2vuwHlfIGqwrr8POsPvupNpm19rWNd5CZs9ME= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) by PAXPR04MB8319.eurprd04.prod.outlook.com (2603:10a6:102:1c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Fri, 6 Sep 2024 15:55:50 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%6]) with mapi id 15.20.7918.020; Fri, 6 Sep 2024 15:55:50 +0000 From: Farouk Bouabid Date: Fri, 06 Sep 2024 17:54:16 +0200 Subject: [PATCH v8 5/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3588-jaguar Message-Id: <20240906-dev-mule-i2c-mux-v8-5-dbd28a150e41@cherry.de> References: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> In-Reply-To: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.15-dev-77eae X-ClientProxiedBy: VE1PR08CA0022.eurprd08.prod.outlook.com (2603:10a6:803:104::35) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|PAXPR04MB8319:EE_ X-MS-Office365-Filtering-Correlation-Id: 50e25b67-2657-4993-78a5-08dcce8c6165 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?SNJwQrCQnXducsGUj0gl1F9Zfwn2n2I?= =?utf-8?q?esUOtzDdd60xVnWPS2LmQVfHxKKw5jFiuNl4AS2+Wfyzlb3qQ4bPt2tpIHpsfrL55?= =?utf-8?q?MSmTZfPlDUyjuUjvo7RZ6hPQsZ9R57PEPmvYOZc2yTuW1/ov8+bGeDQy1ZrUgPsEA?= =?utf-8?q?r3jW7v3+KYWpkwPjnoOwklxYAGEl2zeR9ciwP8fOhIZjaT8K68kVui1/m9fD2NLfU?= =?utf-8?q?J24p+lbsAiu08EKi9X2VTuYwG/VPAazvDyNHRla4nfk2OToCd9JfwO0zP2J8Ghxzr?= =?utf-8?q?PLiGQiOySmHCwhQiBS1Lzk/JuVL16z/PdUm0i9JC7qwlv9O2rsmol4xEIKE3J0H7j?= =?utf-8?q?mQbPbb/n1yfOcTtQ+rI0nUgILSTC0HkqL5aUCT7+S9CuAkcT5DbI1negHHOL0lkDU?= =?utf-8?q?ezmaiJxnxGSjBmFrbE2GRRLQa/VC/jKobOdpiKnEngIYevjuv7o2/1KOdCiQazIBn?= =?utf-8?q?8RcuNoeg9c9b+qz2ayvneFuWZ1yAA8mFXJpZBG56IMG7kKCyg+I6aUhWJm6+pCXg8?= =?utf-8?q?tyUw9mzXButr/DWbD/EpIx3+x/jmyLRCMHD8s8n2Ugh3J1k9qQyWQdqcyOiJnwr6X?= =?utf-8?q?Gi3kx6UaqpmIF60UdfOaNnLD0pbhI/bCskoS8BJLhql5ZpBq5pZ9bEysEYWrk/ph2?= =?utf-8?q?AGWd4p3/J0KZgo+wT/cBlxVTGH1diK5d9tNM5E0LfP/dZARpU3adwW0i6qRFx+mRy?= =?utf-8?q?TDQvJERBQCf+exQzdXqiotE+rH3G3R56l8i2M7pIIXiPNDCv7GVv3ToDoFDTAH4QF?= =?utf-8?q?ccdxg8lrCXUervD5Xax5s8onPSzBw7cOSxdpCoKrn7Pp5Vx4kMG7ouCf7vHt0Hb5S?= =?utf-8?q?/4AXuyHYOuqf6qgzM90lMz5O8ay9ysDofAhn8VQW7kXShaMZ6ce6U97Y/nsTO9Nwv?= =?utf-8?q?oLoEmtmMEPdt+1BwYyWSN1D0lhkvSAGICL9V5856WlHjb7dCDouroaC6MY2MtYF0T?= =?utf-8?q?VVlvhOH2n1ylMncMzYXi+i5jdWL8e9tgiQfTTPJ8OcKFp+I0hzBl1VkoO+FaGQAF7?= =?utf-8?q?PvgU4Q1uJ9klf9rRmiNmznPY/9hnJu60EVmvjoFE3yyvtb1eOomHTgono7GNNrsFU?= =?utf-8?q?P3GHncr9vNVpaPoTzOTthOEQHPwTQHxWoCM/WUWFLF0vQkJ9ygMYwVg99mwsnbimz?= =?utf-8?q?4JcRu7kVHFNI3hk6AozeV32Wvo8WdVIZMtd1Z5lRFRtAchjvaI8nkNGWaLehQ9x04?= =?utf-8?q?lCeDx1E4L/CqgLGLvMZNhcI79r0P095vWzKxLG9SGx7xmOgK1RZNYkPmwxlatyHXm?= =?utf-8?q?hZJgbwes1/VMPBkC3oOkm/U4Z1LM5Brw7EBZ1kTqycDgbnpzgwYGHp7zCR+8G3tFb?= =?utf-8?q?MvpGSa/GMCps9rTQKCVQWw4ORVr2FgxHX8XTZ/pOPg2DvRAcHkstGaA=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?KmWAB+raNGwiGQtEdxV6d02f43hx?= =?utf-8?q?RsdcKP/2O+RtzwGv91gn9qnnleu47hre/bfyyQXizFInC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XXdsU?= =?utf-8?q?V3ZmxzE1eKEUxuAWupCz/APswkM0zEEwoLaTahgz0500KJE3lb9DBpnfYo/3BO2Os?= =?utf-8?q?kTdtp8hpIXNJOMgUkZaJsI2yMtTxO5xetzWQygCtqJuAeklb78VqTW/AWf9z3DDPN?= =?utf-8?q?VTy7V+OUd4G5H7Z/gxUQPEikyfOkWFmqrVFzZNg9aqfbct7MruRk9zL9P9JPmsEcx?= =?utf-8?q?WPjPCQqQqsFwf9xfUNr/7G9UwUqmPveQVimT2skJOovdHcrs/2CS6ZnttfzIqa30P?= =?utf-8?q?2fuTL4JT1aBEVQKnhgHybKhaWdvK+HsS9H0yThydmCnq5u9wZlWOFgg0iCrkcUo17?= =?utf-8?q?T97JNMbqyzx6kytDAHoAOXXGeadhgFhvgGWqR7cebcZbQYEBytfTLvWD6THLMJ2N2?= =?utf-8?q?ep+51gSwergnhuhXhvAInd0ChGAckFbOS/cZivDFqMQdNQ3ARPmboOod2m5qdn47m?= =?utf-8?q?fkCbvbeRoDTxwoS/fQxvwbhBAuQleRUBSjfJOmKv2o8iBF6kyWSsvtXMvP5SzsPx3?= =?utf-8?q?HtrZa7Njeo/EvAlNo7IUA3zJaoYK3zYd3wWNwtPuqFNRlj1ChMasDcZE9GqDiNTtV?= =?utf-8?q?KngPT9witjkrTgevKgD/2KQ4GGjagz3CrA=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 50e25b67-2657-4993-78a5-08dcce8c6165 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 15:55:50.5299 (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: DgYOz8Of8+xj/T/zRoiC4/5I+5ErebSlnie05fi9KcrEYyWpC6BKWyR2Keg8D7xmEmF57VHSEffQPYWqk8Vg1QVKzQnPuUqECItP0lC2uT8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8319 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_085558_969812_5208D14C X-CRM114-Status: GOOD ( 10.65 ) 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 Add the tsd,mule-i2c-mux alongside with the amc6821 (tsd,mule) and isl1208 as a default device on the mux. Signed-off-by: Farouk Bouabid --- Notes: Merge after patches 1,2,3,4 arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts index 31d2f8994f85..56f87a603581 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts @@ -32,6 +32,7 @@ button-bios-disable { aliases { ethernet0 = &gmac0; + i2c10 = &i2c10; mmc0 = &sdhci; mmc1 = &sdmmc; rtc0 = &rtc_twi; @@ -276,8 +277,25 @@ &i2c0 { status = "okay"; fan@18 { - compatible = "ti,amc6821"; + compatible = "tsd,mule", "ti,amc6821"; reg = <0x18>; + + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; vdd_npu_s0: regulator@42 { @@ -313,11 +331,6 @@ regulator-state-mem { regulator-off-in-suspend; }; }; - - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; - }; }; &i2c1 { From patchwork Fri Sep 6 15:54:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13794431 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 16A96CE7B0C for ; Fri, 6 Sep 2024 16:15:02 +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=XGwa/A4vBTysDmSS40p/93vepDiajPAWaGAkELG3XwM=; b=xQP3CMfo9SNbxeHMsgegVpyM/g +G9ogkirJ75I+AteHWEJgNp2GXMg41weVE9TJefUAbV6h9sTkYTjFcXM1Bzf9+uCSt56j7NOJYvuG i7pKRJudW7MBl44otkywdPjAU6IPokUKC13QzL6dewga0JVe7PJwbtWx1luzadSkPNP6N43B78mQ4 F34mDlxO7XrvTGWpEF+79f0So+kEIEelxkXGh9l0di4vAAnczMNPCMe1Z0VBE9xgRetQle6fPMSva i2/+E8pZrGsK+oOONxT7Qr83vKkg9V1WGKygtnr7HxXoVvKUC2SuqgxI1yOaQP0KFHKzO4KPujXm5 tbmSz3NQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbbm-0000000Cusu-3jrp; Fri, 06 Sep 2024 16:14:50 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbJX-0000000CrJg-1VEX; Fri, 06 Sep 2024 15:56:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wSsVAg5lcpCpGlV3clQJ1LtzR5EleY8szti7Zlm8yL1A3OCsuI6o14pF2rpxAxwjK4EOjsi6zMsRbj2htIuFUZaCXDHpV9If2tCWu2tds8KdcnxRA3RSyVQMqzNCXaus59yaOcdKOwvl/m1RXTdUzA4Tg78zToQOzrndn4DCCdN3ErwgmGKaHYH6b3FQfJsuogFLujtQ2votnaKAUVb/DN/VCruzUrZJ2PShGXOCX8r7AhZbLlFpJ58w6RUZijUXtr5Re2pPVd+MEsRN8amH81YHjjMMmNzQvdheIHFvXuKo9ri9sEumCiWRDhJUX0F6NjGYIxrLJQOMvHfts3AvYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=XGwa/A4vBTysDmSS40p/93vepDiajPAWaGAkELG3XwM=; b=voNNhKaD+ElPqLKpeqOUXW/SqG0NmZKPUS3kht2YBocrvdXJgVP1RxoRBxiJbyQPGEqbUoSJF6LBqLudIT/GvEC537U08pK5VXZW0cpyRsLv5xxCfta9RS0lYwxji75+ebBxcwhyjRMvopl2adZ2HNcTMcodC5QyCKgxzfAp5lgNlLrXOuvOctEY1VvOK9wjmnlELx9C1UOFH0g19Uz3VHPozFgKNQP6BaD34mqU3dQDaIW6s54n3yUwSV64kpp84l6Ei6CC4DFJ+UBjVPTsDji6CmL3fSL6L/ceyWYhAjyxJAq5eVp1cR8jM9N0MX+GOWwG9Bqrx75OQM8WdHCMmQ== 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=XGwa/A4vBTysDmSS40p/93vepDiajPAWaGAkELG3XwM=; b=FIGZ8mtToYhraPBzZEVJHZawBI7OQLpgIYbnpPKf1sHPwlj2u6vHI+68rR4fUEDf7QG+jcQGIPgiuR/Yu9n3WFf8XkxwDG+delA6hr/2xYaQFEsLpi/qk3t+xlGFLLDlybuveumC8roDRZ7xx8zg+cvZ2DHRs/jfTdq/wiEcv+w= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) by PAXPR04MB8319.eurprd04.prod.outlook.com (2603:10a6:102:1c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Fri, 6 Sep 2024 15:55:51 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%6]) with mapi id 15.20.7918.020; Fri, 6 Sep 2024 15:55:51 +0000 From: Farouk Bouabid Date: Fri, 06 Sep 2024 17:54:17 +0200 Subject: [PATCH v8 6/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3399-puma Message-Id: <20240906-dev-mule-i2c-mux-v8-6-dbd28a150e41@cherry.de> References: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> In-Reply-To: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.15-dev-77eae X-ClientProxiedBy: VE1PR08CA0022.eurprd08.prod.outlook.com (2603:10a6:803:104::35) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|PAXPR04MB8319:EE_ X-MS-Office365-Filtering-Correlation-Id: c8f7b517-7e9a-4c01-b19c-08dcce8c61e4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?erIvO1m5uqD8dCa4nEteRW5qJJ+f1ZK?= =?utf-8?q?+U+a50IRWTrgooXYdvXYsqBywBeXOCoyoKCLElsToU5e50MWaTyiWh4ehS8mOZ0iu?= =?utf-8?q?L0oC79ZyPysm/mHyeF2N40ytDXDhDi4pF4nLYHauGnb1K38K+D1Gfvkc8zZjYE0t9?= =?utf-8?q?nuy+LhWXDKDsBjXvAXs0BwsK2MIbLVANNLCd66RYot3unTWY4pBxA6/sCQqrcZtA0?= =?utf-8?q?J/xM5heLSDt0dJBe5rKIrbGnZhQ1N8saRNyrMObXbOWXHy1RSRPbJ4pyw2GZV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Rc1lYESxKG01?= =?utf-8?q?GhnGHm6UaxqUfFuqpej4cRkvlwli4zbSmzLfZxsprq6LAkKEBJAcWo+HQqmdbcj7r?= =?utf-8?q?zZ9mHIOX7VhZV96bwgru5KzZg5m5PVdA0Pp/3DuJTMxnjjuhx1418SYppbYAJ/q0p?= =?utf-8?q?vivpmh3b69I+xiHUUiP4EXUaB02E7JmmxMaCxBFAIDG/B/0DuzTzP2005cpHC/tBp?= =?utf-8?q?j9RtRtj3PnzM4rn0UriLybBsXsfi19kns5hAvZJzVKvuJoweD44p9rk=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?WR4fkGP0T8zRi//Vn/6Kurv3j6Sl?= =?utf-8?q?C+mOa7btNIwclP7a+Rfzc5av4RtOho37wqrWinGPZBHOCyspIb37zfurw6mMVe4zo?= =?utf-8?q?UWa4imu4MP3cxi90RJ9v1kKn+fukX8UFfQzdZG/VVm/v6cfuvT1Rs1KwMAwHW/Bn2?= =?utf-8?q?NziE9iFtGRmvW+jPn/h6QpH3wVRWG9cTglxzqccY6+aUBfOukab73i94UEJBVHU90?= =?utf-8?q?gcgj+OgLjRP7nkOCUXERm/SF6t5XAc6sCg92S+7l2PA328gtaUA/28vvMZ17TChkp?= =?utf-8?q?ggQZQluxQsQm79pEBM/+RrcKW3FZmnIgxk1Yr8VJQp7asFO5OSDcmLDMpf7fCpuEX?= =?utf-8?q?53Dl+pCJzFhH4q8zKzMQkYNdNIjlq7V5im6pR0dVRlUma/bRejGJ+PhmwYAup0L0v?= =?utf-8?q?7pvImkJGy+Tiu1rcJu0dDZZAcpPxG8l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H+suasPx5DbkX2EJZ?= =?utf-8?q?XDJTZkspMXzxr4hAzPHraGyxojpg3AyeiHg9hDQpcXdD+4xSuVqRFhAJFsP8cwwqE?= =?utf-8?q?IJFQ/Y4F32CVwdVQLhVnemMIQNMJprxmIOO0VMMRMsapCJ5blqL+qbZO46wtzzPee?= =?utf-8?q?7c4rcPYVjMTxQR2PeflEJGy+19NJWyQjb4XWzfEWOxCyxW+gmCXN57c7FF4ikaiNi?= =?utf-8?q?KDsxQaxIsnUgI3GX6RwSlGJt7aLwT2xy4A=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: c8f7b517-7e9a-4c01-b19c-08dcce8c61e4 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 15:55:51.3589 (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: MLZRHxnxkZgKRBy7WTvoO7p4OlUVfTefGrwce84GQmrOanUNe+5DOapZJpbpncjxul1BiVl6nhsyLzXyATlUzH1HG0mrXw1wp1oAW+oRJ14= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8319 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_085559_436872_C3125353 X-CRM114-Status: GOOD ( 10.75 ) 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 Add the tsd,mule-i2c-mux alongside with the amc6821 (tsd,mule) and isl1208 as a default device on the mux. Signed-off-by: Farouk Bouabid --- Notes: Merge after patches 1,2,3,4 arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index ccbe3a7a1d2c..72a0bca57385 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -10,6 +10,7 @@ / { aliases { ethernet0 = &gmac; + i2c10 = &i2c10; mmc0 = &sdhci; }; @@ -378,14 +379,25 @@ &i2c7 { clock-frequency = <400000>; fan: fan@18 { - compatible = "ti,amc6821"; + compatible = "tsd,mule", "ti,amc6821"; reg = <0x18>; - #cooling-cells = <2>; - }; - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; }; From patchwork Fri Sep 6 15:54:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13794432 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 362D4CE7B0C for ; Fri, 6 Sep 2024 16:16:00 +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=Z7X6VHwyc7ENIxUNFQ8H6ZqCtiExpK5STM8GkBAPxkU=; b=qRkZtq6cxcqCko47oILGUtrqv7 wdJgOOvl/PtWJSCjXZMBHB1VKU3aqQRpEIv5Y0Yf1O+wbi4gie1CaDqojUgr26xhl/k1o2xdWG8GV ReApLeT9D0PBCfwq8hg9M68v50aHqKLCrzMYwNKy3GN8i7zD41YqFrIkaHayZIywU8LXD0J451hZP QaiI2aybBQ0cpqO3HekKancMaS0vaGYETbMYxNY0IaYwibcqhpjvkfg+jKma+TV1JjldM7FYO6IeC deKdZVc1A60+RsuCUt2b+Ly1pfapZXcf+/Mo+oj1jYQa4t2HwFQfxaeVgWzpHXv51P4PPLZpVdh4c aouPwbxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbck-0000000CvAp-4812; Fri, 06 Sep 2024 16:15:50 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbJY-0000000CrL8-2R2I; Fri, 06 Sep 2024 15:56:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JDV8WwVykZ1uhLnsFn9oQM8PG2wAiOhK+GKo1GKxeBhHMMpjFKLNRD3OsLOGTWf7xPQCQVrNTsMH2xNX/BtonmMGdcTKuw5g3++lGHGPspEcxeYSCcqqg6y9ruHFTkeEW9Rc4CM2UGjo21+fOTZiXTH2D+ES9ACaBkLMjPFFCL9pHe0+b85KDFr7oTY1Fr3pdmJ9jR51EH9s257xY1tYabPoFik8mr9IZfvl8dyhTllTK05vTwbq75ZrtGlxfyMUNBwXnZEyuYGWsXZAvFcz+WukLI7YpoLFlnTubp26RfPmNz9RyZQoNyy16JrbChV++AhrhyrWhMNSW0KZp0BYRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=Z7X6VHwyc7ENIxUNFQ8H6ZqCtiExpK5STM8GkBAPxkU=; b=X8ZI3MzoIgvg6Ff8ZOg+ZcNBqr1q8uMy6dBpIJHtXWlB8VORtV88q5LcdMTOmPXR5+ROiKBzB9d2S7FIbYGbIjM1T9oh5JYc+/dPYJfkOfXDE6Dilco/ofc3FmaVJkZvQ/dlJ8nMuKNhvF+09qCUmNMhdrXARRatFqlf3W69RrmbZBJDHJDtt+PgAqmGWthGU+WnBvern5nLS2xlcnRY9U8ccNWxK6WDqHYlp58ymKAmAuM5tjwacDZbQ+dPFz21egd0iCvkD0rHjklbOfaTqFgJ6mkIs42zbYXrm1PKwMIrOPJf3QTzyOCMHOvL8Jw3+c7H/sY9MYsTBd28VP79UA== 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=Z7X6VHwyc7ENIxUNFQ8H6ZqCtiExpK5STM8GkBAPxkU=; b=BJozGZPHUkkcsXa0jW/NyBVpw3E5tebUb+dMiLK0AzpqVWOSFoQqrlzZd1XotVJTR3gT3U7F/la9LGutZ2ITMQjkc7VkGXrTtLCeY5xm5BMl+iYy+bZgUQ3b8gFv/J2Zym5cFkIF1/fUdvtKt4obhGDIIPksFjdcFpq3HBx0bgI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) by PAXPR04MB8319.eurprd04.prod.outlook.com (2603:10a6:102:1c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Fri, 6 Sep 2024 15:55:52 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%6]) with mapi id 15.20.7918.020; Fri, 6 Sep 2024 15:55:52 +0000 From: Farouk Bouabid Date: Fri, 06 Sep 2024 17:54:18 +0200 Subject: [PATCH v8 7/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3588-tiger Message-Id: <20240906-dev-mule-i2c-mux-v8-7-dbd28a150e41@cherry.de> References: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> In-Reply-To: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.15-dev-77eae X-ClientProxiedBy: VE1PR08CA0022.eurprd08.prod.outlook.com (2603:10a6:803:104::35) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|PAXPR04MB8319:EE_ X-MS-Office365-Filtering-Correlation-Id: e1030996-48a3-4e8a-36ba-08dcce8c6263 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?bLsOpZ/JxixfOzDJEnqzEUTmgfWPBMZ?= =?utf-8?q?c6uWM7ZuCzcQaD/oLooKPtqDDOO1VCdjBhmsHCf8NmWmNQRQBvidU4jJlb39MNYMy?= =?utf-8?q?PhM4gUBw3YRJpCCNNmhh6CJcPLAqxszZe5peqRCFzZAJ44r01YhnPSMHidAPKI6ka?= =?utf-8?q?lArfHxqOif4ZXc3ZQ7M/B3AzJncJ8Dhba7FY9OoChbOFnHOMVvkpm8Zrh+gQ+pWIf?= =?utf-8?q?jPPjW8odOdo+VFDWnOMyUkdnS+wYAt5i1pQCB82jOjb5ZGx3VBr1MH83Z7EkLJy6t?= =?utf-8?q?jUGc1v6h3vN3+edhAOZZOQNpzJmFaKq2/jsj4bjf8ZSpjl0dMCUpSuHNWc/p2/1gF?= =?utf-8?q?tnoKQXcRm2KLvtznHCkGEeybX425uc32NAeRGPLsx+LO4/82So8aSnQW8g/1M9FOf?= =?utf-8?q?ao6AkS7g8vJo+SE6fFnFk2hOTl2oUFMcp47QIC/7WueUNugyYkmvHLY9orCvomcc/?= =?utf-8?q?9/hWuUqZEe/NJFvnbIdys9u+JD3pNahTkKRuQoy0J7yoMN7LF0zQTZxhyar8lD7Je?= =?utf-8?q?dcE74I4WuwY7bosZA4abfbhF1RIQsm/KIE8jq7QOEvHroEbA76oJ2sDXHm4aQV6VY?= =?utf-8?q?R7AGOR+7yw819pKoAtYGZjYrsEpJYZBaI8GCH0zmHQjRNZ8jKnJt+qGceZ1rhXYX3?= =?utf-8?q?jg5Nm4jyQEHlpu9gbhXTXWIS+YT7DgRZtFuKhGRbZ3RCCWAXMEjbzH7tJ80d+my6H?= =?utf-8?q?1isB0ZVMpC4v6CRG5TMMOqVgua6jHOs/VL8bh5/7ASpSRY8ZibS6Q0DcxwHkNbKr2?= =?utf-8?q?GLyUvMWeIOChs2XHLxegU4S/1hTD8LWz+TssYMtSSydyiGB88EGPLWl2U9B2CqtBN?= =?utf-8?q?dMR9WxXhswnCneMxFcDC4eKGSzjLh8oH5HKIt2aaPhzhMOoeF1Plabbyn2kHsGLgh?= =?utf-8?q?JzI0pTutxmNJ1Ug8HD/Q43WeBpWr+orh1G1H/K7bGIhwTU1F12VlXt8pAjBs51oSA?= =?utf-8?q?HR5h44Eqr/EFSuLqOd1iG05S/KS5vdJRWf0M/SmB5zVLfUvXAtcyI79rCvS2D+vBW?= =?utf-8?q?7J2O0+oQFjUEJoxcUCH0M0f7nkGswPqqgdKFH7G4tFrTLqDZYdbYYkzh3gKCAPD3O?= =?utf-8?q?i72ephyCY4SwvprHFo7q5PttL3IdKzgoD3Yw5WlD0Y3zwwYGe2cNpyk1cj95Z0HRp?= =?utf-8?q?/qHpLfsnLaJCtpkpVALfjvsPYdyz2Gjr1aQ8DT78j4fe4Gnl4MVZJlxOAr1arCNlW?= =?utf-8?q?ycd8nV8ZbZ737cZCRPAmYMqSaHCMP55miL1awGowjeRkJKRV+WqYR+FsBzQfY84s4?= =?utf-8?q?gSaVi1lCiZ4t9Pod2sfeZ+ryHXQ6mHv/aXAADDCeCdmhm2jtzhbfMYH2jVhSbxobj?= =?utf-8?q?D01EprEK3TGNdga55Yjh9gj1t629/oCEuU4WNFXtAjZpaG/m5GGXC0Y=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dkriVj2amktXaRibx3bjrm04m4yz?= =?utf-8?q?OEpRVHS8gJDJpJO46war0L0StmlYt8AeeixJWdEbpasEAQ1pPizzmzIoGbVuSOMSx?= =?utf-8?q?BFVwQ5kycI8T+xAHOtBTMvsVW4t0KMD1pyY1Ty1pFp5E5CYmnF4zPO808A1pkUcCp?= =?utf-8?q?JRV+v2+qYOfRlFyC/6dwUGA5FhZLFTcdeT3meVUJQtjBWV/nops4VG5V7LTNcSgx2?= =?utf-8?q?yiZfQviOVumGMqmviJVLHxb5HJXe7X9h4iv7CalKUXwU9w2uEYIEjJRd36o65jWRp?= =?utf-8?q?hoCyjtMPg1JwyGcXLCsnJplBw4LPOP0fslZkCEq2coXZrs+u7G+83yujJeb8lbHzm?= =?utf-8?q?FrkjprkCF118bu5x1gGohlCB3G21eG91hhzhkznP9Z/wkQ/ZXjU9UEjQgZikgq+uI?= =?utf-8?q?O3CVEeHLgJiKF8yL4kDrSXPpD70RKgmQyNtGViZllJ/d+FzS1R7ESZAdiVGbKb5pT?= =?utf-8?q?Z1WrKvQUSviRXZAAywV9qcf+jAimgg366NWk9bVerd9+7sEWNCAFXhE4EbDaTBxJN?= =?utf-8?q?fJC9vIgHIID55FFADAzkQBbcQmFE7MIwpuFjw4Cjk2Yh6REE8huZBs1SPerLMKsVB?= =?utf-8?q?Ine2yTp9wDq3DmmN2+6kyvcBPC6AEYcHyHo8Ubc2G25WOm9chVzsYHpoVk+e+jpKX?= =?utf-8?q?gKbDqDgqtrY9upXRIc1w937kT4BytxxK3KawMf/lY6YrVq9la29EZhrc+iRS4I+CS?= =?utf-8?q?0sQz581rl9PhEDvo8y2oWcqc29IevN554yRseYFFPWUwfLp5AxvEBgbLaV2oQrOn7?= =?utf-8?q?xr0PDSWDWpQ7h/Pzh4xPbV8CCLDet7k47t2TKlYJVvUrTJuJzgRyD6XB1fvl69zx7?= =?utf-8?q?VrDwItgofyrUMWwmOWfHxdYyspEa3wC7yavMGpevhaXVLaO2kaQhDOTKG8r+f9p1q?= =?utf-8?q?ltmijQx8kWzE6gVf5lTTZMY6YM8LViAfLqpOc2a2b7qnEbZZ2ZfIXnx2/Gui12evE?= =?utf-8?q?YDA89A/RG0XqnZE+8RvTs+Sr6BkPnQL3sTceZy8Y9PBuB8thoRZdIqxxrYjxg8x2O?= =?utf-8?q?8HM3905KHfPzhYiuxRYDK95JEDdVOfO6W5z2MVIqvqFr/gD9SHzf6vBd74KMHgX+4?= =?utf-8?q?6tRS7tTEoYF+Vb0SCAKVQJLlkqXs4jcXceeBeM0VpTdHj6HBHK1ajSHKXN3wLpbBl?= =?utf-8?q?KRgI/aW5UUc9vN+acC2rt4BgsR2J7MQ666rRnw2OrD0zQMkHXpilwXpumSe0zBkjL?= =?utf-8?q?abd9evvUOP8jqaJs8UGMLbvxXotlYReVd1X0IcI1JgLVJfV2D2tw7mzjfphLfKFg+?= =?utf-8?q?L/HxZ3SuTD1aKwrHHpm64YUNKA39XbjUYaVEErnMZjAZfoGD4rSOMjViZ/g3GZioo?= =?utf-8?q?Ka0XI5ncc9jLYarVnyxgnin66MoAV/Fkk8CLEWRmcYdZzqOyM835xOWNLeKpCcVgj?= =?utf-8?q?QfZ4ExFeEN8gUXmDJKh1jp1I2xpGfLX7pn1XZPY+1k27pdbuacs5TxB/yr/ODFfzs?= =?utf-8?q?IzCnmddBa9O+VUU5H5WfT9PQSvN/M8Cs2FZnqpWURX4VYWq0MFvxrIP2CGfNAX7+t?= =?utf-8?q?pRxeUMmdgGIiOs+p7p+zMmaAu4IJy6aYjg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: e1030996-48a3-4e8a-36ba-08dcce8c6263 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 15:55:52.2147 (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: FwAAzsk/FgiFW5ZaUoXGd0qdTiwAG1ggJk7s/5Jl3gW/Sw2u3ZJon6DET6fK0ShJwjI5HFGdIJGXk/aWWhpgFGqIJv8bHcDv3Wx5LgEKc/s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8319 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_085600_665488_2BEDABF1 X-CRM114-Status: GOOD ( 10.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add the tsd,mule-i2c-mux alongside with the amc6821 (tsd,mule) and isl1208 as a default device on the mux. Signed-off-by: Farouk Bouabid --- Notes: Merge after patches 1,2,3,4 arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi index 615094bb8ba3..a02f1178c60c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi @@ -12,6 +12,7 @@ / { compatible = "tsd,rk3588-tiger", "rockchip,rk3588"; aliases { + i2c10 = &i2c10; mmc0 = &sdhci; rtc0 = &rtc_twi; }; @@ -224,13 +225,25 @@ &i2c6 { status = "okay"; fan@18 { - compatible = "ti,amc6821"; + compatible = "tsd,mule", "ti,amc6821"; reg = <0x18>; - }; - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; }; From patchwork Fri Sep 6 15:54:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13794437 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 E4199CE7B0C for ; Fri, 6 Sep 2024 16:17:33 +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=V1fn9iDRBSjSdXhY0cbjh9VmUKMYVtZKCtUPqs0YcAM=; b=mxgz5cyoD1mswuLYH6eASliA6y ihOIyCCW9U0ONjUaJKVPTe7E1KKMJbqlq44vEAEH2dT4qNy7eScvNL8LYESzSc1jrb+zxrGtiyzKd 87ar27GCCcQnEUNmRypFF8R+BBgPPFm29sTLkUO5BAaxFgS4bj1kX0QH6rH9KzdWsgJBhHxDRnMT6 xfcoDL0djsb/2hgq50gjMbDWKEjsCcY0s3gtUY0YmQwj9VPSHzkfpNFtMy66KfUM7ipWtB4XGpIw3 Eprp2RIVaBVq6eDMjXqhQqUWoSJoTcvBID4+3DgKP6BchxOelCu6uY+aNC+cUQOQAc/XMmR67szJo CF/qVasg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbeE-0000000Cw0E-1K9b; Fri, 06 Sep 2024 16:17:22 +0000 Received: from mail-northeuropeazlp170130004.outbound.protection.outlook.com ([2a01:111:f403:c200::4] helo=DUZPR83CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smbJZ-0000000CrJg-0ccZ; Fri, 06 Sep 2024 15:56:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dYLJVB27Dez73Ct1HKeg0Lq9cPP06Nr+9TwdVaJkVADsoe5edcf9icU/SG4VuSqG0qyUG3Miy/+zm5C9WytgLLGIs4Iw/d31ZNvcrAf2ZeuNbPQlSbCr7duvDVzln9ImzrqHAMz3Wtkm1MecD8vHVYQxEWxi4gVVaMl1w6x+l8q/Nb8QlBQM+HcQR4+ytlp8knfsgqDMnVoZLJ8E7fin7WaIJLL6NbH06yHFGOHZLml1XapxLAAu65PK8/BWGbBYW1LE8oz4ebZlL1si+dm31SLcsV16cs84kkt58BYMKys4r/MUUdMhcHN6N/3KPjhOV/6IkjhCZ3uB6JZMd0+zPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=V1fn9iDRBSjSdXhY0cbjh9VmUKMYVtZKCtUPqs0YcAM=; b=K6va0orL+/S6Sm6FDtSG5avnSKelAIU56rqCeORbXTlwIk1cqmus/NKZu9oBIF1wpDZQdQnkynb9fQ4vUZF/6niKsKgNMq+lTkPaB9LQW8SlJGCSNDm7DB7PpKaQR4tgdP0QRzu96XUjsjMEAItWHfqhyuSxOK43zUYj10nGUMO18GgeSP9baOYX8aqmm+hYO/debmfPe8NA/0ykKsKB+odnPvvJT2OXQ+nOxMeTMrYq9OpbOXE7hkYeZzaxOh7rw6dip9g1kw6ncxo1JeOVAdKWbZTasEzAF81lIiFSCgOh6icIHF8kVdipiF/v9+z40HzJXAQQPBEwDGdSc5Y1Og== 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=V1fn9iDRBSjSdXhY0cbjh9VmUKMYVtZKCtUPqs0YcAM=; b=l5A4FmrIVyorySOh2fm9bvIgVsUxfhTXrcaV98dUcX+mmKq1+XukzZqZwGgn9Bmgskthud/aU42/cmzHH4tDkAL8UvesqIiNXr52TXAdXZ3BsA3DNeOFLx/M8fR/R3xLvHLXQRs60elq+8qVeoHGADGnoytXk+o8jNhZQEf2N5A= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) by PAXPR04MB8319.eurprd04.prod.outlook.com (2603:10a6:102:1c3::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.17; Fri, 6 Sep 2024 15:55:53 +0000 Received: from DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181]) by DU0PR04MB9562.eurprd04.prod.outlook.com ([fe80::ad4d:8d53:1663:d181%6]) with mapi id 15.20.7918.020; Fri, 6 Sep 2024 15:55:53 +0000 From: Farouk Bouabid Date: Fri, 06 Sep 2024 17:54:19 +0200 Subject: [PATCH v8 8/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on px30-ringneck Message-Id: <20240906-dev-mule-i2c-mux-v8-8-dbd28a150e41@cherry.de> References: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> In-Reply-To: <20240906-dev-mule-i2c-mux-v8-0-dbd28a150e41@cherry.de> To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Peter Rosin , Jean Delvare , Guenter Roeck , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.15-dev-77eae X-ClientProxiedBy: VE1PR08CA0022.eurprd08.prod.outlook.com (2603:10a6:803:104::35) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|PAXPR04MB8319:EE_ X-MS-Office365-Filtering-Correlation-Id: e07982fe-44a9-46a4-c44a-08dcce8c62e5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|1800799024|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?6i9xz0+AZ0v3LcKe9LtEuW66CkzUNfN?= =?utf-8?q?zUafeQnEwiFE1defiFcvHfUca80UqRTQVw6PLwVOHkYfqAc8ZgsE78UaPkrRBWoeF?= =?utf-8?q?Mo/DGUTI1652EjAte6gCTmLZ0AFRmmQ2VUV+rimpxx/y5Muavw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XmrPvRyC?= =?utf-8?q?rNORx0z61EIMOvar0mRpjN2YL0vV6mfTXhbIyuX6B0Cx+Na2onueLAfib6dvfYdDj?= =?utf-8?q?/axiFu5E6EBmdvgzD/WO1BSdI9uWf+fKF1JA6Go/cWvesAiwsh9zEIiSGlt539K5l?= =?utf-8?q?44Df3Xd1CXwnAMjnYC4eS+jzY38VJdAuAkNsCYvFlIZ+0C6NVVSUAXojb6cVUnUu5?= =?utf-8?q?+Zcoskm4Mffi18avLaSQr/8kS04AZG2yyV3GoO4qJcjiZ32GMzN4oZgMKWgJxLMGR?= =?utf-8?q?lhK6jNiC7l8H7TNn2/bIJFDo7zegGjkvtLNoESxWkXsxxJAF8U17EFy+Knfl/qwmi?= =?utf-8?q?943O2DMQ1ThIqHyXERalU07Tk02K6Cyi/IIxXJA0raHT0eAxvA/R5Ag=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(1800799024)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?X3Af0LPZHXUdo2giZKwIIPpfS6IO?= =?utf-8?q?cIvWQv14rH+Sbb5Ckbo1mAE5K7nXODSa/dPmWmCTUTG9udFzY/AphwMrNAzDE2jxh?= =?utf-8?q?q/3XImVNmlV/x8xH4KYCbXF7x7dOLk3hsm/MWoqSIpeSLtNltYf5bmhTEVUticzPO?= =?utf-8?q?7QGZhuHT82sfGIVpDRG8n/gong7buTEoO/ysydiT/scsKFFnA0vPu8z7bWLsFvk8W?= =?utf-8?q?9WknwkLPmyVaNv4hE+Z0CBiCnEfl7PC7ITlppCPfWExRDskxoHtRsZRiTgiOF2aHr?= =?utf-8?q?EajXaGgx7aT8uNLor5t/1Ecs35sI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OLgYaaUWUEPoLB2c0C?= =?utf-8?q?lqkdTHKvXu5EC2ZMw6kLxxTb70KRY4OdTK4JWdIul6QLwZXGqTQAhr3AF1wIt3CZF?= =?utf-8?q?WRf9fcEPmVQZJShix5dACEMoS0i4Lx+MLPNkkRgElWmh0p+izFqUHDQclJwvbG/Q3?= =?utf-8?q?Ys4fp/8E00V8q10hqne64cnLs9PaYMHHP/zLefoNvf6xTUojjgUlbotDThjWjBTQr?= =?utf-8?q?dJEOrbNLqPlQz52fD00Hjmmu89UAOS+CNFVpnNkWC+tMI0m+c7LGUXXbwT14Rn3xt?= =?utf-8?q?8jwxI38IuBMZkTBJ1xHJ6I53uTDrnoVR2iGjzMcztg1MFu0OBMk5/HbP/8xDM/xoz?= =?utf-8?q?dk4vZUlFmZdKCooQ/CvfmwigtBCtDCBh2w=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: e07982fe-44a9-46a4-c44a-08dcce8c62e5 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Sep 2024 15:55:53.0505 (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: E3Vps5GHWs7Y64NjK1OqU95uVd7iqxTWYgIPpwKwy3z1DOl3cI9jr6ccf/ZcN//v4FTEsjhDF9FYbGAUejzPyuBOlRWDFiXCuhngDh6sef8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8319 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_085601_228783_CE5354D5 X-CRM114-Status: GOOD ( 10.63 ) 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 Add the tsd,mule-i2c-mux alongside with the amc6821 (tsd,mule) and isl1208 as a default device on the mux. Signed-off-by: Farouk Bouabid --- Notes: Merge after patches 1,2,3,4 arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi index bb1aea82e666..a683ed3e2fce 100644 --- a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi @@ -9,6 +9,7 @@ / { aliases { + i2c10 = &i2c10; mmc0 = &emmc; mmc1 = &sdio; rtc0 = &rtc_twi; @@ -292,14 +293,25 @@ &i2c1 { clock-frequency = <400000>; fan: fan@18 { - compatible = "ti,amc6821"; + compatible = "tsd,mule", "ti,amc6821"; reg = <0x18>; - #cooling-cells = <2>; - }; - rtc_twi: rtc@6f { - compatible = "isil,isl1208"; - reg = <0x6f>; + i2c-mux { + compatible = "tsd,mule-i2c-mux"; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + rtc_twi: rtc@6f { + compatible = "isil,isl1208"; + reg = <0x6f>; + }; + }; + }; }; };