From patchwork Fri Apr 26 16:49:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13645099 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 E245AC4345F for ; Fri, 26 Apr 2024 16:52:07 +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=cVQ8PbqsHi23+TDLkKP4swS0EJi4jFtiy1fflQrMEs0=; b=ymO2Eyqiou4FuFiIOtGlYAH/OB JXYU4Y7/EVco3HgydQ/1axIhUbI61WPG1FbrY0iadkvs+/dvXCXIwdt6TLM82FIloVnQq/Jy5fdRi 9Yd9rhtMS8F8zoN481zvfXNcYc/2dA+bFlvTmy4YwoVWEJMW4gL9jZWeK9jrN8Jf1Y/me+KjYx79/ fBQPocKIUWX+R3XTPobRZgL7Ruab50fACOQWnK2MGYeF+5Tq2ZO1K6DMHiBHeMpMrfz1BQWN1n1DM chzqSHLDC5zaiq7WqcoXcrHHxt0us1SDTz4K0Ld0So6Q+3ICCIb7xVSix1aAWtlh9MiUBu/m+6KCi t8UYol1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Onl-0000000DKV0-1fIL; Fri, 26 Apr 2024 16:51:57 +0000 Received: from mail-db3eur04on070d.outbound.protection.outlook.com ([2a01:111:f400:fe0c::70d] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Omb-0000000DJe8-21QZ; Fri, 26 Apr 2024 16:50:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IC0FGtYvnw+mO5urIZ7NBorltzvYaK63CFHAyy2zqiuom2W9nlO/C45H/6Ccx03Ox03msyJpFtRXPC1DNBjrTYsxv8+nGpapW5Dq7aOOZKhTaZ87CjKwvLjWzMzt2PpqhqXJRaz8uda2KbcA/0iKGhOjEozRV5/pwS/ku5DSRBrSIPA4kI/gVaoOKSr5zwTdKit6mGWddxdP99hGk04av6cxDiy1SdPML5CZm/klhcirAKWdS69Ke6N7pv5GMe21QWmhucbPt76ghWPEhQRm1HCD8a0GuRHYFKJfcpeopCP/rMsqG3WNU8IxsNT14lZevNq+fxasAqyZD82Z5kWT8g== 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=XSOxrfAk8esZpJgQFqQY0d2QAz9xQyNddfITsHJES/8=; b=Geo6AKh1s35DEDGAh3dL4ByyQkbEqdY9tDbc6ArlVs2Cv9rXm8Sh7Bcd7RTCroxora5b8BxstgtZGIzohV/kmkxOsPv2/onaVydKEjrXeKRsO+5m6QeF0ZsO3D5MG+TO2cFALTBOmrFGtbtlttiM378r02xizwvx8faOPx7B0DzBr7H2etiZu9kQudWt5YL/M+aN/iAT/aWYe0t/fyT9BdM6S739xUzJPbXJnJKkxcXGy6RDJvL98nh0nuyGE+qXYLNcfFGHl8/w+gOjOoXkUxcaPcOd2S2L+XXTzyULzXehFhDPL5liPgGIXerHsgzzNs0UsPs4dhMNOjTIEL636w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=theobroma-systems.com; dmarc=pass action=none header.from=theobroma-systems.com; dkim=pass header.d=theobroma-systems.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=theobroma-systems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XSOxrfAk8esZpJgQFqQY0d2QAz9xQyNddfITsHJES/8=; b=WdO9oFrUnfdW90ZMsJVq4R6fIJmW3cRguoDO4QJGc0Xl3siv4dnzQz1wKVOAUjOPnJy6QgnhJt4BHjLU+tlPaRe8ONn1XmCaHpfh5dbYxyLk8J7tt317yGQvoQGh+UxOg3+a5MZsm9EgkdhXZjAEbtAvwcbauvmi/dk2GCWUFYD75ytjpFmYYFNlHHp/dxBBT/1ruzOITyWjuQ7bwKSY6UR5j5VcxGs+V+3M6HLAIJhASFQTUa94xHPp32RWXUg2VWerMjLLbT8hz5eimz6IpVHxxQUneVwyf/yLQLWiscKXgYSv0P4Fj8Vjb4WOIHxolBfm0odTnRkX+g9R6XifZQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=theobroma-systems.com; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by VI0PR04MB10230.eurprd04.prod.outlook.com (2603:10a6:800:240::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 26 Apr 2024 16:50:31 +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.7472.044; Fri, 26 Apr 2024 16:50:31 +0000 From: Farouk Bouabid Date: Fri, 26 Apr 2024 18:49:37 +0200 Subject: [PATCH 6/7] arm64: dts: rockchip: add mule i2c mux (0x18) on px30-ringneck Message-Id: <20240426-dev-mule-i2c-mux-v1-6-045a482f6ffb@theobroma-systems.com> References: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> In-Reply-To: <20240426-dev-mule-i2c-mux-v1-0-045a482f6ffb@theobroma-systems.com> To: Wolfram Sang , Peter Rosin , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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, Farouk Bouabid X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1PR08CA0261.eurprd08.prod.outlook.com (2603:10a6:803:dc::34) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|VI0PR04MB10230:EE_ X-MS-Office365-Filtering-Correlation-Id: bc4004ce-145d-4de5-e9ed-08dc6610fbe3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?x4AdSLI0ApoA6FBE3h9R4mbt8PI2nAN?= =?utf-8?q?PgjUkaxeHcGoss1v9J42JeNw7VzVQG1sGB/5YFmFXBpTwa+WLcGCzRStid7AmFagB?= =?utf-8?q?UARde8B0E6ZafVeSM3iBqh0z+Am1dtz+6EkEgi9fzPa0/bPpmG5kUZ8lY5uTZfpgF?= =?utf-8?q?de1ZqSFRSHp0O2aeQoyYXXlMQRLGLKU/PHDET32GDg1O/ihwJzdNeAbLPJXKJxHtl?= =?utf-8?q?QWrnP52iZ+hxVxrhuCrgSGnqrAhD/+e/9Xu/M3WeBde5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s37Q81p3V14zrpz3m4Wu?= =?utf-8?q?6v/wH1jPCnLzX4+BdrDi6nhPFG7ZBpfq2euN5S/YPQRA6YC6W3jeMl0mhusjVQa9V?= =?utf-8?q?rIBpM/WKnuQ4NoOkHAyZtJLKNzD5Jp9XT/C3dWr62iDKSFYBj+3lRAx9mzaZ3VZzS?= =?utf-8?q?J3QH2QwaSfhSj/12lHMu+jHMJtesudrhqsw=3D=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)(376005)(52116005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?wCdGNX34O6vNRWrPDkjruHp/ZmkV?= =?utf-8?q?InJQyDlaHdSe32sEf75kXwW4BsVWMa/bW8+O00uZuviXPgG86n36P5+ZbQnsKxeBf?= =?utf-8?q?viw+CEaITyUd30d9gYtzrwT78BHkPSyKjLTQUv/2kTsSaJYkhKs/wMlkIYCghyBpk?= =?utf-8?q?Se/VvT7gBrbdmbo2CsJzU37gNwdEvgIp3L07+wsEZ9s2dG7SNCbBb3en7Vxk/9yqi?= =?utf-8?q?MKqsw2EGhXP541RaGNPoBXykBw5z6+MC3J/vLTcUekaRLp1O9flUlfeYSuB8XmU2A?= =?utf-8?q?nk+fT16rtlHz9vv62mqmgZa9EpI28ZHxo3Zh/IxLpqUTHbERFRuc96IFtROLdRo+K?= =?utf-8?q?t51a9xmHRDcmVjxxP/v0HhOX3AaA1RV/0gvAwRvwpQOHsS5GePmiAy5Sp6L/VWkTo?= =?utf-8?q?zAn/+MZU5r/NHZOd0ohNP0tcsjwMBAxHIQdTRjAnpPPTo4FRh9dOiubJDZ8j3Mkwn?= =?utf-8?q?ft9crIcPJbJpOaAko0ImfSvSVSQ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dfSzZ4+saBsSrAiok20S0EcHABQdBqti5AoKCFA?= =?utf-8?q?YDRk9HMQn3SCw/LTcFWPptxW0ZGnK1Js/eAaHg7jNgDX9AzfvH0JvmJGgMSTRChpB?= =?utf-8?q?19k5lzbDSb0hKO0OOAzt9VFoAwjc2SdZWN7B9OBG1Gpc08c8bCCEl6OijQri5yXnL?= =?utf-8?q?g9B/4MWIsLFXLTaUUX5wZIMH7WVO3aR/73LzZEAld0S4ic4aASijXLw=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: bc4004ce-145d-4de5-e9ed-08dc6610fbe3 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 16:50:31.2500 (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: 6FSG/iBB8k97NUM06cFJhjjSQ8jiz/oT0kk7kaRksI3TTeO4ySKZJuDO+v3C0zi5HO314pGebVr99+spj7LBsAqmDWZBBaaCJgfUJJPwpK/Mf98TModBY/lZAXO9Xuta X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10230 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_095045_796902_3E10E867 X-CRM114-Status: GOOD ( 10.78 ) 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/px30-ringneck.dtsi | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi index bb1aea82e666..eea906379983 100644 --- a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi @@ -9,6 +9,7 @@ / { aliases { + i2c10 = &i2c10; mmc0 = &emmc; mmc1 = &sdio; rtc0 = &rtc_twi; @@ -291,10 +292,23 @@ &i2c1 { /* SE05x is limited to Fast Mode */ 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 {