From patchwork Mon Dec 11 05:47:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 752727 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="JKDj2nDa" Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2083.outbound.protection.outlook.com [40.107.215.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30D21EA; Sun, 10 Dec 2023 21:47:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Svk0Xr5ERibsKmpflLmTN/jDSsarlvRZVyjYh5r18ZsOCnhA20Hm0hcJZd+Tc0WBiieRX9M9w6ajppgDN5xJimBWP4g/mg1x2578Q4ML6RC8ejb9B8i7AaiGZt206YTecB+PyGB+zcuNjJDlEgsnLMiTmSZQbjr0epKylouzCtbqBptgJUES+UHBtT8kM1esa7rwGRET97Fv3K7kI8P832omi0VVu9y9bMj9KxhiZLY51ivTnB7Jxa/3c4JTc7MpiibIX44iSbtdjNu67PzZXBYq+NvCP4nPVXJlMqbCHKKo1oZEZWLQHWEf/g6TyHg0u4V/vtpbO+c8RkmBUSfBvQ== 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=iJWCQvw9a7gQETE9gHdACqfaOJPGoodWSi2uN4bMFR8=; b=W1ymPRpoh/hXBy8gmq2KMMImEaOUmHEVvLhKTyOTWmU9p1QEksBMTuk3t1eif0CdJyTkjoDuKIWyk3TJY5jAkGVX0NLOO97LHb0N8bkP1lD680SPEo7srblqxEHvXkFzZrxbtGAwghp4b6EmvDpOz14hJFzE5Q53y1itfRNsE7amkJhvwErtO18/9YNzMlL8DGY5MvxhSIatrpWSS/d8fYIA93J7/9UrMTSSIkwCmTLrC4OXCSHioLKGePNz2vdI/MRX+KonPCotVM1gwKFjUUNUVBrICnTpBqG9v446Vf1uRpbQnr9N4QV8E4InpRxhh25gSZ4j3ndc0Yc74Kqanw== 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=iJWCQvw9a7gQETE9gHdACqfaOJPGoodWSi2uN4bMFR8=; b=JKDj2nDaWj8hBi5ec7pbI8H2CpY8qNrc/8l0JWHq9XVGGsgs4HSaSVJ+OOi8bj1ySuz6pK04dResmMR90Aq/iY/C5Bi7KL4EG5gYbXVXTfqJdX0h/Ng+lnV0ihjE3xjTSmfSO5YHg/qM88xX7rgCu1cUHCUzT2zSS+CTQk9K36mkZFRFjtyfSo9i1I68Bo4EZ+VKFKEbjK5QerfB6Vyq9ZIKr556Ls/S86ON9alHQjjTVjbm3BP7Uig8sQhgWAM1sQT93mA9zWSWjOa2Cp4GkDlAprfotJZFcyXH6ARZ3LLzKXBovV7ui0jr8ssxdGp939zTnSQk9GGWx2aeIVeSoQ== Received: from SG2PR02CA0067.apcprd02.prod.outlook.com (2603:1096:4:54::31) by TYUPR04MB6964.apcprd04.prod.outlook.com (2603:1096:400:353::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.31; Mon, 11 Dec 2023 05:47:37 +0000 Received: from HK2PEPF00006FAF.apcprd02.prod.outlook.com (2603:1096:4:54:cafe::61) by SG2PR02CA0067.outlook.office365.com (2603:1096:4:54::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32 via Frontend Transport; Mon, 11 Dec 2023 05:47:36 +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 HK2PEPF00006FAF.mail.protection.outlook.com (10.167.8.5) with Microsoft SMTP Server id 15.20.7091.18 via Frontend Transport; Mon, 11 Dec 2023 05:47:36 +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 v3 01/14] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices Date: Mon, 11 Dec 2023 13:47:16 +0800 Message-Id: <20231211054730.208588-2-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> References: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FAF:EE_|TYUPR04MB6964:EE_ X-MS-Office365-Filtering-Correlation-Id: b49e3b0e-aa0a-44a8-ff8a-08dbfa0cadce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EaX47dvRikpSbaJkETar+puhzSjaxv8enwVL7ckCPgfC7fOTtjKogKysakkxv4gT8O1uIcPYYfBPt1/ADyG6H+aYYoyUEs9IVe686CHeRMyaMT6oLYW6UienQKFunEefmAzRQOiajZjun13al5dUea9Pfi/U8+8rxS0fu4eWNwtzq5NGzJsWpvTv+kxBceXT9U2amWq4E4V6g7D4A2LSvv/+gabAGiRKQ59V6WvpKHEA9THXebFOo7AqaeLiiu8fmI0HZ+946ewN+W/J1XDpPIJyuk1gnYGLY1Ln9ra6HNAC/VAMkmlnAf9FobvvTiQ0UmqLK1Q9UbdYTjhXEX0v+rDZ6YFo8l1b11euNWMcMM556HgPqv79r81iLLmuQVhG79c+DZD95t6MZ4ms73VP0RunivQUvUoujIavDK7kRsLci7GM6dLUE0Vc2fnkeukDWh/6Wr6jHfO3J8WJR2FaP5wmw6/8dpCuboU/w/qJlshXBJ/wBBGBgB4hEcc8PffjfURzd31ZMdaDF+9ybo0prT1CUfsXJlLVgBLPMNOgv3PT+n9YEYOzABsCsN/QRSrnf0ieFrmnIbMI7xbxXb7iDmu9Ff3zASvgQxulgjHwSOgwVsi/EOCa0//x+mPBsbocTwDQRxo+hCm3DN7hK26l7VObJHTTNGJFh/InIUqm/R5zU+qsPgCakooLbcNYNpNwrNIbiXH1cerxRX01t9KO/w== 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)(6069001)(4636009)(136003)(346002)(376002)(396003)(39850400004)(230922051799003)(186009)(1800799012)(451199024)(82310400011)(64100799003)(46966006)(36840700001)(40480700001)(6486002)(478600001)(2616005)(956004)(1076003)(26005)(6666004)(6506007)(6512007)(36860700001)(82740400003)(356005)(81166007)(86362001)(36756003)(41300700001)(9316004)(5660300002)(70206006)(70586007)(2906002)(336012)(47076005)(7416002)(83380400001)(110136005)(4326008)(36736006)(316002)(8676002)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 05:47:36.3445 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b49e3b0e-aa0a-44a8-ff8a-08dbfa0cadce 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: HK2PEPF00006FAF.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYUPR04MB6964 Revise Yosemite 4 devicetree for devices behind i2c-mux - Add gpio and eeprom behind i2c-mux - Remove redundant idle-state setting for i2c-mux Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 381 ++++++++++++++++-- 1 file changed, 347 insertions(+), 34 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..a5b4585e81e6 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -17,6 +17,25 @@ aliases { serial6 = &uart7; serial7 = &uart8; serial8 = &uart9; + + i2c16 = &imux16; + i2c17 = &imux17; + i2c18 = &imux18; + i2c19 = &imux19; + i2c20 = &imux20; + i2c21 = &imux21; + i2c22 = &imux22; + i2c23 = &imux23; + i2c24 = &imux24; + i2c25 = &imux25; + i2c26 = &imux26; + i2c27 = &imux27; + i2c28 = &imux28; + i2c29 = &imux29; + i2c30 = &imux30; + i2c31 = &imux31; + i2c32 = &imux32; + i2c33 = &imux33; }; chosen { @@ -259,9 +278,109 @@ &i2c8 { bus-frequency = <400000>; i2c-mux@70 { compatible = "nxp,pca9544"; - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x70>; + + imux16: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux17: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux18: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux19: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; }; }; @@ -270,15 +389,174 @@ &i2c9 { bus-frequency = <400000>; i2c-mux@71 { compatible = "nxp,pca9544"; - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x71>; + + imux20: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux21: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux22: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; + + imux23: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + + gpio@49 { + compatible = "nxp,pca9537"; + reg = <0x49>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; + + eeprom@51 { + compatible = "atmel,24c128"; + reg = <0x51>; + }; + + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; + }; + }; }; }; &i2c10 { status = "okay"; bus-frequency = <400000>; + i2c-mux@74 { + compatible = "nxp,pca9544"; + i2c-mux-idle-disconnect; + reg = <0x74>; + + imux28: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@24 { + compatible = "nxp,pca9506"; + reg = <0x24>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = + "","","","", + "NIC0_MAIN_PWR_EN","NIC1_MAIN_PWR_EN", + "NIC2_MAIN_PWR_EN","NIC3_MAIN_PWR_EN", + "","","","","","","","", + "","","","","","","","", + "","","","","","","",""; + }; + }; + + imux29: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + }; }; &i2c11 { @@ -433,16 +711,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 { + imux30: i2c@0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; @@ -450,26 +726,26 @@ i2c@0 { adc@1f { compatible = "ti,adc128d818"; reg = <0x1f>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; pwm@20{ - compatible = "max31790"; + compatible = "maxim,max31790"; + pwm-as-tach = <4 5>; reg = <0x20>; - #address-cells = <1>; - #size-cells = <0>; }; gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; - pwm@23{ - compatible = "max31790"; - reg = <0x23>; - #address-cells = <1>; - #size-cells = <0>; + pwm@2f{ + compatible = "maxim,max31790"; + pwm-as-tach = <4 5>; + reg = <0x2f>; }; adc@33 { @@ -492,34 +768,34 @@ 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"; + compatible = "maxim,max31790"; + pwm-as-tach = <4 5>; reg = <0x20>; - #address-cells = <1>; - #size-cells = <0>; }; gpio@22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; - pwm@23{ - compatible = "max31790"; - reg = <0x23>; - #address-cells = <1>; - #size-cells = <0>; + pwm@2f{ + compatible = "maxim,max31790"; + pwm-as-tach = <4 5>; + reg = <0x2f>; }; adc@33 { @@ -547,12 +823,10 @@ i2c-mux@73 { compatible = "nxp,pca9544"; #address-cells = <1>; #size-cells = <0>; - - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x73>; - i2c@0 { + imux32: i2c@0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; @@ -563,10 +837,10 @@ adc@35 { }; }; - i2c@1 { + imux33: i2c@1 { #address-cells = <1>; #size-cells = <0>; - reg = <0>; + reg = <1>; adc@35 { compatible = "maxim,max11617"; @@ -589,9 +863,48 @@ mctp@10 { i2c-mux@72 { compatible = "nxp,pca9544"; - idle-state = <0>; i2c-mux-idle-disconnect; reg = <0x72>; + + imux24: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + + imux25: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + + imux26: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; + + imux27: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + temperature-sensor@1f { + compatible = "ti,tmp421"; + reg = <0x1f>; + }; + }; }; }; From patchwork Mon Dec 11 05:47:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 752726 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="pUO+oMoo" Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2064.outbound.protection.outlook.com [40.107.215.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32432F2; Sun, 10 Dec 2023 21:47:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N5kSBuYSI4wI/qIy8WHFG8TCu7jhDxTf3SENAx7o3mQMUgrrM6wnaektiloz8P2ACp/oe/yv2JX6cc+OKZF+Mu5a7wrtAMO2zvCfNtllRyQdD9uJbXQHuviq+jE9GZUHUL378ZITEWwhPkkRtajZHC6j4MsOVOuv5/QhEEcNO04d9UzZhSIZulPB/eM3Vxhj0YcQZ3eaudPaX96tSyt6jMwrqB9QtQulUE76v6mEbd4jzI/IwdioVs7Gk+Oi66vNqwgp2wGzLvlIfLHyURphSCdyB4t+H/pBHbnM6z+vk938/DqmCWlPbVli+4xrTM18dEtlE3ywikLWkhkDpbE8CA== 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=hTdra8Q6Ty+kafVG+eRTSPVcdelb5hg9red0Vwq21ms=; b=dpNjU27aAJLmMWVFwCWJaQk4SaxRYAu9JsdMD4H1edt7bnJC5JoY6QuJe6uEaph8/m1eL2ArlKId6tuXLeo4br4kgK/uH7fZsbb/gTKilgEJ5evrSgnSWLa0FplMYvJgbnu55rw2+L8qYQkZ/F7oPE7I4UNE9WsqWyTPUi5z/ATDT9SQ44nfq3enPsfmyp0/PyMroMc3o08NvVLJ2Oh5mkgEOImg1jB2tyvwvU7g+nNcObaj64RAE+a9oXVX0Bzy32/Ru0A32zN70uJBppp9VNMj0dNDgYgMr3NBkSouS7QaZfucbAeRRAHlg1C/D3l387I9AQbBFfblO85rsJ41qQ== 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=hTdra8Q6Ty+kafVG+eRTSPVcdelb5hg9red0Vwq21ms=; b=pUO+oMoozb2+XBcqAb0M7ju0Hwkc9mG7JWvOaBj9oLSeP4fqvwjpo4P0lVMsc6BTkYmrZJrShsgr0K8/drfNnqmEOxl+tQDPyR6iOUup2TmTTq9JRoJMLmizbg6W/D0LRF9hBoNZ7lciXEnkcslf7tZX+JizrpWPtgmb5MlV8/Kv88nixtQPwIPc0MzhP9WZvxJmUG7vTxV/rdqTMs7in5xZZpOZac8b6Wk+5U4FpaO+zOZsStdrmaG2YN2S0ylZCg+Nq6qQD8254hX6aLJZXFC6M+8SwUCpiK/p6mFZlZxx2jMqxA1KclC6nP5KHzdJgfChrHkiV8ZFuH4CUUL2iA== Received: from SG2PR02CA0072.apcprd02.prod.outlook.com (2603:1096:4:54::36) by PUZPR04MB6352.apcprd04.prod.outlook.com (2603:1096:301:ea::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32; Mon, 11 Dec 2023 05:47:41 +0000 Received: from HK2PEPF00006FAF.apcprd02.prod.outlook.com (2603:1096:4:54:cafe::47) by SG2PR02CA0072.outlook.office365.com (2603:1096:4:54::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32 via Frontend Transport; Mon, 11 Dec 2023 05:47:40 +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 HK2PEPF00006FAF.mail.protection.outlook.com (10.167.8.5) with Microsoft SMTP Server id 15.20.7091.18 via Frontend Transport; Mon, 11 Dec 2023 05:47:40 +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 v3 02/14] ARM: dts: aspeed: yosemite4: Enable adc15 Date: Mon, 11 Dec 2023 13:47:17 +0800 Message-Id: <20231211054730.208588-3-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> References: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FAF:EE_|PUZPR04MB6352:EE_ X-MS-Office365-Filtering-Correlation-Id: a3a6ff0a-1c10-4f3c-95e1-08dbfa0cb02c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9fmG5cI12Xqk7lBHHwmIlBPugjao3NzE+etWvpHgvwdV6hyoYbqWF6EPqfsl+nQFNj7SRstc5wXDFbPlBX6uVipaA1GUjnX4xDCFl0OCfVnc6pbD5C1UQD8s630HHK5sivSkY133Kw82rtx839r6JOD5jEDjoxrMEUhTZKuX6tRIXq6NW3QmnrjVFG204XqsQE0GVVuSr6PRI+sKW6EHRJcEN2A5qq7lO2rZHJfz0fWy8WLh2heShh+X39j43UnDrhfCUzzywLjl5jLo8Sf0sNLGr0STdHGexvTaNPW+p4mef7c13aKbgLyacFQKLW33ycTqukyHS+aIbAUZGxgfG8dCy3g2cOg6P7YqPPyVqGDgdnPz8rAAxYpcEkKot1bJNgCbUU73qLAlx1wW20xrnD8p87MulL0BhztNXI9Rp3nInyb68d/Ze5G+dSKcBQM13pwK09uG0BaFpnemPs64P8bbNLZ3REhZWNCmaii0MMK+PvCUeW8+4lyrbA7Ah5a+BBIYPcDEzx04KJTuv+hJGWg7Ku6e3qjukwC5NRHAcWO6uCiiRmjzDPEhCesM9j5zVh0K/ya3HilIPDYApE/hRF7hnQecRSCZXrl+Zw+/TX1zJ7gG9fABSnt2lJU+0yP2+lNO+tXiyikcBOH7WTNnzGRb9w1J7OYOR1rwlMCUnz6N5iglQ/VFYkJoTJRNziiMceORF+AELgEUIUMRTSKjpg== 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)(6069001)(4636009)(376002)(136003)(39850400004)(346002)(396003)(230922051799003)(451199024)(64100799003)(1800799012)(82310400011)(186009)(46966006)(36840700001)(1076003)(26005)(956004)(2616005)(336012)(6506007)(6666004)(6512007)(36860700001)(83380400001)(47076005)(5660300002)(7416002)(41300700001)(2906002)(4326008)(9316004)(478600001)(6486002)(8676002)(8936002)(70206006)(70586007)(110136005)(316002)(36736006)(82740400003)(81166007)(86362001)(356005)(36756003)(40480700001); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 05:47:40.3133 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a3a6ff0a-1c10-4f3c-95e1-08dbfa0cb02c 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: HK2PEPF00006FAF.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR04MB6352 Enable Yosemite 4 adc15 config Signed-off-by: Delphine CC Chiu --- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 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 a5b4585e81e6..c32736fbaf70 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -51,7 +51,7 @@ iio-hwmon { compatible = "iio-hwmon"; io-channels = <&adc0 0>, <&adc0 1>, <&adc0 2>, <&adc0 3>, <&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>, - <&adc1 0>, <&adc1 1>; + <&adc1 0>, <&adc1 1>, <&adc1 7>; }; }; @@ -920,10 +920,10 @@ &pinctrl_adc4_default &pinctrl_adc5_default &adc1 { ref_voltage = <2500>; status = "okay"; - pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default>; + pinctrl-0 = <&pinctrl_adc8_default &pinctrl_adc9_default + &pinctrl_adc15_default>; }; - &ehci0 { status = "okay"; }; From patchwork Mon Dec 11 05:47:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 752725 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="mkbTjHRX" Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2040.outbound.protection.outlook.com [40.107.117.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8DC7111; Sun, 10 Dec 2023 21:47:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=neTfNPK3Hua720SAsdmB6y/KEy0C4VKOmgGYu6Oa3/t0+1N+PzmEdx4IPBbOxJPpiH7OSc5KvQFFY7SbvQ7Sq6JnwB3DiSVEk2L6V8JfzDqtc8EsSsKmQORWGlyKLOrdiDY+znkkM8skF9IJ0huwGMkSvPk1pMpTSniHiDCdoTafupoR1tRPlflRQCL3TNdfr1tJeNjeJU/CIihB1gZR1TuBNxpZJnBnkBe2kK/zTan3RVBXBbjo3saSSnRyXsTD/aD7azMzj/+YfzxEWC/OfCKxuh6CLdBofnxZ962jOIN5ML4G5nJF5uT6qALAvgOPM7eZw/Mha/xifidoW59gqQ== 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=P9hJP4cxinrgJgR2dHN8WewCHihh7cN0JE99FmSA1C0=; b=BCSLsbeV4IvZ1CfiPQNtH4RB5dYioQUqIoB0I73x99D3cXijGlrxlcAQlWeKpikN3t6fVxG5dGR8hKovh8U3tDBCKiX5RpPsks6Tt7HdPHi1+g13OaxF/3xdIsyqBCgd1/wYCQYmINV7LtXg6wgA8BJKtbGpBQjhiXe/8x/htdKh5Gn4laMqlvIgdMUrCS+U0Y8iEuZ8/IkwaeNk3ugDIZcm0rCMlNDV0wKFogP9JP88UUR+jvR7I5g7W7yoxFreA48HcB9c1+pQ2JnGrN10K5Z8JzCwfbB3VH388PJ8qsvoiTWZvV0ZGGRUNR2EVPhDlvOPJ4HLiyShIc289QIlKA== 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=P9hJP4cxinrgJgR2dHN8WewCHihh7cN0JE99FmSA1C0=; b=mkbTjHRXaXvXfcXyNLMg1U6kNwWp/bD5SYBRVplzjBta2fXsBMlUdI/41lxShyi6EA6Hb6hEDD9MrU+pEk7YE5SJTLJyjrx8I5HMg6v061Q5J67W27HWgEcRmRnJrwKuWXqO+mtAA2Ah5/q78No7hrJOJ8ZWjupTolP+e2ZlNZLnpQtu1GNLm1vLWONJdeIMMxcdZhpxmJCi/dGBYar7qhMkeobzENaA+o9PTivdZ3JbFzLiQPWfxz4yQ4RvfCeY6BNzLzo2FBNnoQlILwbvikuDTzLBedFrl8tZZQ6VtXG9kAqQ3jpNvP3r9lFaktxZIGgeJ+eB/G1cqx6BAI3mRQ== Received: from SG2PR02CA0065.apcprd02.prod.outlook.com (2603:1096:4:54::29) by TY0PR04MB5960.apcprd04.prod.outlook.com (2603:1096:400:219::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.31; Mon, 11 Dec 2023 05:47:52 +0000 Received: from HK2PEPF00006FAF.apcprd02.prod.outlook.com (2603:1096:4:54:cafe::55) by SG2PR02CA0065.outlook.office365.com (2603:1096:4:54::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32 via Frontend Transport; Mon, 11 Dec 2023 05:47:51 +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 HK2PEPF00006FAF.mail.protection.outlook.com (10.167.8.5) with Microsoft SMTP Server id 15.20.7091.18 via Frontend Transport; Mon, 11 Dec 2023 05:47:51 +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 v3 05/14] ARM: dts: aspeed: yosemite4: Revise quad mode to dual mode Date: Mon, 11 Dec 2023 13:47:20 +0800 Message-Id: <20231211054730.208588-6-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> References: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FAF:EE_|TY0PR04MB5960:EE_ X-MS-Office365-Filtering-Correlation-Id: 6e5529b0-8dcc-4a7c-2366-08dbfa0cb6ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ta21x0Kq0FAXoFQu4PDQmMh94LcWoR0/kIlv9rvzbTdp6/gYoUH9ucE7ZNVciIvAlz2fdOyXmTQrm9523aXOeviKsDSmmpCyENSvMX0DadmHr3EMfDMXlSMKv8TJBOj8uZLe1usOknstfOkKw7btSG5R9imoZSDonYe70ieH9HErD6Au6CAzcOnPE451dNHCUW4AEzzPpi+tmr4tRE4n5Bp+C5a4ukxv5osH4zA2fbQb0hJvsjBFJjsIyyOhKeC1wP57eOv3uljjSqM1N6PLYCJHYfjCwH2QXl7zmKymfDEP0dV+vlxXwG837tV6J6iSk5DTnab7umHorS+S53BgzHIlRvnmcLyvMri2hQ8kZvhJiLRL7z4QTlpzajDRZpsjqLlyEX1JejuOSWIp3AQ5j8q81Rmj0T6jRHq24PxFVKkMDUjGpYm/15QGLFp3brTQL0Uwi2tKhx4N2lQlBHSOgTrD5bEI757wbpDsDprCtvE6JzDHwnCYdZCsOpOuNCAtuiFaSwsxgswdcRQZ4q5RJDvqndgkE3SiU0KgxVilB+gmhesm/dqiS++ESP5YQVoaSh3fseFXF8bE4hW7YxYcOmuZbWaxb8AT3wMBRBYlPawE7mJ0bwKUZzW4hqH2yeiZxAVNav5KxHcEXNW2b5K8uVlvUs/0zhxde2DkP2rQsUBhAc2F7LEUW4eVW3jzU5veaHcr369yStT7+7+YC0bHiw== 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)(6069001)(4636009)(396003)(39850400004)(346002)(136003)(376002)(230922051799003)(64100799003)(82310400011)(1800799012)(451199024)(186009)(46966006)(36840700001)(7416002)(6506007)(6512007)(6666004)(2906002)(36736006)(70206006)(356005)(81166007)(86362001)(36756003)(316002)(8936002)(4326008)(8676002)(5660300002)(40480700001)(70586007)(110136005)(6486002)(478600001)(41300700001)(36860700001)(82740400003)(47076005)(26005)(336012)(956004)(1076003)(2616005)(83380400001)(9316004); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 05:47:51.4383 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6e5529b0-8dcc-4a7c-2366-08dbfa0cb6ce 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: HK2PEPF00006FAF.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR04MB5960 Revise quad mode to dual mode to avoid WP pin influnece the SPI Signed-off-by: Delphine CC Chiu --- .../arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 0e9095c83a59..7fe80ad271aa 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -149,15 +149,17 @@ flash@0 { status = "okay"; m25p,fast-read; label = "bmc"; - spi-rx-bus-width = <4>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; spi-max-frequency = <50000000>; -#include "openbmc-flash-layout-64.dtsi" +#include "openbmc-flash-layout-128.dtsi" }; flash@1 { status = "okay"; m25p,fast-read; label = "bmc2"; - spi-rx-bus-width = <4>; + spi-tx-bus-width = <2>; + spi-rx-bus-width = <2>; spi-max-frequency = <50000000>; }; }; From patchwork Mon Dec 11 05:47:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 752724 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="h/DzDV1k" Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2082.outbound.protection.outlook.com [40.107.215.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E835719A5; Sun, 10 Dec 2023 21:48:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=od5CnK6PcpeCGrKURnW14pWXinvYhHk+1uQ7o4LFeF2/2+b9liaZpkFQjf+Ow8SAnE/mT90+m2xWrDNKfFU6D2VkSW805a/bXxIpMwq54ZuXQKijIFjNBa6OhLcJBEovbfqucrkzTpq6yvi9VZVUDhxF09sRy8CfFfi1nFevbOMpcVAV0v3u+xwTPhFW6c5/tyTjGyoRQM7s3nDsa21Btht/GuA+Uh8Q2o56/D+8VSYZIuPhkvQlQL1sxSf/26Ef7dLmX52cZi1vRl7ZaeyNSU6BvqvRRcsVpCPrwz9O2PSwaXf70D5S7w/BqMCbhAqv9/ksH5uFAA+g9xSk6/GYqQ== 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=SMd6HYaAsmF5z7kcGL9OkN6HPkOFiqEArjYVw3SCJWM=; b=VEKDKAFVmAFrz8a+0PNnU113nYPuOXOENU/cxSNIy+yjRSyc5/WWu7t2XMqJnf+5928KFSGTbGX1epnY+4JrKadAVhzrRUu473RtZdC2+1xqi48CnwFdiwpmWGuq2MkPivSa2Fz77Ww1Hjs+VZ4rqnXyCgHYSiJj7Fty/MyNWtfaSZeIt3TL3BRlRxO27kkkPYrfxMS/czYG28lvOpWMidvQoXYgefQvUa4yRqL9YZKQdPEqnIkL/2B3UpjuW74tZqh4jB2n47Cr+U1XBwW3AXCEN+mywnklbqWP0jUUlxQ3VZiR2hDTWhjRGWgVEIJV9LmewCGQRDHM58eJqr3/lg== 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=SMd6HYaAsmF5z7kcGL9OkN6HPkOFiqEArjYVw3SCJWM=; b=h/DzDV1kz1VGVCoO4CLde9bnVbuy9wzhvxb/cNqz1G6sAStB/vm93AYvu+3cCLUfUhgdZB0zzofIPCoF4xe+EpU2Yh0tU9t8PmmHoaPRZXKbFaLHf+Tj0Ox0xLQHxeqOqPRJDll8aSpLVuZV7yT54b+mmk2jGHTdQcXHsIDUU1PqcLd+ZQSLLFjxpzQ5UMacqrd3vq5nhRr1IQwxSXaHGX2fF4tBvfeNvcqER1ofMQjUynkff7jfgZPqX+oaczaP6Vs/PvoRcumv9ZtGKvM7I4jU/cd9iI0zwVEkTZ+SaYqQdnzeSevlGX7Mdkn7QDoCFFYG99/VblQ26NhyYOwrFQ== Received: from SG2PR02CA0064.apcprd02.prod.outlook.com (2603:1096:4:54::28) by OSQPR04MB8014.apcprd04.prod.outlook.com (2603:1096:604:29a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32; Mon, 11 Dec 2023 05:48:06 +0000 Received: from HK2PEPF00006FAF.apcprd02.prod.outlook.com (2603:1096:4:54:cafe::5b) by SG2PR02CA0064.outlook.office365.com (2603:1096:4:54::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32 via Frontend Transport; Mon, 11 Dec 2023 05:48:06 +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 HK2PEPF00006FAF.mail.protection.outlook.com (10.167.8.5) with Microsoft SMTP Server id 15.20.7091.18 via Frontend Transport; Mon, 11 Dec 2023 05:48:06 +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 v3 07/14] ARM: dts: aspeed: yosemite4: Add gpio pca9506 Date: Mon, 11 Dec 2023 13:47:22 +0800 Message-Id: <20231211054730.208588-8-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> References: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FAF:EE_|OSQPR04MB8014:EE_ X-MS-Office365-Filtering-Correlation-Id: 00360048-e133-41ba-48e1-08dbfa0cbfae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QI2Xemop02S5V/s/us7qziouJkPam4YL0jSSoiGoJEDNyp5APrpHOTO3hLwhUhPvniaDWhriMBHW4HB2lUxOBohWaj3srypS85BYWi4da1G4D/m7M78nJeJFHYwMsDpq2EL89Z2t4k0tnWMAhBN5Zz0oPSYr5cIbWnvBCere6eLt8J8xjPbrYjOd3Lh+CYkAj+YvS5+YAsE2/iqwVYaLJ0RcdWvcuwAZB30muFJpNYU7diRdVx33mRZQSdv5YqXphKfl+UvsFwCvPRg+ZFO9IHlZUOvXSgbsToheC40EeSkd64USQvNkcaXAKV1PWmuBRTxBXfpeyha/s+LCr+qDNimmk62NRhR4O99sTmt6aTR1a/FCCmMibWkpMlHPWDR0WGMTf6aJ4khKaoVbMwLs+yvdZLNeOTHSqdcEK4YtYuuwUZ8akuAiUAQG2Ms1PJTEk0lEu/5tXQjRN2lxPR4ZwNIABp3CEdiTdn2wh17pAy62NSD6jkqZATfyWGgvGM9Y1Vfyfsscavc+Qsd9zVTSZPtKf8kwXslTdRb3cpWNblcsKV+jdC+byFa7DzVN4ka3mUssIkm5asfbRJQXb8RTQRkBU4q4/iAEYW5RqoWaqJGiRi6JWSxrqgvdEutWmft9GAoBL5oOt599lxrJCY9ltJPCuYvGgKoeYHjGw7qL4gpxVvSMZHxEPrkc0d9a3HKOSN4gSwxhqXi6jzDmvB5xVQ== 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)(6069001)(4636009)(376002)(346002)(396003)(136003)(39850400004)(230922051799003)(1800799012)(186009)(451199024)(82310400011)(64100799003)(36840700001)(46966006)(6512007)(26005)(336012)(956004)(2616005)(1076003)(6486002)(478600001)(6506007)(6666004)(47076005)(36860700001)(7416002)(2906002)(5660300002)(41300700001)(9316004)(70206006)(70586007)(4326008)(8676002)(8936002)(316002)(110136005)(36736006)(356005)(81166007)(82740400003)(86362001)(36756003)(40480700001); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 05:48:06.3135 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 00360048-e133-41ba-48e1-08dbfa0cbfae 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: HK2PEPF00006FAF.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSQPR04MB8014 Add gpio pca9506 I/O expander for yv4 use Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 251 ++++++++++++++++++ 1 file changed, 251 insertions(+) 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 7f0134fcee57..da413325ce30 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -175,6 +175,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -193,6 +221,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -211,6 +267,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -229,6 +313,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -247,6 +359,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -265,6 +405,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -283,6 +451,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -301,6 +497,34 @@ mctp@10 { reg = <(0x10 | I2C_OWN_SLAVE_ADDRESS)>; }; + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; + power-sensor@40 { compatible = "adi,adm1281"; reg = <0x40>; @@ -683,6 +907,33 @@ rtc@6f { &i2c13 { status = "okay"; bus-frequency = <400000>; + gpio@20 { + compatible = "nxp,pca9506"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@21 { + compatible = "nxp,pca9506"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@22 { + compatible = "nxp,pca9506"; + reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; + }; + + gpio@23 { + compatible = "nxp,pca9506"; + reg = <0x23>; + gpio-controller; + #gpio-cells = <2>; + }; }; &i2c14 { From patchwork Mon Dec 11 05:47:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 752723 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="GF1+D6dX" Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2054.outbound.protection.outlook.com [40.107.215.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DF35189; Sun, 10 Dec 2023 21:48:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b7m6AlDCMymwVI14M0jjXNrFtHQvr9oNn0f7c6T6RXSazP/lac5W8aWLeTXxEmRa/aBrqIFbtDmx9kfrRcPG90ILx9akV9mwywLgaU3ATLmagS6Qy0VQo0BCMN98FT93ZXqrsUxF/2kGaVawUxYunh+xBlqZ1PDqfsVnhCrzSbJIO/+/eFnrFImVpSyHubVyogAxH7XcFJKBHe+prH42mBxmOVfECnLWm2RUlXagWMKGLl/RWX5r0mxEyY5hp2Cg97Vb1D4SxezMR4igqBGtu4t6l4L8Fe2x2C7vvU84GMckniEDglryahuD9p6vKKvtSuWzAvEPfdmOA1YXca9EIg== 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=HS46iyiX5VqcZeS2QC5nTFB8RgeTDUaf1C1vb3s+wjU=; b=Ht7UUk93ZCeeVLkBR9JM73ryX7kEKmh/dh9NRYE/mwdRnXos4z0eGRWExVp9hN4GsKBCC/O/iUB+FL9/vwqGIj5WoQsq1RhVT/W/a4Dykwx5stbIYGstRK6+YRT/7fZonvWwfOX5UtCbRUNWThRaCSQPjzWL7WUFOBOkyHow5+4gGWIFUXotAythcZ3vCPAYL1csedhBMHk1cxaCsorSGztbS2GrZ9yyCWQDti7Y4QRk1OhVA7TqqSh77aCY8MPn/AFzpuc6PmiTXPypXgxk5Vj4Nti0iQ3yI/fYJTSUQuRuMVi2ncSLmB9l5DDIoUW2hn8bYqMjUXloHMQMUuc55Q== 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=HS46iyiX5VqcZeS2QC5nTFB8RgeTDUaf1C1vb3s+wjU=; b=GF1+D6dX3ChoqWbTnTmms8m44yBWBfUT9as0IpwpwFZM3Ld1x/CVyS87fmrFNBGkC2+BYsvZwa9UeHr2syiwoV4Rn6dOs3tsK3k4zx5FJHHmuep4k8F5n7WEf4axIvBCs0YY6MC+jdEVfnzi1WmMxaHZuK5/MF5yBXOFTuqpDoBukqegaqX/MhW4Afq6gpidkPPheyrXAEyuAhw3jELY8aQszoEVTnre6mOi7ctynQ6omzNXP9mOoCjAZX91zzMCFPKYzsn1DTBCNl1dP9KcMDuKDFpGRppm4qeBqbW1razoB5HRF+fQeRs8LJqTV7MF4sHwgQQfisXHzCv2u/wXEw== Received: from SG2PR02CA0071.apcprd02.prod.outlook.com (2603:1096:4:54::35) by KL1PR0401MB6361.apcprd04.prod.outlook.com (2603:1096:820:c0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32; Mon, 11 Dec 2023 05:48:10 +0000 Received: from HK2PEPF00006FAF.apcprd02.prod.outlook.com (2603:1096:4:54:cafe::75) by SG2PR02CA0071.outlook.office365.com (2603:1096:4:54::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32 via Frontend Transport; Mon, 11 Dec 2023 05:48:10 +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 HK2PEPF00006FAF.mail.protection.outlook.com (10.167.8.5) with Microsoft SMTP Server id 15.20.7091.18 via Frontend Transport; Mon, 11 Dec 2023 05:48:10 +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 v3 08/14] ARM: dts: aspeed: yosemite4: Revise i2c11 and i2c12 schematic change Date: Mon, 11 Dec 2023 13:47:23 +0800 Message-Id: <20231211054730.208588-9-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> References: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FAF:EE_|KL1PR0401MB6361:EE_ X-MS-Office365-Filtering-Correlation-Id: ae57db67-23c7-4750-f353-08dbfa0cc1ff X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Z0GG6hYT1eqA7IyD7NNzYWid0p30hTHb6MYMTvsU4VcQoriC7TBvAvm48p73+KPfSBaeAwsVZjWEH1loEcdvTeNmER42Ku+g9z7Ln1km4bOJ1oSIw/KKxAOVUNGNoSODEmzQaYJ2yMOwSC9P657lbsd4Hubs4EVeTmx76jUDyH4nQIU8LoZ0mmnherjJjPRiaKH6dNYq10IxNfMihteuChh4A12EIdqdxcnB43f7PCE9dXDCeJR1a8fklLsLaY55R8c4KWMHlGqRhroBXTXn3UJdK8tGwf1bLlHOx/cN4zOoKoZz2VJKuCnSk27OO3DzMYFlkQQRgv8g13QPUNdOBjBIQJd3t3TsjmOypGNj/oETfucPX8ApCcUQ+e4t1ClF111TmiU8ZTdAMQSjLAcUKG3scYR/dJmeKW7pqs8USOsNGiw3040a4PbA7JXBCZ6DmKYGL7LWGYk7sT2kK2A6CfNz0HPYW68/ky9kvZdRXPBv8sz6oVxNZY6AWbayAS/9zwJ4mfDGyQeZVqbexKK+Cr8kwmvNNhiVqq7goPwCYRD8t6+leSA4gmKtdvZiJssNRIl5/5syNOKBUzRpUSTqGHWDZD3jzolibXaQ7dfnWdV0HidXFQsMfoEnd4PvavVMh2r6tVWl2NZno3PcDwXGmMuJeifkkGJp4nmRQvFtzCizy/OZV8qusaSp0afuIJi44ekHFwZJdd2z7TsfuO8trw== 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)(6069001)(4636009)(39850400004)(396003)(376002)(346002)(136003)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(82310400011)(36840700001)(46966006)(1076003)(26005)(956004)(2616005)(336012)(6506007)(6666004)(6512007)(36860700001)(83380400001)(47076005)(5660300002)(7416002)(41300700001)(2906002)(4326008)(478600001)(9316004)(6486002)(8676002)(8936002)(70206006)(70586007)(110136005)(316002)(36736006)(82740400003)(81166007)(86362001)(356005)(36756003)(40480700001); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 05:48:10.2197 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ae57db67-23c7-4750-f353-08dbfa0cc1ff 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: HK2PEPF00006FAF.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0401MB6361 Revise i2c11 and i2c12 schematic change: - remove space for adm1272 compatible - enable interrupt setting for pca9555 - add eeprom for yosemite4 medusa board/BSM use - remove temperature sensor for yosemite4 schematic change - add power sensor for power module reading Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 118 ++++++++++++++---- 1 file changed, 93 insertions(+), 25 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 da413325ce30..ccb5ecd8d9a6 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -821,41 +821,94 @@ imux29: i2c@1 { &i2c11 { status = "okay"; power-sensor@10 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x10>; }; power-sensor@12 { - compatible = "adi, adm1272"; + compatible = "adi,adm1272"; reg = <0x12>; }; - gpio@20 { + gpio_ext1: pca9555@20 { compatible = "nxp,pca9555"; - reg = <0x20>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio@21 { + reg = <0x20>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "P48V_OCP_GPIO1","P48V_OCP_GPIO2", + "P48V_OCP_GPIO3","FAN_BOARD_0_REVISION_0_R", + "FAN_BOARD_0_REVISION_1_R","FAN_BOARD_1_REVISION_0_R", + "FAN_BOARD_1_REVISION_1_R","RST_MUX_R_N", + "RST_LED_CONTROL_FAN_BOARD_0_N","RST_LED_CONTROL_FAN_BOARD_1_N", + "RST_IOEXP_FAN_BOARD_0_N","RST_IOEXP_FAN_BOARD_1_N", + "PWRGD_LOAD_SWITCH_FAN_BOARD_0_R","PWRGD_LOAD_SWITCH_FAN_BOARD_1_R", + "",""; + }; + + gpio_ext2: pca9555@21 { compatible = "nxp,pca9555"; - reg = <0x21>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio@22 { + reg = <0x21>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "DELTA_MODULE_TYPE","VSENSE_ERR_VDROP_R", + "EN_P48V_AUX_0","EN_P48V_AUX_1", + "MEDUSA_BOARD_REV_0","MEDUSA_BOARD_REV_1", + "MEDUSA_BOARD_REV_2","MEDUSA_BOARD_TYPE", + "HSC_OCP_SLOT_ODD_GPIO1","HSC_OCP_SLOT_ODD_GPIO2", + "HSC_OCP_SLOT_ODD_GPIO3","HSC_OCP_SLOT_EVEN_GPIO1", + "HSC_OCP_SLOT_EVEN_GPIO2","HSC_OCP_SLOT_EVEN_GPIO3", + "ADC_TYPE_0_R","ADC_TYPE_1_R"; + }; + + gpio_ext3: pca9555@22 { compatible = "nxp,pca9555"; - reg = <0x22>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; - }; - - gpio@23 { + reg = <0x22>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "CARD_TYPE_SLOT1","CARD_TYPE_SLOT2", + "CARD_TYPE_SLOT3","CARD_TYPE_SLOT4", + "CARD_TYPE_SLOT5","CARD_TYPE_SLOT6", + "CARD_TYPE_SLOT7","CARD_TYPE_SLOT8", + "OC_P48V_HSC_0_N","FLT_P48V_HSC_0_N", + "PWRGD_P12V_AUX_1","OC_P48V_HSC_1_N", + "FLT_P48V_HSC_1_N","PWRGD_P12V_AUX_1", + "MEDUSA_ADC_EFUSE_TYPE_R","P12V_HSC_TYPE"; + }; + + gpio_ext4: pca9555@23 { compatible = "nxp,pca9555"; - reg = <0x23>; + pinctrl-names = "default"; gpio-controller; #gpio-cells = <2>; + reg = <0x23>; + interrupt-parent = <&gpio0>; + interrupts = <94 IRQ_TYPE_LEVEL_LOW>; + gpio-line-names = + "HSC1_ALERT1_R_N","HSC2_ALERT1_R_N", + "HSC3_ALERT1_R_N","HSC4_ALERT1_R_N", + "HSC5_ALERT1_R_N","HSC6_ALERT1_R_N", + "HSC7_ALERT1_R_N","HSC8_ALERT1_R_N", + "HSC1_ALERT2_R_N","HSC2_ALERT2_R_N", + "HSC3_ALERT2_R_N","HSC4_ALERT2_R_N", + "HSC5_ALERT2_R_N","HSC6_ALERT2_R_N", + "HSC7_ALERT2_R_N","HSC8_ALERT2_R_N"; + }; + + power-sensor@40 { + compatible = "mps,mp5023"; + reg = <0x40>; }; temperature-sensor@48 { @@ -868,19 +921,29 @@ temperature-sensor@49 { reg = <0x49>; }; - temperature-sensor@4a { - compatible = "ti,tmp75"; - reg = <0x4a>; + eeprom@54 { + compatible = "atmel,24c128"; + reg = <0x54>; }; - temperature-sensor@4b { - compatible = "ti,tmp75"; - reg = <0x4b>; + power-sensor@62 { + compatible = "pmbus"; + reg = <0x62>; }; - eeprom@54 { - compatible = "atmel,24c256"; - reg = <0x54>; + power-sensor@64 { + compatible = "pmbus"; + reg = <0x64>; + }; + + power-sensor@65 { + compatible = "pmbus"; + reg = <0x65>; + }; + + power-sensor@68 { + compatible = "pmbus"; + reg = <0x68>; }; }; @@ -898,6 +961,11 @@ eeprom@50 { reg = <0x50>; }; + eeprom@54 { + compatible = "atmel,24c64"; + reg = <0x54>; + }; + rtc@6f { compatible = "nuvoton,nct3018y"; reg = <0x6f>; From patchwork Mon Dec 11 05:47:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 752722 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="rqvaLxSY" Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2062.outbound.protection.outlook.com [40.107.117.62]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D709C10D9; Sun, 10 Dec 2023 21:48:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DuHwkuvaHsUyZzgCIgsoTHO0Y8G3kIMJdyY1NVTzl5Noh7BNUwnxL++wtKKPdODauXqz4hxqWSB7B/80s4oArAdS4+9mfpysIZaF8gUdn+8ojhOky7W2H0hpvzJmWe43a2riIO/wjlNYQRNXTpzlalZihS9/pOkuyOx63s8tBefBKi1rxPhXohm1Nhc++z3pO0heW4s3XdEIqz7vtX69/JoyhFGTRpFeG9VCzvcyR8Q2pnn1Xaz0rLsrVpg+t6rTD+zGuKoZWVB7Ya9S3VMYVJqWrUvyM9b18kSUBiWq6KDcSBaXBx3kiogC6w8webo1XqBljJl+1ZwToE0lo6sfQw== 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=uGTire1khymAurDE24N2Ga1RZMcRUKvih7zqhbJUcjI=; b=Hn3WDr1XbtdIDYwqPuIyy0tm04DvXADrqZH4/p3MtAdkV+dmMcgsDeC5zGHxAnuidb2LnfoJNQNuasT6+yAUPxUDNIvErikivnNkaNnl2dvixoJY13GD8u7BXlnSmJfruFbH1eQywwP0/Pu9ArjaaOB71obEyf6ZyzoURZXFRJEAHy3BD+udEBDjIVXD5Wdc2fjqrWqrc+FgRLNL8uAl9LqFSgiVii3GQuC56gt7qEgDIhBTc2cH4vIINgBY3Md9jPjYYdr+nJxM9nnbzrAWrY2hcipcgSM6HKT0d/ny+WMTWdJ7F45krkJ5fAKs08PkYr/Erin3JcM+r5jL2vCMYw== 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=uGTire1khymAurDE24N2Ga1RZMcRUKvih7zqhbJUcjI=; b=rqvaLxSYFkAWygVCyeiZDpDRvyNT3u7pBPkzMHldXwxaIktwJF9SoRGEWE1ifpiraBx/G9uvcD0vMPdldFcbgA+1xdLTcCdnpX5aZ1uvUlyzIHsbgDatsceUGtkcWpyC9giShIRpMYF3DT/EbmS7hj2SIgFtNYYA/PonsTUsgiGxKKxKNvmYBbFM4ovLP+kuVbewis9wdteDGRk2APiSM1+rG22zJp/gjAbEKLK4OW1VxuydlI6k/FsYFFNFElWiaL2GEY2PYOo4KSAWApn/yp2g9crGC5sXluYmGambXCuwQHYhAJL652zXo3YuGhNa2WVxmalqNpxoQLNGyOrVkw== Received: from SG2PR02CA0054.apcprd02.prod.outlook.com (2603:1096:4:54::18) by TYZPR04MB4381.apcprd04.prod.outlook.com (2603:1096:400:2a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32; Mon, 11 Dec 2023 05:48:21 +0000 Received: from HK2PEPF00006FAF.apcprd02.prod.outlook.com (2603:1096:4:54:cafe::bc) by SG2PR02CA0054.outlook.office365.com (2603:1096:4:54::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32 via Frontend Transport; Mon, 11 Dec 2023 05:48:21 +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 HK2PEPF00006FAF.mail.protection.outlook.com (10.167.8.5) with Microsoft SMTP Server id 15.20.7091.18 via Frontend Transport; Mon, 11 Dec 2023 05:48:21 +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 v3 11/14] ARM: dts: aspeed: yosemite4: Revise mx31790 fan tach config Date: Mon, 11 Dec 2023 13:47:26 +0800 Message-Id: <20231211054730.208588-12-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> References: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FAF:EE_|TYZPR04MB4381:EE_ X-MS-Office365-Filtering-Correlation-Id: 3e6b815f-b62a-4ee5-5ad4-08dbfa0cc87b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jGB1wBYuUXwiH8DgS5K+Q2bBvsEguZ6sJtnHzr9VKK+5oRgnCIk35SCHLcBzBhVBWV9YkQ7mhnoH+1miHmrcU5OBkpCrOOoTWD0NfUFaRoosx/J06S4Y0A7bQIeTo6dR0oUHX4YLq1xZUaEarNWKikTLUh1RG5/GSbZn1VqiMBaZNFnJOriOUCyRS6yKlggJHoRxwwkEQJ3D6eJlnoRhRp4zqtHEYXGC6nAefSYAUxwng+J0NsigYLqhbvvMHub1h7lho04sBW+Eygcd4XUFz/IXmjjCXx+5Aeh7oNv7THrFa/UW2JA4WtOvdyufv/6h6DLQglqVbhdG/zr3SRGWfbdO5Hs3hNNQVhrQyWgCTE3LagFccv+h/sknznJmaIjhmXqqSmxHvwExqdKA5Dr50JXE+IkNjSirgy1MzptAAUt6l/Xu+SsXKRcMUiitSzWIlJLf1jWvjuP0kitTFQ3+7PZMJAGg5ktUChShXwvrAAibZwEfOoarYtAIOri9F0kQiyrHBuOZWCPgW7RKPYPds9MvdxX5Gb+acNPWGEphr1Zo4bv/v1RDEyacMcwBia4IE5xD7qDGvqVxw211RCd/YcBAM+FY2cK8cVm3VODJzvqVif+A9B/W1tA93reYwSzauQNvSrOM0r+VzHOZo3rPXBVGGmkKl/7ARW6FdxO6Bg4QwtulyVcucAvDBda447vKwPoGT/H+17Jij0O0M0LEnQ== 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)(6069001)(4636009)(39850400004)(396003)(376002)(346002)(136003)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(82310400011)(36840700001)(46966006)(1076003)(26005)(956004)(2616005)(336012)(6506007)(6512007)(36860700001)(83380400001)(47076005)(5660300002)(7416002)(41300700001)(2906002)(4326008)(478600001)(9316004)(6486002)(8676002)(8936002)(70206006)(70586007)(110136005)(316002)(36736006)(82740400003)(81166007)(86362001)(356005)(36756003)(40480700001); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 05:48:21.0948 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3e6b815f-b62a-4ee5-5ad4-08dbfa0cc87b 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: HK2PEPF00006FAF.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB4381 Revise fan tach config for max31790 driver change Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 48 +++++++++++++++++-- 1 file changed, 44 insertions(+), 4 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 eb3687bfd632..073f27f1e35f 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -1095,8 +1095,18 @@ adc@1f { pwm@20{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x20>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; gpio@22{ @@ -1108,8 +1118,18 @@ gpio@22{ pwm@2f{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x2f>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; adc@33 { @@ -1145,8 +1165,18 @@ adc@1f { pwm@20{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x20>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; gpio@22{ @@ -1158,8 +1188,18 @@ gpio@22{ pwm@2f{ compatible = "maxim,max31790"; - pwm-as-tach = <4 5>; + #address-cells = <1>; + #size-cells = <0>; reg = <0x2f>; + channel@4 { + reg = <4>; + sensor-type = "TACH"; + }; + + channel@5 { + reg = <5>; + sensor-type = "TACH"; + }; }; adc@33 { From patchwork Mon Dec 11 05:47:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Delphine CC Chiu X-Patchwork-Id: 752721 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="XGA5wHAI" Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2087.outbound.protection.outlook.com [40.107.255.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E8AAF2; Sun, 10 Dec 2023 21:48:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RR8ubtJz0FRWlgIdqPmPp4/oXot8zeF7XhCmvLSQd81XzLZDrkEJPq6mfZqEe1UWHQ53xpKCYzDRVQO8OBVnXEr5JXmliClu1cqVX3ckI/Ig7NIGFsbh9Z84KzFPwtKcrSG5AbvQtzWbZPpozhLAmxK+B1QKEt/olvlRt3x6feloSzQnrw7QF5GhDzkh9xWhSxZpNL6yAFIrzEpR496gSKVFw+KP2iwgZQIsLoc6BD9F3KBgkgkKBh5LdZmoVerFLW2VmkgbVDoiMDkzYRY/vKY6n/tZsWsji5jYnB162VopjjTT9pyuicX9htmBId5mnoBMvndYflLQ1D88XOs4wg== 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=5ngrZal1T5zKIoze4a9wDrSNcGDO8QNLgbJOqp4+OZ4=; b=hqx5IP+4ZUmEqVtevPS++vGHwWaH8TvpeQf3mOQmq5LIsARAZKh88ODNyHKxlC6xFVpoze8Yl8yzkgEe9Hbdb5cZ4JyfLhS/KXxdOhpqrh7G24PKYUc19/4FljfUU1qjTzb5NnPVMP+sK3HqAWeZ6+TaV5RbBddUAPH8RAW/p0lwdjpBtSBOKrLr6tWkXhckHFAGGsM477EOMYXf+x+aMbBkCqJ9dPdKqr7o8g/Eigy2RSTZMvwrLCmSrbuGInQZtcRtLuqBz+UQa2bbgvUBCta3OpYjQuzKxDj1fhO0HZmrNZuc+6PxAYhniTseZQab0IJKZcx2pcrKVMNYf4rqYg== 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=5ngrZal1T5zKIoze4a9wDrSNcGDO8QNLgbJOqp4+OZ4=; b=XGA5wHAIUkNPriQd1aMt0DL1+cGyqciu/haR535IGb0iXkTLaMyPNayrroGhKQdDCC2cLcx13tthhpa2QL0vcWGSOqip4zN5QRH2lizk5mZmdkryj7f61sYTyjwpwz28vCta2OD+j/cmkr7nWEsVZniTeBmOrksyVyOXblLY0F36mQSAEjKfcVO5HVh9v+M4mRKMD84h3h2BlYf/GNfoZ2CFhLch0kgxsKO5qi2w5hIz4TFtqAV9/xK4D/4R96FvFWGMNY4yB1LZpjzj/XCULMAJFEnxFHL8kvZt3mxDYvgeYYZrfnXjQJ+eeyOhiCZJLNXkd1amXIOMrsaGSQpWsA== Received: from SG2PR02CA0050.apcprd02.prod.outlook.com (2603:1096:4:54::14) by SEZPR04MB6622.apcprd04.prod.outlook.com (2603:1096:101:91::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32; Mon, 11 Dec 2023 05:48:29 +0000 Received: from HK2PEPF00006FAF.apcprd02.prod.outlook.com (2603:1096:4:54:cafe::f5) by SG2PR02CA0050.outlook.office365.com (2603:1096:4:54::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.32 via Frontend Transport; Mon, 11 Dec 2023 05:48:29 +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 HK2PEPF00006FAF.mail.protection.outlook.com (10.167.8.5) with Microsoft SMTP Server id 15.20.7091.18 via Frontend Transport; Mon, 11 Dec 2023 05:48:28 +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 v3 13/14] ARM: dts: aspeed: yosemite4: support mux to cpld Date: Mon, 11 Dec 2023 13:47:28 +0800 Message-Id: <20231211054730.208588-14-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> References: <20231211054730.208588-1-Delphine_CC_Chiu@wiwynn.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HK2PEPF00006FAF:EE_|SEZPR04MB6622:EE_ X-MS-Office365-Filtering-Correlation-Id: 8618c39a-4622-477d-9be3-08dbfa0ccd2a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IENDRkgC60Uy12QdFKCRpJ0NYbTtCkBr66Phd/ANWFC6ucWzw7vYsbNLgbL8leoPiEIFcQ+0DYZExmB+dPjCjJrh1SBrRrtH3ZE8HyV5kgwTL6Q/VMcJJzYLWVOYHyZ/hQxQaqcFcWkIAY5sYpHurlBRj0Lx5pkbImhDVRv6Fd+7KXjYyRCtslshmqIN6yK55nopC4zQlPEeMirpMe6V4dhF4ASiywCpeWz/wHsWCXYsnyMYvHWL9xC2Nvu0curK/UZMUNm9IN7RQNTJe0zAlcyv74cs8lTmTfl9F/lXEnOG1QIlQT1Guq/NH/dMg4szsbgQygksKhJBtpeVS0D+UtOqrBxFBOS51VTgFFMGgpBkUeo1VLRl4Z1ByTzW9li/VO3SA0Ldd2dzpLXRCMpZFHiibEFuMr6n2eLcGvM2h8iIRz5mZbjDhIcQJpT0rAgU+Z2Nls2lGpRyKnba+MYejBX6C4pHjrtRUz6OvPmoNKC93D2+UgdSSD6ERHa4IclbkymLLBTq9XSARTCz1ACvVtdiMlRxpaoLpKewVjx6Uxwz3aeTjovloWTTL5+JQpSPF0fFNDbwlEjiyOiJKPGpLpploQiIDz3WuTNz8BbO3FYbpdlstetchAMQi+kIeaq55Lv49wcIu5KkjYZYiqh+DPq4lDNJw3mZAAR6c+oC+EnE83YvC9S56BQNXjLvkB8Y5TDeGrV08ACz4lL0sJYwMw== 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)(6069001)(4636009)(396003)(136003)(376002)(39850400004)(346002)(230922051799003)(451199024)(64100799003)(82310400011)(1800799012)(186009)(46966006)(36840700001)(6512007)(6506007)(36860700001)(5660300002)(1076003)(47076005)(336012)(26005)(2616005)(956004)(36756003)(9316004)(7416002)(70586007)(70206006)(6486002)(40480700001)(2906002)(83380400001)(82740400003)(81166007)(41300700001)(356005)(478600001)(86362001)(8676002)(8936002)(4326008)(36736006)(110136005)(316002); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2023 05:48:28.9542 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8618c39a-4622-477d-9be3-08dbfa0ccd2a 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: HK2PEPF00006FAF.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB6622 Mux pca9544 to cpld was added on EVT HW schematic design, so add dts setting for devices behind mux pca9544 to cpld Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 64 ++++++++++++++----- 1 file changed, 49 insertions(+), 15 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 c8e3a85b7a11..fdc33bffd467 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -36,6 +36,10 @@ aliases { i2c31 = &imux31; i2c32 = &imux32; i2c33 = &imux33; + i2c34 = &imux34; + i2c35 = &imux35; + i2c36 = &imux36; + i2c37 = &imux37; }; chosen { @@ -951,24 +955,54 @@ &i2c12 { status = "okay"; bus-frequency = <400000>; - temperature-sensor@48 { - compatible = "ti,tmp75"; - reg = <0x48>; - }; + i2c-mux@70 { + compatible = "nxp,pca9544"; + i2c-mux-idle-disconnect; + reg = <0x70>; - eeprom@50 { - compatible = "atmel,24c128"; - reg = <0x50>; - }; + imux34: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; - eeprom@54 { - compatible = "atmel,24c64"; - reg = <0x54>; - }; + temperature-sensor@48 { + compatible = "ti,tmp75"; + reg = <0x48>; + }; + + eeprom@50 { + compatible = "atmel,24c128"; + reg = <0x50>; + }; - rtc@6f { - compatible = "nuvoton,nct3018y"; - reg = <0x6f>; + eeprom@54 { + compatible = "atmel,24c64"; + reg = <0x54>; + }; + + rtc@6f { + compatible = "nuvoton,nct3018y"; + reg = <0x6f>; + }; + }; + + imux35: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + + imux36: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + }; + + imux37: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + }; }; };