Message ID | 20240426-dev-mule-i2c-mux-v1-4-045a482f6ffb@theobroma-systems.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 5062EC19F4F for <linux-arm-kernel@archiver.kernel.org>; Fri, 26 Apr 2024 16:52:08 +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=5IwnUe53CKLyEOPz9OeBS+PevyO6W9Q/X8bGKHC3Yf4=; b=HRsZy7dgu318dzmvviljnFUN0E PRXb1YYAC8JlScJOctQZKcpu/uiQNmE5Km4QpZ0zLc4zMQ1M6KB9JaZ99+kaXAlbTNSFrSQUlAxZx FBjmEspqggmLU+tCNIuL+dnFMm6bYA/57qYd39E3BXosr7wsrT7vWiuP+TxDvcoq6gIBhX4bW3S+5 kC82s84z7oNZcaZpBpW6ECdQWvXWPKZVmtaKGCh1Fg70G3rTdoFcJSafLNoHS5v7UElHOJ22SucqQ H9X9OCxTGD8vEviyPtRhzByC9Q4mPM9pFDGpydjPzhxCdV0Iq1sxd5d26n3KDPHqhQsEcwsd2Vnkk HLUuy++Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0Onk-0000000DKUF-1SL6; Fri, 26 Apr 2024 16:51:56 +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 1s0OmZ-0000000DJe8-0mhN; Fri, 26 Apr 2024 16:50:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DU4ftIo91daBlzHVJFA56euaAquCq50XGDSskRncSH53vzJg5X8reSXCmYF3I5tfgLE86eoZQ2/nVK2eXPn9zy40HXZXsVP097PyoyEGfWJZQn7naRa1Lv9+ufku4VvYz4X6gf+MZAnV8RXaQsRz+t2WidAiFQneHpLzbKAV7ycNAC1n6BIsx/z9vVLSJgQropxxzQRTNh1+tXx2Rt58HxD2FjDQjKhRnKSxPdDlKfyrM5z+D1S3F0/Was53DN0ya036cfegQneOvMBhD6lGiuzZ9N3s3RI0sku8cyrfFDVwg5R8vy2phoIwUU/IybThB+Imgfur4ekEsRpMZOMVzw== 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=3oRT6bHEb9rMmvzVNQAdfABwzPzcqwjzZRzXFe/1ffw=; b=A+pbKGbINzAxmKFIHXbriEWH8n4mNZu/WlcyPn/4lqgf3VFAyugKoA0CDXpuR3oh4KcGfA/uwM9GW+jgyXy+bXY7ZmVKGAk0vy+5GddjmXPkMMTO/g64ax5/NDbJo3rstM06++bwcuVVUSNMRnkA5Gzgizgyd952QomB3oZ7r8OGnwDasypYrXDYWaz5IoK99tc8ZkGjKxNMRlW4JC9QdSnQoUpU1hjCllpHwM984fDANT6OHNo2Y6uurlJjsF7ceiM5zsFBKkeAKIxkYg1sAnKKl/cCNTK5eeO/6RGJrXxK7cm5afmUnU+MOf/a8ckpgR49jDBjkQpCa0SgkFdDUQ== 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=3oRT6bHEb9rMmvzVNQAdfABwzPzcqwjzZRzXFe/1ffw=; b=Yxxup9gJnRCuJ1WaZqEFbL9QqkZXUGpNMrysfbuHcygzNSoP8jJW8ghQCHde5geHu7wMvg71KRKJprDlNYCG8DTSfW9IZQ2DqxdZU8UB5x306nAvxixbL06JxPXTopg/AmQv4wUQ3n4a0FIDDPT1FvOMFPM13xw+xxylQ5wdzqQMBP8t91uu4Sjigv6VvfU9uGJbdZZPL3h6aGlr3fiRxy3f8bvQO3ewCi4Sf9JcfneBbzocbfMLmlZuvRy5BFOjt7c0mNv2Y94/W7MRgih5ao3vCH55wf8WeRf+4Pa45rFyDjEIFgTze6QI7AL3JSRF7Y3v2GuAMswNnqkequ/wVQ== 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:29 +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:29 +0000 From: Farouk Bouabid <farouk.bouabid@theobroma-systems.com> Date: Fri, 26 Apr 2024 18:49:35 +0200 Subject: [PATCH 4/7] arm64: dts: rockchip: add mule i2c mux (0x18) on rk3399-puma Message-Id: <20240426-dev-mule-i2c-mux-v1-4-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 <wsa+renesas@sang-engineering.com>, Peter Rosin <peda@axentia.se>, Andi Shyti <andi.shyti@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Quentin Schulz <quentin.schulz@theobroma-systems.com>, Heiko Stuebner <heiko@sntech.de> 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 <farouk.bouabid@theobroma-systems.com> 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: 8969828b-ecb6-4721-b5aa-08dc6610fac7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?SJc0xdce8hWfDoxVwhS97L/KGRpXsD5?= =?utf-8?q?SxriejJMnYdwptx2puvX4p9a7bkw7Q/zZ4aER3ZBCMth3R5saDXcrg9AigWAaJa9t?= =?utf-8?q?A6Ze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bHSaiyWdYRjUmMnKoaARk0lK1tgNXfHR1SVQv2RpeFNPn0zknVtq8q1dTdwR?= =?utf-8?q?LT48H9haCwWbKnrQfrgcJha9iBaKcQdKfuaouwxOhGDPB0SF5po9i40wn6P90W7Qq?= =?utf-8?q?fWYXxISFGHZexc/JiQiIRYA3QFhOuEptvnc4bmleKEnw2tTZo24oo9qFTrJWNKkaN?= =?utf-8?q?ASPIBvhLEHLq2WzUmzlcABl432yrkh2Y7f/uf6U3J9HVQZCd57tD2TlsZgxDyV2rF?= =?utf-8?q?3xJj9Epvr8IW8P5e51vEUnLmvR7cX+d+zYdTcDhvQJh6oPvsRAGmdCGhJbeJ+Mq9k?= =?utf-8?q?wtp84yDq7vl3FKJ3CPqQahLku5GoQFajg4A=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?oSDN/d7uHyntnYUMVfD9NI1h4xfz?= =?utf-8?q?qsW4HmMuoqcl6wV1ce7i1xoUvA/Cw/+nONKpgUfyZeB31oYgXDhIqzoAovh7tH5wa?= =?utf-8?q?aai0nEwBXnTe+Yis+cV9fd3sQXLG2FkqSx5KZAu1e5KgWsg/19Qv3pEr04lbiS3sk?= =?utf-8?q?G2DjSCyfUHfioWejyglXBv8g40rOSfOPsVDCFUOD75Wi7wR7iDG+0zzOunWKcjzcq?= =?utf-8?q?y4Zr/2wfh/Ee939t41w5BI5d0kTf5JBeI6z+iftX4g3YHEU0/wqXQTWYdCP7Td4PL?= =?utf-8?q?eFDSoKrJQsDKJvXzugHFxTDTicgH4fMKFfA7pMjHyxSZ06nI9GDJQrjAWYGFs2mTr?= =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q?CAt8vgKs/2e58+BfEy1JxleLmhK+Tr1jltIS9WZy5mNJZjz2/f6S9tdsIIOB2kzLM?= =?utf-8?q?mGKgpZPNueZjISvCTonkleERAgfWPQRdDYpHUN0KX82CCtfMiXbA3eZCxRTfse43B?= =?utf-8?q?MVF6hGNcxPotAf17YjlDT1EMQtLKvPBJmC+j4pKv9jp3C3kv6pHLWR1c52p7qEW8b?= =?utf-8?q?1K7HL1BjFF3gxjAd9YAOBBq8JdfwsIkkZZeRJ8GG6XNOMmubGv+1rV0nhFn6b7eZe?= =?utf-8?q?390fbU5of6EOBahvX/hFesmd1t4IdjI8mY0qBTbe016iqyMNFgvcsXbxMzkSHsAtZ?= =?utf-8?q?oCVFQLkRxSTZe1WmuWIpxTRug7/+8mm/7OW/gmZ4dUWH0CheVAxw/yY=3D?= X-OriginatorOrg: theobroma-systems.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8969828b-ecb6-4721-b5aa-08dc6610fac7 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:29.3699 (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: mr6wYiSKJNSAELW9kyYyA/smD7pz5N6lHzP1ZxUKHQDPyUh6vxHVD5nmsWQK2HNsqd9877KKGVC/EH+TNg5HCsxdXrSyo1Nop/dKxczT01KLQKRl6mQbjsWqJFdo1RCK X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB10230 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_095043_359860_C1BC3696 X-CRM114-Status: GOOD ( 10.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add Mule I2C multiplexer support
|
expand
|
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 {
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 <farouk.bouabid@theobroma-systems.com> --- arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-)