From patchwork Tue Jun 11 11:43:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 803341 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 91A9C17CA16; Tue, 11 Jun 2024 11:44:43 +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=1718106285; cv=fail; b=WlNVGjFXQ7nuruAxO3n5tly+hV30mvx9iuSlbdvS7cP5Bph+rnHcX63Gsbcso2v1uXVRwc3+ymiEelrek6k1KEIUm7LbonRaOW87+JLssWHYuvunHIHKMzl5VlYuWdGphAz/aHjV+suNqeca5iZPNACnbiE1eexdPB6Dg4obxQE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718106285; c=relaxed/simple; bh=zf31fsPc+ejLzxXrCAK6u9pJqrI0f27LctCLqZ9aV1U=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=lqmTlGP3+r1k9eaPbad46i2nlW5ertXtst/Y9rKUGw9mId2kVeiUguiiYF6FQQZKuotSXvRabkP6M8IGx2YbFI3SdP3dbR+iq1R6yBLk8/Erxfjt3Z+VQp+aMMKwN4ENOzmhydiW2fkNli4PJ3nlti+ukGefXd9qNKJ80L0Pyms= 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=Itd3BEoW; 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="Itd3BEoW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mCmt61iTfjyROrRe2dEs01j1GSUzZhpch62MeLNkU/0kZEhoP/rRKKdd/xfqLgqdeMgq7+glv3218GLIGNb66ubagYPVlcvVEGr7vbTa7xzwuXW78pl5HPaWSMnEHpqmQGmlZgpyjGR2w79v7CSxAKl0NTtFyft2CthGH1FmxJHk7VK77GfQff85w/HcnbqKGbKWeuRQlzFZC66CJXkqwX4E1q8okPYC0LW3uDR6ibonn/t/LPLYRM5OgNvpuB3uL96hND1yhOsxSWZ9i69JSpYzjDRlfgRnshA7TprG4UqdtqYY6sQgogzIrQ6W8hqHYubmYvk/f16u0dj1SN6LKQ== 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=+YOMp5PxtEIH32WPrIdAw5ibx7RIknJ01VIcy1JYLmg=; b=QlpzMpBnZOW8fkZpcDMGBg9wGc2jxuSJks/Sgc2LRVOfpe8vzIzJUK/C5mkNURtCq+PgAqOQdbOMX706wtECwf5QrrraO9LGFOg4lMGFBuazGNrYXW7Q+rMdFAVS3+dB3BdOYU+pZkMU8hReOWDnewKzGi8hYz2WmZNARkIs+jgMKI7WZA/tDwcbok6qj5k1pIONhSOVge69d33OYhyabviMdVyctj9OXR8CUt0/yikrfqk1ep8sF2y0pxOhHUt5a12Mn03dz5gscTBvbPgGlZSjl/Z/ClzCKtExqMYsDXWdyryicj9yoAkmUgCpe3tZ6UoSH2adjFBn+aeX7MKHWQ== 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=+YOMp5PxtEIH32WPrIdAw5ibx7RIknJ01VIcy1JYLmg=; b=Itd3BEoW8CSnNxwYcTAmR8DC48I9xulHvkW3wLj1PGkkdM9b3tQDcy9zJTq6uUtNXWkXj2rI0eDx+byVVPMQryI0nHKGd9vSsjeBHj6H1r9+sdDDV+hS8xNGg6+4Ja5Al1vJQK28EbD+p2FFuIKOMrBaxZhWlRTZlG14rsHtvjc= 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:34 +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:34 +0000 From: Farouk Bouabid Date: Tue, 11 Jun 2024 13:43:58 +0200 Subject: [PATCH v3 7/7] arm64: dts: rockchip: add mule i2c mux (0x18) on rk3588-jaguar Message-Id: <20240611-dev-mule-i2c-mux-v3-7-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: a65233ff-df6d-4f97-08b8-08dc8a0bdcf8 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?BX1naD2isRJ76a7NnZ1klSUXcMXieFi?= =?utf-8?q?IS1Ak6aDPWOuQ/dT8l2lD8twiMmMZrHrmQWZcyahdw6bjLUmFgtaQDhHO7n5fl+hJ?= =?utf-8?q?brFx3hzOh5SBQBca1zakv8bKDikf6aGuNnKIDSoyXKrJ1X8S886pHGCEX6YLiDaIL?= =?utf-8?q?6fhK2gnRCJY72n/LMby1zj7vNZCRzdEZObYf1tJhkzRvWXFhLSq+DsR9e5sS0ZxeQ?= =?utf-8?q?wBWRLQgUz+XbuwL4YaCN/gene2cta82+HhW+CLdm4sa+jXHLKtfScx6U7FD4/4Acx?= =?utf-8?q?GzpBzthepXrUlJkXigGE+zbKMV0OXjItQpsL++RclVMyDs8VLiffoHw3KNvTVAIaa?= =?utf-8?q?cHJPm0Ndjs/KsQD78G7nvRaI801kDD/P9Khp81uvZRAzM2wSDG+kybbQa8lB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KRUGCYLCbPBc8yM?= =?utf-8?q?GiZ5f1aCErNZY9jaeuTjt/dyHClhOkATYAiZsUkLoTk0H+O606DyvAa8=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?upr7D9lRk+xaeiZpa7wDjRTR9vkp?= =?utf-8?q?H/WEo8aAtcy66R6vo1V0TfG8qdfJUtZVK1SOfcSHZ7k43iqaWjnSKiAtg9RvXNeBw?= =?utf-8?q?YKWKMyKNQsfzTn2UvAf5yhx7R6py5j1brb1PQhHX9NxFYV7Hgo0leJa18bszAJ1o7?= =?utf-8?q?ZFYDL0EOs0cxir+CH9Uemsu2cKeC1U2WN2RLMuaZP1rJpYozserD9gfI0EjkIIvUV?= =?utf-8?q?VVIdrqPLfSzPMAK5/y+ZlZn5ewuJTL6X/K9GRW8IvbD2bVMOp7Bg0rdM2+obFBvR+?= =?utf-8?q?Mrp7oRs5yDuD3fjQNU8bKD3tovO2/rXB3a52FjjMZZW/KK/ndmYM9mXg4N9tyyzzj?= =?utf-8?q?+5XlzsMI/nmlUO0cVLf2iwDMublYuM9n7bB34kINS4TeHl/LSn4unBt96ulJPhws+?= =?utf-8?q?X8Wuw+aWHExP5hD9e2tUeqypW2fIsmQKtZUabZaLV08zyFCxXMFJr4HCT0+ZmZA1W?= =?utf-8?q?ZAvJdFkj7m+eJscYlRvMDXoE3XRBcBVquXokiPmDwMRkXAn8F0aBS+cbFhCrlsWXY?= =?utf-8?q?9abUE42YVIiz16cShfShu0BOZ4CP0XTp4yj7q0cRxGGUFYNe1vEA5wyYrGEubVeJp?= =?utf-8?q?U/SOBWvCM/2Bq7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ON/4x3SdNFPErvF4zTP485qA7IW+D11LwLvv0sgtMWNA?= =?utf-8?q?dpYOjvynFCfIslYXOMOKmfhWNU0/R/kYtw=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: a65233ff-df6d-4f97-08b8-08dc8a0bdcf8 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:34.1463 (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: KTN062PQ9BbsPHXktXOo/evZaF3s11xN8SOOJhiZjlsDo0tHoltmnEnrDpgpkM042XBeKIJ3wdajmzvH628t01ig4xCUSydvx8p0//rPJmk= 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-jaguar.dts | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts b/arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts index 39d65002add1..14f1322c162f 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; @@ -249,9 +250,23 @@ &i2c0 { pinctrl-0 = <&i2c0m2_xfer>; 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>; + }; + }; }; vdd_npu_s0: regulator@42 {