From patchwork Fri Nov 2 09:12:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10665167 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D97D51751 for ; Fri, 2 Nov 2018 09:13:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFF662BA03 for ; Fri, 2 Nov 2018 09:13:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF06B2BA0C; Fri, 2 Nov 2018 09:13:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F0E592BA03 for ; Fri, 2 Nov 2018 09:13:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=efQWJjljSHgbr4R5W1Cz7P/yVwcfiiRrvPvuxGXBWgE=; b=nLDxSIA1hwVS4K vivuForuRpCqkBVUnoONV0tTh3Eboj2nOUl2W8IbF5jUAP0W5yCWVctalWowBV9AjvNL9kbm94z4X tmVoaPmV+3Fx5AJLSuEHRX+LqYxkmmvhCty3SHdu9/adMArcah8zaEG99zAXj2/vHA/K4OJdHQr+C lQSYtrzPsEONnbeUCE0rRtJHehKwBWKGsRIfr1BWAlXhisKSgz0+xNhcC07Cn5vDTN+sVTR1ypHA1 2XHWgg1jk61fGKWh1DTCSnIzJXWR7TUE2W2kpDUBgcgqL4EQaLf+wNOOi9979P7MXaH9XohKtRf0W 1UE1U6P8WQ3Yji2gH7Gg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIVW9-0006IC-H0; Fri, 02 Nov 2018 09:13:25 +0000 Received: from mail-db5eur03on0618.outbound.protection.outlook.com ([2a01:111:f400:fe0a::618] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIVVe-0005Uz-Kz for linux-arm-kernel@lists.infradead.org; Fri, 02 Nov 2018 09:12:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+a/JPR/N7yd4dqx7dmW9PbemOj0hclXJMZRCvnTbm9I=; b=Pm94Zm8UBZyHJu6c2BUcmbz8N+zrS7glbw5+ZfZuCEp7R8Ohw5/fH1Y1fIM3BFQQMar0VuQc2hEwVBGXtV7f3+71RYF2wpyAYUo6O5rM7QLOLK33AXl41bbXi4DUboNa+3IV9Zm1RA2kod8CSe01AgxU2o4xd8uEKlpyAst3x/8= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4113.eurprd04.prod.outlook.com (52.134.125.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Fri, 2 Nov 2018 09:12:48 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::797a:f972:9281:6d10%2]) with mapi id 15.20.1294.024; Fri, 2 Nov 2018 09:12:48 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V4 03/10] dt-bindings: gpio: vf610: add optional clocks property Thread-Topic: [PATCH V4 03/10] dt-bindings: gpio: vf610: add optional clocks property Thread-Index: AQHUcow5DMx8QE9ZhEallQDfl/D7ag== Date: Fri, 2 Nov 2018 09:12:48 +0000 Message-ID: <1541149669-10857-4-git-send-email-aisheng.dong@nxp.com> References: <1541149669-10857-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1541149669-10857-1-git-send-email-aisheng.dong@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR04CA0024.apcprd04.prod.outlook.com (2603:1096:203:36::36) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR04MB4113; 6:DgJxBlK2BuyqSzxcMCnQ1T/xavjAHN0JUqeOAeGbjRDFspbE2o/w9olCfkl222B0/MqwkjtDM6u3TswVGDJ2oFCiaGBanUopw622wJKK6U+a1uojHr3GKZtfH2ueyYhVJDZkm+HXprqClhCD2K5SH9L2NkvVcb3UK02cLtJ0y1i8zPsdO+FLcAM8sGx4SbpRssIUFNiMwBxypyGeQyPzrsQ/9q2wTdeew9akzmD3PJfBmoEmj+yiaLOOH7UqajeBLMJ7JwzlgCUpeK+AkUbQ+Jyd5ELBstqSd+FdoxpVDi865Y0BuB2Y6sJPfCBpYkTNdjRemHULcccJai0oTaM7hL8A9Wzy/8snE1wHLyQtD7bCyQaSVYrOtoAK464K9Z6WGX8ben4AEeRP1U6VXMUZVubxbEA+soNyZJpiZbvCbANfC3Iesy1+vcNGImVZKISEtv7OWlceUbawsXk35YU2ag==; 5:kRlFtBDa+Zm0aqjbaxm7fnfkNl48/Vx0E6Cnti4xRLoTcCQM3YHCIV/4hVaMWTLRPfXYPxD32OSh5Cr2mmqQyeKlYFM15Yb5yrwVc8eWAQ6sNBNGUe9pJ/95879EAgDDomy/fgTuGLDW2oxpBA+/n2nLwiizoxXEs+arG0+tuBQ=; 7:8C2kJ/IPlfpGcnZYMB7TmXJcgJGfa/Fx8PE5aZGn56iV30cZoou20DtCCNs4ZYaSTEUM9JK6h6yR3OxjD9bGc2f/9Q/GindjnrZg+/3HEVbw50G82KwZyTK0PghwhJvf426v2TIlKRZugEGZDTmELQ== x-ms-office365-filtering-correlation-id: dd1e405d-4246-490b-b382-08d640a35beb x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4113; x-ms-traffictypediagnostic: AM0PR04MB4113: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(180628864354917)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4113; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4113; x-forefront-prvs: 08444C7C87 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(136003)(366004)(376002)(396003)(189003)(199004)(8676002)(53936002)(11346002)(446003)(68736007)(86362001)(14444005)(99286004)(81156014)(256004)(81166006)(6436002)(106356001)(2351001)(186003)(5640700003)(2906002)(7736002)(386003)(6506007)(6116002)(102836004)(478600001)(3846002)(305945005)(6486002)(76176011)(52116002)(6512007)(4326008)(6916009)(66066001)(105586002)(2900100001)(36756003)(26005)(25786009)(71190400001)(50226002)(5660300001)(316002)(97736004)(54906003)(2501003)(14454004)(8936002)(486006)(71200400001)(7416002)(39060400002)(2616005)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4113; H:AM0PR04MB4211.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: ss3BxVss2mtqYhZkErj4WjqfgtAuPnbH4FGanChIPMhPCqI1YwcqAdumxM6XsuuyiCrUYvOglLY3BCvdu3BM4MVVy061AXRMDXB4n9wpzvo6FNfMRnZzb1n9MFjKENL7Z7Uou5x2IK99VaNTTTvpWrWofeZxLAZjOuRbg66UzolFW4+qcWPTiFI07J3SzFs6LFWcpbPfbm076XB1v95Zg3tdhmmDNGo4HHGmYz1k35TgNQGB9tbXsTqXEH3vGt59sfziQb+hAwJB+UBQm3t77rgAFoPZXMXIUdiaXDm9asU16yoOzOyChfFblQFMweD7ZYvucYz4UtkurltwhLgxU5QgvZXjoNnr3nlABEBDjjk= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd1e405d-4246-490b-b382-08d640a35beb X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2018 09:12:48.8486 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4113 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181102_021255_041077_9E6658E1 X-CRM114-Status: GOOD ( 12.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "A.s. Dong" , Mark Rutland , "dongas86@gmail.com" , "devicetree@vger.kernel.org" , Linus Walleij , "linux@armlinux.org.uk" , Stefan Agner , "linux-gpio@vger.kernel.org" , "robh+dt@kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , Fabio Estevam , "shawnguo@kernel.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP On some SoCs(e.g. MX7ULP), GPIO clock is gatable and maybe disabled by default. Users have to make sure it's enabled before being able to access controller registers, otherwise an external abort error may occur. Let's add the optional clocks property to handle this case. For ULP GPIO clock, it includes two separate clocks: one is for GPIO controller Input/Output function clock while another is GPIO port control clock for interrupt function. Cc: Linus Walleij Cc: Mark Rutland Cc: Stefan Agner Cc: linux-gpio@vger.kernel.org Cc: devicetree@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: Dong Aisheng --- v2->v3: * no changes v1->v2: * new patch --- Documentation/devicetree/bindings/gpio/gpio-vf610.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/gpio-vf610.txt b/Documentation/devicetree/bindings/gpio/gpio-vf610.txt index 0ccbae4..ae254aa 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-vf610.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.txt @@ -24,6 +24,12 @@ Required properties for GPIO node: 4 = active high level-sensitive. 8 = active low level-sensitive. +Optional properties: +-clocks: Must contain an entry for each entry in clock-names. + See common clock-bindings.txt for details. +-clock-names: A list of clock names. For imx7ulp, it must contain + "gpio", "port". + Note: Each GPIO port should have an alias correctly numbered in "aliases" node.