From patchwork Mon May 6 11:37: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: 796096 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2134.outbound.protection.outlook.com [40.107.22.134]) (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 5138F1448CB; Mon, 6 May 2024 12:24:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.134 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714998272; cv=fail; b=sFuvX3VBvP/HfW+nQc5/uEyt+6TiKiNX6EDIy47zSaX52rJro527hkSTHodh71QSonmobsb+WfqkBe3vXfSNtC/+Vo2uBws3A5dYYmVpF/yMF66ogQmbJZBM6+UXOQeRo8lUyyOqTgB0MQA1aHKFl8ibsmycCG+ecPmFa9vZ07o= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714998272; c=relaxed/simple; bh=NfTfHJ18239p1sYsdBArc7Weo8iLOFNVO4S7pDS4fAA=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=J12b0RKtPgKSX399JmnOxeZRWlhSyN4ebLUbRaA21Ss3hF3jIrwhYMR0tMwjacVCNbmjjjuWgpDvUb9HKoIzZIpf2lFrU6mmu4uaYBImSnWbxYmWozGZPIUP7CLfIjmbDN3W69/QrHfg3gbHgFQ8PkvkrPeKeHZX/rmQuXKeAyg= 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=UGsT0bPA; arc=fail smtp.client-ip=40.107.22.134 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="UGsT0bPA" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QbBr9b9g4JOueMtQ9uEqL8DFAR1aIAve7Tuj9hkRfbQqRrqa2wydKKIDWzsJBfBepWMJETPIbNTXrsyPks6EMyEYQFviD2aKPAupXZjYhCzppFMH2Vd43Mv3EchzVO6cQKtkCQzLAI6+e4BFbhZwM+UElY5pT+ZvAfn2d2kPd6+cYifWclU0oUtK96tKCAgJwVHYFlFEOj9XWadK+hyzFpMc1EUt0E431uTQiNI1iqB3ZQdRHZIMC+CiEgDQS6g8XFA7sLCTe/F41iwOeQNlHZgwHyc9G3yrRDnmwCeOKddC6pmq1wWRHellPib9XbZ4a84kgmPAufVewdEfYtKttg== 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=U1/V+lbRp3WelWm1b5wkE6w2cGaJdeer/dAdKepK58E=; b=EEVipjEqJeyb+Y3eQSr1gDZOrL7fv559cYsHVIQDUo0VdoFgfY+vE8767Ups+QaNzblxPwksSlWZpgg2pH49ZLsC+ppPWS/XPp43lxervuBIS5qiwWHxl5nM7ypGYottDOzDUr7DggVAekki1WYdAaEwuS2W9H0pwG0EXRo8ES+QUuFS1pof2fC002LKNoSbYYg8mvovoTd6xtVRD2rNF3a5O/FU3djoFd+Iew7s982kyo8JUfD6BaXoVrq0EIFJT8kZF+qwImYA6SGuIEQsSNRTTALcARuwtyWUdV5IN/5elY0ZGDlSwQd7zCVsTYApwj6rmFSilKgbqDwCx2eOLw== 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=U1/V+lbRp3WelWm1b5wkE6w2cGaJdeer/dAdKepK58E=; b=UGsT0bPAB9oOsL0BbekZtSMqUshU7vA7+fzS8p0al4WWHukFm+PMd4RpYAiquHjK91zrK27u2HZ3ffk/clqQFnM0HGLEFLV8ihRMQJNHEWFp8S/pOmhUumBUxFeLMXbrjuEOIXPbXtSkI8eVazYDk526XJMYLvKt53L9h3ddzbY= 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:56 +0200 Subject: [PATCH v2 5/7] arm64: dts: rockchip: add mule i2c mux (0x18) on rk3588-tiger Message-Id: <20240506-dev-mule-i2c-mux-v2-5-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: 18ecc76e-d411-4665-45f3-08dc6dc7724a 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?vyPE0RZdFTioDcYVeynh3OErd6ncNdn?= =?utf-8?q?lWXP6DXeFjlMvqqlY04u69wfQGmn6bjAdmMF5TFY/T9gIL4IzgW/140dbiSyp2Gfr?= =?utf-8?q?55FD/+DeURN9JfuxVWeGAOjZy+/C/yQnkcT+0d8QO7Y7rS3GWBr8/T6QvheOT9Dpc?= =?utf-8?q?GIeMLlVisySpVaL0ugmQVtUmhTwRTjZtoctl0MjwOYiO1BOv/aS8QO+lL2geZMUPx?= =?utf-8?q?YrVkt51zAZqzlz0tgqgnTg9ZZqHr86beIohxCmnkMo0lB4U8MEHdA92SxNpntBqQQ?= =?utf-8?q?Cgla7MLBRQOSo0zTIOiT/lBB80iocMOGpoBVG3HIyPsiAi4piE+dQtOkiGFAGZ4K7?= =?utf-8?q?4oyPGBqzS7MrSA+euH0Vgy6M+nZyQJ7ba23loicv0h82BcTnkRu7oU2uQQ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?= =?utf-8?q?oMZsu3OfnpoHm+Js7kNBaQbV9ZU2/VhxWCML+XQf5ySDNJ87v2U6yJlQ=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?7A99qxBLNrYYeKji1eRGD0IOy3Jj?= =?utf-8?q?HzgYhPhYyClbSsEd/idSprFvr7W904d8KxcWPvAuYUAhKtIpnW63RK4yNQwbU29k+?= =?utf-8?q?wPDXPNy4Lgerj+O5NeoO0xEditH6MY6Ka6XBeCGTE5rVINp4Rs/x9XiX0RyoJOiRa?= =?utf-8?q?WFLgepLGFXv8oVipHsMPaW4MWkMCy/xVs79tWlBkdeDgQgYrpOH/1nW3Eb37Ncmpy?= =?utf-8?q?qe/+eEHj67sNTimv8fpKMOE9Kh8wTDX0ayPNmW3B+IB4kCEvt7+6rLKXbEoSFPXnR?= =?utf-8?q?XYibUtNMwfx876VwL7lfVgchY+Mn2E6Y3t8/+zs5MuZ4WXvBIxDd6+VHo4sTtWFjn?= =?utf-8?q?Z62OSQzLCBL0uAkibyf1e+SickPjeOqUziTQnqia6qV1Qm1qs7KfCcBT+WGMjjd09?= =?utf-8?q?7sXBpYfJsYsFBiRNU/mLh4BhBBoMYSaLaXOZhEB0QvkBAIdXGhyXZJ9ea9R1gOd60?= =?utf-8?q?di7fO5bHOZI5UiqigmMtor9KXUxjtghnnl/LVrJ8iBXFw2A1Js86Wd40UUs/IL53m?= =?utf-8?q?bUXzW73OLAdCqs3X0yYxbp+lhMf6CEmmwrVEzz0RdaA9JOIAH6xS2NTPsNQnLk8nh?= =?utf-8?q?mNOCvK+mjixeXBK781dusi58a6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G268H8oafeF/hkLGl31qYx8N74/0l6FTZcU7za?= =?utf-8?q?eGgzmwU3xdzo1dJaZ6BcpF1DJKKupjFM3A=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 18ecc76e-d411-4665-45f3-08dc6dc7724a 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.4117 (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: cBffa2g/1iTKG5ZfW14la8JXn8eT8490uSO87N27vogXvOkRUrfxY7IGEWt6UgeLsZ/+IIPnznwGURGPVbSkzc12gIxCsykRH1YHIw4T1rQ= 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/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 {