Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5987259pxb; Mon, 14 Feb 2022 12:26:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBpSBURULu++0KmWfwrYrogOs6VQlg24g9mAusT8zT6w29wwT+lhZlno1BrhdNGaMwJelT X-Received: by 2002:a63:1549:: with SMTP id 9mr603805pgv.529.1644870395587; Mon, 14 Feb 2022 12:26:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644870395; cv=pass; d=google.com; s=arc-20160816; b=rXqx6+VxSaRZcDPBXJaZ5m9V//E1bjA6EnNTs88h7lVzE47zsRyZHlKp8QupCyVB4M zXe/qLUhAa0aXlqQjby9a/aiChEcNZd8J7dh55hfdVxi1xbcZuoN/Z+9ELv3b8CskM23 hg6Y4y0KlfWz/6zuqM5OWI2w27Akp8w81BaR0CnebokMaBy+7jesQsoQfkfJbDuJpatp dT42dteaj9Fc+uvAwJ8jCR4R7LN4+Z2TLVyU7nCriAl8b2AOD4u8FQc2LxunjPFMS9zr 1lAZN//lW29kgVvQEH2Zy6WkVx/asRhUDQqY6VJSmbSpMGQe+8NIR4N34i17Oh7eWPsI uhJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QRvFQ7lCwiX8nBe9hFQbKw9ddkl0U+5j90hDCU8eHCU=; b=Ev8M81KMwwFYSrD/88F0uB1RwXxuNDbuUKdvK5IUgx/GQa+oKmNmxgoupwIXInbSaz 7idLFW6mq7UcvagirGwGD8cD1Y0dPrV0UIA8z/Sjj6uXyL3IprihPStbC/QVmJ4kXrTs T1gl+kgGeIEWiBAUbYqqmHP69yTz7WlaR9kwWR3MoxkaBsqtHM4bFQ5HHtDJd0+N6NTy 7jeMW6BAw732eq0jDHcPPtnV15WMHai3nPPjgknLJoh6oU+zI87WtA3eAx4nqrOpMnOy zoTs6yMzvnbn6vLPK8Hx/F4+7CTNAwaPzLRJ5R9LMfSQhECx2elJJTaI5zC69yTGRgsF cZcA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quantacorp.onmicrosoft.com header.s=selector2-quantacorp-onmicrosoft-com header.b=JlCM9btK; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b12si15864554plg.8.2022.02.14.12.26.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:26:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quantacorp.onmicrosoft.com header.s=selector2-quantacorp-onmicrosoft-com header.b=JlCM9btK; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2DB1413FAFF; Mon, 14 Feb 2022 11:59:02 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240299AbiBNE0c (ORCPT + 99 others); Sun, 13 Feb 2022 23:26:32 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:58402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240220AbiBNE0N (ORCPT ); Sun, 13 Feb 2022 23:26:13 -0500 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2119.outbound.protection.outlook.com [40.107.255.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D9A84F9C3; Sun, 13 Feb 2022 20:26:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E98rzha4uiqTWKOllOspZz4wgD21VFZlFetHd7AsoRw2tr6uQ4Q++/e8reH7pTRdD0PPPzQMVDsPeGcrwBO4Pdk4lGoJLwXCtVz/MLaIMKLXqkhJA10Z3pna5PcJvtGA8xrfI8Ql96DE3tQsUxFZiWPgIpo6GzqUJrf/qxQcCD/TTRIaPwF0u03YCxpjQAsRUE/fmKBbKwvka/SXsJJrcFH3q5u8nH109f7qDfMZ0l+5JnCz4phXNVXhHlo12NhbygjCMmTATeQv69cpGxu4aFGXuFre1ZsEUSLHieMIpx0Z/fIB30ezGaPeCku2NRs1AeFXZ+2Y3Ffsnx0lG0xH6g== 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=QRvFQ7lCwiX8nBe9hFQbKw9ddkl0U+5j90hDCU8eHCU=; b=jN3ZAS1cTonprvhQ0NFF/SABa5zuyH/MfQOBNVBlbMMl8Oi6l2nYawqNOMSV9jSQ4Wl8KJt/TNykPlJvAunuoyJTSH+8+UNYbbLvL1HfaJ42MsKNVombTlppb7BvcaY/fr9ay3296iPqXbC0JIYJLIvIIcwfpI8wDI9yypdZkyMA11BMv2pXe/fGsfxrMFpdMPmarhndvUjgprU4nrDAfx+QS+KtYhFJhqUUcISu4i3OxN1dCQlTKNQ9gMo3bzcLZJNAPmNCA3luRmSmad+BwEMKaCWoij2aROHpChi22jIaMcT93OXP/nS66rKm9JgXb5btJHBXvKCT0xRNXrh/kw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quantacorp.onmicrosoft.com; s=selector2-quantacorp-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QRvFQ7lCwiX8nBe9hFQbKw9ddkl0U+5j90hDCU8eHCU=; b=JlCM9btKTESkjNRW88wiOZWf2vEkAx2p77+GAP3u8rMquD6GJPKdPBQFz181HASpGSkprNOEbxQFuqqf70nblxy40vFcY2deUce31sMxsew7O47ATReYVoDPSXpvILTcGRIio1RPVMqyPivO87JTZ8xUDDp0h+MGOG++gV0FE3g= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=quantatw.com; Received: from HK0PR04MB3282.apcprd04.prod.outlook.com (2603:1096:203:89::17) by HK0PR04MB2451.apcprd04.prod.outlook.com (2603:1096:203:47::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Mon, 14 Feb 2022 04:26:02 +0000 Received: from HK0PR04MB3282.apcprd04.prod.outlook.com ([fe80::ec21:c033:761d:3e03]) by HK0PR04MB3282.apcprd04.prod.outlook.com ([fe80::ec21:c033:761d:3e03%4]) with mapi id 15.20.4975.018; Mon, 14 Feb 2022 04:26:01 +0000 From: Potin Lai To: Rob Herring , Joel Stanley , Andrew Jeffery Cc: Patrick Williams , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org, Potin Lai Subject: [PATCH v2 06/10] arch: arm: dts: bletchley: add interrupt support for sled io expander Date: Mon, 14 Feb 2022 12:25:34 +0800 Message-Id: <20220214042538.12132-7-potin.lai@quantatw.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220214042538.12132-1-potin.lai@quantatw.com> References: <20220214042538.12132-1-potin.lai@quantatw.com> Content-Type: text/plain X-ClientProxiedBy: HK2PR02CA0127.apcprd02.prod.outlook.com (2603:1096:202:16::11) To HK0PR04MB3282.apcprd04.prod.outlook.com (2603:1096:203:89::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 904f4ebf-0d4e-4c0c-1c92-08d9ef721a78 X-MS-TrafficTypeDiagnostic: HK0PR04MB2451:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1468; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PEt6h0eTE9oy2wOVHtm2DNEK2Ku6MTmN4RvWEFE/PF54oQz67R+AXxudPAkHitobJAUiyU9oZ0AfzYxBlNFSz89P8h/x6fcATLTN/ZzgJkN9AxPj6mcLM8ngeBkKI6rqcTmQO7pdyvsAvcnOtkacyBPjZm7dLx/sjZnj+SI1MSJfCVD5fZLsvBeuNpg83gLAlsw4fh+r1UQfYpp0ieKK0vKr2lv1iWpqm9Wqz4pwUhn8IiTVqpM8ylrxbjIDWgdsrYzYlHqRWPCQv+thpNVw6xD71nS801vCwj5Lhu2Wrvwbe4IwwbBJsUNEMEUOigMPL1nUAwWuJfuX9DqQollNIrPB6g9sT8nI0ezfjbeHuTrlMjBNQCwUiTSgQGFKmBpXeghoD79fsKO5vMGwBqYOdXUGDhZNiunr6NqoJzWJafHlU51gaju/uyCUyf9ru7oVCwfZkVDEAZV5mgbPbvtn/iJ6YoYQZWP8I9P1S/yyl27+N9kySIV1mA0FNyYJUMFQXS9/rKBXtC5xig8CEcvtH4v5gAp1tWZz268UlCQvUPQ59eaaPNF5pRVuweUZwxfHceQR4pXIjF6Ftq3yAl8C009+m9Cjdqfjh7WamsbdcUOmHJYMt6/L+8Mfq9oPY0wqnm/x1pQOpWa+8vKCJXnBiTcQoapZl3RyH/bWmZUlLoRX5hHF8V+T7ARTPZQxzhWLARRfjjZ9YsbTvAKzPHU3DQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HK0PR04MB3282.apcprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(316002)(2906002)(52116002)(6506007)(36756003)(5660300002)(38100700002)(38350700002)(6486002)(4326008)(8676002)(83380400001)(6666004)(66556008)(66476007)(86362001)(66946007)(186003)(26005)(107886003)(54906003)(2616005)(110136005)(1076003)(508600001)(8936002)(6512007)(44832011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?FUEWY2FloXiQs25AZld08pezXqxQBVf6nLEDeV/tmDKfynbQ6ZHfsS2MvgsY?= =?us-ascii?Q?0mG9SCSR9ZjbSTJ/uD/yhjI3gP203EWwFEvkeSQfJfVWqXc0VJXGQphXR6Da?= =?us-ascii?Q?3mx5Mi3Z/LT6XqlFbiz7awC+9phNRQR7glLSGolx0OPN36zHJuhjlkD4QMpx?= =?us-ascii?Q?SSAOH9ZMW9vVRR1ytrtvPSsy/jnKR11TMN6RpzxJSenoa1otpQqGsgKXbmNJ?= =?us-ascii?Q?8yVRQuuZOyWq4wsHpMp9Xm4BOwNvhSSCo55+8nz9GQk2HZxCAq9QtQTJh0xp?= =?us-ascii?Q?RC4V3L/eKlS9oeTfHFDbtDP6g8ATqn3MMlx5jws11udC6HTqIbxbvxO6G/4J?= =?us-ascii?Q?RVOfsYx4qwGa7+0DUD92a2zxBk9IEK9rB995RyiqMMQKC5QfgO8bXmGBBT7Y?= =?us-ascii?Q?fGSZ6gxPnzg1H2cCKQWaQzh06yxmhhKvrAQule4K3DbykI1tDxxqJ3R7OAPG?= =?us-ascii?Q?sS6MN2e6gJjsSWxPymvq8V4HmxsSffWw/cwWUjGahbLqYLC76zhVtvwxdx/A?= =?us-ascii?Q?Et9q7eVHMf/QxtZezRgX2wTI2/7COOU092z5o/FnvRelzTI+zX4j+K9XJ2v+?= =?us-asc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xmRIrlyTNuPDk9jH1ZhBoYN?= =?us-ascii?Q?B/LasnRQ8Jw3MijI7PYlV8ATv0dyW0J4tL1722Uk1fsYvSmkuDDCk2TlkIG3?= =?us-ascii?Q?jPs1YxxmTKCfPdDSnJEU7mriCExpO177qh8a5qAs2BZ7IOk1ApjsL1EHF0o/?= =?us-ascii?Q?Pqdzf4Y4qJMvMtrdFQ5oPtM=3D?= X-OriginatorOrg: quantatw.com X-MS-Exchange-CrossTenant-Network-Message-Id: 904f4ebf-0d4e-4c0c-1c92-08d9ef721a78 X-MS-Exchange-CrossTenant-AuthSource: HK0PR04MB3282.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Feb 2022 04:26:00.0743 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 179b0327-07fc-4973-ac73-8de7313561b2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ph+uh9H0Zd23nU5vVcSHX/GZRRreKcMGWqq3LV46iauGj0g/3soirRIOsDRJ5diAWgkjKU8xt1bwzXV/Pprpsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK0PR04MB2451 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable interrupt support for all sledx_ioexp, so userspace can monitor gpio from io expander by interrupt Signed-off-by: Potin Lai --- .../dts/aspeed-bmc-facebook-bletchley.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts index 3c54e4a892c9..8afaa8f52c38 100644 --- a/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts +++ b/arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts @@ -6,6 +6,7 @@ #include #include #include +#include / { model = "Facebook Bletchley BMC"; @@ -268,6 +269,9 @@ gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio0>; + interrupts = ; + gpio-line-names = "SLED1_MS_DETECT1","SLED1_VBUS_BMC_EN","SLED1_INA230_ALERT","SLED1_P12V_STBY_ALERT", "SLED1_SSD_ALERT","SLED1_MS_DETECT0","SLED1_RST_CCG5","SLED1_FUSB302_INT", @@ -331,6 +335,9 @@ gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio0>; + interrupts = ; + gpio-line-names = "SLED2_MS_DETECT1","SLED2_VBUS_BMC_EN","SLED2_INA230_ALERT","SLED2_P12V_STBY_ALERT", "SLED2_SSD_ALERT","SLED2_MS_DETECT0","SLED2_RST_CCG5","SLED2_FUSB302_INT", @@ -398,6 +405,9 @@ gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio0>; + interrupts = ; + gpio-line-names = "SLED3_MS_DETECT1","SLED3_VBUS_BMC_EN","SLED3_INA230_ALERT","SLED3_P12V_STBY_ALERT", "SLED3_SSD_ALERT","SLED3_MS_DETECT0","SLED3_RST_CCG5","SLED3_FUSB302_INT", @@ -461,6 +471,9 @@ gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio0>; + interrupts = ; + gpio-line-names = "SLED4_MS_DETECT1","SLED4_VBUS_BMC_EN","SLED4_INA230_ALERT","SLED4_P12V_STBY_ALERT", "SLED4_SSD_ALERT","SLED4_MS_DETECT0","SLED4_RST_CCG5","SLED4_FUSB302_INT", @@ -524,6 +537,9 @@ gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio0>; + interrupts = ; + gpio-line-names = "SLED5_MS_DETECT1","SLED5_VBUS_BMC_EN","SLED5_INA230_ALERT","SLED5_P12V_STBY_ALERT", "SLED5_SSD_ALERT","SLED5_MS_DETECT0","SLED5_RST_CCG5","SLED5_FUSB302_INT", @@ -587,6 +603,9 @@ gpio-controller; #gpio-cells = <2>; + interrupt-parent = <&gpio0>; + interrupts = ; + gpio-line-names = "SLED6_MS_DETECT1","SLED6_VBUS_BMC_EN","SLED6_INA230_ALERT","SLED6_P12V_STBY_ALERT", "SLED6_SSD_ALERT","SLED6_MS_DETECT0","SLED6_RST_CCG5","SLED6_FUSB302_INT", -- 2.17.1