From patchwork Tue Jun 11 11:43:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 803342 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2097.outbound.protection.outlook.com [40.107.22.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FA7D17CA0D; Tue, 11 Jun 2024 11:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.97 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718106283; cv=fail; b=S3/2NM/tK8tC1NrjSIuXqZze7zOET20u3aSNS1xDODInmiF4Z+RzWIgpMJjWga0ecuzgZA4wCVoZaPA9r/10R1EuvUZ+8AoWFLmYt8Ly78rXpbVPvbgJspFV/7BjkQoDZwvxNpkyx5uVvi5cgDnekJHiXL6sg8kd2q+I8GC16X0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718106283; c=relaxed/simple; bh=gxdwam3AHtG2YoVgaJfjsq9hc8+AecBJIv/BEufi9Wg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=F04jEheEPXvdHp5b5rhuCoFpI6gADptvmroKjHi/FOSpfT91YkFCi56Rye5Gp95NR1mUZj5HGScHWdxos+PxEUCXumzvJvvLWpfTwSlINoc1DF4oujcgekNZCPLrmcRrsGI2EhFDfuKCwQ7YKdABSu6S6mVPHqrKqi7Q/xKF3vk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cherry.de; spf=pass smtp.mailfrom=cherry.de; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b=AcD73IMh; arc=fail smtp.client-ip=40.107.22.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cherry.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cherry.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cherry.de header.i=@cherry.de header.b="AcD73IMh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NrolH52ujNhPcSwOqcRxJZCkPTABBXZeln3Xw5bMUPzQRELqfhqbAphnHz+1eoyUxu/Hjhs03QaCRInaKYNE/BM3FvisQPnXSDBchH6zTH+Cz8THluaxX1lvVcRiQ6P9MiVknPM9AA9OTyVpb/ASIB0XVArJkgHYv+UjgjAi16FBLIYK95PIbsO3QeZBL3HQ8bkDYpepQog42eBx0N71kRHYiS9biQS8/2aVYxDKqWnHSRBLzwOcbaiwtdCc9LmilmZ0USLmMScbpKNWKv8Ne0Yndy5g9rjXJFNOaBpz/Lvh39rrfazdTV9IUv4Z+ISkr7hC84vRyKl0hjt2bj5OEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZFIeoMB1Ayjvd6zIuV0ZwuweHreNL3VZbtqc27f9itQ=; b=nc/5f3x7HswkqTAYF1KsfvIF+Y9ZeFxaXgdouWhBYzKNYGSESy1OqyaLsrbSS3IDeH9+u2XYGSjTg1wcLJ5BqX5gKmC6i/Wu1oTU9ecG0YjLDHFi3j895zrzbLLZTb/cnhZYy88e2ohe0dB33WctNxpTOQpvE48AravZun2Td/XtGW5aDuTfL6qTSFMlObO/lsOn19Vaa1PmiVRLJ/Xy87zXsDYptw3ex1/CVbMBBHZ1TH+4Bean17uGRXNnZ0bgSFIkCYz6Is2/FXiC+ELdSK7ryF5H5476plRehrUCGsqf8nRJ4JV1MFVImfQk47OxThOgNSbB+vGFZPTM66XjWQ== 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=ZFIeoMB1Ayjvd6zIuV0ZwuweHreNL3VZbtqc27f9itQ=; b=AcD73IMhOEwmRuiVmjM4uwedIMhRKBhM5pVmIxRbX93q1bSUWiatxNityNDVC9KaocchYtbBvZAU1W6icEtU8QBVAN2nc/bVe0KE+PswnpPpJLzyPAn+cICOUxEbbxFTUNEc6iF0QREKhnvV1eehvF01czZ34GaBFCwi1XPvFf4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by GVXPR04MB10301.eurprd04.prod.outlook.com (2603:10a6:150:1dd::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Tue, 11 Jun 2024 11:44:31 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%5]) with mapi id 15.20.7633.036; Tue, 11 Jun 2024 11:44:31 +0000 From: Farouk Bouabid Date: Tue, 11 Jun 2024 13:43:56 +0200 Subject: [PATCH v3 5/7] arm64: dts: rockchip: add mule i2c mux (0x18) on rk3588-tiger Message-Id: <20240611-dev-mule-i2c-mux-v3-5-08d26a28e001@cherry.de> References: <20240611-dev-mule-i2c-mux-v3-0-08d26a28e001@cherry.de> In-Reply-To: <20240611-dev-mule-i2c-mux-v3-0-08d26a28e001@cherry.de> To: Wolfram Sang , Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Heiko Stuebner Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1PR0902CA0050.eurprd09.prod.outlook.com (2603:10a6:802:1::39) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|GVXPR04MB10301:EE_ X-MS-Office365-Filtering-Correlation-Id: 4cea8b0b-d91f-441a-0728-08dc8a0bdb96 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|52116005|1800799015|376005|7416005|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?4sOlDnpb/gS4eU/jMRR+q3PapXJ2WUO?= =?utf-8?q?Sn6MTdlnUQm8XHWMcMqpTNrWesNBxvTAZRfAk1noklwcbsLCZKrjFpWDXaEJNnFsn?= =?utf-8?q?Y1UUUQqVtz/KhU5np/V1IqZbZGMavIb4/D6BTKfBloPn0sDMEn748e7hKzyCxAqam?= =?utf-8?q?GSFAwYCkAuajzsWnEXFWWXDwgi161RiJh5xlpcgq+6e6OYFKDPk9jBG4VYiW79WQa?= =?utf-8?q?8Mr3IcQVm6FW7MkXOT6aFtnKXXFanxtWT6wuFIxHaIzzinFa1Bo5cG2LTvW+j4kL1?= =?utf-8?q?ApA9Lw0y11moBrBTate0RbCs7k+BDPx2yuC1u+bVJtSLX4m9pn+P4BgJ5dcSBicRw?= =?utf-8?q?SCC5V3IfxsdExzOebjIAbVwo9XEt5JMqV41rVsSZ+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JtXyxiaNIHhvXW?= =?utf-8?q?nZlKqTNhoo974nDMx7w0TutZzWbu/IYZa9pBkfzjePDR+cvJU2ztXzrs=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6382.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(52116005)(1800799015)(376005)(7416005)(366007)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?VgcFS7GLU+0vnLDVx0kw7e0J5qcK?= =?utf-8?q?yaTv/LpwLSvmS/Ld5hTKchOVtf4Fd25bDgsA6nlHNIVN1/BGCMDPBFnK5dJUZkLX/?= =?utf-8?q?613q+dWOBqSFnvhjHCawj3t+pY3bZ+qGxO9gERCqU6IFDhX6jyU2QcCr8Dw77jd4O?= =?utf-8?q?k9rcAkJiyvgXeMqdAZ5I/BdwnVX6+RUWAWnEUZxOqbg0S/IaLms0EMQDq6Uehfxm9?= =?utf-8?q?KDKLrhpm/psMy1b8ydMcj2IRunojk/c+fofqJ/qEMwNwT9rrAQ9OWk5SCMHwBxsd5?= =?utf-8?q?mi9WkcigEvWLKgHfEnbLlAptXlUTe/V2TRg5FOVujAWD2bzyE7p16+bpP5CW4XSxa?= =?utf-8?q?k5E/QTT7by8aJjz0yM7CQVOkV5PQ8pfim1LooxTHwJzvo/Q06wCeW6u8WIkS2krCw?= =?utf-8?q?HUXVm7LAw1oDNo873AFa0y4oL4E8Ivjd+mHQ7fXQG7Tyub1cQcZycRPLDm8MsskXN?= =?utf-8?q?IV1DRmEk/fSBNxzNVB/4eOFD+4g5GL4E3DFa/udCZ5cqkTAttpvcgHvoHsmsX4vZw?= =?utf-8?q?lNZSLs314RIPNpooZfQCElRiE1RUtBKU+WWL/55b+gKa3Tx/cyd3KlHwMgCQ0rQYT?= =?utf-8?q?2FQip7wmaXL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/KOyrWFFaxL8KwSwNmos7I7b7X5trwgYpR2AfhyhP5nrtDZS9?= =?utf-8?q?quV85lK7t0+ufrvZJhLoJdo0dlfCwDtZCA=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 4cea8b0b-d91f-441a-0728-08dc8a0bdb96 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2024 11:44:31.6379 (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: EijHyLmObRV+AkgJnKXXYQrMd2Q0AagAdwtCkXXlQMZ1TFXbLQUAbtY9rvAOUxhiRXw1F5DaRdMjR8uU/9Jm5rUZiD/oW1XC1kRh9Rr0aeg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10301 Mule emulates an I2C mux (address 0x18). The amc6821 is exposed behind this bus. Add the mux node and amc6821 as a default device. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi index 1eb2543a5fde..5ed7d51717bb 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi @@ -12,6 +12,7 @@ / { compatible = "tsd,rk3588-tiger", "rockchip,rk3588"; aliases { + i2c10 = &i2c10; mmc0 = &sdhci; rtc0 = &rtc_twi; }; @@ -210,9 +211,23 @@ &i2c6 { clock-frequency = <400000>; status = "okay"; - fan@18 { - compatible = "ti,amc6821"; + i2c-mux@18 { + compatible = "tsd,mule-i2c-mux"; reg = <0x18>; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + #cooling-cells = <2>; + }; + }; }; rtc_twi: rtc@6f {