From patchwork Thu Oct 5 03:55:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanh Nguyen X-Patchwork-Id: 13409785 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6242DE936F9 for ; Thu, 5 Oct 2023 03:57:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Cuim0Ff87J1RQyacMTVSATWNTuMx0peTh7lsHjT3aN0=; b=rLZh/ZpvJ3h2pE W/W2Nu3qlOl9XmR9z1ygNYjExzAFbYMr7iN/9yMrz5peEC6/N7APVVqI4KqSRmpGHNmZiruoN9weC fticvgi8tNALabPnhND2BK5Z4WeZiy+MuCES7mTrqzkF6HQOqs53IgkAf5H+O0IJqEzdi1pbJyE+S ZjX8wHxJFkw8QQlVIZLRDtsoeQAPNaARxOj/raYYpOnMH0JClVGP/gYt7VJwRLmHxyjVtTBHWZi4/ zcxICS9e2gau0QWJFaNUotuRt+l+/apVyP9HZu6UoqAsfU0y3QqfcxfGhtY/a80dLRJopAatIvAGX LwJzS7KOlmSO7ML/vErA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qoFTZ-001LWc-0q; Thu, 05 Oct 2023 03:56:37 +0000 Received: from mail-dm6nam12on20716.outbound.protection.outlook.com ([2a01:111:f400:fe59::716] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qoFTW-001LU8-0i for linux-arm-kernel@lists.infradead.org; Thu, 05 Oct 2023 03:56:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PmEEYbVrBB07E1gsXJYsMz/7eBKO6puT7/1d8YfpUkMlvyIiFbXrCGYN9tCkZQ6LAnC26zDdE3iOHOkmJKiT/BsyT0tZPafFboAs3mqB5m5CErYgw2RgYvOoTK1BH4uoA/IRR7h07WdBz9cFCOHE/bDfLoeFMKgwDhjz+zSSS1gqMl7BJqqUsaRbzt5XS2nBIFoRpdzoTjLwo2pJT8gi8oEh1Z4wxD/6QOeCxphTmfUCwHJQjZjrA7D+dSfcr3NIdNnt+0N3aqb0hF2cDej3AtgXpGpp16ePJfNiaw6G0ytDYockW908EPeNSokRlhaKAvqObH9UjSl/ZA4cEfEkvA== 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=CQlkll1XHdS/lfjSn/s2lwfzg+GRMLhdRpTCZobU+h8=; b=RiErNRnOwdMzgfsrg7L9WmXFl3ff2ZSzfm1ImDQsvO/vprL6D1V21V8zr2Qv6oLRn2oIVHnu9vzb9oALdVIIBJ6GzmQcQXszP7x39kY3UJs0rLh0C2MMmPheW+XYdEPavYcN+yuWWnqT9v/joTcm3KKx8y0Q7q88DasozbegCUyz0yZA+VX3EvTqkQLr+ZzIBPofheM9Cx52xUtcZMSt0LQ0ZnSr/wHgGdcDGxM1sBm89YooPaRU9JdfOErduSWH9IKjI7VqVGZFktW2o9X9v5ZF2yuNrAZ9g/eI5TYKR3bLoCC1l0GYyyC0DDe2rTFq897/E07zlNdMmXBIAIJz5w== 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=CQlkll1XHdS/lfjSn/s2lwfzg+GRMLhdRpTCZobU+h8=; b=OWqtLMkhkfP7n1OetKOP/K0fLMHbg33C2EoNDvHvwsXVCvfM8DCZkn78rX8ZdzqQXPLgqgji6AMYULM6jWeodgdgQOzZJD0DoyzlPALc2hwolcOnvFYAbrnOM/BtzOhLEDLXO8mikldKemVqgeuZU/wYK34J45rAfFySJrX+ajc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from DS0PR01MB8010.prod.exchangelabs.com (2603:10b6:8:151::19) by BL1PR01MB7649.prod.exchangelabs.com (2603:10b6:208:394::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.25; Thu, 5 Oct 2023 03:56:20 +0000 Received: from DS0PR01MB8010.prod.exchangelabs.com ([fe80::6a3d:61d7:133b:9eb9]) by DS0PR01MB8010.prod.exchangelabs.com ([fe80::6a3d:61d7:133b:9eb9%4]) with mapi id 15.20.6838.033; Thu, 5 Oct 2023 03:56:20 +0000 From: Chanh Nguyen To: OpenBMC Maillist , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Cc: Chanh Nguyen Subject: [PATCH 3/7] ARM: dts: aspeed: mtjade: Add the gpio-hog Date: Thu, 5 Oct 2023 10:55:21 +0700 Message-Id: <20231005035525.19036-4-chanh@os.amperecomputing.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231005035525.19036-1-chanh@os.amperecomputing.com> References: <20231005035525.19036-1-chanh@os.amperecomputing.com> X-ClientProxiedBy: SGXP274CA0016.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::28) To DS0PR01MB8010.prod.exchangelabs.com (2603:10b6:8:151::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR01MB8010:EE_|BL1PR01MB7649:EE_ X-MS-Office365-Filtering-Correlation-Id: 63210672-c8ff-482c-c0b3-08dbc5570891 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 66gsp6hGaWWGSN0vqjQg/WnCjoJ460EwwTsCr2aV4Hk1vuJ4fpxKNh8sUNw8UFlck9CXN6NX9LHASiM4NZQlVsdBcvytzOk25kayRBiuu6jbqluiLNFvU5GqwRzTTrsStXnBuprbDRdzzwVo6QWTyPaFSsfaDOh7P85uUAx/6T8eQNnuut25i9aGkDJxpXSuREh/QjvK78cpJDKtlDWVpD+bmYKbsCKImAJ8EDEsDQyDdYBNzvUcZWHqL98r+NKc+ftdL9H0nR9KT8WQ43CW8qtI0Uu1I4ZPZRMWveH6nX8NZ3l0Tje9JFzXPadh6LpfpZFe0+EvzC5+vTWxiFh77BOixjcW1Jou6IZcmWEAMt7IiVNBiPNWUkZ8ku8YIwMJOy41xax1dJEIMMFjBfCjlFX3toypXBFPxe1x9TwGY3LnKtvFM1wI74x35lrp/QMcxxgHvXK8xr3GT9iEQltDEh4XOEJBpfpiHoFKV0Cyl0Ksst+fJ/bM2vUEdApaoQ4XmnhrQApBg71MWwnLpVYVtiXuPD5heOUYbYNP14S7IrbCtmKW1I8VSLbtI2H5wpPsHcRzHgIlW05uaJnPWkihRUQjbpJdF4bLO7nneReBaLhiCzuKAVrJJBLEsfC9NILe1EBh926yvtilSFY0m7zq5g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR01MB8010.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(39850400004)(396003)(346002)(366004)(230922051799003)(1800799009)(186009)(64100799003)(451199024)(38350700002)(38100700002)(478600001)(83380400001)(6512007)(921005)(6486002)(6506007)(52116002)(7416002)(86362001)(8676002)(4326008)(8936002)(5660300002)(26005)(316002)(41300700001)(66946007)(66556008)(66476007)(2906002)(4744005)(110136005)(1076003)(107886003)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AnZHZ+3KOf4dUqKkGuT+wkK26fc1bC+OOCYyYtapu7jhg6Uz4ii5Ha/15j/WI9Lb3t1L3drdRc6t31PzwWT0e09Qp/2bdhSlNp04+1DW1/oDOiTWTfLySWPftShGq0HFf6tUhTiDN9zzY0J2FaBR77UDZ88ac1lueFmCXQdlGUAIwrFDlhHNfdA7vLJBC3l8aN/5yh42V/YpEUJgSmYA69f6ta5Pk9YA0uyCtXezmqr5jaIE9U+VAM9pORU1g3ugyxqJVw9T2acrooEx76kvEod7e114BZORB9cY1UgWHPObJrtjE+pe12/gtQnuZKwj9+kCBHZoXUkqbjDnOyaIla6WN4qgBL8USO/mnibRe3imm4VLvayyzdOKLCXO6xkktBISRWfTyzVK93R/Y69UU1EtkdpIE/dctRmkM4cFYWj7eLaw58miF/CDEI0zL+5Gp+5nPxe2BGBvDBQyvttdw4a1hy9T2fAomfU6UHX6F6dFN6gnY8l13AbHZlOIyMOKindX/hD8rdPeXL2fOUL7r78g3pVthsfJzarcqnHbnYix1N3ZCGLeKjv66ixabuZwa8RhDAhIoXmsVGonNaa5UpiTi305e1T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rossTenant-Network-Message-Id: 63210672-c8ff-482c-c0b3-08dbc5570891 X-MS-Exchange-CrossTenant-AuthSource: DS0PR01MB8010.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2023 03:56:20.2896 (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: ih9D3Rj4yUBpoG0jym5G+V8WoCbBkB85+R3ddkKZpClbHyGuZBNPODf+lqHfdvSe6SkuoviFz+xN9ATlcg34HjB7rWB8fT57LSHyBsQTvM35/3+/CsaqfwdqB8fDvfyK X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR01MB7649 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231004_205634_265375_52CADBB1 X-CRM114-Status: UNSURE ( 8.31 ) 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 Add the GPIOR5 as a gpio-hog with output high so that can power the OCP card once the BMC booting. Add the GPIOAC5 as a gpio-hog with output high to notice the BMC state. Signed-off-by: Chanh Nguyen Reviewed-by: Joel Stanley --- .../boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts index c87be433bdd0..8ab5f301f926 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts @@ -805,4 +805,18 @@ output-high; line-name = "i2c4-o-en"; }; + + ocp-aux-pwren-hog { + gpio-hog; + gpios = ; + output-high; + line-name = "ocp-aux-pwren"; + }; + + bmc-ready { + gpio-hog; + gpios = ; + output-high; + line-name = "bmc-ready"; + }; };