From patchwork Mon May 17 04:00:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quan Nguyen X-Patchwork-Id: 12260813 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT,WEIRD_QUOTING autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D8A4C433ED for ; Mon, 17 May 2021 04:04:38 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AB486611EE for ; Mon, 17 May 2021 04:04:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB486611EE Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=os.amperecomputing.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=3TCKrPz2k/OTahL/0em35QYUjtyALEfQKov32wdjFA0=; b=TTEy+D6QMMBQxkrH7pDy0Qj8G /hmf/fRTrmF6EtcSHOfXGrArYFM2NUMDx4izmLSwcwUiWZKpduDYVhwQfPb82Tb+YtyXFQjoCBcSd Lc77zSBN2ZWsXyzLyk07ByVEoBhk2wsU5J1bLljfFpz2/nGdzmMV6K3sv/FOXg5k3S8GpnENYGNN0 r4lf2XYPqVoF78ZJd2NzxWBcOIcNW9g3CA8d1uvRoG89i8fKXnq1vCWVaOIx5u5Yol+85G+fiqBAJ vyLctEws51GVu34yUZUR1NgSVHiTuDo91dJ6RqsaR9payDOM98G7xPas6ZTfoZCFdtxkLU4ez5TUI FJHj1EI3w==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liUSR-00DcSL-4j; Mon, 17 May 2021 04:02:19 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liURL-00DcK7-3F for linux-arm-kernel@desiato.infradead.org; Mon, 17 May 2021 04:01:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=raKqyYrrBoYm4tY0PAxkXyvncJemEiN0cwbyzumDRNE=; b=3W6vEpVG0TraOvV/s6W/pmY/EC N1TsCF9Dd1f/E8gI/xgSUtUuXdx90f8Ja44KV7jH7gUF7SD44TXm8ZXZQTbFHCGx23FpOtt4wBObg ji2AjvqxsnhegRu/9Xkr8mAzicLTc9EQeL4y5Ok4Nxz33vz0QGrD8zqOR2ylpvA8Gm/ZQ5dHTLPuJ qX/6m8xC50wIvS4YFlV5ihx6EX4CUggugube/p3EcZG+TsxPWOTXxbDi2IAEuH4NJNH47aV9DZ7yc Rp+UpjIXEcUSdaZpVxWvstQ1CsPoPG8PsYacPWG2TJwp8j87AGKihQTmj848WlqcySMczH72Doqiv wAvpED6g==; Received: from mail-mw2nam08on2091.outbound.protection.outlook.com ([40.107.101.91] helo=NAM04-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liURI-00DSsD-FL for linux-arm-kernel@lists.infradead.org; Mon, 17 May 2021 04:01:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=afSvOsYQQN8XvW7N9Wt5FpDjHMQ7Eh/9G6iH9jUSwfk+c/zTpKIrff1BLPEYBPxshesWq6QGuxq6U94f99Zad4pOUDi4qH3K8/e9DA0k+6uSsHjPlKxXsnXqX2+4xwNrQ5oqdjqqjJme+fw/jT6sBEZzrFFAyPE59iuojZnJBQ3uYWh0GiTcRVbtO+REjofMzuMf4HI23PMTX2NYDrzdnsEb0sbbqxV5UJTC+xHwmEqUgLhJQZwAaut076aJGfpZlsHOqsd1u2hkmFDLDkhjsyjzbEu+w93WJG7N8rmeNIFKtIcucZBRbGZ3P3WHam3L7vdl6mPZYaa4ySqxv2M4tA== 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-SenderADCheck; bh=raKqyYrrBoYm4tY0PAxkXyvncJemEiN0cwbyzumDRNE=; b=PkqcJuOg2EBrbu+b1HDez7T+94GCPyBOXx6ws/VeskZOPCbzrXRolh9T8+5xCibXpLQB3KVuKVgMhhXOZa3OGCfpOII0kKNSRQkf7ivg7xlige1DFSA0JDIaqnt71fxUHRVNL0xRjBivujgUWjShSL8AtbIrcIWmF6AmwUMi97TkctaQoTiQBkWG7O6p/OfwsAEtoWF0EavSl0jU1SnSN6dcHQ7LEQ5GxYpI4s43v8bN0qEtIU0wwWfzbuaMNOEDwr1BZ0YtOZV2xQg5Hw2SUB1QAEDElT+Wcn0sfi1WE1Khx62GFTA9PNKMm9juv//ObUORqOB9Y6t1+qCgFKcj3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=raKqyYrrBoYm4tY0PAxkXyvncJemEiN0cwbyzumDRNE=; b=u5PwCwDufX6rPh0iP18Yn0WzwtVyHvvAGeNVcpFHUW4wfXNrCfRfI2FO7LTCk+TVaI46vi0oyKX02hKwQTX4ztNG4Jtp6jDgd0lMLFjDAAkLxAqM59hibp+azU37l/th8h+VuQFM3ngNzJQ8AnfgQT0tdo1Ptu+alcXelKE4txk= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=os.amperecomputing.com; Received: from MW2PR0102MB3482.prod.exchangelabs.com (2603:10b6:302:c::32) by CO2PR01MB2006.prod.exchangelabs.com (2603:10b6:102:9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.26; Mon, 17 May 2021 04:01:03 +0000 Received: from MW2PR0102MB3482.prod.exchangelabs.com ([fe80::d840:7aa7:58d4:b503]) by MW2PR0102MB3482.prod.exchangelabs.com ([fe80::d840:7aa7:58d4:b503%5]) with mapi id 15.20.4129.031; Mon, 17 May 2021 04:01:03 +0000 From: Quan Nguyen To: Rob Herring , Joel Stanley , Andrew Jeffery , linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: openbmc@lists.ozlabs.org, Open Source Submission , Phong Vo , "Thang Q . Nguyen" Subject: [PATCH 2/3] ARM: dts: aspeed: mtjade: Add PSU support Date: Mon, 17 May 2021 11:00:35 +0700 Message-Id: <20210517040036.13667-3-quan@os.amperecomputing.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210517040036.13667-1-quan@os.amperecomputing.com> References: <20210517040036.13667-1-quan@os.amperecomputing.com> X-Originating-IP: [118.69.219.201] X-ClientProxiedBy: CH2PR05CA0036.namprd05.prod.outlook.com (2603:10b6:610::49) To MW2PR0102MB3482.prod.exchangelabs.com (2603:10b6:302:c::32) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from hcm-sw-17.amperecomputing.com (118.69.219.201) by CH2PR05CA0036.namprd05.prod.outlook.com (2603:10b6:610::49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.11 via Frontend Transport; Mon, 17 May 2021 04:00:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5a291c21-faa6-488f-f2ae-08d918e86319 X-MS-TrafficTypeDiagnostic: CO2PR01MB2006: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: plE83HbFAa1TsgIuOMdg7/ieHDLZHlljNxa8S/JY9uxluKycUhjd01QXPStHDdIUf93iE4J6Qv56rLiGyz9CQYSaCoV6DKIqoF/h3c/LmkApVU8dFFXThsIAvgRQ4acDzxICTSnNKHiVsFMBqCls2AHWlo0+z6ObOGeGHcLbRgRB1KgRfpfnUYPXQYgILyNMIQFfJPuZ1Yd/NTisIxdcy1/y4QA8iqV+mgC0o9nLCeCo2+0rX66HcKMLkcjFpSiS2gK3CfbvJ4Ayej0uU+rfRIQnsVG1VHad3sM4dub8oJMYlpkd8U7n3Pq5TtodUc1eRe1BAvl/Wx36YpVs0s737no6eCeHsjvU77pAaQQ1C1S4wH7Fc2f728nQvF/hVv8acv/Pj9+n46vOR2N0KX9zSCUcvDscCdN+Jt30d58//FXz+obLuLfTmU+zK/0EP7RhjeibndaZ7oZFdpLmXXp6BxMOpx2mHAPE9ZJUnbn9NAbNoJS2VGNFWWXyfyl5qVm8U2g7CXttTjX7n8EZR5o5cA8Oiit5jnmZ0ICyHR9m4GlyLciFLL7eGiUWGiGKQnGq9r8WdspCnjHCflNSQGY2FILGiLzU+jK6soRtGcvEpYzlHxBLeMoShngR40DzuXQ9j82a/Hl96BVxzoFgQE11Ow== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW2PR0102MB3482.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(346002)(39850400004)(396003)(376002)(136003)(110136005)(1076003)(86362001)(38100700002)(16526019)(186003)(38350700002)(52116002)(83380400001)(316002)(956004)(26005)(107886003)(2616005)(8676002)(54906003)(5660300002)(6666004)(8936002)(6506007)(4326008)(6512007)(66556008)(66476007)(66946007)(478600001)(6486002)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: LhAnEceo9W4dCC+LS+uK/j0raZ6D59SxkwOvKaPYXbyCeJMlkC98wzoiQs5EgfEdDaN68EklPONyhDCcFk5Gswza7R/A/y7TxWpf/UBtNoa4IUU9zDcK30t8W2e85qQ6xffwDYrQ/kkW5nWSiKDQmTOhts8gGFmS6FrsJ4eUkdUpAk+Pz9bN8muq2nMHq0/mCOSvjBJTNGvYBtrzP2bQRQFaDL/JXO64fQReuJE+cLBdlElJxZ66Qf/wVU3lo9WEbkWb3a9KEbZ81H8HKLasn9rQGycK8JMr2iQvbPukOqWxazc17/DBBi4m54PSzWBL5B7toE97+iLXmyy9etbOmvqLN4BOYyqutji7YVsiuA/sXIyrFvc1lLDO/YGd5vOJdzoTjDYHaRE1Rw2vrc9plcmow/nTBen4Fxye7vf5fhAGfxZEkADnYiD9MLCSTSiI1V2cEsyeDOgHy7qMT0dNpyTaX83dF9LEodIyYnj/jFjKKbPtpcpEMHfBlD8RPhe0FG2ojvKm5l7hFJ15C884vzhIF0yhcJV3EGDIvABcMuYfP550X9tazIfC0/YkT//kVvwgJ7Xf9JvapxKTY9bcIA3EkLb1P7ujcejDgiv5Nn2kwgbwzhKzZjQDFdWBjl9dSDmkOpaczzU/solb+wjCq7bVSG8wQvca2VDjsYtaDwAilk0VeVkBIWlY/BKzAPFGXrTMuO4ygQx4dHnx+GsQq9k+bq08mmXdZOJAoFY1zfd6j/ykDHAUm0JuyJDZazdx0DD7hXNaBZcJZGt2Kb1GrOpnoit6Vxokz9RdKFfHzsvGhVZGUSsCsFXH/8p5+BpnEI/He9EWFufxPnkxPzbOMmhaBJnckv02BCEb0TX1icBVyAJsNmryXo00aUlR/6816jGrxErnEWsyb0aW67WmU7NPHql5QfZyxV//l6wpuOOitwDVFPRyBlTe1hxykPY/0S6SfmO6f/PZ6itNMpiIYrsE6uW7bbJqNTMEQBhhi7KeKvSi/YShvNDz86ZJh2wG7XQ8jM7wdauS6EFYdmeuSijmPfUm546+SCr29jontUkPsXcu2uzD6SlwfAglyGcXBHRpHMDN3Mb2dDIDsyvGxRr4ysOfIvXR3PSUZgOpIAeoprA5RMAAGlWYl3jmt9yP4ZCKh++RUKLEiXMalhH4IlG2ddofPvTNNXfzbfkoHSp5n0cLDPOnvj5l1RkBSzepwjtbCbiiP+0/0ZuK8WbxPO2XZqXnCuFkAvHq7plCSz+EHFeqI2iRblXgo1Lr0rX95QQWwBsxVI+ICvutzCgqB2MyHaMyrirBAxqBxVgHDYhEYey1O5XeaijL9exX23ch X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5a291c21-faa6-488f-f2ae-08d918e86319 X-MS-Exchange-CrossTenant-AuthSource: MW2PR0102MB3482.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2021 04:01:02.9526 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zUdaHPGyRJmMl2zOR5WUiWABc8JD1H7GY6QNwWuLsJqgRxFe0myU8lQhom7mUifIf2skDdv6+oAJuCqkctrIORiRlLBburCucDfgDJGAZC4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR01MB2006 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_210108_542547_CDB1CA42 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable PSU support on Ampere's Mt. Jade BMC. The Mt. Jade BMC is an ASPEED AST2500-based BMC for the Mt. Jade hardware reference platform with Ampere's Altra Processor Family. Signed-off-by: Quan Nguyen Signed-off-by: Phong Vo Signed-off-by: Thang Q. Nguyen --- .../arm/boot/dts/aspeed-bmc-ampere-mtjade.dts | 42 ++++++++++++++++++- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dts b/arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dts index 282e901092a6..364293e6ca76 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ampere-mtjade.dts @@ -110,6 +110,30 @@ id_button { linux,code = ; }; + psu1_vin_good { + label = "PSU1_VIN_GOOD"; + gpios = <&gpio ASPEED_GPIO(H, 4) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + psu2_vin_good { + label = "PSU2_VIN_GOOD"; + gpios = <&gpio ASPEED_GPIO(H, 5) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + psu1_present { + label = "PSU1_PRESENT"; + gpios = <&gpio ASPEED_GPIO(I, 0) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + psu2_present { + label = "PSU2_PRESENT"; + gpios = <&gpio ASPEED_GPIO(I, 1) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; gpioA0mux: mux-controller { @@ -436,6 +460,19 @@ &i2c9 { status = "okay"; }; +&i2c10 { + status = "okay"; + adm1278@10 { + compatible = "adi,adm1278"; + reg = <0x10>; + }; + + adm1278@11 { + compatible = "adi,adm1278"; + reg = <0x11>; + }; +}; + &gfx { status = "okay"; memory-region = <&gfx_memory>; @@ -539,8 +576,9 @@ &gpio { "S1_DDR_SAVE","","", /*G0-G7*/ "S0_FW_BOOT_OK","SHD_REQ_L","","S0_OVERTEMP_L","","", "","", - /*H0-H7*/ "","","","","","","","", - /*I0-I7*/ "","","S1_BMC_SPECIAL_BOOT","","","","","", + /*H0-H7*/ "","","","","PSU1_VIN_GOOD","PSU2_VIN_GOOD","","", + /*I0-I7*/ "PSU1_PRESENT","PSU2_PRESENT","S1_BMC_SPECIAL_BOOT", + "","","","","", /*J0-J7*/ "S0_HIGHTEMP_L","S0_FAULT_L","S0_SCP_AUTH_FAIL_L","", "","","","", /*K0-K7*/ "","","","","","","","",