From patchwork Mon May 6 11:37:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 795073 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2102.outbound.protection.outlook.com [40.107.13.102]) (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 D2D501442F7; Mon, 6 May 2024 12:24:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.13.102 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714998270; cv=fail; b=jTU9eHPnG3eJoEgl/8JKZp5UnPk+dKm8deUNR6JZMyw6O8iHFIPbx93i9VIbcIYDDslByzEw65XbCjOhnTA/G82yTESrzHtLDmQUm36AcK7+svbEGIM1OeZpA7zgT5ryl0uuX7laZ3DC9uJKTdR/wtmlLXp67K3LofEOjWXgKcc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714998270; c=relaxed/simple; bh=eeUECib7l+Rt7YbDwNX5ncgZEkGH1P2nFJ7Sl5IKW30=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=n69uwU+gYZgI6NZdoNycpfazBE7wxqgJ6kB/8DQw69Xz2Cb5HVLZgQaQokKLFInNZ0vAx4iuNsPeo5Okz9Tywgfp+eWdociGMHv1uMjIyQYP+mDrkpun8lYHsG9e0mH3gXrbDTdWxCUb/UG0GHqU/16BrOCrw2vj+/x0tesSMCI= 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=b3fT7rfe; arc=fail smtp.client-ip=40.107.13.102 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="b3fT7rfe" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BdGf6/5j9KimTmigYqoKBhqG+2pQKbd3lw3Z+DPeYkuA2NIiKlCG8xGsHccxkRMU2zQVuBsHs44rWKTsFM874l7MlliI7ReDZeXGRhMqkXaw6WqSzgiJDV7ek1ihDIV+J0IrIBn7eYIHVvoO4CB8Nw6yOq42w0DQQW52S0nNnh2nu5cOIzV4U2h0kk0LzS3mDApXvdpdpAaMUm3nPnilb6cj+X7TM+zpoiOJD8Ppjejr/2z5v9DuN8wnchE1YThXSzmXdBgYx0r73GeGKteyuW6Ct4tgHmKID7bweGmpvZ8JRzsC+YKOzDkB9p5jzyOQDbKHLtTp1lqS6/BG+PYz7g== 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=f1nb6MgHmQ5pthwDInvb3XPmB6gg/eaOPb6jhHJS89A=; b=eqsJhUuluoGULP/o6gBsCeeKZ2jdF/QG4j1njPo/TbpRfpfxkyTe6Sv6RnQMSTIHFgCqEpdtpq9mw26KCuVZgSJEzCJAguoeAYh8/+55Dr8CCxIfRJ3a1wAIoe2AxO9/5cYlL8eHKwPjYEDS1XiV6todLLIt0z1M4am/y98mATTaoSsop+4QiIkmd+DmFm357tvhhUF+ygnL6fZvMyiDrFUGXTsPBDF4XWCXoHOgUKjigCvYXlWSc8rpIUD++ELSEvXk4FRolIQsXoO4nFfNTstzda8eNIzuBM7yTY5WEV/OrcTc6MQlZFBqTQlck0u1HDZU9mjHarOIy9wXiBECCw== 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=f1nb6MgHmQ5pthwDInvb3XPmB6gg/eaOPb6jhHJS89A=; b=b3fT7rfe4VOSCj4taMSxhd8fLRJJrYbWC2vjFA6nVCVPKbNz+ou3EUB5RrEUoal9LYsGzHVe49lfLuYsmqT+uF4BAEyxB6AvYAbz+HcLJWq84nGaMMn3Qj7KSQKoE6LJ0FUtbxxFwWxH+WKchzPUGeVAMU+6YHqNbuAPW5EzgLg= 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 AS8PR04MB9512.eurprd04.prod.outlook.com (2603:10a6:20b:40f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Mon, 6 May 2024 12:24:20 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::59d9:878d:65f0:3936%4]) with mapi id 15.20.7544.029; Mon, 6 May 2024 12:24:20 +0000 From: Farouk Bouabid Date: Mon, 06 May 2024 13:37:55 +0200 Subject: [PATCH v2 4/7] arm64: dts: rockchip: add mule i2c mux (0x18) on rk3399-puma Message-Id: <20240506-dev-mule-i2c-mux-v2-4-a91c954f65d7@cherry.de> References: <20240506-dev-mule-i2c-mux-v2-0-a91c954f65d7@cherry.de> In-Reply-To: <20240506-dev-mule-i2c-mux-v2-0-a91c954f65d7@cherry.de> To: Wolfram Sang , Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Farouk Bouabid , Quentin Schulz , Heiko Stuebner , Quentin Schulz 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: VI1PR0102CA0103.eurprd01.prod.exchangelabs.com (2603:10a6:803:15::44) 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_|AS8PR04MB9512:EE_ X-MS-Office365-Filtering-Correlation-Id: cd8daa05-fdfb-4bc5-f1c5-08dc6dc77228 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|366007|7416005|1800799015|52116005|376005|921011|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?VzaksAzXDEirM9rj8Ki/tgT/arlc5GC?= =?utf-8?q?9S2KhbUtcYGi87M6UoX2etOfg8XpJ4oktcM7TANBT5p97U+EFeFMT6BP6Vi5Wz0a0?= =?utf-8?q?OUAfeJPZnmHoUW27q71B4jbISifBU6kJJs0bZBZDMn263UVEAFujzuTI6aGmrlLBG?= =?utf-8?q?Yi2J5ujMrpHtAiJ8bZzhIbZggWjsj1DEX8hNUi8RjpVmqb5OK+6gugRaFDDgC1qgV?= =?utf-8?q?QZAPfNooB4QKxUAg7/tZD86pnOtgaHBClRPmvryBG6nmHjxu6alsgWW/xwQE7RG9X?= =?utf-8?q?y2zsrhQlSAn3oNA2n+hHxyK/snSU0Pv8EF/ZdkHXtvCu75WFwQBIrA6ReXUoF8/I8?= =?utf-8?q?JrPq1ZSsjymbkoRFObSrJQt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BH1VWm6wnzPmCai1SiJmfjatXe37vxYq9Do?= =?utf-8?q?a8bsX1FccwdJ4jNhSff8T+B6J+B1gi0URsI/KuitoIOvygHn+xSwJYFI=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)(366007)(7416005)(1800799015)(52116005)(376005)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?GOulo0ZUjGANBP00mjqY8v8d6L8a?= =?utf-8?q?jGDhvaqamev32CXL16cpbIjbN7cea/uyYLOWomuZzVhX59FehA9r5XyZi+PaFM4HJ?= =?utf-8?q?g3LWxtH9qK02PrRSi7+NvKGIHxqDvdyLTPAA3vXtxVgNXKlnLjCMBWPnP724k0l3W?= =?utf-8?q?oRJSWhyR83s/RR/Ww9OpL+27uiGaRubPg+x8tmmW1Bd07pYYfWuuUHoXnL43myIWK?= =?utf-8?q?3VnsQP4r4359KjvvjJ5w3rx0NqgYVr4mOWeY31xaiFrhDs3PRDFi0Vs2grfpLHr/J?= =?utf-8?q?vksjI2OcSqKL2hTMkUOnGGeYuXaHG2Ipk2CL1cX52CTY7smfZWFgMTBxWnDVJQVu8?= =?utf-8?q?iEXsVO6pHef521VmO1dIQLY5ytsYfSYfTMxFvZ0p5q8RarFDY1M0iV10mTEThbdPG?= =?utf-8?q?2ppFr5sCkQdbCNWTu8SwMoKEa/vMMxTsW4mQjC2T9LIZWHC1HKZo2rTjCea3fZLfa?= =?utf-8?q?o0WijFQG9Snewvz/60OoKVk6yVX0XRbeZsUBfizDyaDFQY9MGe3pjOKrqmCPf8fts?= =?utf-8?q?AbY2pVdA0Hve/iw8MkR4rWEPAmbx8d8pPptFLDF/aVgz73tN7XD653Si7GE0J3cgV?= =?utf-8?q?C/9CM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yTbw5dyb7J73g7tviOWvF+siKi/3gtJXUY0V4gPk?= =?utf-8?q?TkS/IbivLo7/1zp35Cu8JsPJKlryGzWyLA=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: cd8daa05-fdfb-4bc5-f1c5-08dc6dc77228 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 12:24:16.1806 (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: eFytnREWoE70HMv/+lSBz/J88HyrP/v0AEFwjWnLCgeuj/eOP4kqB7J6gvxZ5cnaPT9pdAiaFs5qTGLAuVfvVDR6U6GBURIdnWuc4zWga2c= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9512 Mule emulates an i2c mux (address 0x18). The amc6821 is exposed behind this bus. Add the mux node and amc6821 as a default device. Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index c08e69391c01..e7313be24c1a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -10,6 +10,7 @@ / { aliases { ethernet0 = &gmac; + i2c10 = &i2c10; mmc0 = &sdhci; }; @@ -357,10 +358,23 @@ &i2c7 { status = "okay"; clock-frequency = <400000>; - fan: fan@18 { - compatible = "ti,amc6821"; + i2c-mux@18 { + compatible = "tsd,mule-i2c-mux"; reg = <0x18>; - #cooling-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + i2c10: i2c@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + fan: fan@18 { + compatible = "ti,amc6821"; + reg = <0x18>; + #cooling-cells = <2>; + }; + }; }; rtc_twi: rtc@6f {