Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2459106ybc; Sun, 24 Nov 2019 22:00:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzzklFvXzYp4rRbXHAIHifO6TJZCQDYXLqme4ItmKhI346osCzfegnfciC8zd3nkDk1+gAw X-Received: by 2002:a50:fc8e:: with SMTP id f14mr16482596edq.83.1574661614135; Sun, 24 Nov 2019 22:00:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574661614; cv=pass; d=google.com; s=arc-20160816; b=E9nlT8VymkjkO7iVuqeGqwDsJqFY2U53R7pkAaBl+hWSb8hUdkmBCN4LbQ3EMW+lx/ bJlpBVYbbLE7uR5XKa6Vp4QObKLF+iH88SJkCcEv3oaUqeDNsNwR8IYTa+A3lZdiIypv 3B9Zqygif1CgTFI8eWdfGLGU21GiLoUhCmyMP4Sne9o0bmGmS3zGRRkZ4A+MIQ3Ug86n 7qcFdmra6rnI9u+OY4+xzG1R12OzcTCuoZkksALVfp4uCROFxM8kNOUSEqai31byyDCg Ip5BbPEwkS3YlMh1yzMkBSCNpt2/PZTXW2QQWO1SK/S+J/yyd0SE4K/rJzMxsjno5mSd 6wsQ== 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:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=eZtNaULOgo5BlFOvij4pkR5P0UvZDV4dwCoW0GuDIds=; b=R55cD+KLYoTG8WnC+e6Vb62fgoFRFf6fbxf2/i8JTCoJ9YJ0NWTdF3gzKIPhQDLi+9 3kXGDcsYtYBg0stuFgpC8eDtVF2FY7shF3ovkwbCnBmmtOOcFYG8fBaoG89iXJCmOjgn VJuKWVroanYX1e8BGR7RCB0LeCfqWb0cx0ScGVmVxvJNdmZSUhBYiaH4a+QZexvEKEsX yiesex6hhhqmFfdYHZ1x/J6JGRF2RECxh79sfCVxr23hxtHfR81TOQULOoY6unVJS3kD sIvG3I4Cjm9xhuLbiI3EKnPOvxdR41jBrfsU44E5sjPxQ7zcNbi8UxEdA1h83otDcJsj X5XQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=selector1 header.b=ICa0IoOO; 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 d4si3790499ejw.149.2019.11.24.21.59.51; Sun, 24 Nov 2019 22:00:14 -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=ICa0IoOO; 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 S1727188AbfKYF6U (ORCPT + 99 others); Mon, 25 Nov 2019 00:58:20 -0500 Received: from mail-eopbgr690065.outbound.protection.outlook.com ([40.107.69.65]:47961 "EHLO NAM04-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727120AbfKYF6S (ORCPT ); Mon, 25 Nov 2019 00:58:18 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JYFq5JbTDCHyis+9wSSaZJy4ZU/zAOwK/I7QLZcrdiQo9H2k0IDaanM0FMOVYEgs6hzdP/vaHvnNO2ZA+/eQ8GX25DcRPlaMRun2aRO5URJFyFZ7kynXv0pjFIWMu3tn3YC8Ow4nRTdc9Y107RQilLSLxCqw3kn+96s1wDU9eHNCFVd4spL+OaFLd9+OPgrBQP81zmol69JW7vvW+CgvaB+uFzJXZD5KlsZPCAGOlL4LGtc9uRyZ/nqI9lia27OJlWmBYr97K63II+E5tTRDyBVgcPkcIcL7d8XjvnGyTDTvsFz6M6MG5csEb6wUOz7kzWQbRh8WczQ8ovyRzl4o0g== 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=eZtNaULOgo5BlFOvij4pkR5P0UvZDV4dwCoW0GuDIds=; b=VA6lJDylLgva3+3wd+ut4VO0KJphy6UlZm/T0vS79R4uKdggL6xLUYRD2Qokjnj4TMFpNlExBX4bUGt3J3TvbQbVH7XOSE9Pe4ArBgKXFy1FFilRY82E4npdkYvD6MuG0Gav9s4Of69U+xqHvLme8tAXk1kaIKeAGKub4c9CSYUig790LcQsI52Eh9fPEZ2y/A72eHCtl5qUQ5yzHghAI3W+2V5YbWfDC6j0cABur9veFE9fVRG0+84ZKcdW0EcUMX6K3AO4ImTywAndG2hVgsnT4UZf/BBPbiRSVEVJHMZ0irZucBwzcN7cZ5zYioF1N7OkF8RMx93SACQlGp5YBw== 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=eZtNaULOgo5BlFOvij4pkR5P0UvZDV4dwCoW0GuDIds=; b=ICa0IoOOyyh6H4M2VPDqhPw6RHHGUGtVCyoDe1/EJQ9WVgQ3gIBhP1LhoVNQUpyAAy/FKaduY6Mx/FKOSH9FwPyyAJ+vMQGgHv09BHLgDLDhAyiAlyVVyPh56ShHODkrbLiBp82OJiG4ozIdAqEG+gR8fmeAm4EMPhRZ9Y/n538= Received: from MN2PR13MB3374.namprd13.prod.outlook.com (10.255.236.83) by MN2PR13MB2622.namprd13.prod.outlook.com (20.178.254.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.10; Mon, 25 Nov 2019 05:58:15 +0000 Received: from MN2PR13MB3374.namprd13.prod.outlook.com ([fe80::4481:4560:7083:e4c6]) by MN2PR13MB3374.namprd13.prod.outlook.com ([fe80::4481:4560:7083:e4c6%7]) with mapi id 15.20.2495.014; Mon, 25 Nov 2019 05:58:15 +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 v3 6/6] riscv: dts: Add DT support for SiFive FU540 GPIO driver Thread-Topic: [PATCH v3 6/6] riscv: dts: Add DT support for SiFive FU540 GPIO driver Thread-Index: AQHVo1VTXl3rxbuniEimR8aPOgQ+5g== Date: Mon, 25 Nov 2019 05:58:14 +0000 Message-ID: <1574661437-28486-7-git-send-email-yash.shah@sifive.com> References: <1574661437-28486-1-git-send-email-yash.shah@sifive.com> In-Reply-To: <1574661437-28486-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: BMXPR01CA0053.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:2c::17) To MN2PR13MB3374.namprd13.prod.outlook.com (2603:10b6:208:162::19) 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: e81c5664-0656-47a0-4686-08d7716c760b x-ms-traffictypediagnostic: MN2PR13MB2622: 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:3513; x-forefront-prvs: 0232B30BBC x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6029001)(136003)(376002)(346002)(366004)(396003)(39840400004)(189003)(199004)(186003)(6436002)(2906002)(316002)(14454004)(7416002)(54906003)(4326008)(11346002)(71190400001)(2616005)(50226002)(8936002)(110136005)(478600001)(6512007)(446003)(6116002)(8676002)(36756003)(3846002)(25786009)(81156014)(44832011)(305945005)(5660300002)(52116002)(14444005)(76176011)(256004)(26005)(81166006)(71200400001)(6506007)(386003)(2501003)(6636002)(66446008)(66556008)(86362001)(66946007)(102836004)(99286004)(6486002)(7736002)(107886003)(64756008)(66476007)(66066001);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR13MB2622;H:MN2PR13MB3374.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: UiuWTCshWODqjTORFHwC+pjEh7oTKFg7XnOZXXukgKT1mFXvBrg9IPq0977T3CHDZahqSU91U7OuIYWBjiVLEl0AmBMaQsqQ8zsoS2xjseKTsy9G24Mlr63dyZXoiLbqqWDCLa+GGrNQobwZS9Xh7l0YiWJQxA1/xQDuvxCEkpyNT2BsL/DZS5IcOAm2MWD2VIylSoGBtEOyQ4mo7uIBNth+iobMvQJrR/dm/4IXR2x0zGXmfGs3sb4oVsWR9LA8Q6d2omBTcjydgyK0jf0ylmiK6yoZSOxKMZpWy/pBU+DE58CFVKB4Ju9LXuQDj7fgCzHWF8A+zh69iy+ub4Fk+ATSh+j6FTRQjJ68cQMA0TzkshvAxsTroisxV54E/TxBiaq+r2jWsNMjIw58NBIO6EGniuCQRuoqQNrGFGF+XsnGV0mbQgnAiMVz5n+3eTDG 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: e81c5664-0656-47a0-4686-08d7716c760b X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Nov 2019 05:58:14.9440 (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: TAuDYyuBcQ+z5C+g7GBROhuvGQTBhNPjtiz1XcnOWQ9PPQHpcriuehgIUUjBqf340ptR6mijKuUrEa/26tF3+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB2622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the gpio DT node in SiFive FU540 soc-specific DT file. Enable the gpio node in HiFive Unleashed board-specific DT file. Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 14 +++++++++++++- arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 4 ++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/d= ts/sifive/fu540-c000.dtsi index afa43c7..2d7c284 100644 --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi @@ -246,6 +246,18 @@ #pwm-cells =3D <3>; status =3D "disabled"; }; - + gpio: gpio@10060000 { + compatible =3D "sifive,fu540-c000-gpio", "sifive,gpio0"; + interrupt-parent =3D <&plic0>; + interrupts =3D <7 8 9 10 11 12 13 14 15 + 16 17 18 19 20 21 22>; + reg =3D <0x0 0x10060000 0x0 0x1000>; + gpio-controller; + #gpio-cells =3D <2>; + interrupt-controller; + #interrupt-cells =3D <2>; + clocks =3D <&prci PRCI_CLK_TLCLK>; + status =3D "disabled"; + }; }; }; diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/ris= cv/boot/dts/sifive/hifive-unleashed-a00.dts index 88cfcb9..609198c 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts @@ -94,3 +94,7 @@ &pwm1 { status =3D "okay"; }; + +&gpio { + status =3D "okay"; +}; --=20 2.7.4