From patchwork Thu Apr 25 06:06:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 13642884 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 41CF4C4345F for ; Thu, 25 Apr 2024 06:08:00 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4CRUMY3n5/Kog4KSUlBj0HEpcr3GF891mlW8aamwZro=; b=UD+UoYtdXCUoXt s5vfpwsfjdX8ZNy7Z2pKLgbsOyK6iUal3rjJ+kMIZ4VofCzGeOKzD+T9Wjo2LpZX6+VnTSC2DBWPU 8PzjNjw9yzLa/vGqJ1JEptf7qQhOmh6wWYMVDEYoMv+7yj9vjZIBbV16IDSQALhsZUtP3QtgXB47x q5BEBMHpLn6YxGtxhiJ4YgUMD+EGxRE5tcXPF35AYiHt02ApwNzSzsDRK/cg2bAOo0zCueIqr3iQ2 jPonuDg+yLznS5Axog712JgP1ynP/LqpHpp85HnZitppC862FhXNO7XlXfTWQDUqBwB+XyF7aG80v nrYbE9SRNzBFDZgBfgCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzsGn-000000075E6-0GTa; Thu, 25 Apr 2024 06:07:45 +0000 Received: from mail-eastasiaazlp170110003.outbound.protection.outlook.com ([2a01:111:f403:c400::3] helo=HK3PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzsGd-0000000758s-2dSp for linux-arm-kernel@lists.infradead.org; Thu, 25 Apr 2024 06:07:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R5nL6D8RjhfmU4y6br8Z8sYaFDiG7daUyK+aDrkmr2ZqJIx0KdQKrhn77dn3t9Llb5HMHIVRNxuSFGmkg/qimRPxhp1OdjGeWrNXwhOCNSv1tFQrniEgnQtVHEc40rk7Hd+GElF0fZlcBRvqilof4r/SOaNjU0f2mMz97sYZQRXeBuzNNUDhEdK7GhwYj6h7XikLrYysEFpir/mCgvWne7pV9+nEtUrhpK5k6+ggS0lNiSbg8ZEGgAxQaRiWpvqRCIXhKmvQFLeP21j9c8i/ZEjCUMpWDx/kZtuHaw3Z3tXtaMmZznWb+Qu+XdVN6A18u9GGJQq+GJZSgguNNqh7KA== 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=5Eg87oFJzWC7xCt0aHVYxZaLsHmigJmRYeA5ee+//qo=; b=ZqVRNfOSIHkpeNZHxDbFYoVX5CvtB/K7ExCSqFZehE5dyyDAGYMI2l6805+ByUzbuvwXrHngc3JitVBVPjkExDg2a4sVdwP0JjLr4ZTcVQoSv0X0/PrWMsi44bk+yDUFTSRoM5/g3nVpY5jSxLIHjbvFBQcI9AIjOj7Y/2n55Z20r21CG1EdGm/gTiNT3ot/WTaDWIirwBPpeGR/FLdvvCwKobcDCiamweqw7qLX/BHTYCW31XtakKyyRv9uxjZYpUQKGyBmi6mfO/4PlAGcl8hLJdH/yWPzj5Svrxp+WsewBfyz4f4rjnv0fQYsxCc55+oVx7TlyPc4Mb8ecxll8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=fail (sender ip is 211.20.1.79) smtp.rcpttodomain=stwcx.xyz smtp.mailfrom=wiwynn.com; dmarc=fail (p=quarantine sp=quarantine pct=100) action=quarantine header.from=wiwynn.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiwynn.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5Eg87oFJzWC7xCt0aHVYxZaLsHmigJmRYeA5ee+//qo=; b=Y5e2dBGQXOpKCYPzF//VjhLpORTmnQB3XNK2RVV5iMv7abennK61VxkX4aFO9JCMrqzL9iyKFbm1Mu8o6CI/0WGN8SXiSg+VQdQvK6fi5FQS/uJGq8xwBgwuXx0+nmdXSGahbZHfOosyNUDCMc/pIZ+4MBXRVS31UvKKxNS+9lnGER/Xok93zAujBT3vbbi+2FaqIaL6q534pX0CkoPBdb/xFDYf5kd5gyA6LxbNHke+PHZ9tlZJnSaxlZIOxAIINTJifwnAXWhy+qsL6zZMX3WRXKMhWpFYrPHY6X9dI1sN0WgJXdK3EOV5fMY9BEOBjXIjc7ZEfVYNqXV8fEJy8w== Received: from SG2PR04CA0215.apcprd04.prod.outlook.com (2603:1096:4:187::14) by SEZPR04MB8173.apcprd04.prod.outlook.com (2603:1096:101:24f::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Thu, 25 Apr 2024 06:07:19 +0000 Received: from SG1PEPF000082E5.apcprd02.prod.outlook.com (2603:1096:4:187:cafe::31) by SG2PR04CA0215.outlook.office365.com (2603:1096:4:187::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.25 via Frontend Transport; Thu, 25 Apr 2024 06:07:19 +0000 X-MS-Exchange-Authentication-Results: spf=fail (sender IP is 211.20.1.79) smtp.mailfrom=wiwynn.com; dkim=none (message not signed) header.d=none;dmarc=fail action=quarantine header.from=wiwynn.com; Received-SPF: Fail (protection.outlook.com: domain of wiwynn.com does not designate 211.20.1.79 as permitted sender) receiver=protection.outlook.com; client-ip=211.20.1.79; helo=localhost.localdomain; Received: from localhost.localdomain (211.20.1.79) by SG1PEPF000082E5.mail.protection.outlook.com (10.167.240.8) with Microsoft SMTP Server id 15.20.7519.19 via Frontend Transport; Thu, 25 Apr 2024 06:07:18 +0000 From: Delphine CC Chiu To: patrick@stwcx.xyz, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery Cc: Delphine CC Chiu , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] Revise mux and hardware in yosemite4 dts Date: Thu, 25 Apr 2024 14:06:24 +0800 Message-Id: <20240425060626.2558515-2-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240425060626.2558515-1-Delphine_CC_Chiu@wiwynn.com> References: <20240425060626.2558515-1-Delphine_CC_Chiu@wiwynn.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG1PEPF000082E5:EE_|SEZPR04MB8173:EE_ X-MS-Office365-Filtering-Correlation-Id: c701d320-1df3-4fa1-4d78-08dc64edf6f4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kSmoJ168Ik8EMU2SSc2s2fkPk8Q+h+7os1cv08l4lNtdhqLoznEnaN8DoVCYcJWttraWxNLmLOuIvC4D0T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6wh4J+btNKzN2t09mdEnGWQnA8M0KgjRfFUmjBrjc3HnvXlOm/s88+2ABOlHC6U1pVNVJD0lPLdLnE2KVo2TwmxpynZEz3f/WC+/Prszh/fEwazUrgz5cCiOiZsB/RZ8/oSj5OYh6Cvpef0ik1Xu0ruuCLnKiTV4oBihimYnxg3kmKu5NYoRRfc0f6FxyuxFjNIpX2/HAygalgCUF41I4s1EDvn+lXC40Y7H4q7EsKaS9/OCJPtRYTc7se X-Forefront-Antispam-Report: CIP:211.20.1.79;CTRY:TW;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:localhost.localdomain;PTR:211-20-1-79.hinet-ip.hinet.net;CAT:NONE;SFS:(13230031)(36860700004)(7416005)(376005)(1800799015)(82310400014);DIR:OUT;SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2024 06:07:18.5656 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c701d320-1df3-4fa1-4d78-08dc64edf6f4 X-MS-Exchange-CrossTenant-Id: da6e0628-fc83-4caf-9dd2-73061cbab167 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=da6e0628-fc83-4caf-9dd2-73061cbab167;Ip=[211.20.1.79];Helo=[localhost.localdomain] X-MS-Exchange-CrossTenant-AuthSource: SG1PEPF000082E5.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB8173 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240424_230735_701112_706C6332 X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. 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 ARM: dts: aspeed: yosemite4: Change hardware configuration, consequently modifying the mux in the dts. Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 78 ++++++++++++++----- 1 file changed, 58 insertions(+), 20 deletions(-) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts index 64075cc41d92..e45293762316 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -433,16 +433,14 @@ eeprom@51 { reg = <0x51>; }; - i2c-mux@71 { - compatible = "nxp,pca9846"; + i2c-mux@74 { + compatible = "nxp,pca9546"; #address-cells = <1>; #size-cells = <0>; - - idle-state = <0>; i2c-mux-idle-disconnect; - reg = <0x71>; + reg = <0x74>; - i2c@0 { + inux30: i2c@0{ #address-cells = <1>; #size-cells = <0>; reg = <0>; @@ -450,26 +448,46 @@ i2c@0 { adc@1f { compatible = "ti,adc128d818"; reg = <0x1f>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; pwm@20{ - compatible = "max31790"; - reg = <0x20>; + compatible = "maxim,max31790"; #address-cells = <1>; #size-cells = <0>; + reg = <0x20>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; - pwm@23{ - compatible = "max31790"; - reg = <0x23>; + pwm@2f{ + compatible = "maxim,max31790"; #address-cells = <1>; #size-cells = <0>; + reg = <0x2f>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; adc@33 { @@ -492,34 +510,54 @@ gpio@61 { }; }; - i2c@1 { + imux31: i2c@1 { #address-cells = <1>; #size-cells = <0>; - reg = <0>; + reg = <1>; adc@1f { compatible = "ti,adc128d818"; reg = <0x1f>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; pwm@20{ - compatible = "max31790"; - reg = <0x20>; + compatible = "maxim,max31790"; #address-cells = <1>; #size-cells = <0>; + reg = <0x20>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; - pwm@23{ - compatible = "max31790"; - reg = <0x23>; + pwm@2f{ + compatible = "maxim,max31790"; #address-cells = <1>; #size-cells = <0>; + reg = <0x2f>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; adc@33 {