From patchwork Tue Jun 11 11:43: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: 13693567 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 AD173C25B76 for ; Tue, 11 Jun 2024 11:46:05 +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=uiLTURAsvYqsLC06ulu3/5ehz2yhKt8ysg1KnG3voRg=; b=GQSaxrLRVAM+ZRM9mIytUqKzvY DMTuhDmean0+fg3y5HwBK50IR4Nnyc33FrgeWAqW2fSVBJtsoNc1GtsZaH91p8hfZMK8U//RQSipT Xm9ZI6a/1egIgRCcX+qP07X3a4paAHLP569QHIZ1N+unOW/65o+7sS/RKZi/NcMM6W96Hafd6Yw/v tyFtCZt4q0PKPWWiXstN8nPY55HZynbBdXB0iBCCPYZTUmBUlDgqMFIWiDSuDeL6hgd/jYjXT79Nf xHDhGOQ9+aUQWXTBmCqiVax2IFBazY/8BVDaWpbCMDbly73tL0laUcWW1e12AECfncgnKkwfYHA94 CwW3oC2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGzwi-00000008iPF-3YB7; Tue, 11 Jun 2024 11:45:48 +0000 Received: from mail-vi1eur04on2070a.outbound.protection.outlook.com ([2a01:111:f403:2611::70a] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sGzvi-00000008hdo-1zMJ; Tue, 11 Jun 2024 11:44:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Iv/qnxzmzgN17AkKX5dYDg1tcdR8mL9i80Y+qmxoDztssd0xPviNVMVe8Z1acd0nuPe6vZfvslVPISljx5Z2eLq+0G9nlG17wHajdv48Xa/MUAk5d0HVNx5ROe6d0aIIevJ02BsMf20FHivCwNyGkVrkuzizRghv4A7x8hQWe+Tr0wh2sJforYyC6gMi1vtFS+qummLGFA5gHJQiuRnQkrERb9HIfHSBN3Pau2AV5BRJCt5ADhTbS2RLBSD18mYq/pbYMrstfI5PrgqEdAZJAr93IoxJz5/6VR4/EEMTiPe6CPSzVACw3wLnkBeqV/O+h180NPwIvSXmYwJA4fl5nw== 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=sAKZwqSDccjmur5hLkm1VaeNdFGpJbQRsK80k2PwSmc=; b=PsRNYcxFsYdz9NE1rDfTfnfWKWkk0FMITmaiqF57Unv87yAoWMgMA1fuvKnjNlbscJ1cKz8bBwP4LwNJ+RJSXiDTQn7KzcS2Un5XVBMZGl0JNCi2RMgYx5VscrxnAfGEn8/KytMbFdvA1uaMI9gvgVv4gpZ+Nq6E8iyaPEnMBZosaXa2NXyPGmTG6FHZvINTVJRyOHTJLaQrYUOFerPQBimmPn5kzH4+Geaa4PaN+jtgxSi+03QVQ5FwlQvM9QOWOg3HaGwd2rXlHoahfVcdYavUr3fzrRdIge1AVb5b70uLKjNAqc748H4hgYgPo/4o2IFk7iaFHS6MVVP9bx3Hcw== 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=sAKZwqSDccjmur5hLkm1VaeNdFGpJbQRsK80k2PwSmc=; b=nNdmiDvF+8jcn1PDlXgBGAnqKuKq7xcdkBptyaAIqswSEVIW+0WtcjXTeaoEK2yWqi/FUKmZtW7tTpnY49B/F/4cnu8D/fmzgSTAVEjmDyvALHkpJ1xZEfapdbrVcbCbmDq4uZHOya9ErMbFVY2xSeE4bwSWOKf/CDUM/3So5n4= 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:30 +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:30 +0000 From: Farouk Bouabid Date: Tue, 11 Jun 2024 13:43:55 +0200 Subject: [PATCH v3 4/7] arm64: dts: rockchip: add mule i2c mux (0x18) on rk3399-puma Message-Id: <20240611-dev-mule-i2c-mux-v3-4-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) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|GVXPR04MB10301:EE_ X-MS-Office365-Filtering-Correlation-Id: 081e17de-9f20-4438-6690-08dc8a0bdb04 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?/JLpLZ8FuxslQ12nZ564XUFHdQ+pmdv?= =?utf-8?q?BsKrUjOci3vIkOE9hcA52cOfs3rLswSbkPEBeGlBeJXxENFy/0ws4lXUg1R3pV3vP?= =?utf-8?q?26VeCut8mGZHkXLhy+VBc26tbkXwAdaVHBxuq1b4Pgc2RPEu+H6mrB1fgGUU7tv7C?= =?utf-8?q?ithboU1o5INo67AGlhjBRgxUBp1rQyzIDBerqcSifd5cShkX4CRt4uWmuGt7GpLP8?= =?utf-8?q?LpUfSa0fLsfBpH4ANMnCJBzfSdCZChflQ1muaxaBZUx0F3K5T8p9MhG/1L4TUN8/2?= =?utf-8?q?tqWinL5IJHH09/fVJo0uTOUE10WW2D+yn0lc3TmiRnfjPSVjMdvPI183Z0V1Imhni?= =?utf-8?q?/qC+oBGxIdEDuw4R9cS17Q5/p524Hd+BUoDIwJy+Cm2XJL/+S6jfr2ESZj+WzZOsU?= =?utf-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-8?q?ytcsa4/CK9iMHXbJr5biZKKG8Fd/HSsg/eWld84YfHB9EcSAMdHftCTE=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?eIgPqAH0bzIGPnFrZmWkB+XzD6DT?= =?utf-8?q?+KH91iZm6aGEZ+6r2VT5oLmvV3fN2SqNcRdBAB8krY5vsfFFdkHk5n1CwMBf3/Qxz?= =?utf-8?q?bPvGVvhnmLPpIFkld9nTkCnyS7BiNd0G+0MZNBfxeRYuvivb4jQsbvDRrsvYmLpaF?= =?utf-8?q?Z5CjLA0MLsgSrIQjXKeGBvpJ0lF25IRkXXn4BU5ildCsLYT4F5+jOSVsWnfrcpZOe?= =?utf-8?q?ZGal/f/1RMuqLKCVCNZZvnC45vLix6O22v3YRbGt9Wcui4HMWoCPSmVcCDls3qgAb?= =?utf-8?q?fAwxlMp4wIkBpd+xaDF6jSeM9HKQjGX6AEvxoCUgnxm6Qe7g3d/3u0ljg/42DjLVZ?= =?utf-8?q?KouRMZ054SqjWk51GejMxf9C/mDBTcrDR2rt1YWFbP4dDCx7dlSyRDfGRT3n6FtVQ?= =?utf-8?q?L0yLjyCh1aQ16lpqfPUW4IRt5tmHXIcLFC0E8onKvAaLeL+Wo6tb0W7L1gU0FcZdC?= =?utf-8?q?nsqbOqoEVazWPgh+xBnc8VtAmDCXSU4mv7XVuh7tTMdOm/6KhmIc3wLn9yNpG80SU?= =?utf-8?q?HxmFMwyl+RbZ8im3vFq8qFVrnJKKhXogLhVgb++GGM4HO/ppt/0Z33+fnMp3oTfA9?= =?utf-8?q?pYHELqGsoKF3Esm1C0OHUxBP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qLUnSFaPSe1S2gt9UO0/bHd/9DY9eyc1RxICWS7EMfi4Nq8rrHn?= =?utf-8?q?15NSF/saELFCSyNM9Vo2cFuVIPbCgZZqsw=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 081e17de-9f20-4438-6690-08dc8a0bdb04 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:30.7856 (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: rpyjcm/3+Go6lIcp+rdMVQUHsRIgVzpVUWLK0KyaaV4DR7dn9SpMNTX3rydCA32Md6RVGxtDPHBBMsMmKtSl5Dqbeyh3f/x2mgdExHk+N0s= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10301 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240611_044446_750736_63D1015B X-CRM114-Status: GOOD ( 10.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 {