From patchwork Wed Nov 1 10:05:58 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: 740227 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 90718D514 for ; Wed, 1 Nov 2023 10:06:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="O85y7+Qq" Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2089.outbound.protection.outlook.com [40.107.117.89]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D01EBDA; Wed, 1 Nov 2023 03:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GMt9rf5EdITkXUJECENyU94y17Zs/I1XevWee6FRE6u3Ufk1YYu+f/tvkKg3bfzMrLGRW5YZXISgIJ+BqHWQwZcKMAWiUUJL5bMIAeSC3y4k1HxaEsjmEJ61456pU3sRdAMyKkLXYwjIEcrda0lVh+dMLGD94tkhAM4phRzuPy4x9mAdy0+TF6F+OUl3RAHbarvVFbyXWWnMpjof9URSi6HnO57jHCXj2s2JFa03zAEmYoLZZ/gP6JTBv+7iZSCnfbytccnXSOPyvnwSlBzv69q2GMHAyEgfyHGIQEPvaC7AkOVZ6yFprs99tKoWr422CjrmojlogSHEh0nikNvr1g== 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=czJlZSPTe+EdE0lUruY3ULihTLvP+Xed3HvYIr4YkyWJwcINTTadlQXAII2dZ5UYUoMLqjyrhwckcMc8+9suO92cAzFNjfox6zztqUTY6D/cbCh79YDQpW3nOBdNLWJcZ39dFoQmzUcmNapAXydiWTVSFP3MRQ3xAf+BAJ6OKxwVy0Xh/DcaDonk1XVnuGhAf1okkOEivzbfqzdZojiFlyppkWZRKUE2URG/p8/ZR/pvKTcQBR/r+JN5A+vDPZedKtkh9I0SOP+DMu0RX1p/97FdP+LwcyYC5sylxQqRVVm2Bc1OuK5sPXWKcg7J6ohiGZKr0s7dyAjpiWZP1sAm2g== 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=O85y7+QqWYE3jkmCH3PlMbMlHKQHQfiHfQerQw/+sDGc2q+q8UhM5gZdtfn2/g95DqxElLSp7w1vXmJkli8GtWbtcri6tycqziW85iIYAJ0XASA6apFCRWkJt7dlnYtGLqWSkYB9PYOBKIuvgpo1lQ8WrLQJutqnCZgo9RT48KKNE/zAix81+XhTY1iiH5PUeRqsmGe0smBVoWiplSwdv9RAwrl4ikPWlcqYQdu5F8RGpB/4ji0j7GbXjIc1O7N3o+SbpJHYKL9P4758DqNKcNPVjBi5YCvtQe8Dd8PV/MiGlEY12Sg2wduk0DQu2T+gZdqf0Lbz3gtVxK8U6t5prQ== Received: from PS2PR01CA0054.apcprd01.prod.exchangelabs.com (2603:1096:300:57::18) by SEYPR04MB5642.apcprd04.prod.outlook.com (2603:1096:101:3f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.27; Wed, 1 Nov 2023 10:06:15 +0000 Received: from HK3PEPF0000021C.apcprd03.prod.outlook.com (2603:1096:300:57:cafe::45) by PS2PR01CA0054.outlook.office365.com (2603:1096:300:57::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 10:06:15 +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 HK3PEPF0000021C.mail.protection.outlook.com (10.167.8.38) with Microsoft SMTP Server id 15.20.6838.22 via Frontend Transport; Wed, 1 Nov 2023 10:06:14 +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 01/10] ARM: dts: aspeed: yosemite4: Revise i2c-mux devices Date: Wed, 1 Nov 2023 18:05:58 +0800 Message-Id: <20231101100609.2516844-2-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231101100609.2516844-1-Delphine_CC_Chiu@wiwynn.com> References: <20231101100609.2516844-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: HK3PEPF0000021C:EE_|SEYPR04MB5642:EE_ X-MS-Office365-Filtering-Correlation-Id: d9157772-94f8-4c7d-1a5a-08dbdac22f07 X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: okbea2/QYHjYif1YscOx5cIywuPtDCCSBwlMdOZZVH/1gu1xzjKzI1XaGJXbNgQ8k8JtXF70kwSC2GHCOd1LZrxmnUbMah9L0Fpljm7qHSpr9oJF/t2rxjHoU9W15EBQutoLj4+eWU+aKyk05DTmlNYC3+1txGH7JSe3vR7nT6v60pFOsghTtNCOemvSG7mBYvTjqvQhOnu/xiphXWdN+QAlCAcmtj0uayDzR/4qGgHJIi27Od8cIZ68GiKHRUDoihCsFqD9ODlXQ99Q615y5U6IIZjKKgjEpqASe+VGWc9yB65L1WdUlQw0vmbFXOQGcei+arLirGiTbCpGsXJkxmoxCFnZQN3mWb2yG1HPUqu+nz2QskdV9lz1hQ1qhAXz98RCbdd7t/v7gzAsTP44aimnxFiIrBC/eNKh41enBtYuqIaodg0lRJGWF60tcAyNLjB4Y3SNOaPh+pDeKx9bZC8otKIEw8boHEd0ZBTplxLrIjDdne4IbJuAqtQx3Hott0rJXvVMD4+5qAdbsK5N/Na6rK+EEAQPvNhxL7t7LrhLx98NBw5VnUT0mxf2oz9X1b0wfADYCVJONU7+laFMhY44h0UybvGA3cYddm4zNCPCUnuFNNErKpY5/VuZaJQFqqhAvcvQCf0ESbLCnDWPxA0D1n1pBHBo2H2e893uwEv9N1qPc7CRDGE7+YEceoQE0Afufdh+9HmZBKnk26h7vQ== 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)(39860400002)(376002)(396003)(64100799003)(451199024)(1800799009)(186009)(82310400011)(36840700001)(46966006)(6666004)(36860700001)(316002)(40480700001)(2906002)(7416002)(8676002)(41300700001)(4326008)(5660300002)(8936002)(36756003)(86362001)(82740400003)(356005)(6512007)(70206006)(6506007)(47076005)(36736006)(956004)(81166007)(26005)(336012)(83380400001)(70586007)(2616005)(1076003)(9316004)(478600001)(110136005)(6486002); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 10:06:14.8374 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9157772-94f8-4c7d-1a5a-08dbdac22f07 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: HK3PEPF0000021C.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR04MB5642 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 Wed Nov 1 10:06:01 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: 740226 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC23F4C6D for ; Wed, 1 Nov 2023 10:06:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="ejNdn4dl" Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2064.outbound.protection.outlook.com [40.107.255.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FAA6101; Wed, 1 Nov 2023 03:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dS6wnxm/7xh5UeJ53DXPtFLUbHDxal++usRYvDETqmkDnuEEwmU6Jw9b3lkPdEzgRKR8KN+UDNY6LFRGlmM98HplO0KRsLS2IgvD1ktgKh5a6JNq9cGFpkvXNmdwz70hNb0bscOgaBJ8yr+LT0jUZaPHIDs6b8ZH9pHcz2BeFAHeSOqE+kt1pPc9HnmW/uOcs1FjheShrQhxqd46rvFYWeDrK0fXAs+hjTtUfMnhP8Ch4MOgUoGVnY91gnW0ix0QImJyGc9mOXqOT/6TsQnHfl1OJy37pcXSq4wQYtqVhStjaTI6zJ5s8zPpQWqKP8K7OMQeEpO42bfyza+ZxY1Nmw== 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=a6eUXb3yAB6+1sF9KGxuPj9S2mmZlucBK/+y5NgEZCk=; b=EdGYROEYTsbYc8BST1sDJyUl7MpTcwmvaQzoiD6dCMV0isY0sUr8/YpnI5rA7F0fSHpbLbpiu5xoLzFaeMmnqRs+vq0b3HJLwngDyjMxT9veugSJa7jXwwp01XTWsxwTmuOzQUBE4fDNuE0mtZHUDs5XblsbHiz78WqI/q+ZYoVkivxKhSm+x4luuXRkpMZUCMA8Ltviqwmr7P6WWIjOTTTrgbrKX8Elqx6RH2d/iJ11EjtTl7h2i+eRKXTwuaMUY1099qBPJgzizcZo6t6drZjoBFrd3FkweCU45Galy5w0UlSpaFNrz4+RGRpLvPdesIFCshUIPZQeiY6Ut8Z+Yg== 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=a6eUXb3yAB6+1sF9KGxuPj9S2mmZlucBK/+y5NgEZCk=; b=ejNdn4dlS/v6WYW3D5OmTlS1dWL49R/SWseATCQZe5tJBcfI0Q4RfKJhJzh6VLJVODmm37bfBLVAIBb4IXEQSvj7Wkccv3f5f1CfV/4Wu3oN6ogWFf7QFXNPnAZBhqcU7fgAfD0cGTeygVMM55xqxLV6/ygz0s0PuelhW9ajmALIkkVsxREk2EYCarG1qr2Muv4UtEin4uNz+WHodVad+a0qcq5AarOqrz3hgRw3pE+EV3gD/iA1BO9qXWG3FTfr1+Xu+G50ex/nf61zg1hgDbGy5rHjim25+jYhG0Zgrw79N/0LkPRHaxxlLmnZZdGzco+CHt7FOZSyopOLESKuuQ== Received: from PS2PR01CA0050.apcprd01.prod.exchangelabs.com (2603:1096:300:57::14) by JH0PR04MB7624.apcprd04.prod.outlook.com (2603:1096:990:62::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19; Wed, 1 Nov 2023 10:06:26 +0000 Received: from HK3PEPF0000021C.apcprd03.prod.outlook.com (2603:1096:300:57:cafe::4e) by PS2PR01CA0050.outlook.office365.com (2603:1096:300:57::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 10:06:25 +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 HK3PEPF0000021C.mail.protection.outlook.com (10.167.8.38) with Microsoft SMTP Server id 15.20.6838.22 via Frontend Transport; Wed, 1 Nov 2023 10:06:25 +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 04/10] ARM: dts: aspeed: yosemite4: Enable watchdog2 Date: Wed, 1 Nov 2023 18:06:01 +0800 Message-Id: <20231101100609.2516844-5-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231101100609.2516844-1-Delphine_CC_Chiu@wiwynn.com> References: <20231101100609.2516844-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: HK3PEPF0000021C:EE_|JH0PR04MB7624:EE_ X-MS-Office365-Filtering-Correlation-Id: f81468c6-0067-4fff-49b6-08dbdac2352a X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: d6TuVGXgl01I/QtEm7Q3gIiHI0ZKP/K6ZISM51SrgXt007L/zh1j3dXS0bs0cAaS7h59fbwr/Er9pecbaXmVuKyBeo8Z6mQzLvEJeIl3L4y6lPiI4v5k1jOQXmQfDSX72UbKMHyjbOXzuBSEpES20qgrCfPAQjTBRNHEaTsR3MJ3Udj8LSSQMDkqRH4XXfHS+DutOgUgFUX8ZWXFpNXoHmKYnK1ap5QbFoVMNtpxYiWnFWPzQ18ucPd4TVL7sM3BKDoKxoc9A7V9YjMsvRdi3vqwuJ9wT8+drYtcV0P50npUOAGf9hIF6S6y8VOScF+OAzIrxZvqR79G6bCqio8/BFgDTG8wJcJFOvS2vgmYL5Q3MEQebkN56CqAFY1cbzHypJFartbI3pb2rJxANWq9fRjXi6Fa6FH/6s2ai5IohkWYcWOiZFYziWck/oemjQzAcntEny9Idx6dUUazLOXiKAJx1GiH/UIv4v2cCZJAUMyzUMqO3yRN8xa/9gPaSPP+91z789bO4T5eVJGG3cHJ9uP9SMHV+pVnudrlzQB29jZQkMofo7UjwKVBueFHKa/GKZQo55jPT3s3ZWfgxoy/MRRYNg/spKA9SC0m89tOJaaZPjy9Ra1kRBv9eX2UK3wjN2Q0E2U/Cx6UMKnMs5a5RxcaBVN4BuxDRiVyu5rTcc/SESgIXBpSrW/MqCXsonX2nI6imWlm2dMIJrf0Dk+0ag== 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)(39860400002)(396003)(376002)(1800799009)(82310400011)(186009)(451199024)(64100799003)(36840700001)(46966006)(47076005)(316002)(956004)(4744005)(86362001)(2616005)(336012)(81166007)(9316004)(2906002)(1076003)(26005)(36736006)(110136005)(70206006)(356005)(6506007)(478600001)(41300700001)(36756003)(6512007)(6666004)(8936002)(8676002)(70586007)(4326008)(36860700001)(82740400003)(40480700001)(6486002)(5660300002)(7416002); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 10:06:25.1344 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f81468c6-0067-4fff-49b6-08dbdac2352a 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: HK3PEPF0000021C.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR04MB7624 enable watchdog2 setting Signed-off-by: Delphine CC Chiu --- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 7 +++++++ 1 file changed, 7 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 20aded2d1be6..bcff232a1782 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -120,6 +120,13 @@ &wdt1 { aspeed,ext-pulse-duration = <256>; }; +&wdt2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdtrst2_default>; + aspeed,reset-type = "system"; +}; + &mac2 { status = "okay"; pinctrl-names = "default"; From patchwork Wed Nov 1 10:06:03 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: 740225 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D552101C0 for ; Wed, 1 Nov 2023 10:06:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="jziF9et9" Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2054.outbound.protection.outlook.com [40.107.117.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5F0C119; Wed, 1 Nov 2023 03:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EmyNxAFzM1z4CwhQbx639P6XpEv3dWEhKJtxn1jeFEg/bI+0qK4cztRbUgvR0YeA1Rchjntb1wObDJFs71lrnTV61jw1Zj7vMzbl5i7+hRXxKbRwoGxCTga7FNMtKEMGXO+seqAKfwNrtdhhMlzcTvarG03/p9a1adojMAHPMW2wi8alzxio66gim6r34Gg/no+hjIuLZx7PqIc9nNtXJpmpL/zmPOt2wTybqwIEonWWywIjIVCddJxgINFK+1UEObOml1WmP4QWPscOhfFUnZoxnEHRt0dTk7MdQAOY8GS8oOvJ7cE99FX1r+POv42XtPKt3fB4d1zVxA0SvL6PWw== 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=35HQaRL1Pf3wCPxykt6OvctpFhwvKLgIEWC2V9goRQ8=; b=cnewkrFXS9iWzUd04PCAGjtJpF4cYyaRlTWeevKRNbY7uj0J8xSyO/aShV4BthDAUnA/XHJbQjqNVk0eVtd1fXxCNgRYapvPsqth0N58k9/n8ogAcMhsdBfFXpujV77cyxgn3Gu23dXFwCsWT2k7ZifgvoTzDpO881r/qaH4BpmmOfD1hwvOuLDhUoP/JHShxLkciXhYfY74grQLyIKkm0qvSLilQ6+HpGesTBnyRT4E9nTgVCeVKccmkbrw/Up7vG5fv9t6ggWTOeRyVMoBtE1Pk1zJqXQ0fLNE2In+yZmDCHlq8O4ijtpQZRERerq83V6WOcl2BXQnYpi1Sk8cHw== 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=35HQaRL1Pf3wCPxykt6OvctpFhwvKLgIEWC2V9goRQ8=; b=jziF9et9r9c7gSE10Ib9qDVp6w24B//4ok8t20Mzujq0LUMgRLJGgxhez7MzSX3kPpV5h8WX/Q1VnsensiBW0ZOJVBSR06fKSXirfibOxwyrFCLkfWRvJfZZG/eZF9manN7HUrteGvWeOEzxvDZphB6MnxDCu+mXpSgVbGpRXLhHbddVvWNEH7HU68Lo/+RymhUDDzQlyJsdvDxNi/TywUGk1yRuHTqtmmM8QvVCPCabzOuMpS1xGHENnkxEbcq5jqjLJDEpclNzsuFJHAwEH+5JHpId3nMMrPaQZ2M24pVGziFRNgx1RXSohrLAmvWcAUL7ms64aLLafrR27XfA1w== Received: from PS2PR01CA0069.apcprd01.prod.exchangelabs.com (2603:1096:300:57::33) by PUZPR04MB6487.apcprd04.prod.outlook.com (2603:1096:301:f5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.25; Wed, 1 Nov 2023 10:06:32 +0000 Received: from HK3PEPF0000021C.apcprd03.prod.outlook.com (2603:1096:300:57:cafe::2a) by PS2PR01CA0069.outlook.office365.com (2603:1096:300:57::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 10:06:32 +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 HK3PEPF0000021C.mail.protection.outlook.com (10.167.8.38) with Microsoft SMTP Server id 15.20.6838.22 via Frontend Transport; Wed, 1 Nov 2023 10:06:32 +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 06/10] ARM: dts: aspeed: yosemite4: Revise power sensor adm1281 for schematic change Date: Wed, 1 Nov 2023 18:06:03 +0800 Message-Id: <20231101100609.2516844-7-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231101100609.2516844-1-Delphine_CC_Chiu@wiwynn.com> References: <20231101100609.2516844-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: HK3PEPF0000021C:EE_|PUZPR04MB6487:EE_ X-MS-Office365-Filtering-Correlation-Id: b77f0c77-f8fc-4d7f-66ff-08dbdac23975 X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rzEm1/5DZQIJ1GwNO0SoYIqeDE69iE4Cny3jvMMar+J53sEqktO6bRclfqUgYYANQhhDrZk3fxthX4cC+neGJwVtg7aRLXkWbFkPpa6v7hRqD2lSLYuWx3EzkkDNWTNHNRQeqURR3vP+b+dzhIoa0usv41jckYhxyW4YFZDOviE7kkS/VEP0cIle5SbjJBP73K/gRsd0KMm7EAyHk5zYcVLErhdtNfTkNrnTraWTMu/jf+D0THeILG50oA9ovyB6T/CyxXBln3FeFifZs8FAsxX0PyzLmcpNXnzy9exTet5omDI7sRyIpenkjZqzHjprgVt5hlLE+ZAGtu5UrlIvMHAK+IcXF08CKdG+7jKnbR89j/fJoh9zhESj3c/3/hxCGLvIH5fMG4Ve/TEtbBoy+7PNXM1BxyuSTOoCXDLgEh7BCkJpJYp7ERK8UgrynSCrU/XZdW+J24UpTMaJMUoE1GKuI5j9if/DcteWEFpGsa2CTcgpwdwKcov/P1mAZsOUYeGWlQtKjnWqdDm5GhoiWQ8KQpFv0Xqk599MBhtDV1szf1qjEBYJa4zwJhEnecQ8TNPCBo5fCpECGM3eeLHxFOuR1O5RWL2lUsoBea+5w4VZ4A7gQJHgE9TAcyRFWqLB7qVeHFa2BNKeS6MVZ0ZxKSKNQQhT65wsrYTG8lYSkwhAJbw795PG2i4UyWmnsMCYR5ex+IMIxZ7pQEcxwVhbtA== 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)(39860400002)(396003)(346002)(136003)(376002)(64100799003)(451199024)(1800799009)(186009)(82310400011)(46966006)(36840700001)(2906002)(86362001)(41300700001)(7416002)(8676002)(4326008)(8936002)(5660300002)(36756003)(9316004)(478600001)(6486002)(6512007)(110136005)(26005)(6666004)(47076005)(40480700001)(6506007)(36736006)(1076003)(81166007)(316002)(956004)(83380400001)(82740400003)(336012)(70206006)(70586007)(36860700001)(356005)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 10:06:32.3375 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b77f0c77-f8fc-4d7f-66ff-08dbdac23975 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: HK3PEPF0000021C.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR04MB6487 Revise power sensor adm1281 for yosemite4 schematic change Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 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 5bad7abd8f65..b9dd7705b172 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -176,8 +176,9 @@ mctp@10 { }; power-sensor@40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; }; @@ -193,8 +194,9 @@ mctp@10 { }; power-sensor@40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; }; @@ -210,8 +212,9 @@ mctp@10 { }; power-sensor@40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; }; @@ -227,8 +230,9 @@ mctp@10 { }; power-sensor@40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; }; @@ -244,8 +248,9 @@ mctp@10 { }; power-sensor@40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; }; @@ -261,8 +266,9 @@ mctp@10 { }; power-sensor@40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; }; @@ -278,8 +284,9 @@ mctp@10 { }; power-sensor@40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; }; @@ -295,8 +302,9 @@ mctp@10 { }; power-sensor@40 { - compatible = "adi,adm1278"; + compatible = "adi,adm1281"; reg = <0x40>; + shunt-resistor-micro-ohms = <500>; }; }; From patchwork Wed Nov 1 10:06:05 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: 740224 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61E79DDA4 for ; Wed, 1 Nov 2023 10:07:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="rFe/e0hC" 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 A69B3D41; Wed, 1 Nov 2023 03:06:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DKadG5mWRKeLCZLtnPSiKTYGOLGGH4HxIMwmgUUI5VnhxYyO1gjCq27oSmHmW1nNvupUBAfN5woswW3ELeKqVGnp2RI+J22DjvYuTD0kpTnYf/RVSz9Y7XKiEy/FDgJxPv24M5L+HGnUtv/2TNh5IboO4kAjRuneD+iZH9+w7aikD/IBSOZABcaHMzacLP5UW5JRZeofIq6me2pxH6sj0jKPppbNh1fnX4tf2oIS1cvEFmdMqrphJ8Tikz9jp3MYKV3njNxI5HmVMYyC9w2G6foW/LAgmfY51w36qB9kEmAtXug/7+8WAi1uKV+p7tal5R+qyON9M6EF18P4zjJpMw== 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=gGx9q/7Lv43uTAIXe82yWeJ76GhBkqVjRlW6YIKJ2KI=; b=fGCT8tKb1VUR5eGFVBViJ1xCm4t+aqJxCKMZ8G+LKtwVVJJx6ap4eKDIbCyX0/o06u8H9GF4EwXs7AbL/9pNRpU5vshks109kFe0ojKf77CwxrtPb3dDpRSoQSlAULDtv54O2kjLm0czmgLlfOTlq3DhnXEU5fOQ8bJ11cfSLLMNLQHceKv4IPIJbPBeNjms7YieNZv3k8HrfPnSaUiUF5vjSWr4tDMRWAHdwrWM+DjaxMDW7TRCERnrqUmicVIq6NoBFNhuNvHVKeQRz27Lo6RFUdrmiZ1FX01VdZWugbs6olhFeLakFVgOGsvlt18UzVnKEnsOsbTRt31aqScOZQ== 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=gGx9q/7Lv43uTAIXe82yWeJ76GhBkqVjRlW6YIKJ2KI=; b=rFe/e0hC5SNQMoq35/ymyx48LQ/QeFXhz86XgiwDYxGXTHsShYrRg/uZkbQc63/lUHCjtuvq4iDOPH2gpfLCcoLYdPboxyzcE96QPA7g34zPrUPBqeUxKZXIPYZDIoFeRe6E8y8aOWU19uERPdCA8AavWty3LOlpDD0j+9MXdmEON09XDe5Cxr+4xmp1qLj2wHM5kXRCay6P9rXo6dgKcwl/TZICmTvQ/8i49HaYIeuz7C+40ewjQInTa16I6fxvft7pWztwII0C5sDeWO9Epg3svPcoe/2wuR0z4ykuNt3nM30vOiF+CBjX52rndWg8moX5tr19ny2tkc/l9ax73w== Received: from PS2PR01CA0050.apcprd01.prod.exchangelabs.com (2603:1096:300:57::14) by KL1PR0401MB4227.apcprd04.prod.outlook.com (2603:1096:820:25::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.24; Wed, 1 Nov 2023 10:06:39 +0000 Received: from HK3PEPF0000021C.apcprd03.prod.outlook.com (2603:1096:300:57:cafe::fb) by PS2PR01CA0050.outlook.office365.com (2603:1096:300:57::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 10:06:39 +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 HK3PEPF0000021C.mail.protection.outlook.com (10.167.8.38) with Microsoft SMTP Server id 15.20.6838.22 via Frontend Transport; Wed, 1 Nov 2023 10:06:38 +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 08/10] ARM: dts: aspeed: yosemite4: Revise i2c11 and i2c12 schematic change Date: Wed, 1 Nov 2023 18:06:05 +0800 Message-Id: <20231101100609.2516844-9-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231101100609.2516844-1-Delphine_CC_Chiu@wiwynn.com> References: <20231101100609.2516844-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: HK3PEPF0000021C:EE_|KL1PR0401MB4227:EE_ X-MS-Office365-Filtering-Correlation-Id: ec9007c6-3c8e-4a04-eae8-08dbdac23d65 X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XjxkdkTJHXxpSHnm/h6Mf20shjot1l7EBr98JYC9JbUEnY6M2u39dbKMJzUtY5gTAUYuLUnv36FcZ2NCmCDIw6ecEdyF0oAz/jep1ckTxO25KHGlrRNEocllPwPsCVJKn1fZQwbFpT5Qg/6VAH6IuGE8ves0t0IF6cSlBcmJWbNDveyYA+rk7SMdtpexwkyYm2HtdGfjLpAEttdwyRC1K9HJ3MpsMb/mydIzJkKJOfH9GPqOmGYG7OqbxWMWrLOJ02JAmwftczDlS4s7y8XnfCfRLffpYH4ITM4dYo6RrmvBz5pNmj/hfYxL9dpdGplO5CBXiFBYX0RyTTO02cfXe05Bqmb2y2nYLbX5Aw4V59gRu8NyzxkVMS2+bXthhZMGG0rYfT50N3s4j+s1aY+2y30U2vrrwxgfnzF8MwnDpeBb2Y7xU0R5YW+hxSywtFN+T0we5SZIkH5XWu8uSkQKszHtDniYj1lD1ynpMYZOUGP5X8V/zxJIWdIwLqgS8mnF6PXkWcHT8OOlzsY2txV/G4ktwdGBmPMiklyfW2GIAUpoF+kOVJhPXSrcUzOH6YdSQChdWmuukyICM0sBeuMCyrP6YqV8pKVuqea78YV80PaeyETztfONpnN8AfCGssBWfoTSfs0XS5wqnb73Y8KCs/glgZNcx3B9qlrMXeFQ//luRBBN++tUcBGM/7QWA1APcYvC3n/FnX2A+EO34gU/LQ== 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)(376002)(396003)(39860400002)(346002)(82310400011)(1800799009)(64100799003)(186009)(451199024)(36840700001)(46966006)(6512007)(1076003)(26005)(40480700001)(86362001)(36756003)(956004)(356005)(82740400003)(81166007)(7416002)(2906002)(8676002)(83380400001)(9316004)(478600001)(2616005)(36860700001)(47076005)(6506007)(6666004)(316002)(6486002)(41300700001)(36736006)(8936002)(336012)(110136005)(5660300002)(70586007)(70206006)(4326008); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 10:06:38.9469 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ec9007c6-3c8e-4a04-eae8-08dbdac23d65 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: HK3PEPF0000021C.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0401MB4227 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 e58d2ecf8ab5..d2b8091326ea 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 Wed Nov 1 10:06:07 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: 740223 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D073DDCC for ; Wed, 1 Nov 2023 10:07:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wiwynn.com header.i=@wiwynn.com header.b="mWVztLnH" Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2050.outbound.protection.outlook.com [40.107.215.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D90C12F; Wed, 1 Nov 2023 03:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NXwZBp2bbazNWwbsgvb7gnAoKI+HxnWNhBAeLoxatG46h8O5peBv50iceYJ+dpLPSPTWjJXKDYOu1ljCnQy+pvXF99HasCfaZS5GVSTGOk+4/LYlQKothRYssAVYZDwliFJGtDwi3IvoF8am4iTrJJzsOS7b3te3yA+g2FbWQns31HwQKzjUrs55N1wJjlFiU/2uuotOdJVaEoBWZ4gW7htQZwytT6Ch7n2dEYvcbmHLqyl4tJvF1oAH1gNE3bd5AjdaY8Yvm7RPt9oHhtRzN0gUmMWtDI0UXPjs2DFG/CcQMQ6vIozDIaqIXL66xM4/fstKRluDeGVLX7NueDOiEQ== 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=mslSkF+utcuvRraDkx+lR0DVTdVTo/DQ01oagSWGMgg=; b=QEUH/lSVIMOSCIiKafHRJlinM28pLnrvBX8j5zXkT7kNbOgZ5SCtKfFoknmQsKJSJCN7MmZQJLHPutX+qZKVAQo/oMXw8GmevbDp+nP4gMxZ9PxV++2loBnUEpUPQkzVT3bpHzRpKYCrCj7ozOzPQ0DlHxUB49YGYwBc+EegBIwH9N8KAMjV5EOKpkdD+/cAMRgPNyiI6zJn+wt348NqP9Nzkf+ex8L1movkgQcvq0Nc/C3vQGDl8I+XmtmWMt7kAuK5wOFNCkLmRCKwxlCU57m7gCu8WmBDPoXgJTwBcbunHWAAvdvRsD9UURcIcqzz0aHVGfL2uDuBQLTWrXuBTg== 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=mslSkF+utcuvRraDkx+lR0DVTdVTo/DQ01oagSWGMgg=; b=mWVztLnHK8bEZNxyftWf/gEvVaVKXkhTyXzpxBGWOFUeW1H/5jkiTP6iJqItrS/0dAR65JzsnsB1dFh4EmAXWX4eAPZoXeAz9wqUg/xyfRiZeXKG0uGFIV/JpAURL+GJMn/7NHMku6JaqXEL2uBFXTOzGOc8zPXnnylLPWeBHn9mrgK6bOIeIcDMgUrHZMkMx9cYCu8pZ8KCmqOJ7cvxStqOt0rJw1DndE+RGz+zmMDP/fQdlcezIbcUEjFMt09yZnav2nenzsjzOkf3X/2rZWpnq3abYofCq/5sJlSl6isiFkQOYO021c26T6umGUwduqZr8Y060AOwU1Rm6vLD2A== Received: from PS2PR01CA0056.apcprd01.prod.exchangelabs.com (2603:1096:300:57::20) by TYUPR04MB6640.apcprd04.prod.outlook.com (2603:1096:400:35e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19; Wed, 1 Nov 2023 10:06:45 +0000 Received: from HK3PEPF0000021C.apcprd03.prod.outlook.com (2603:1096:300:57:cafe::32) by PS2PR01CA0056.outlook.office365.com (2603:1096:300:57::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.19 via Frontend Transport; Wed, 1 Nov 2023 10:06:45 +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 HK3PEPF0000021C.mail.protection.outlook.com (10.167.8.38) with Microsoft SMTP Server id 15.20.6838.22 via Frontend Transport; Wed, 1 Nov 2023 10:06:45 +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 10/10] ARM: dts: aspeed: yosemite4: Initialize bmc gpio state Date: Wed, 1 Nov 2023 18:06:07 +0800 Message-Id: <20231101100609.2516844-11-Delphine_CC_Chiu@wiwynn.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231101100609.2516844-1-Delphine_CC_Chiu@wiwynn.com> References: <20231101100609.2516844-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: HK3PEPF0000021C:EE_|TYUPR04MB6640:EE_ X-MS-Office365-Filtering-Correlation-Id: f3c4b5db-08e6-4b7f-5d5f-08dbdac24124 X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: v/HaZW4enfEKjFdimMDQm/V/xYJbLvy917B9nBaFF8rIFh99pRe+Eqa2haJWlRuqwADpxZF/rmgyeyCqL2uPSJg4lqSq2Xss4n6vKHsDSwZBFsQkJKVafgxn0WW4HE2ET4ROZf3zDvi+6RyKae9VeNNRPoBwtk1rbjz5bUrkfoVNsHY+7m+9WDbCvo3NjUedON68n9oxn0z63D8cDb3pD4R3TvuMEG/gnCN6IQuitn/6wozKuGgaQV8PsGJa3j3iXJwEJ4d8X0wYOg7Yu6QjRJhLigqORsRsD0iIdeIY/wyl2Ono7a2tn46UXZymKkWU+abZdaoCKM+pA973JQpkyuLkr53kfa3El5RCQTQYaYbFa0R2K23XTyx22+kxs05tXfRl23Z3Gn3DMBP3NvwOlvNvmTINd8dnJxCJU6+t4+ir2qL0tWwfMmeOdnYroYvpLYMW+dF44YNSl5rKpfDHZCptp1Z47NS1CZWyGWM2d616q8yY7lQ2fl3Xm/h+dIv5Y6WP96hn+XPgp7VRLoLlmS72mkiTfDERIgmAG8Pt31Uq8eUmXfE5Sa8NiJZb2CkejwnVrRqcjGMXRGvcY5bmWzOOOoXMh4zhZ8oRj32W7I4acLCcry6QiY5dEODSROk+vQgm3S7QHcGndJZkVFuGQXJtqxrBJ7oMHd6EtkkGSsotIOJM64HOULgmi+w9vU4YHzuVIuZwdxFe3t/Rjx9Xjw== 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)(346002)(376002)(136003)(396003)(39860400002)(64100799003)(186009)(451199024)(1800799009)(82310400011)(46966006)(36840700001)(7416002)(5660300002)(316002)(41300700001)(36736006)(110136005)(70586007)(70206006)(2906002)(8936002)(4326008)(8676002)(6486002)(478600001)(40480700001)(6666004)(36860700001)(6512007)(47076005)(81166007)(36756003)(83380400001)(356005)(6506007)(26005)(336012)(9316004)(1076003)(956004)(2616005)(86362001)(82740400003); DIR:OUT; SFP:1101; X-OriginatorOrg: wiwynn.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 10:06:45.2282 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f3c4b5db-08e6-4b7f-5d5f-08dbdac24124 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: HK3PEPF0000021C.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYUPR04MB6640 Initialize bmc gpio state Signed-off-by: Delphine CC Chiu --- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 196 ++++++++++++++++++ 1 file changed, 196 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 a0f0424457fa..2947abfb0b46 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts @@ -1271,6 +1271,7 @@ temperature-sensor@1f { }; }; + &adc0 { ref_voltage = <2500>; status = "okay"; @@ -1287,6 +1288,7 @@ &adc1 { &pinctrl_adc15_default>; }; + &ehci0 { status = "okay"; }; @@ -1298,3 +1300,197 @@ &ehci1 { &uhci { status = "okay"; }; + +&sgpiom0 { + status = "okay"; + ngpios = <128>; + bus-frequency = <48000>; +}; + +&gpio0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpiu2_default &pinctrl_gpiu3_default + &pinctrl_gpiu4_default &pinctrl_gpiu5_default + &pinctrl_gpiu6_default>; + gpio-line-names = + /*A0-A7*/ "","","","","","","","", + /*B0-B7*/ "FLT_HSC_SERVER_SLOT8_N","AC_ON_OFF_BTN_CPLD_SLOT5_N", + "PWRGD_SLOT1_STBY","PWRGD_SLOT2_STBY", + "PWRGD_SLOT3_STBY","PWRGD_SLOT4_STBY","","", + /*C0-C7*/ "PRSNT_NIC3_N","","","","FM_NIC0_WAKE_N", + "FM_NIC1_WAKE_N","","RST_PCIE_SLOT2_N", + /*D0-D7*/ "","","","","","","","", + /*E0-E7*/ "PRSNT_NIC1_N","PRSNT_NIC2_N","","RST_PCIE_SLOT1_N", + "","","","", + /*F0-F7*/ "FM_RESBTN_SLOT1_BMC_N","FM_RESBTN_SLOT2_BMC_N", + "FM_RESBTN_SLOT3_BMC_N","FM_RESBTN_SLOT4_BMC_N", + "PRSNT_SB_SLOT1_N","PRSNT_SB_SLOT2_N", + "PRSNT_SB_SLOT3_N","PRSNT_SB_SLOT4_N", + /*G0-G7*/ "","","","","","","","", + /*H0-H7*/ "","","","","","","","", + /*I0-I7*/ "","","","","","ALT_MEDUSA_ADC_N", + "ALT_SMB_BMC_CPLD2_N", + "INT_SPIDER_ADC_R_N", + /*J0-J7*/ "","","","","","","","", + /*K0-K7*/ "","","","","","","","", + /*L0-L7*/ "","","","","","","ALT_MEDUSA_P12V_EFUSE_N","", + /*M0-M7*/ "EN_NIC0_POWER_BMC_R","EN_NIC1_POWER_BMC_R", + "INT_MEDUSA_IOEXP_TEMP_N","FLT_P12V_NIC0_N", + "INT_SMB_BMC_SLOT1_4_BMC_N", + "AC_ON_OFF_BTN_CPLD_SLOT6_N","","", + /*N0-N7*/ "FLT_HSC_SERVER_SLOT1_N","FLT_HSC_SERVER_SLOT2_N", + "FLT_HSC_SERVER_SLOT3_N","FLT_HSC_SERVER_SLOT4_N", + "FM_BMC_READY_R2","FLT_P12V_STBY_BMC_N","","", + /*O0-O7*/ "AC_ON_OFF_BTN_CPLD_SLOT8_N","RST_SMB_NIC1_R_N", + "RST_SMB_NIC2_R_N","RST_SMB_NIC3_R_N", + "FLT_P3V3_NIC2_N","FLT_P3V3_NIC3_N", + "","", + /*P0-P7*/ "ALT_SMB_BMC_CPLD1_N","'BTN_BMC_R2_N", + "EN_P3V_BAT_SCALED_R","PWRGD_P5V_USB_BMC", + "FM_BMC_RTCRST_R","RST_USB_HUB_R_N", + "FLAG_P5V_USB_BMC_N","", + /*Q0-Q7*/ "AC_ON_OFF_BTN_CPLD_SLOT1_N","AC_ON_OFF_BTN_CPLD_SLOT2_N", + "AC_ON_OFF_BTN_CPLD_SLOT3_N","AC_ON_OFF_BTN_CPLD_SLOT4_N", + "PRSNT_SB_SLOT5_N","PRSNT_SB_SLOT6_N", + "PRSNT_SB_SLOT7_N","PRSNT_SB_SLOT8_N", + /*R0-R7*/ "AC_ON_OFF_BTN_CPLD_SLOT7_N","INT_SMB_BMC_SLOT5_8_BMC_N", + "FM_PWRBRK_NIC_BMC_R2","RST_PCIE_SLOT4_N", + "RST_PCIE_SLOT5_N","RST_PCIE_SLOT6_N", + "RST_PCIE_SLOT7_N","RST_PCIE_SLOT8_N", + /*S0-S7*/ "FM_NIC2_WAKE_N","FM_NIC3_WAKE_N", + "EN_NIC3_POWER_BMC_R","SEL_BMC_JTAG_MUX_R", + "","ALT_P12V_AUX_N","FAST_PROCHOT_N", + "SPI_WP_DISABLE_STATUS_R_N", + /*T0-T7*/ "","","","","","","","", + /*U0-U7*/ "","","FLT_P3V3_NIC1_N","FLT_P12V_NIC1_N", + "FLT_P12V_NIC2_N","FLT_P12V_NIC3_N", + "FLT_P3V3_NIC0_N","", + /*V0-V7*/ "FM_RESBTN_SLOT5_BMC_N","FM_RESBTN_SLOT6_BMC_N", + "FM_RESBTN_SLOT7_BMC_N","FM_RESBTN_SLOT8_BMC_N", + "","","","", + /*W0-W7*/ "PRSNT_TPM_BMC_N","PRSNT_OCP_DEBUG_BMC_N","ALT_TEMP_BMC_N","ALT_RTC_BMC_N", + "","","","", + /*X0-X7*/ "","LT_HSC_SERVER_SLOT6_N","FLT_HSC_SERVER_SLOT7_N","","","", + "PWRGD_SLOT5_STBY","PWRGD_SLOT6_STBY", + /*Y0-Y7*/ "","","SPI_LOCK_REQ_BMC_N","PWRGD_SLOT7_STBY", + "","","EN_NIC2_POWER_BMC_R","", + /*Z0-Z7*/ "EN_P5V_USB_CPLD_R","'FLT_HSC_SERVER_SLOT5_N", + "PWRGD_SLOT8_STBY","","","","",""; + + pin_gpio_b4 { + gpios = ; + input; + }; + pin_gpio_b5 { + gpios = ; + input; + }; + pin_gpio_f0 { + gpios = ; + input; + }; + pin_gpio_f1 { + gpios = ; + input; + }; + pin_gpio_f2 { + gpios = ; + input; + }; + pin_gpio_f3 { + gpios = ; + input; + }; + pin_gpio_f4 { + gpios = ; + input; + }; + pin_gpio_f5 { + gpios = ; + input; + }; + pin_gpio_f6 { + gpios = ; + input; + }; + pin_gpio_f7 { + gpios = ; + input; + }; + pin_gpio_l6 { + gpios = ; + input; + }; + pin_gpio_l7 { + gpios = ; + input; + }; + pin_gpio_s0 { + gpios = ; + input; + }; + pin_gpio_s1 { + gpios = ; + input; + }; + pin_gpio_v0 { + gpios = ; + input; + }; + pin_gpio_v1 { + gpios = ; + input; + }; + pin_gpio_v2 { + gpios = ; + input; + }; + pin_gpio_v3 { + gpios = ; + input; + }; + pin_gpio_w0 { + gpios = ; + input; + }; + pin_gpio_w1 { + gpios = ; + input; + }; + pin_gpio_w2 { + gpios = ; + input; + }; + pin_gpio_w3 { + gpios = ; + input; + }; + pin_gpio_w4 { + gpios = ; + input; + }; + pin_gpio_w5 { + gpios = ; + input; + }; + pin_gpio_w6 { + gpios = ; + input; + }; + pin_gpio_w7 { + gpios = ; + input; + }; + pin_gpio_z3 { + gpios = ; + input; + }; + pin_gpio_z4 { + gpios = ; + input; + }; + pin_gpio_z5 { + gpios = ; + input; + }; +};