Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp455404ybc; Tue, 12 Nov 2019 04:12:59 -0800 (PST) X-Google-Smtp-Source: APXvYqy2gU+GZafRUCWpIDq2BOaJSzUIF1nmlBjy/Q2grJFj+Yq5EIql/Ll2RVGMUPiE7IZK8KMJ X-Received: by 2002:a17:906:86ca:: with SMTP id j10mr11813913ejy.200.1573560779290; Tue, 12 Nov 2019 04:12:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573560779; cv=pass; d=google.com; s=arc-20160816; b=vHV8FlQ0QR0Ij7H4O0kufGYgHLHyUNHJfAEeN36vKYs4ETrTVe9aGNEUoXm2Efgo6N zGGAxv8LbeELT3wCJ9p48rQIC9L+rFEXkuLhgALW702sKmo+1BVm2oWx9nUHmi3R4WLB JIEhYnpYXv7qeCBR852Vge+L/cM5KRAnrKyIGYeKrThdh2ZbDoLqUIiH8iv0b/6xkLAU hgvdU1rAKWSKfh37ICQY1a/c6GnQkfdsHixp4FX5Vt4VcJdqI3h7dDmVeBaUz5f/hcYf 2iNgWPBlbtm7BvtwgC4GNP0pjGNBLeY37YY/VQw15g1SakN+oIr43uzi+FXLxSlODWuI KRnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=tl7NBQ4gzSbbEmKqn3pg9QSq4ozazJe6kpAJQj+GJuI=; b=zJwVMRV1+vNgFYkj9yS07Txz0OdivUiMGY9whhYMXk5+Bw+dldyCleJCUt6RZ3JWn/ BzoCQeW6PtoWIvSAou6KyUYmb0z+LE+OEN/empsiQLF8IgBCfEhqyYTeqKS15XdObeSV xpQFZJNPrABaYH48ZbU3S5P8L8emXMIeBbxrr+z9iHJsZKiFHpqrMIqNIpzJSH48oGSP AH9swMXQ3XsrdKqlETifeGa9DXCMXP2u5JzEjjGpApKlF95OkSIE0KW/pl88ryMFoQ8m JJpAb8mYIVuDlfMWhUODiezZUM2QSAaBe59N4RtSL+L28hC96RslJVfYM94g2d0MzM7u lw2Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=selector1 header.b=pfo49ZTo; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si6333519edt.191.2019.11.12.04.12.34; Tue, 12 Nov 2019 04:12:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=selector1 header.b=pfo49ZTo; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726979AbfKLML5 (ORCPT + 99 others); Tue, 12 Nov 2019 07:11:57 -0500 Received: from mail-eopbgr700074.outbound.protection.outlook.com ([40.107.70.74]:50816 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726376AbfKLML5 (ORCPT ); Tue, 12 Nov 2019 07:11:57 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Glmhw627wh+Z1ASADl39Hk4i1l/dKEAxpjJ8QzT28vp2Y2D26ybf3TmM1ar3METjuXuqi4SrXb5e2fmLnjrmRvJRDHPNBF34PWz1s1uk4f7TmXcfCgzogjza7TQxAaARLcAN1SbVCAW1RNBNi8BnNxh/5SrqSGXKxpJu2JlW1lphx4q4UD0WB4PbKYOKY8GHv2R+y19Ww1i6TkSTOYKwoNjr+dkWBNAfaPI72Q/wSEUfK5HNxjUehH1+XN54qpMJYu4D1WWKaFoca/KXuyoYMiz7Z0AqnjH8TYW0CNaBW1j0T3Ggrm7B2kv0tS4TH5eNC9mMIiRzediBuKl9+fVx3w== 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=tl7NBQ4gzSbbEmKqn3pg9QSq4ozazJe6kpAJQj+GJuI=; b=loDnL8RwWjyB9i10rAPfEro7s2IiaRFGfsDM5JQNVlGk7Tj8hf+sOrSb1aSThpEaeGhMzx1sVTPL0SRnSzW28qi8zf5CQi0h65Sv0o7AeqPLDKOvtP4eQ35zM7R1q3Pes+UpPMNMWS89Tyx9fVzIMZCe7c4yUsi+GQmqW8203AdkiAqLkBAVX1Azc4n+TBctTiFMkOUAUH/UK2mmdqHLMVJ6Cj8DN4giwYMfbxo3K1h91B3cGIpi1pI+i7qEeICNG5xJax1lQTx0HW87dl1W2cW3ZTqwEOA99vWb/MrGRKVdj7GWc9oFlY0UwWOLL8Pe/Eu/UXUiYfs/kO5mY4RS1A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sifive.com; dmarc=pass action=none header.from=sifive.com; dkim=pass header.d=sifive.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tl7NBQ4gzSbbEmKqn3pg9QSq4ozazJe6kpAJQj+GJuI=; b=pfo49ZToY5BEviGrScgEsyzoYbB/+nQnzdSnmuetyz7triaCuguiJQdJzJtHVDTouLLk9BIU+iyS0xef1vTzQIsCh0FJYxOx88ts7XEwXMb56yLHMswqcifdQmrO2qjeVnkdlKwLlkZX47xKgSBEkOwxfpfpMwwJEh8+Fyn0SO0= Received: from CH2PR13MB3368.namprd13.prod.outlook.com (52.132.246.90) by CH2PR13MB3541.namprd13.prod.outlook.com (52.132.247.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.17; Tue, 12 Nov 2019 12:11:52 +0000 Received: from CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::853e:1256:311e:d29]) by CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::853e:1256:311e:d29%7]) with mapi id 15.20.2451.018; Tue, 12 Nov 2019 12:11:52 +0000 From: Yash Shah To: "linus.walleij@linaro.org" , "bgolaszewski@baylibre.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "palmer@dabbelt.com" , "Paul Walmsley ( Sifive)" CC: "aou@eecs.berkeley.edu" , "tglx@linutronix.de" , "jason@lakedaemon.net" , "maz@kernel.org" , "bmeng.cn@gmail.com" , "atish.patra@wdc.com" , Sagar Kadam , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Sachin Ghadi , Yash Shah Subject: [PATCH 0/4] GPIO & Hierarchy IRQ support for HiFive Unleashed Thread-Topic: [PATCH 0/4] GPIO & Hierarchy IRQ support for HiFive Unleashed Thread-Index: AQHVmVJemxZAHPd8SU62eeR4mkkR0Q== Date: Tue, 12 Nov 2019 12:11:52 +0000 Message-ID: <1573560684-48104-1-git-send-email-yash.shah@sifive.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: LNXP265CA0029.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::17) To CH2PR13MB3368.namprd13.prod.outlook.com (2603:10b6:610:2c::26) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yash.shah@sifive.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [114.143.65.226] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0178d8da-6f42-4eb3-82b6-08d767698089 x-ms-traffictypediagnostic: CH2PR13MB3541: x-ld-processed: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 021975AE46 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6029001)(39840400004)(136003)(346002)(376002)(396003)(366004)(189003)(199004)(186003)(14454004)(25786009)(486006)(107886003)(2616005)(476003)(66946007)(6116002)(3846002)(36756003)(478600001)(4326008)(7416002)(305945005)(966005)(2501003)(7736002)(2906002)(54906003)(110136005)(316002)(6306002)(99286004)(6486002)(6512007)(44832011)(8676002)(81166006)(6436002)(66066001)(50226002)(81156014)(6636002)(8936002)(52116002)(5660300002)(26005)(386003)(6506007)(86362001)(102836004)(66556008)(66476007)(71200400001)(256004)(64756008)(71190400001)(66446008);DIR:OUT;SFP:1101;SCL:1;SRVR:CH2PR13MB3541;H:CH2PR13MB3368.namprd13.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: sifive.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Qh65fO5ZxBDTR8C7DMDWVvwCUq6r0pH9ohJHHg9fOZ6OGdduBHrgUYDAGzbKv7P1q1KLSPq4n1qLxnU/C2GgRGIf9HGlwjjt+JkIvQ+MMHCTNcycgEdIMc6OBwg7uYvQ5kB2CWJahHYVNy+QoFPtnTTmtNJKhVwhQTR8FdU/KXxSn+G1dvANMPVCgGDCM6LpYtYwDHPZfjw8vdz0TL2h8Ipb7jMKgwqz1UVWgq5dhIZZd1rjP9qU7lZCegdeg0kKREpCUkL2Q/zoOuBbY8OIROmeV65i8fNagxryDqZ7Cdb0Htxv0nqJmxMSorFpFRKB/j4N2ErZgAnFBS2BdUK8suXqNCn42Eilm7xIn5VjqVxkb7pm297zPwk/oFwZ3piRsmGHB/u7K/9VHC6kk8QALXwT+DQ0aEDOGGEc5HkuH9bvEytS2Q/aoo7CFDQGhHU7 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0178d8da-6f42-4eb3-82b6-08d767698089 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Nov 2019 12:11:52.4615 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ahFEFVsMGt5KlGkg6bHLks+Zuhx+n6txj0cP4YAHMIsyus35eZcgFdEfXaBQ2f60gjAiha0bH3/cfQ/4X3haTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3541 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds GPIO drivers, DT documentation and DT nodes for HiFive Unleashed board. The gpio patches are mostly based on Wesley's patch= . The patchset also adds hierarchy irq domain support as it is required by th= is gpio driver. This patchset is based on Linux 5.4-rc6 and tested on HiFive Unleashed boar= d Changes since RFC version: Incorporated below changes as suggested by Linus Walleij on RFC version of = this patchset[0] - Dropped PWM patches as they are already merged. - Include "GPIO_GENERIC" and "REGMAP_MMIO" in Kconfig select option - Remove unwanted inclusion of header files - Use regmap MMIO instead of customised sifive_assign_bit() - Use GPIOLIB_GENERIC and bgpio_init() to set up the accessors - Use hierarchical irqdomain [0] https://lore.kernel.org/linux-riscv/20181010123519.RVexDppaPFpIWl7QU_hp= P8tc5qqWPJgeuLYn0FaGbeQ@z/ Yash Shah (4): irqchip: sifive: Support hierarchy irq domain gpio: sifive: Add DT documentation for SiFive GPIO gpio: sifive: Add GPIO driver for SiFive SoCs riscv: dts: Add DT support for SiFive FU540 GPIO driver .../devicetree/bindings/gpio/gpio-sifive.txt | 33 +++ arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 14 +- .../riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 4 + drivers/gpio/Kconfig | 9 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-sifive.c | 255 +++++++++++++++++= ++++ drivers/irqchip/Kconfig | 1 + drivers/irqchip/irq-sifive-plic.c | 41 +++- 8 files changed, 353 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-sifive.txt create mode 100644 drivers/gpio/gpio-sifive.c --=20 2.7.4