From patchwork Mon Sep 2 16:38: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: 13787486 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 533CFCD3420 for ; Mon, 2 Sep 2024 16:40: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=RCwTHAQ1cEc0GXde8bI3GSIIwTdCFFNxe1VCE+y50ww=; b=LVJa7S8o9+ChtOzLXo7UZRJvow DBi5WCuXrI8PLdNneyli4NstPQ4ns21EkWSqBEAmoYGYE4U0z6j233YCCGWZ9IAEKuuS4v5PThmHA eV7/BDS+hxXlGRAequ8ZaTaH6Nf47t9bAM3egkZmFF4ExlNTly9WKnFD19M8qwMPCmrHrewgFt6KP ifBmppIi2Y2ltaiIGG2KnRCbv3A5LbpV0ifLXD9rMklMBvraacDX24y6amm7jGmH7h3o67EX1BlgR zqcmkbD/c6CewyhB0OuksE8xib5PMQSuc3qJSkn1IT1Er5KplKMCFuCA7bCnAXFk/QpoYh3UxQEiY JaCCAeSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA6a-0000000F3Kv-1cft; Mon, 02 Sep 2024 16:40:40 +0000 Received: from mail-db5eur02on2062c.outbound.protection.outlook.com ([2a01:111:f403:2608::62c] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA4i-0000000F2et-0RQZ; Mon, 02 Sep 2024 16:38:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=b+CBAbf9qtrOLnLCtD2iu9pYrUJd8IiiZ+rvpDDFoMrAsMT9CfWxzhDfuNZasIENpMo8swEvazMtLQch/RC94oJPvojZFtFrGZtwt2CcYOsnDjWVzTESpQoBk9/l9HVNfLhzWECo9qCgcVLSwR3Bhr5+2gdrud5RKsNECtPPimT/Z9iyomZVTqpjjGDb7bziS1uS70qMnGg05O2Ne+jjt/k8PCJigAgtPB/bxhYUO4JkwNydfp3DfzDJeqkJ6qwJgM94zKhT39MzxH+G3x7ZbnkWUzm4dlxpK37cxrHh8JU58KwtXPY2H1hqja39P6IALWAHD54cNDzosHG375Oe/g== 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=ojL3Be4ZZV6lI8hsM6WLzVl48vjpat8X80oXTM+s+XhzV1joPCYH0K/8wXRHiU1Tt8Ih56sjmMo2BDW2w9zNI+qZYKPKcjWSNVxa+Mqqxx2hUABojcqL7QkhKhxV6B1FD2+Pf7Q06M8zFkYvlbcufMN/ptt77ClsH1RGI5ryCnhpvBiPYf4W9ALKjEMFGdD7IgL5gYiDIcfZYmryfLMT7513qIkUd4MAN0MMX0g/woi+0K/9Xqsfg3P+VvIkQrln9VRxYoppo9rHA2gzOZ5FIKmvRpoQyHlddyVdVHqWLVf/rZopTzn9vjPi+IoI0giWY6reIiWbgEuz9zWEYtrQXQ== 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=ZDQXZaZx05noz2z/2FTTWaAKDZwr7KyztwvD6MZBb97d8rUAeW42NPnwtzO8tXPTpQqGFcuBs6/Zq4jI3li/23KdJJYt51ZNjZHMHi9Xuc7JeEeZ9zGNqF6QOk9ertzEmd/Vlnpsl1Ii9gilQzoBYT8/VV0t1veKxRbGwcxbRmw= 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 DB9PR04MB9645.eurprd04.prod.outlook.com (2603:10a6:10:309::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Mon, 2 Sep 2024 16:38:33 +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; Mon, 2 Sep 2024 16:38:33 +0000 From: Farouk Bouabid Date: Mon, 02 Sep 2024 18:38:14 +0200 Subject: [PATCH v7 1/8] dt-bindings: i2c: add support for tsd,mule-i2c-mux Message-Id: <20240902-dev-mule-i2c-mux-v7-1-bf7b8f5385ed@cherry.de> References: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@cherry.de> In-Reply-To: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@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-99b12 X-ClientProxiedBy: VI1PR0502CA0001.eurprd05.prod.outlook.com (2603:10a6:803:1::14) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DB9PR04MB9645:EE_ X-MS-Office365-Filtering-Correlation-Id: 43064fc0-cf52-455b-2cfd-08dccb6daf9c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?c7qNSrZ8/IEW5Kt/yB0LuJGconcrakh?= =?utf-8?q?6G38sQ/H6+DUcCnpHHJMdXza53QvDPiSgAp4cQXZKhJvnBK9gxcEpeMi+f/m/fY1T?= =?utf-8?q?qeDgI8BA4zzSYyThDfv8VXLUrcxLmQ+rcLczSZ2FZjgmWBRL6B8caahbWCPz61tdd?= =?utf-8?q?9eJ666aEXymBGYbvNsm0pVXVZgZ8/yP+F86ULJEwH/E5bMPS0YphdodcnZyCCOSth?= =?utf-8?q?VCdsPRuLzib2h8Wvu/nPGGas21FHYRlBAh99J+3/i1aPQgfBFcpuuedrprrKmhExu?= =?utf-8?q?ZdaBkg/hbOtYjpV7puh5TszwkcAW0Dh8A91c1ZOwBbyyRiaKqIQV/RgeV6MKLbgkx?= =?utf-8?q?FCqa0hOdxjKS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Vc3znnO8yRowA8ZdHj7gHHrL7cLY?= =?utf-8?q?TUakMMcExMPOkaHG6vOBijC0eatVyldK/AFQAZgwwc3KRVjtgKaMpnL8=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8+XER1LDoYz/XoggFPxkukduw7Wu?= =?utf-8?q?ILLD8auYOXknLqg50C0Rl4hokHnnNaBbUFxPPFg80hN805gTKcrdGnLrAqAvqWnCU?= =?utf-8?q?PjSxrCDD48+aKw5n0nWnHdAcufWlB1VRNARP4ikuRm+pRNzevF1VlD8u0E4i/WaNw?= =?utf-8?q?DVtJh2BfPPOcVytXOaRuJtGLgtMyj9/a++rNXpQtEwZNOJrswSXW2wD/ZDbsL9O0L?= =?utf-8?q?7auBvjHY0WJ8ZPtMsG8XJPVvFX/GtMfEVQj8z1lfb4N9hPECqJLb1+ylLwdJgEj+l?= =?utf-8?q?q0gpYBxZcFvuiyLeU6MCXJeGq31G9zHRpZPL9yhcP98ddbOBILzFrBj0j4gsHr3ae?= =?utf-8?q?Ll7NDvzEyms2zwLtQ5h0Z2SK/wD+RV8xXKBlbqH7jne+WIDatasdBhdtiRDrKa8Gm?= =?utf-8?q?9ZNTV74MzDkX1n/bcV/vMEy4uoGEbwxSRB2L7qG2ObxxGGMgk0P/c5/HfawsRAqCl?= =?utf-8?q?b1HOpAr/3pd6jDHN2x4J2NQuMYACPNf4jSVfOknr0qZPG06pEu8hTsR/FfLyDDT3f?= =?utf-8?q?mQInI6nKtjDquyxLktDKP0SHsSGmPDnQ2pTJ43x1v/jcWlUoLjEJSKimYmUqjM5iw?= =?utf-8?q?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WSndL7Sc4SPOGxwC+xNxDF6DEDBsnekJixKYqESrYOMTOHePkWqCILa6x8/y2glxL?= =?utf-8?q?hDjOnGw4gNinJTIn3g3i9NP12bAydaVDGQ=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 43064fc0-cf52-455b-2cfd-08dccb6daf9c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 16:38:33.8561 (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: IASnpBhMlf3nXnXArPXZ89HTaWVk461BbMkA8B6Sd2i7wSEhrQPhsjhIaS/AKRvKfyGO/2gPJjzyMJ+Qe2iynIlEu+2XQ2kDsMQnJ1N17lE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_093844_191856_C0219BC1 X-CRM114-Status: GOOD ( 12.15 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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 Mon Sep 2 16:38: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: 13787503 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 67982CA0ED3 for ; Mon, 2 Sep 2024 16:41: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=q5tx0eBjaPs+jzLt8qKy7npTDYjrv/tRY4RyjJUxFy4=; b=0aqMGgXtnD7zLPxbaKzt6ORPt7 IxMxoTam+8uZiH9f+C3G+SB+YzBLrwsnXHkwQd8/vC5ePQl04HU/JLcxQpUWTn7nNKvFGXl00WZw5 Czz7q954yHkubU0UNw6r9/zTqbCT93NXKx+er6W+Rcg53YbqBJODJLZJPyAdXpo6jh/YePQwS12eW QLgCszjfNyAxe8xSnzaELSUCRWrEP/s6vmjzcBPeTbVPANkhfj8aN+d/Wa/WxK6rmDxUKtmWzEY1e r3vwGNkhi12JgdCUT069b0Dhk3JeRc+amJ7EMqj2TCM3hJZkvOFmS3fh/JxaCK0rI4yezaHr4Cp8B u2XP//aQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA7W-0000000F3e2-0EcZ; Mon, 02 Sep 2024 16:41:38 +0000 Received: from mail-db5eur02on2062c.outbound.protection.outlook.com ([2a01:111:f403:2608::62c] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA4k-0000000F2et-2cjL; Mon, 02 Sep 2024 16:38:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H/Dh5RV+5nJF8BXFSx4h5BMbjF1bAas0LVw5W0LczmA/SBJTO+j1+jmIf/DRP7W2vRoCHPXmE3M1/nUO1XIkuAna8uswVbq0E/FrJC69TxckDdp892bgTEG/VNEI2hXzA77Pv6ub/18fg9AgecNPZ1ALSCZXQHc3monzro7vlCQb4vQmnxDjjBWIYh9hbQfmPscwDJYmZyxf6GGXuUjCL6GgBJEsZkO9F7ECaK0LJ3YhvQlcu9h//6ivv3UZ3karZU1/eyIiMw9gFPW6/N0Ha+rWTdeoZ7GQdTD+K3MvD2qCZeqWBhmZJJnKsGjvJaJSXuYgim5Zf2bF2gRs8U9JUQ== 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=UcCuFOjTGlWzlp1gGW8rLBBx1JsJ8UOIW0H4v78wFv0=; b=gz5NeNChUoMKXgzg93I1pFPKj+R50UtKml1K1aWMRBKzzO6p4hxJCRxIS3Vk0rZjCdIGlkUMFTL4FdIX0F5NBKZ5cctVRwlazwbBDop9lMnqTxAYIlRVUPDrAhVlipQDtsYGfaRiZHR+I6l7IysvSmbGQ1aI8PuSYc9lf7xGkktJhfmvcLnTl0UV7yXqJ4dMoDswaaDhCs/GIbxunyOBdZS8GuSoStarJLIS0XGgZ+0+qMMpB/Q7CeJYKqSDPRjO5emxoz+YmHtHbwHvU4PiGNca9GvVpqvX6aJiyEXdoq8xztMk984tiyIgGoDGjUdyb1/HkiIQaft0pLcwMWrGyA== 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=UcCuFOjTGlWzlp1gGW8rLBBx1JsJ8UOIW0H4v78wFv0=; b=DeATiyKYhi5USasD+4f1AwUsTGQn3nlbA76rCn9VAxn1LmUfdZmX/tmZDwlLl7fbMsvXjJgvzmqWArtQ7yTlm5Mqt5ERTCu3WOtBvKHkEYkku0rMnx+PV/xUf2KaHZ/vAHFlaVEZAZiukWCmXKltcRqVLLp5yYXIOcfZcjB3g+o= 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 DB9PR04MB9645.eurprd04.prod.outlook.com (2603:10a6:10:309::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Mon, 2 Sep 2024 16:38:34 +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; Mon, 2 Sep 2024 16:38:34 +0000 From: Farouk Bouabid Date: Mon, 02 Sep 2024 18:38:15 +0200 Subject: [PATCH v7 2/8] i2c: muxes: add support for tsd,mule-i2c multiplexer Message-Id: <20240902-dev-mule-i2c-mux-v7-2-bf7b8f5385ed@cherry.de> References: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@cherry.de> In-Reply-To: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@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-99b12 X-ClientProxiedBy: VI1PR0502CA0001.eurprd05.prod.outlook.com (2603:10a6:803:1::14) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DB9PR04MB9645:EE_ X-MS-Office365-Filtering-Correlation-Id: 90a4fc52-cf83-429c-855e-08dccb6db022 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hxAZ7qrczwoKD5lQ02L+FG1Mi32nMdB?= =?utf-8?q?CKXbeJN49g52XL25BtdAzxDH5wxlXE5bD1e338fMd2Z1QPZrGXXYgQbDPhgYHjawS?= =?utf-8?q?YSbTSQ4cxV5MQVN7yFg4Q910nhQMYlGfpmxWrvocaGT0VXUOhNE9/hFN9kxwfA9h2?= =?utf-8?q?PU2oNy1FojcioyTfXPwdz19vQHVNpWzTkx89N9YQFv5Z5jmJVUNyK/Pt0ZnFE/7Oe?= =?utf-8?q?Ix7WuTw3sX0HiKyVgCS2KNhv3Xl0QZ4p7YaE1QEGq6Y1seIEEby0gyBjieljRJ1p1?= =?utf-8?q?mbu82Bgzd94l/+NSvbvfTX6BibJajb2OVDwUJ8BOfOGZQG5XnEorgHRc0BxYToJPm?= =?utf-8?q?EWe4KylMjxTaHVaWQCvYaTIYSjh3uHv2PuyvAUKmoVOeB0/RYwXRGBamynQS1W8Md?= =?utf-8?q?BCGg+85QX9AEago5hHZyyzOAdTMHmDz+Zu5TFxBuUWmZHeqFrfuqbTVFV1QbBLlMn?= =?utf-8?q?UdG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GtFw+/kWuiTJcngZRMWDn++Y4z8oSqtXsJs+1ETkT/qn4=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?qujqCShsAau/7wl6UaKnPBiezH4L?= =?utf-8?q?E9a4n812Lj7hk61GoF+nDj2x1XiL/Q82DRp6bY9aizdT19nbXeXCeXo6SZ3njKB+j?= =?utf-8?q?Mz5LSZpCNRyuik12cyGFTRVRDBdM6TIQZKKiHVoVMa2N0G5LQe9NASzN3d3gnLht5?= =?utf-8?q?o88QaOTu64fdhtedZ5GNhDC0m+Qe0rSWtahXk3Y8WouSjzMxTqVB4jtHTPSWgq2D7?= =?utf-8?q?G90qRicEhf0EKsER8YB/+cdc9WdXDGk/4F/TuO7gz7xC16CHAkNi6HccNk1VwLB+n?= =?utf-8?q?1kQ+2lSKfkoWE2gCai0FNrjWLn5lqDgbVs7z+qo1AKMmJbpM2vuXyPN3K0u6t1+49?= =?utf-8?q?nljnw0acfaDbslE+bRe7QA/rYgK/tMigKOw230+guJuxoiz7nHHkL2uyJLcOx4LFy?= =?utf-8?q?9cRn/LPttLUT6u2v9UbG4G3eMFCBtreqdSujrfTLii8VfmnQPBxFTvamufTkb0+Ve?= =?utf-8?q?7ww75epEBn2UvbqTIJNt8dUu4my6UEsl2/ifd9AG2OPMwrJRuSQlTDeYkZZ5UifTp?= =?utf-8?q?2fUq2vlYEfl+e+OaARPhozYun+s9pj4o2d+iLkuYu+EogQyYfdIXbtyLjdW848Xse?= =?utf-8?q?c7xJcqjNudiCk/VC1D1f9hj1VqWavgskTh0rwk1LIdLyr5EXKQTvP0ffovfbwMuem?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?D33BMPYmKEZG+WFEk0BJDaxCa803o8S30A=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 90a4fc52-cf83-429c-855e-08dccb6db022 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 16:38:34.7390 (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: MG/k6KYgv1p2b0xrhmOcHTlu4pP3aerFH2U8ZAHyk9woyjn2vowOrqgLlR8zdXakGuTKxe23MUTY3+gT30qxhP4ttO9QWoFsozXht07M01Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_093846_862546_B3AFC2EA X-CRM114-Status: GOOD ( 19.93 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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..e4e8992d4a09 --- /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 MUX_CONFIG_REG 0xff +#define MUX_DEFAULT_DEV 0x0 + +struct mule_i2c_reg_mux { + struct regmap *regmap; +}; + +static int mux_select(struct i2c_mux_core *muxc, u32 dev) +{ + struct mule_i2c_reg_mux *mux = muxc->priv; + + return regmap_write(mux->regmap, MUX_CONFIG_REG, 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 dev_err_probe(mux_dev, ret, + "Failed to write config register\n"); + + ret = regmap_read(priv->regmap, MUX_CONFIG_REG, &readback); + if (ret) + return dev_err_probe(mux_dev, ret, + "Failed to read config register\n"); + + old_fw = (readback != MUX_DEFAULT_DEV); + + ret = devm_add_action_or_reset(mux_dev, 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 = 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; + } + + 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 Theobroma Systems Mule"); +MODULE_LICENSE("GPL"); From patchwork Mon Sep 2 16:38: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: 13787504 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 EEF7ACD13CF for ; Mon, 2 Sep 2024 16:42: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: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=l/EjIWAFuZwbcQMdR7BkkBqk22tPSkofM2PPypPhgRI=; b=DjapqZbrGWMQQNEkPAhxr8hZra DqIx1gOoZGCv3FGu7aAUy0xZAIMTJ3JDhkeceypSJ3XTTU2wAJUNXGiDw7y9OwZ5CNDnpG3kZg69X BJPjGaY8/a7pzpWcA454YAXMA05mgPY+Tx9HgR8Qfuggdhbgk5WFpEBc2kLmEm7m2ZJlstT4CA6hV rLcWYoZV010rHDJuKBnyB8JKjwLqas1hpFUj2snIe5HUGSOx8TV3R37H1peLf4bGQyQokvg88dQQE A4Y+6n6IlI7jnb8YjiAcx2X99m54EUTbCCJRKoQMJSnZOnuFHpjNeLoAlkllWBTwd5zX7CtjODgM5 6SVxc66w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA8O-0000000F3sg-2eiI; Mon, 02 Sep 2024 16:42:32 +0000 Received: from mail-vi1eur05on2061a.outbound.protection.outlook.com ([2a01:111:f403:2613::61a] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA4k-0000000F2ex-3Mh0; Mon, 02 Sep 2024 16:38:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ntW+LTJXvrzpfjiCkSuVlnGV7d7sO7SAGAdNGeWV923UqwBQZljDPdLZ8HE+p80eVB29n3n2qA+TeSWLbCdc8c08WIMSewdRrLDASXfNIfm038HaHvujnANVbDkyPQxur7unqKpvEOOj/W6JNOHlduHYh+DXqvNcEbzglgRp1OkVUZ6aucN61rnN/mzbnI1lp8VY3cQJe65nYPaocwno0fzVP8lzNFe/0HLDHt34uk7xVNV+1lMSrxROdo0TnYTtHOoyKo5DQYv59rNl6ApMgTrYxW1yA0IoWOn8h70I5A/bb8bHaBGlVTrKgG0r9WsDCK2zjJf2AWuqeWABjUvSGQ== 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=Hyv/aNhZOExo/Bqd9L7OFjhcwWN5Ws9kcIl4Crb37lnKJsB2+hGIz5lDPINhFbsd8QgjTHNfvEsd32nRD67dteyna5ed5ekmALMMXCflzm8295cNXMdyvZG9dUw5/EFGegxM2689AqgtJA8i8PgNUjaIXxOKpIBUP5hKUCAttirDs53qsUpz/+oy6gIUx0QzZk0me8O1drigQ5l90U7uuA0JGLAZcSU6aC4CsN15nC1VtkxccFgp7SUC3CTiw56JoynPW8QqFY4klaJx2YVeOniCERl1BtS5OF1nwf8lfCVn7i8moNndWDjzJxa1QksKBbmPirLJG8/eAGh7lRNSXA== 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=eAiQEdNHkAo3+WyhNTrx4mLv1WazR8uXHxzO/pd8jtCNMY6TcTGh/QDxeAd8R52XGVH7/xnxoSyk+5ROaFaPskzE0S1WHJeLB//PVwIrLaejJ97YaKeZVCtCojPo1r7L19K0sOx8fmiNqcqswHMKq2i6SYuabc1JvMwM4eMkQ2Y= 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 DB9PR04MB9645.eurprd04.prod.outlook.com (2603:10a6:10:309::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Mon, 2 Sep 2024 16:38:35 +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; Mon, 2 Sep 2024 16:38:35 +0000 From: Farouk Bouabid Date: Mon, 02 Sep 2024 18:38:16 +0200 Subject: [PATCH v7 3/8] dt-bindings: hwmon: add support for ti,amc6821 Message-Id: <20240902-dev-mule-i2c-mux-v7-3-bf7b8f5385ed@cherry.de> References: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@cherry.de> In-Reply-To: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@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-99b12 X-ClientProxiedBy: VI1PR0502CA0001.eurprd05.prod.outlook.com (2603:10a6:803:1::14) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DB9PR04MB9645:EE_ X-MS-Office365-Filtering-Correlation-Id: 14ea14d0-5290-4bfc-ee77-08dccb6db09f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?zeE+vQTCBeIy2JDcQYhdSm3LzrdxA5r?= =?utf-8?q?hdR+B56wke9DCqw78bLFq7toMqdIpS3LvdPeAEViZWTNGPu68UKFS1bQk2orUchlK?= =?utf-8?q?GFp9BrJkheVUAMl+ixzz0YOI4aAGCRbTRBhQGHD/gdd9RIvojASVigmVek0GoD1ao?= =?utf-8?q?Y7iRmHsUKS1c52SgiaPdTo9K6uCpLN0WubnDCBeRl3jVA/K9K7SzwP22wYTs+64i3?= =?utf-8?q?ZldEykz1Wz0N1ILQaNblInepUvW1fTRiPW6azOjYNyK1JyYLFQdrt5/o+esgMp4be?= =?utf-8?q?KpwK6KyWBh8LGhKqqqSrDFuUHuWn5HidbaBkLaWp+veGHaUI1gqpEZPreDESQ1a9i?= =?utf-8?q?9tFV9E4FRyizAZ7CqmhJK6tfBMyokgq/U2Lp6jen60oKCBnBuT0C9+EeQ2456OAkz?= =?utf-8?q?wRJxxJuLOlJ2HauGVlMuuD0oca+98ktKRNsvoj1mxo5+UwFSHL+smQL7qjJbZ4MUv?= =?utf-8?q?b4+JaIgoEBY0b7Wb5PqFe49DtHZ6NRisnMf13xc6D9q+C3t8XOQyp+YlVCcUDpYCQ?= =?utf-8?q?U2YsKIVGBp4otiQt2DVqLUtqnSUZ04WxlcxjjvoDwR4K9M8Hkhcg3bOAqmA8oNB1R?= =?utf-8?q?YFgjqRSTDEGQHLT3sWokMBXb5IUATIti9LY2a72VmBs96Zd7RCLzfw1FlisNET3Pb?= =?utf-8?q?IJdBZlKABdYt+KEsaLJ5UYfmsYgifRIpD25yEf/nuMJE732oslO683oeRLspQGh6g?= =?utf-8?q?ROdJXl8Hcwl0l1sHp6Y6dHdmLi+qfwdc4dRGwfyjm6Eb3kqjtx+eN97Fpm1PEecpY?= =?utf-8?q?9MWRAqLZMC9WO2Ak7VlPAJRg8xmGBBsDnvYWlUx6JgGOxUoCRWYu9uUbRJZzL6Yw4?= =?utf-8?q?kR8ZgnmIgQusWoBvEqKQ8sfPeXWE21EGVs8Y+4fLYl47h6LQumbv4+6WJuvrM81qe?= =?utf-8?q?9Vd5tiwMho+22at/YbpKAfZ8d6PFHA9WyvPJLlvvSAjXRqPGHmfvV6oJN2A2ql2s8?= =?utf-8?q?3TGJ71bettWJvwsUNIfIg42pnU8q+h7iwtxxH4FrU5ZEYqMMj/TpmzRhE5whfu0jR?= =?utf-8?q?GvdQ3vju8tVI11yz9w/L9K6rukbuGKyQdfjNlk2pB8yBNuRoDW9k1imgvcPOKkZb6?= =?utf-8?q?/PMNgISOC2JoiLe+H+h7y7XJ7g+KmoaDYDBW2iylydcEfSejQ0tymcG3QpQIlPjrV?= =?utf-8?q?TIcdVRBVEPf16xPqDW1fgKqiixVJgcYEn3MEGcxAbwYtTFg/sIm/1xt8/a9XCkDuu?= =?utf-8?q?ukCfv+ZSYcDuEj4RAbOzbLEQsXCVQLM5kDYm38BcqXsYd5vSEqVBKPD2Ko0MKJO5+?= =?utf-8?q?TpJwwujm//AuL0YlezI1Bsr1eAne8FV1Nxj3M4i6oAKiZeQGgqvIkkhLSzxnIImXD?= =?utf-8?q?zQ415NcJGssj?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?bvMuz5I9ipJHaYIe7zISa0RkrjWj?= =?utf-8?q?jwBj+FLOZl7veA1XhrRHIjz2JyKLexbxtQahgKtz9VUzKPcK6l7OeCp36Kdqj3EhQ?= =?utf-8?q?AhGA08KJ/M1N9aGSH4c95tqJ/K/LEYnONmEFD62ukzIuH8vO0GYWiudY4FN8lsXm6?= =?utf-8?q?gPNHwi6ZW4q1MXQDYsZQ6hf84SDxpYboA8G97x4iUqfOOsgFSeTkEOilmVgW91Eqv?= =?utf-8?q?btCpQRzyBLLwqHqDzxOoZKyp5ao3tSstboLnO5+XzfPPbQzLksXMDlz5BbECIYQdd?= =?utf-8?q?M80o6JtijBQ2wK/gT3InO0rewVD/sqTmuk1C+Exwi0oIN2H3+U1R1BjUikt90bzlq?= =?utf-8?q?SCqy1hm4O7toSXcSF+l4vxU2l1MAzIwMMVD+lDMfmHe3i8cZdGd0binrPY/PasJN0?= =?utf-8?q?/BF554oxZoJVfCKje9kdA9di0WO+ILCcZ0O2k39cH0CY6OO5eBOm7OkaT/oCrumzj?= =?utf-8?q?XN7ZOnSVpW+T0DynfFUQZT17HD4K+XwdXRZlGztlduilTSCbGf6I8kiXddrC/YNsc?= =?utf-8?q?bncljQKfJ+Q2cOqHtYdQ4P3NaT20lYdPyvPXO4nkbAbgwVdIl7mynIbT3+kmRtxXc?= =?utf-8?q?PHptaykZvkrYdwFJ3yF0bd+u6KWKnTd4VHzVYFDPudmbfrmRBLEM9xQ5FCEsPjbyI?= =?utf-8?q?4eVbb7co4HPr4haoCoRmL2Xy4P1R3DRyVoi1sTSYth3b/5Pz5yeoKuM9TOaOUm67Q?= =?utf-8?q?+6//pgum68C8FdiiegQ1ACxgxmWbdvSu88QmT82JXWhD2+ofV0iaaevmvpQpFbk5S?= =?utf-8?q?VZ88mMrUhvQD+Iyayj/4F3lF9Xy4uZiteUG7gDTcdWl4dtqzjKUVvd8le6LwMxq31?= =?utf-8?q?efFMgpEEmeyKoo82mlb8xeOUCRkUoJU0vz7ZWzTq6UbpCCVwompTDt/DvZveK7XeJ?= =?utf-8?q?yP9/dWx8aOwV26ClIngZUpIFxeLTsNL7ZOB1yRrdH2ZtIPqp+tWGDhJS4WhLVFdku?= =?utf-8?q?6mRqBDYl4hGBlOP97dxmAaQ/5Fq36OTLZaqkBcG0Q2QWvICXNb9M1TqfU7zCu/+7p?= =?utf-8?q?k0Gww1TdV+5/p7KuxQ3zwv45FKZVMp9q3iJVROgFUlrs+54P7GqjcSsi2vK1pzPox?= =?utf-8?q?IWEavUeZ9jpIFUMJQ0OJNQz6/fx3nku0rLJu8UE+WXwJVZv2QoRZn6X2Yjd58MXUb?= =?utf-8?q?G9ziFbV1ov3/9oDmYucRww8vFxa9vAZvCSM5oq5N+c/yywFT0yX3pWJoHK+8nR3x+?= =?utf-8?q?B+mjeLbdsOTFSMaVa+K1lr5p52O1TTHHVygDIElvrog/vhbAHN25cbaBfXJK2MoDo?= =?utf-8?q?/XGpglrqOuEpKQrzCQ0S6yusb0In2kJdFrwh7/GrmkzuTeeNR6znea56BoSytzEFV?= =?utf-8?q?LvzjcXq+HSiLyICO0usmPVHKhQorMX5Nyu/WfTtG5M28xjsa+X+7SvjFYCW2BEpck?= =?utf-8?q?YE6000XuyAoYc2wOtbA2tiVyPahDCZph9WvMp3cVq4j7lt+nwLYT1d6NfzmWKQdMk?= =?utf-8?q?BFn2V0wIFw4FE1EaUiB2b0tNKb4361I1Ik/ob3cKegndxsRF+aSb94Cyt5JbJFOpW?= =?utf-8?q?B6iegTkzW/6TXe5664U/pVYZNIDy7n+qYA=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 14ea14d0-5290-4bfc-ee77-08dccb6db09f X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 16:38:35.5496 (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: B4Era+LE0+AgF7gV9IjayVGttwHIVACbNXkOG0Z9Ml4UxbagzZ7vjBcJ3e0hzkf4lhxPRAE5dby5azLpTn0Tyrq6i0P9P5JH5v8sXvW5cLk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_093846_884864_89F4C0EC X-CRM114-Status: GOOD ( 13.93 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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 Mon Sep 2 16:38: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: 13787505 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 D4563CA0ED3 for ; Mon, 2 Sep 2024 16:43:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=1qpddCRRmb3fQ3DiiRVw8JyuuQKAyQgC4IQuYLW/k1o=; b=LbRh4lCmeD78G7rxjqxLnslACi qR/Ix1J05uG9qyvovs/4Q8kvSustuxqwMWj7Q46CbMIZqR1FNirJxXnUMmVJAFG6NXr2nYCVsEhNL 4gwBnzKsE37fbwmkxBlGvXHz8+rfbHfMrHXQni7kkPC7KBwY9k2DQO64iV0sdL1/meClLXPoFsI2N vRJF0Fs05hUR+YtoQhGzpJoVhcRaGO2ggfziNkMGYVvRp05tXpYoc3QhVtogE1hCOhOAJBaxz1Oec OJJMES0a0wOXyCxxffzCv4yDzRGU7uU96UIUM5S1BWtckuf4QiV7rlvBRqHOGsIwzd70aBsuan0NJ rPc4mKXQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA9G-0000000F41V-38Wo; Mon, 02 Sep 2024 16:43:26 +0000 Received: from mail-db5eur02on2062c.outbound.protection.outlook.com ([2a01:111:f403:2608::62c] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA4m-0000000F2et-23GI; Mon, 02 Sep 2024 16:38:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aZVTar+D4NUzQTYJ/k2d48jkBhDPzHhJPWO5/szrkw0BAyQQphEeVX+y8zNzks4tqoZvT7I6/Z6J64Ia/aFD0gQ7pNxFKsY9zcj9e5wjhbuUBcS5SEyWK6C4ImfMOWsbdEzqd1xZo24JxXMQMJsloG+Vghe3O2jHss1D0t3oGq49s/nXwesTK+FHJLntnSQIoRBdcQByFA76pIYcI5AMfdSSf9RwgY6MZCwkNXl7OQFppJlMMOOSjTLJRZkoXdr0QJA1c0qePm2oHtegpUosq/J9n1fxKvpxrrcB2VKqiXOY++04mVgjm9FBmheInbCaIvXBY66aio65MMrNPjO5FQ== 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=ZC9pm0/UlHOdgX6xctgp0uwrFczDYUlibdTzGqGUAHt9Hm60n8ubvTbK5iuQ4WB8HsXJ767f4mCMU9AF7mcWH80hfHrkAZVHs444UIigR+qx9JurcN6tcF2pAIAMYHor4NhpMGsqf5iGCKpuUH1bAhD82Ou71A+G0JCC+CiaLjlXZSdnZ83z/WrPE1oc2qvuS4AAo/PSdnpyusjjIUX1Ye0ykROpU4AEe5RZNwxxZhm79m0RsgzmUjiL7jV+nlgwYnOuYTpwGeuU6fiElXDc53FVvM6/k3JXxIAqJpJbfHGI6C0smUOQgNfj6hIaKWOIGAm4yPcIi8mDXR/BoxildQ== 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=jcfNtLZJgkx0TxQUO0ymUU4wmzRZnClt9At0069co5MWEcsfZ8tQ2K2QzVbOTMq7V2SHK1Siwr5HngSK2wlvS8xDt/zdn+1zi8uom6Fw2rBQw3XSJQpIpf3/s1GPdsQx6Vvnxf62TiAJuKZpY16Fk2QSpyEhkOuqNRPHi9wSsGM= 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 DB9PR04MB9645.eurprd04.prod.outlook.com (2603:10a6:10:309::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Mon, 2 Sep 2024 16:38:36 +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; Mon, 2 Sep 2024 16:38:36 +0000 From: Farouk Bouabid Date: Mon, 02 Sep 2024 18:38:17 +0200 Subject: [PATCH v7 4/8] hwmon: (amc6821) add support for tsd,mule Message-Id: <20240902-dev-mule-i2c-mux-v7-4-bf7b8f5385ed@cherry.de> References: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@cherry.de> In-Reply-To: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@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-99b12 X-ClientProxiedBy: VI1PR0502CA0001.eurprd05.prod.outlook.com (2603:10a6:803:1::14) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DB9PR04MB9645:EE_ X-MS-Office365-Filtering-Correlation-Id: ab050e9c-07b1-4cda-2c73-08dccb6db120 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?yjTRIpAIB8ekLBz4g5fcbthMqPPiRKt?= =?utf-8?q?2e23rVQX550tjHizYjLRkPa/DX/0JtVYDWIAm4w1VDOkZk/71Kk5XMoEsCJsItr45?= =?utf-8?q?Tl7YWNvIpQ+N80An8sOuVYDPZpgoK4Kd1R+4nc9aP+VPLXwzvEQaT5gtatwV2wJDk?= =?utf-8?q?OpOFgbtfg9QxKRDpB7qrIto02dQlaz2PRa7neEk/m3ebaif2qVvDjTN2+eG4HdZ7D?= =?utf-8?q?RjuN1RC+1j2ErUyCEvpnmECN5XusYlKPRBajhr1J/kndBe84BBD1M9bSeAxz1q++T?= =?utf-8?q?OO4TINxW8jOUi0zDP/4tGWjaqMKCLrvC5hFpNab8GDE5IKcp9U+IzQb6/ZQn+m3nG?= =?utf-8?q?HYoTIm3T3abeVWY42acaSyG2LLG2iQQbsmmsHL+SmGJrx0kd0ycKS/OUxbq0IVq0E?= =?utf-8?q?PSbBsCXHA55+AF7oVSUfwwMRgOyJyRGSnnaITHw4vrMADBqLrJAtq6T+dftEnLDc0?= =?utf-8?q?4wMZJEvc8BHgtyF42BDyG72tcexIHQNCld6y6pLncnrzxopC8NfHgzTGcsY0dLArx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-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?gMS+r78CqpHWXnz5t1nTjT7AOJb/?= =?utf-8?q?zN1nSwXK770av1LlrGH0CZMCnBWITadHuDhPNxDyVbcj85czYcvt1rQM6MbIKvLCR?= =?utf-8?q?/weogZr6Ggj62WMgL1KSA2cC+Dj9FIJOgIkiSHdGLFZQzyvz0yWLoVQ3yjlDBq9q/?= =?utf-8?q?+cRq5JjxsO0w6p0Ce5KL/hHXC7F4cEZq+1+6wxdsuQtlihgJ2JA624b7q8YSRDbAD?= =?utf-8?q?qKVsUAJNjykwMF43eVzfQfZ4sSI3wzmQ368VQzJ73ros6T2qDf6bQ12XGWhpF9FpE?= =?utf-8?q?D4ViTximdJxbD6bSQlYZ+U7ZPCLTTSjXjsrWGBQezqv5d/x2v8t86S0tS2UNyyxC9?= =?utf-8?q?/5UaC9cQirSrwgX/zQPTUg384HsraNMqCvFoxR5Iopz2XnotkaZ4o0Ng2LUyyP/KN?= =?utf-8?q?vReDrHnjND8qdoXOrbxudIJ6M1zB+Wa9BJvJNDlVL/pIA3L4UXk8dApsLXjukDGDL?= =?utf-8?q?ls5fJ5DvIvj9H8x5STVNE+ouHQTgl3589trELzIEoxOUb64y9qdOreinU79pkTkJp?= =?utf-8?q?5NHwheScZJNd1tBUMn18smPmdzu6DDQaTIJh2SN4LAs7S8NvDcHFw49CfU25l9KkG?= =?utf-8?q?0N5aax8/1EPoF/erODrEQRGaaxVLU6JwxxNVWijEMtDaN8Kx79wcKVnhBvYBnByIx?= =?utf-8?q?nTIGbhDYQr8lL3BEmcYLGTX61tFbQT+ooaI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=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: ab050e9c-07b1-4cda-2c73-08dccb6db120 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 16:38:36.3944 (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: wcYBZydlnoyIqACE6P7x68QUuMSeajiJU9q4iXq7Q83ZNvzrGUaaMHzEHt6rO41iPcyWy8hLhSZSWyMQowtgHxlR6XT2y+QCJo5eCb97Gd0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_093848_586131_16C6A7F0 X-CRM114-Status: GOOD ( 14.55 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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 Mon Sep 2 16:38: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: 13787506 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 BCC28CD13CF for ; Mon, 2 Sep 2024 16:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=dwUMD5lhzfhT5jGsUDSwxBu95il8xvP/2F0xygOromc=; b=FCCYtgm0VxB9C/8oPpTzt3zQIL XOPohkddn1Evsix0B32CbraYAtmZW3L2ct93d3ezGWAPrtCRWRKnmUmBSpM9TN9vQL908xlexoRSF J/h72PNWqqQxeNW4mkz7KNgWq6/Vkz/wuLv5cyys3rZVc9ksRd2J2BLCpHdxUOaI9cCKsH647T0aG gRdF6xHUQ/Fpk21ALSv0UmyHwGXtOeNPBJ9NJY+xxm3jCj4AC+zy5q2JqxQX0HHAL9o9d1jC3eiMt HfgJYbbHGIm+CG0Qr2aQVtkhxhSinqGuxZo+iPmDxbRn7Lv0qienZXH0dFDjf6Zz9jCdHhEamwA9N +1+MvpHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slAA8-0000000F4Bp-19s7; Mon, 02 Sep 2024 16:44:20 +0000 Received: from mail-vi1eur05on2061a.outbound.protection.outlook.com ([2a01:111:f403:2613::61a] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA4m-0000000F2ex-3WXC; Mon, 02 Sep 2024 16:38:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bvW1t7WVBF/N1dCcQdKVx5F9YNKYLsaYCyLbPqbtySgqgh/LY7U2JxaJUU64JvkiyuHaUVVYl4oAHJjGjpHn88HKC1IU6k0kKGLud2eS70T7N0wqD5o4vN6vVsMd/hoX/17eP5tR+WWxCdQQzA6n7UKAfKxmiR9667JG6tmY1ndc5VsE6O4tSbRDyMjghNH9v6YuiPn0R1t3Q5n/K9gnGWUoi2aE0+LBmaTMQmLx3vVMCs3jT48qQ8VuuqeByriLkXAbrqiFA4Kv9fAodvIOKBoFE+Y8HeOyZ0/w+eIHvCW5u5UQw/0ouVW1Bi1g23N8mXZWOePjsmNPKE72Tqi9bA== 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=aJ0wt7Hi8JE8hmOXwgwr4EyCNxj10DaRaMUhaRD6kX9fr3pxXlXcoBtljkjyRLdAHIJjNgtALsH1jz8a+dNs7O8jAiE3av9+2J46UOhq+E5VlIPzaGHqIbHPHB3xoipWKJVzSiz/OoIy/7fJ6/1aGeTx3G87FMYtvUH7jGGYSTmejVJRTVlwj5ttvN/yi1m07bXxNH3ZLpA1NQ9gnAYcuVCRfhduJ8qXYdXKebQJ56v3LWJGc1lD7bodRsDvnhatPHV1Hz9p5wdVPfukoDzFlNTkuQsR3XF6MKRNXNYgz3wrFk1meH3kl/tG2E/d2KOF5B+eV9v65ySbcdNQQqt0tw== 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=H7pI6ddo4MGggt8gJjF6Jg5u0EMEyAyZAfH3Q3yF72k5alUGBlblPAbPrBStHceIe5NBQ+U7BhzC4ZnsVPpaYsb9Mp39CZExB4Ertjxsx8qWJG9jOIWsBkp5w6XpyUALRJa3TL2jV4ZKYRHX0iwebxlo6068KIVaE+lAadAHRds= 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 DB9PR04MB9645.eurprd04.prod.outlook.com (2603:10a6:10:309::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Mon, 2 Sep 2024 16:38:37 +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; Mon, 2 Sep 2024 16:38:37 +0000 From: Farouk Bouabid Date: Mon, 02 Sep 2024 18:38:18 +0200 Subject: [PATCH v7 5/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3588-jaguar Message-Id: <20240902-dev-mule-i2c-mux-v7-5-bf7b8f5385ed@cherry.de> References: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@cherry.de> In-Reply-To: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@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-99b12 X-ClientProxiedBy: VI1PR0502CA0001.eurprd05.prod.outlook.com (2603:10a6:803:1::14) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DB9PR04MB9645:EE_ X-MS-Office365-Filtering-Correlation-Id: 6a88b850-c54e-4e3f-f59e-08dccb6db19f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?/cg9Zp1zdg9+lyU+1jzVLNBKhAy2EWD?= =?utf-8?q?+kVgIR99DtcqafJokoKghOUOb8yrwOv+Gn9mHAKd8cKN1CFixt1YQ5QODjlGoLKHe?= =?utf-8?q?qgd0a8VBMyRVaXhR3kkmhHIuQq5Y7WoAs0OeF+BXySFONetw64es30rqWZgAy7B5y?= =?utf-8?q?zvsPaey3cfDPhGzr3Ae4FT7jnjNa94o69P4s97JEZNC7yMXPXwWNlDrPpAHGTdQss?= =?utf-8?q?ZCkB6DbXfqyvExhAViNr877FR16ClbS3tybWd0GlRrrVadBQeRB3pHXXRYfaZv6el?= =?utf-8?q?H/8CqceA60yHCsBzAp5qg7tkKvqDlHqhdFRhwv+QX+HGnZIXWPbTmrQc92TLPi5hi?= =?utf-8?q?FmD8D6xBUirxwJs7eDXr7a0gbV8/tsfdrIkByBBWxd3LJP3POTJCglLUOT/P0+m87?= =?utf-8?q?HzHKjARKgPsRikeIBgY3v+UhrVsGAXPaFmw8IaBXWoxhN0P0/sOAtV9P4WXPxZNui?= =?utf-8?q?QZg70hVF3jL9T7L+KE0hF2k9Ug1+12/LYqgMK0nnmQvqsDgNlP0ONHuE6a7jb42pB?= =?utf-8?q?Z5PsGNm6+Kk5kE8QhK+O0NLp4GNbhHudeSj/1ITSSjSU4wG2LB6msjGIGhNh1FdAJ?= =?utf-8?q?Q3MoKSyK7LwfVUb6d7MtZBlxypgRs+CkZEKmNtj+HtfY6QKE2Sz8LJ+hU/Af2OFJq?= =?utf-8?q?J2XR3oBGbVKKA1A9opqKfH6WsYkgZXDNV/6GCNYpgENGInSgukGpd1s1E6S6fe65V?= =?utf-8?q?cakeJ+RtJ2w1KD4W204FLPtBp3nf4DTjhTmrEs+F7Tz9BxiiektKUI7wRlNZDnIOq?= =?utf-8?q?Ql9MbIbXZ5Azfc05OjBL0dCG4T+/61nyorF8QMxFIM903AsaVWw0pKbvQb0WcB1cs?= =?utf-8?q?AOSFhQQdaSn6emLCSL6CKPJsTdNkwP6vzdBUDbdGOt5+Iu/SXL6KLTfh8HBP+cRWo?= =?utf-8?q?5s2Iwt0bO24s7gOI6owZKNxjhycUHmoF6EQ3r2ky2aAExbbEjDf3ti54aK/no+T1x?= =?utf-8?q?m+23h4FIIXTmweRMRpXXXtE2UfLFCtJeKCfqJUi+4xZJAbquKwvARt+XKp+80UO5P?= =?utf-8?q?Pi7NsjLWoQW1HCnBsybDk2eypsadDxZ42JpV2ZvoTKee7ZoIsOLLqWmJ7UJd2tNMO?= =?utf-8?q?9m7OqpLcyninTxTTzj27u/sN/NL8TZB0R77XuP1cdh+/skcdHVD27rYuUDlQmOdhK?= =?utf-8?q?GWV2YmQbkP5RK2vkQyGG+07evtceHG2o1oVaBUdxyfROs+8EAh/X1EaJlVz4TsgPj?= =?utf-8?q?bXgrOP78GOMxSua7/w9rtWz/mS9YTf2DQ85GItMjRUTrVd1eb9f5hbwrXrchhqpIN?= =?utf-8?q?wRn1Rq+5B86h7SBUao2AFywvnm/GOa4k0DqI00RNUiNRZr3IHoAAzuWMQIOwq2biy?= =?utf-8?q?+wcC246okk/oIN3DmLIEFha0hVzKUEqlo+Q0w6ZuCtaVawm0V14FJvY=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?xhIg4PN8Up5KFrQT1DKxRp3JpOMN?= =?utf-8?q?idwwoX/RgeJCkuRfk0EJGSixhoBa83b+qtKT9q4jZcprtQZ+58eEyccMLnhfqH0NQ?= =?utf-8?q?bq8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soy417xvHfnLBC0vE6FTUbaaYcPNrb3qS25V74/udL6ZAz+?= =?utf-8?q?rxuTe1PAVCLoFdev+CWPcK7Sng2pJgBgM6O0n8GayGmVGIo3UtKk2tBwHjw2yqsAm?= =?utf-8?q?yquQuHdp4IoC/15MOHBUl1z2GD5Uv2bPEAqvxVgGqrRCJA/rnxfq6d2TMPNDaKig0?= =?utf-8?q?3ncTZJrcNLhc/gfWs9x9oTBXA6dgulRXBmGBQLQikLyXLct+Au+X8PwuIceBL/Scg?= =?utf-8?q?b+3sTqDQPxbLiBvJriWT6rNk/RQ8nbptmisdloyCb851c/NqS2Up5TSM+RTWluWgk?= =?utf-8?q?4Gfw4w4BHES6p9sbQ22vcKRfrkoyFppEvYeDipcwHE4V9nS/IoI4hxUXAPcXxotCE?= =?utf-8?q?Hx7yEta6OZ+w20a6YnZdW6G6hCLL69Wwm4NKEiig9Ql1r5l8rHEOariJMtwdCHbW3?= =?utf-8?q?OH0KcxvZyqYpuPTlos+jxFPIJIC3r5VOqpYMJ0DYzyfgen5O5DU9Q0yo/7i94+eGF?= =?utf-8?q?0niV30jkEmlH86vNZaHyixIbmv6jpenjF0lHb3ULHAwpCJIj14CjtCcDapmvp7zqL?= =?utf-8?q?Mxz6aF1Q9++VDN6PSUMy2Nyi9pcKEDvCIg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 6a88b850-c54e-4e3f-f59e-08dccb6db19f X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 16:38:37.2370 (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: sQFY6Ir3nFGjqASOr7ONLLiVWFzusqKiMRz/q0ZesrHA3ufMgs5QyWI39tUVane8AW0O6UP9eUAZKqIcuLzo8hNuidbdRaww6LtdbmvkR68= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_093848_928669_1588A5C3 X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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 Mon Sep 2 16:38: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: 13787507 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 D6570CD13CF for ; Mon, 2 Sep 2024 16:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xkqXbPxYg44peV4iVOTix7Ffuu5mQLM7+DHRpW1bZnU=; b=DSV12N6IoC4cuFcFfLHPR1NXbe AMHLFq1rZuDrX+0qWJstSRqzm6U+Ho5mBZJp2MiWYl6Fx0zSx/28SkT0n4mB3I/AKrkVvjDVVobrC OcormYhJnoE/ZjWreMpN93cSGSGRHR2IxE9+FeJJXUFXyS1Y+IxSai83sy65fLS71k9QdppWEdy4b U8S+o68a9dTZw4jApsBEsZEEE7kIllOqNoSoRCJybGaSzeflslfgoqtt1omcNKBjlPtl1TBYTQLSN epuHxmpBHetNsi1pERZo6ouiZrM4seFS8kpChwiyK8fCwXhQap799MG4y3r/MyGAH7nLZeTKPxHBc u7CpCZjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slAAz-0000000F4Kt-093J; Mon, 02 Sep 2024 16:45:13 +0000 Received: from mail-db5eur02on2062c.outbound.protection.outlook.com ([2a01:111:f403:2608::62c] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA4o-0000000F2et-0gzE; Mon, 02 Sep 2024 16:38:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mK+9l/7VGmb7PfL5cg6Mn679IUxnHrFM8/7Do63IwtaZspcnzhUXJZfy0wGKwk8nkcfRk+N7dL6XWBlaCrsW7CrydZ7hDaDHyUf5WLaFIISx+L0zXPaJ+nq4S7sjMV2pZ2umdkExx0//1Apkoxi76Ro52DMw6QRsolRGhfwvjXIYOrUW/9XcBEd0v97jZ+PQCVJVqsRfhEUpi9DD2ATdqa2POTmz6TvpYukvLrTwcLfQsjw57YXhoEsIG7Acs5d/y5+HrAp7g9hjsqX44M6XvyCs/zzGpTfRFBrN7et3X2Bz4uGN0+2lIVbf+Al3BlE7R2snNMD6FY4Xr4+a0BJhhA== 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=rYl64PqyCU3uF8whslEpWAW8HD2bAgKLUeqhD1cMR91L3T23ZN6M8NnqGi6NhQsJcnbxEOM/mjKmHsBp7N+JbzhyV5ZwqfhSN7SK1Zwq46hq190R74Mm6cX9mL3FcIFllKYq+Ja3lNMH1tQlKXY9Y9R/Yhv8wiLxdQ39Mxd1wwECxORM0MyA6gBBI1YU1vGBZmvRmISz1xOiEGcJ0b/U9xbBsYyo1plnWmP6Td1yHB5ZkE1w1Ic9ohoUYYBvM2K+furOazdNwp4kE4zlzxI29O9X9v72oLCW/TZ7sqb2tX3EWe3Qao+tC13fK2Pi4WGecUchfHL/fwL9JbSmRAWM8A== 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=EM60eOWMWxqkMYpqhtSE/yC/c/iXCNDOzu3vh4wPwTDm8Fm0lK60/U0xk4J5bj/ifPLFJEvWmSjwyQChiAzCZSDUdkgWsjB+c3xCK70w8wxqhI22wrNfforjN2LAqNJjONKWmCSz0mjO/GnZjFCfBagH3u3hpxSzH83qbb/Wx/A= 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 DB9PR04MB9645.eurprd04.prod.outlook.com (2603:10a6:10:309::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Mon, 2 Sep 2024 16:38:38 +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; Mon, 2 Sep 2024 16:38:38 +0000 From: Farouk Bouabid Date: Mon, 02 Sep 2024 18:38:19 +0200 Subject: [PATCH v7 6/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3399-puma Message-Id: <20240902-dev-mule-i2c-mux-v7-6-bf7b8f5385ed@cherry.de> References: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@cherry.de> In-Reply-To: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@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-99b12 X-ClientProxiedBy: VI1PR0502CA0001.eurprd05.prod.outlook.com (2603:10a6:803:1::14) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DB9PR04MB9645:EE_ X-MS-Office365-Filtering-Correlation-Id: d29bed12-bdaf-4cb3-1d55-08dccb6db21f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?MOXKdV4SVpSugF7Mq70MJcri1dduY9M?= =?utf-8?q?ZsCY5sM71NjozDc8qg4g2onleO1kSwG7lKRCoqIuo1GLkPvwuD1VDMpBVnwCwLbjA?= =?utf-8?q?LDXQIo4G9rmT81C6dztsxnRpTTIXiNd73xDz37/NDEjxmxIr/zUS5No/zd5pvAoOU?= =?utf-8?q?8ynG2KQQU/T4DvZVb/YJ1S8+8FjJLD6okwLrBhx1K/rY2BYt+6PbU2S+n3w9gOoVw?= =?utf-8?q?44wA1YAnWE7xTJsKtLHjrbwkWqan9y1BPpZ1YxNiEUogTAZBBZQ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=?utf-8?q?suIbRTJExf59SYOt9ZLSELWksSAff2/ynQ61BRiNvpHJjsk9cWlqfRh3JH2Dj9vO3?= =?utf-8?q?0XnaCd6SN3ywWSvvbhWP9qWtZ2PM+UezrxNvrGXKzKV5QdNL46Y+2SD7Z9tDw3GmQ?= =?utf-8?q?r/wwktte1TehMHGXE9TgKH1HIxxykSHfiZYGuUUJFgK8g5EaMujG2356T4G90DExZ?= =?utf-8?q?WMUP//XJZSPDhMERkHXVddy1IcLn8otsNP3cC3aQpqou2KrTPGoMwuY=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?a6bpFOPjl0/34nJJjp2qzX3ac5um?= =?utf-8?q?nbYlNqTAfUDWfhj5VmV7Xx4GlvgCMIjI5VlMrJmlxbCToZMI5TZWiviK9BbSpivf+?= =?utf-8?q?98vQ1Xor3e9WWJDcNYl52Lg7/RwA2bZkTWnR3T233mZoh2bqSlbIyDvn9kKCx0EtN?= =?utf-8?q?MXJhUmLFpLPxLk4Ok5mwVbLf6p0XLDkNHSHKLGVzRQ5UyfsU/keaPqilotXWO3yqm?= =?utf-8?q?IEBRr6E70zOEMu59th+6Y3ZD+gPuPG8D7AaaVWIEjO18U8x3MgWqxwUVNbZ9yYzpx?= =?utf-8?q?wmjcMx1FGJF7KCluwmYi4U8lPgo0hhSg3E8SCHWvr4tP1ExTWF2ZqLmIJWu91wnJV?= =?utf-8?q?Oitmj2fsCycI0XiPuAWde+M1oAs1gRRmEzHSAEt8F7QX1EsLuHakO+BPiGV7dwSSG?= =?utf-8?q?KqUZ2uZ73VfRk0rHTSji/6Gxmxmv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Wk7MLJ37ofw5rAF7TpeD/KnssGdR5to?= =?utf-8?q?PyzjexUbEBk0taIScraMeGpjqYBO47U6b1+BlkF7iQ2ohn2y8BqdzSmtHmHmP9f9H?= =?utf-8?q?6hYdqAzOR1ahXSsPx9F51mI/tx6JSan18De18MjqZp31V7wbIZeNMJinCal7uduGs?= =?utf-8?q?vJc2btFq8XJ6H7NmYy1doYKYo7Orpafkx4NGGZxo+lWmMB7/atD60Etskn54Bx4zi?= =?utf-8?q?3c9futnPHL4ZP5avO3yEV93JBZApAYnQ2w=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: d29bed12-bdaf-4cb3-1d55-08dccb6db21f X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 16:38:38.0703 (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: ZHFxZiuqenWCzowmADPfSiuc55r7jV/fv9ymlE0e3qYqrnyxs+35S8mzJeUWpQqesaIM4Ygm2tQgaZD83M8Cex1UFrZ0GSg2DxGW9B7SOTo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_093850_290936_3B9B44A4 X-CRM114-Status: GOOD ( 11.15 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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 Mon Sep 2 16:38:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13787513 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 1F382CA0ED3 for ; Mon, 2 Sep 2024 16:46:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=5cUgZ4MI4/QgTlQ3b9Wlls6Asq5XVvDzXc3qKRIWCwc=; b=YDFstye7EGfDbejWKknJEzCmvH ypncAFYwMBc3jFsjeRIKpQAx+f+lUwDrxb+K9MIe9D1tHZPEEM4LAKqr2CjNkF0LEezV2DfgBcY4H WJBdxWwoyI7dnnWbsp+UTHR8lj1cPEVNedgQDjmCXwBV4tYsI1nmjckixvjrKuvou6pu+vP3l3E7H 0sqWS60JN9eI5ZI3FLAKI1m400rZyMAhFRRAMuKsgIufQVRM41nD0qMLyyw3wQd82TkCPlKcxq3oZ sgztJQMPpp0AzZchenU4cmu+wE/WWrLj/Cf9aM32deDayPL+zQSmbzC6xzznsRdqF+Xx7Q/le1dRg CEkU61uw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slABr-0000000F4VP-1YvZ; Mon, 02 Sep 2024 16:46:07 +0000 Received: from mail-vi1eur05on2061a.outbound.protection.outlook.com ([2a01:111:f403:2613::61a] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA4p-0000000F2ex-0Mbj; Mon, 02 Sep 2024 16:38:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xDL8witCXTi4T+cx0gXcQlYQJyg1TIXkhLPizY22zEeRail/OnnTJhzRn/38QQrMbWVGBpG0zEpX9SLiwJcXEE66xRD5++1nITZC0IoOqoKbjaeXFpgq6lUljMXcIV/lHf0CJdyHOgS+8NdXCLCkfF8LG0iOwKzxifLNJID0tzh4BzRM6K42CfYfoJSqc6llYtyMfbTeQ71ctorJziL09RoaBlzy6GpczyioE+AQUAjRYd0Y/fZRhvHTOXYUuDYzhp24tf5un40W9weexqFNuWOHWKim2Pf0KNt0x1pEWBJ/3Wc2FUROPEGtzta4EfTAV1Hg7O61zcf02g7Fyg5Q9A== 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=pAOIACtxHZOnF+4WmLtuQNaPLvfSZxhXAL01YfmxKmwWVrIpXmRPWb6iH7BSLI6d/LFCysRKpnpf6zyXl4vt6L2tEAZsN7UsHVdvqXNHbEXDPO+7VPpar2uB/UoDCnHJlAExk0m3QmGwHjWhMQVpRJUaZSKzk2Mmr3Ws6xMgURFA0wYDNz5ULp9yqiqyc46klgG9uu4lHQhqpIUGHH18bOWg0fl+MpJm7O/3zanwMllRGKGmZGGMuR8cGb4RLSSxy0bHkIYl2yAlAbg0wjo+K2VavmaGUTb6dtCGlFYf36fGsOB2ZxziTI5uxOi+WTRAKZq0v+lFYRir+0qsEEG2wg== 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=G/yPXcN+ZWlQyuqP6WkTMlBIH7VTZx4+pfVJalBJVeL1V/DLh1uCRq0aA13VqjVrz0OcQbeaqfkE1z2aTpzv5aedIo1wcK6SytqxGP7eG6jTioXOxopTvTA/O2TK/ClM+Ye5yU+L79aYqqMQjKGnX7sgvTQVjAfX5ZVnTCyccJk= 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 DB9PR04MB9645.eurprd04.prod.outlook.com (2603:10a6:10:309::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Mon, 2 Sep 2024 16:38:39 +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; Mon, 2 Sep 2024 16:38:39 +0000 From: Farouk Bouabid Date: Mon, 02 Sep 2024 18:38:20 +0200 Subject: [PATCH v7 7/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on rk3588-tiger Message-Id: <20240902-dev-mule-i2c-mux-v7-7-bf7b8f5385ed@cherry.de> References: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@cherry.de> In-Reply-To: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@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-99b12 X-ClientProxiedBy: VI1PR0502CA0001.eurprd05.prod.outlook.com (2603:10a6:803:1::14) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DB9PR04MB9645:EE_ X-MS-Office365-Filtering-Correlation-Id: 44846e44-518c-4b8e-78c2-08dccb6db29f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?/kmf2rHrHQVVfDrvvtqONeii7h9Ewyf?= =?utf-8?q?FBFXpUO66MvSL7rVmnm2/m5C0MgyiSP4PqK9iCSoGlIpm+dwdYgZPpBU1jaspU9Q9?= =?utf-8?q?YVaz/yS9KaYWqoq6aITH62YR8MpphglUjRqGa5EfQIqxAhdJAl1Bd9bLrRVJe2YrZ?= =?utf-8?q?luCJlMULIQKZbpxVTcx5y91AXcabvw9jbzoCj8tNojqPLOHifx3kff/U9pvA964hB?= =?utf-8?q?VVeBJwVQpzoZaXPzHlQqTBAQ5oESytMdl2t5UHaM5xntF2iVMhuKn7dogw8YVVxis?= =?utf-8?q?Cn+eBdmeue0t1h3e4cQGnUzCuAYTio9Y6SucdU/l496dHMsID52z230Rg5nujX5aa?= =?utf-8?q?c+b+ESWOC4VSXx9+SDyKXxaq9N6/AHi1r3wTYx2BMvnU/q+VWFmly9qVebWteZUpG?= =?utf-8?q?yN6DXUlUebzKhtZI9LQOzFfqkiO6ktGuxBdc95dGdEgvmF9KMOBFR9yChw7H2KGlv?= =?utf-8?q?u6zhrQrx5e8Myo4xXbrrFU9ltFHSl4CDLy+ugA+NRzPINAH+2N4Nn53wfoc9FrBCz?= =?utf-8?q?g+S9qkAbbSUHluiV4cwKp2yNjeLqfH+LF0Zyzp58dBP5jsieGtSW9GVRgBRPzmwnL?= =?utf-8?q?KDf3VbyD8damtn4rsu+/HRmVu2O4vp2Y7h3iP6aUkRhO7Xnocqbe9DMMPBQQcdnQ5?= =?utf-8?q?I20DXT6voMxRemqOMT99cVTb+TH6eO8ojhsgg3se1KYjUwbVP99jZpBVHSUEhjfg8?= =?utf-8?q?EevjJz85Z/NGTFwZHs1b8KCpmwNEYIVoW4qStfAPUKTHaqSz19W9aASS9pCcKy+iZ?= =?utf-8?q?JRjUqW7YRgjhjxsf8/y81BSmnc6nHkrDQvZd7pw2w7uCNJa7OW5fLTJxNjEWS+BYv?= =?utf-8?q?WX1xxb00Xccvm3ZsOi3Pr7cBEEMlxzFUz7N0hN70XljDHiz/Yw2T+50QuT9lKGx83?= =?utf-8?q?rNOiVoTaVSxCurvmQFRT0i29gACVtM/oOHBwrc7ziZv7wD65L9UCTFKdEfxzBY4Yd?= =?utf-8?q?W03RNIeAMBhG89r1i8FKiLRSNtRHGApbKj+ddzbvUPpy4SMNf7FjHJR2pQ7/bOzW5?= =?utf-8?q?phS9dSXNcelGXZx3icWh8KaqiylA/ZioLkIrL4EwrBSxgnpa6Ldn7KiWiXwMev+OV?= =?utf-8?q?F4rJYJX7tKuht6msW+NQ2ABwHab9etYaq6a8wRFaGLeoNQmQAepBmbKVG+iy3dbnv?= =?utf-8?q?/Ugoy+ufMXcAR8hKl2bj2r/5R9i5gANHlImdwqwAVnePcGh76qNWVxaAtfbW9Y9iP?= =?utf-8?q?1qP2LZ5q/re4/Cp0Z265JaS/SlPyA1JkiLixZES5H2UGzxeWyUYk5Dd7sqqDVCB4T?= =?utf-8?q?cum5By5xLcyCED3giU8col3kShvPMJFitUjOl+1K8TIoZhy98xqdJ2CLiraKlYSwy?= =?utf-8?q?X8eRB2CwbHEDSk71QLZ8kVAkVnE/Zee5xIqE5x8nf+UVBz+LVIS92lQ=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?XG5tXE+DgOVVDrR9kdXnJfnx0fSw?= =?utf-8?q?AFtgbdDDqIFNK7W0QJXYtd09POyAubh/raCPp0vi/gGQqeHjO3U5WPIHenrfCkFRk?= =?utf-8?q?20h1+BZG+wrcdjgBjH1iT0huuQ4NezM/spKBd8h3LSxOoQOZISIaluHdoUPSfQiWI?= =?utf-8?q?KpuO3KHSAJUYTD41RjqMrvx8YYkG6Kl4m0Las8JUlQSx510PYvOGhVBotesrM5Q1K?= =?utf-8?q?cwvT/EfRG1LdQXRLIccpkT65o7Fqp3cjEuSVBTE9NRr303XFyMrttUsxJagCbzqyF?= =?utf-8?q?hgnTb+HcbOe9mAfZdDN5ncvcCDm8jxVGVnWAozpMhkn48/W+Hp2xuVXGdriSaiPm1?= =?utf-8?q?xiDlYdeWapFgL5un+Yv2bCLDBmlCESaVmj1iSh+J7kZR7n1Vnf4py9NlwnHJr4rEE?= =?utf-8?q?oN4+TXYuP/Nsz+Gk6Oh/bW/AnOHnXwZYfwAi2uI7e+iVNRJoEDu/Cv/lJ+LRzlEL9?= =?utf-8?q?599j+RbLfp/UAxBiVU6xOBnvk1+fdIS2qaIBUay1iOt4cXIduleOgGQ+ITpSTjDyX?= =?utf-8?q?/+Lj3o+YQfR4fKD3LA/V7ptLswr6CcNlbg/ksqCKaGdr6a5PTI6luhIrnB+6gSLnL?= =?utf-8?q?3a0G3B0BdkFyNNim++MY8+xkxa9eZap2kqh+3w9vDo7j2ih63fsbfSRBuEB2toVMe?= =?utf-8?q?/CjXawr6jKLA5nSp+GBn2UnnJj14S0ZyniJQMJPF9RvRshpSfubckLGzRLjU3KjMK?= =?utf-8?q?lJU/DbXfLXfih2O+MQpaW1UPcJWJdACUIuCMgXLnsc2GBgyRTFKAsmwf4USEJgOLi?= =?utf-8?q?TtNJG1l7TV1BttT9MG78hazL3Jcq16HxjNhYvTt4Mc8cdAj/F/AdCxy6h6iGvSHFC?= =?utf-8?q?j4YWUeSAQgv/IJoZ5jEUt3m8ZR1ira+zyQm9+WFTZQdFMQUmIVaLFX8NGAgqDzzQZ?= =?utf-8?q?9ZriRx0CjDnCmz1ZL876npWhwvXE01AuDho+OgDjqFu5y5m6otCr+HMnZESROLhI+?= =?utf-8?q?JrUDzzJy82cE/0cKlQVdzWhCsxNpgGXcCp4luRwIANOGKc1n6kSTErvi3Qr1k+sF2?= =?utf-8?q?HOsgm79bxhRdZ/OQbs0RtpGywYuWiYqsVjaMAQvyC8ok9Z4uIQJd3wkxO9r+kD3Hh?= =?utf-8?q?Kp1bU/pIBZYvWiZJnwyYCQWDFHToFW3inxzlEudxcaMESQd28TasxqZtv60ymc3ip?= =?utf-8?q?1CFMY6nyLqINNZkyD6/zqwu/ODVxOY8UwGYcis7+UsV178owHUtnWSEFHsIe0amsc?= =?utf-8?q?Rb+ur461QcieHbkkn8aco8+p8dgr7UrnMyolqAYno7ulZxH+17x/lMqksvfNhbF+y?= =?utf-8?q?ceRM0tWFPxw2/PzVUrPA3SgpGqFE/APb6dUtQ1Uo2v9va2A08rZzZfO/KQASlq7d0?= =?utf-8?q?d8TjJt2yrKMlWzM/rvmiTXxhUPHdel+/K8lNmrZWaICoTGgXhHM8e1ERQjGueEG5d?= =?utf-8?q?MUECvoAt1FNAel8y9PB5zG4PsMGGmKeIajyhum1dzp85kvk3ZK3ZHEKkIErGKwfuM?= =?utf-8?q?sdydoKB33PmhUlZRDEzFjvvBrec1ayiJkmkL7RfwlQzavc8pWPJYkLwXsK19ta5tt?= =?utf-8?q?TRnAxjqPNF/onxyZYonu2Wgk6GTKb6L9Wg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 44846e44-518c-4b8e-78c2-08dccb6db29f X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 16:38:38.9269 (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: ahJrkzmjRPL+cqE7fNGy/a3q0Hm52r00s7IT75Vz2PZilgft4qT3nFgrvt21YDCcH4Gee9Yq2j7QdEcNoI83ZvcdN4cBcjh9P5eBNnSrY/w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_093851_165468_58D35371 X-CRM114-Status: GOOD ( 10.84 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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 Mon Sep 2 16:38:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13787514 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 3A704CD13CF for ; Mon, 2 Sep 2024 16:47:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=7n+Yn/vCaWPe/FFlIR8/xq63jJQnVptZQFCQtrl/T8s=; b=i0dl5pDYgnhcOSEyIgY1IuAJMH fM1IGdqRNeGRYE62mqUQHsaHWRpkW4Nw486S+UQFL/Kx5Aeq20jKf0AQTTTxMdEDxt6zCAK+/FTBt aZ5WptBcL3Au2nOWmpP7O92sMCZ5vxPwV+jM1IW9ZJ/wN84Zf0cISE15j1ztgr147VPXKGZ2C+Mqi 6VekdOp/X82raJ1mMlrs/KrEtZmN3tNleNmABTqDA/mRyMZz8QSsAPQgnFVSPCFw+WOxBUYjqhlSO Sn1D3buigjd6NMCb2Yanv+aL6euMr0dcm+JtBAiu4LDTBmQOvgtx2Gr/FEB3DHqYB4T9Mflo62NrD kZ6d3Jdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slACj-0000000F4je-0q9n; Mon, 02 Sep 2024 16:47:01 +0000 Received: from mail-db5eur02on2062c.outbound.protection.outlook.com ([2a01:111:f403:2608::62c] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1slA4q-0000000F2et-2XKB; Mon, 02 Sep 2024 16:38:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tnjFQiGm1C8MbpM64Jotv1EtcwV3e0gRcGKTh/e9oa4QjJs389JiFDKlhjGJJe2IGMUAbNJNtVc4HuKZkukN5XaJhonvo4PZqZABgQzyXjjwmzd++7HqeJaYhwJqFpGuh4aJwsYIjXXp46BRlx/TgLJQrzVkOMcJmxbce1T6Fv1OQnz/VIim9/qc9e6d9uxAuT5dPi/8gG8ZSFcMpyCo96Ock8zrOdUY3CiyyOtG+y2BABL6dPOtKn4+NkOTyXrBqMRILhg2MnQVcEWG4moWzZkRmt6jP6BptfonVbcpCi7zoSruzJKRAZSgGsSShGLTRPFyZl/+lATIfW1pT6KEAA== 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=bERGBYcKll2oxiuVChYl5r4NVU4ZBUVHPzGGapFyaTc55DB2FURrMqFRdKMFii9KnORu3NfNCu5Vso2icBPsJqwK6nJNOoASpQLg3G6dqDL4syv9G83V2+Vdn00a83BInraWQZnJSI3NXx2qf0CTA6wBngUuxfNP4tqzjvBwssz9En2hMaz++is/WYmZgUYix9NMWtLHILS1e/zjXrQtmhi172RiOh+526xrmMrCfnbGwbUCuEqEd/PdPydpsux2PW70T0rW1NmYpmxJJMZHEpuSOD+QNFC1O0CEASFFFMkMmHJOOHUch7v8RwdcqVorP52P7S0JFBeI9d9qKzIlng== 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=DCXg6zRwunNFlcL4zzRQ/NZp372LGbSbR6ccZMdoQandToIu8CZylbG6Q/EP4fkITIJEcMlBssrmvjAeK137WfBZMCB9uMYlcozNdfISMn9HM2ixW/PHq8y40y0LA+VHOa4hKUf7BaPvPBdfWTyoTvbSk9zHlc6rQv2sNN59CEI= 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 DB9PR04MB9645.eurprd04.prod.outlook.com (2603:10a6:10:309::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Mon, 2 Sep 2024 16:38:39 +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; Mon, 2 Sep 2024 16:38:39 +0000 From: Farouk Bouabid Date: Mon, 02 Sep 2024 18:38:21 +0200 Subject: [PATCH v7 8/8] arm64: dts: rockchip: add tsd,mule-i2c-mux on px30-ringneck Message-Id: <20240902-dev-mule-i2c-mux-v7-8-bf7b8f5385ed@cherry.de> References: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@cherry.de> In-Reply-To: <20240902-dev-mule-i2c-mux-v7-0-bf7b8f5385ed@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-99b12 X-ClientProxiedBy: VI1PR0502CA0001.eurprd05.prod.outlook.com (2603:10a6:803:1::14) To DU0PR04MB9562.eurprd04.prod.outlook.com (2603:10a6:10:321::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9562:EE_|DB9PR04MB9645:EE_ X-MS-Office365-Filtering-Correlation-Id: 49b24db9-8de2-4bc9-1491-08dccb6db320 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|52116014|7416014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?zQHE8GYtBgigiywCqJHfAcbtGMVr8jW?= =?utf-8?q?JJM0OLvIXqq2TJW/VN0AfFkvT8BauhhPpymUI1puEBrWJIubIIVSTlLE5aQwjbeQd?= =?utf-8?q?SkCBghwIm2e5tqmhlNTC4pAJq+/N6+IZUlA361N270TJF3pqRT0Or9wO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qMzIz?= =?utf-8?q?ZovuV0Nq4Oc62RnVMjJmG6CeaOOOlTgcHxWlMiOWmgZM5TouplHc5enUstWjvJX2z?= =?utf-8?q?4d2WzAzR3Sb6aMVX2tEz0HrutHkgvRPCrE4yvnctmEJGmmwNvbSLD/04MiJgI38Hi?= =?utf-8?q?YGtFEtZdaSN4btfcqICUXMhZnvAEeyMfd1/3sqkSaxDz4KDJ/PpSWpUMR97lUgdU6?= =?utf-8?q?gjzoJqeHhViGgNO0gVmjJsWUk82UCMHl5xVxpEXBE1FsiIXj2ftGYeq8IVH7LIpGh?= =?utf-8?q?lnYaBbvFm53wU1rva6aP2njwvF9zgcihnASIOwacSrqE7oTpW7lOjec8n39Wl9HP9?= =?utf-8?q?C5KH6VvEucybw5OlTZ2Ig12UaPjh+vi/hNB36Vclx/pnt+yrHoe/Mec=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9562.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(52116014)(7416014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/Ncj1LJzCftGlu6bteZy/OqCLfw4?= =?utf-8?q?QPjrzbFOxziuI5NHsyO5m62pynsz6fRXCX0Drjar4I/24vn4PjOLFVhrBRINgCcR8?= =?utf-8?q?PqEpdWpYZ/E2eQ/mRUQOukObxPFRHaEG0FNp0v3Wz/W8/G4NRKMXrboCPPIrMJjav?= =?utf-8?q?BEiGiOkptuHv6mMQQSzOpclc3T0uQlSxtqm19ioOkYdh+hg3rkaGew4FHf5vd4eEp?= =?utf-8?q?iGrAVNC2mwgkBAQuwSWAB41C7hdH0xSLIgTFbS+8Gh/n95OvMJl0b0syJK3MhbchV?= =?utf-8?q?fe272TVV4tm/zrn+aKJYBBNQjwGDw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0A0FGQVKob7NWn/6WRehodA9ooqqwRENnLwz1OpPxpW3Dd68A?= =?utf-8?q?mDsIN1ENdZSNH8WfABr6Evyuwfxgfqzaky0qvflLLpWxKnwy0monP0fashRVl0/ak?= =?utf-8?q?iwcEr4BqBqL7Hp2uWHX72vJbH6A8icolCBzClNFzqf26c6X1xKbTlmg6xPulfTXdn?= =?utf-8?q?Mml+hnBos+87NU6NodlDU5P8XCpo5oUr567DCbI/28qQnuKrA4iBAEFnnAcUytFRF?= =?utf-8?q?5Pj+ZXtYs+2b4HuxZIBPJu/uf5neTTjETULx2+xWU8TQj5e6ZEDrHKV2FH80CHhYH?= =?utf-8?q?0s5I2PSimzm94ejHVQS2jSOsVLDOGYUtsKXFmL78WzGoxRNhInTR7fnIMg5odi+WI?= =?utf-8?q?paE0ISibhS2zDyW9kQcANsMq8SuBYXh85Q=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 49b24db9-8de2-4bc9-1491-08dccb6db320 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9562.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Sep 2024 16:38:39.7782 (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: CU1m6xkVGtDKkIzxxI4RZV09TPvc4D1ru/vW8ZM3rumc64GLO/8u5OHwV4fNpw009zaro1A5yLHSivhBEdjHyafyVOpGAkiZvzu8XKR3scg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9645 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_093852_690165_B29624E4 X-CRM114-Status: GOOD ( 11.13 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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>; + }; + }; + }; }; };