From patchwork Wed Oct 31 14:43:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10662815 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 7380313BF for ; Wed, 31 Oct 2018 14:43:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6196C28481 for ; Wed, 31 Oct 2018 14:43:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 554D628591; Wed, 31 Oct 2018 14:43:47 +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 AC8F728481 for ; Wed, 31 Oct 2018 14:43:46 +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=lFhvThgnRkjV0+ DDOxU3cWoMY7WUECSscVjn9ZlzlH9oObvHInXGBfN+rEDbqfabkL0jpLF0yWJhxDmFNjr47k+Ar52 F2SIgtYNRGNS0uGbs4gxq8axJRAR/5xvwZUT0gSPxK06KJrxP44h9O96SwukQGnPiO0aEp6fLwd+7 MOUE7FDtE42UwXtdWKkte+dItmkE4DQmK0RST90nRnXfsVbZP7Iu843HfLwmZDn/+iqdkWtFqGBkf GPDk7St+uVL0AUtyFPj/1JKX1/CPDQQqAT1TLsmIWWM9As8viEkhJJO5GbG0BPEk1TU7R0g8zM6vi SBLlKp9PofAYaJ37P8zg==; 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 1gHrih-0006pp-W5; Wed, 31 Oct 2018 14:43:44 +0000 Received: from mail-eopbgr50075.outbound.protection.outlook.com ([40.107.5.75] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHriK-000664-8g for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 14:43:23 +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=iLnV5MhwRtfDuunxisd7FY2iP+CCln76tWiaHqQwjTNrfmsie6mUknBXCxI0IECCdRGV4eCP1YqWU9Nh5RLV2b8++Khd8rl8UFNyFET+DKe665KyrMnb23EGYCWwwwvE7RqdRDjLouNYA1Uj21qsRnLSWoQeP8jLKfcRoNYhaYc= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB4052.eurprd04.prod.outlook.com (52.134.125.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.21; Wed, 31 Oct 2018 14:43:04 +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.1273.028; Wed, 31 Oct 2018 14:43:04 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" Subject: [PATCH V3 03/10] dt-bindings: gpio: vf610: add optional clocks property Thread-Topic: [PATCH V3 03/10] dt-bindings: gpio: vf610: add optional clocks property Thread-Index: AQHUcSgHU3aCJ39Ou0GpmOYq3EJuyg== Date: Wed, 31 Oct 2018 14:43:04 +0000 Message-ID: <1540996688-23681-4-git-send-email-aisheng.dong@nxp.com> References: <1540996688-23681-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1540996688-23681-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: HK0PR03CA0016.apcprd03.prod.outlook.com (2603:1096:203:2e::28) 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; AM0PR04MB4052; 6:Y2cEtKdTEqYfXvcHPCq0colYQ0g9fabX1L8wh2Dw+E3fHzKrQR5G2qIDndOqq+BR+8dVHury51g2c8Y6GWFqldEq1FUPuZYDw/wH8uaXC0B04v+R+TCMZEyKpMz7NGQ0lWhAjAjPFsEHQaFy0DYLhByTWyJ7+PzWnmsjcjEs2sOKOd8M1UiOkPa+m1ZyCx8GgtKE4J+5RXp15+0wcuxcsLeINFUUjwRnpVJbWMYPe0us6KuGZKaWs8tFfUbd9btTv/9rXLRQQ8K5aScGcDuDjSRlouwomyuZqkjHHoZr3IZfEAe3JDXe7m2ZNJ61R4EA4BTJWttbBj/pDSH7Z0eks3rUmI1D8l5TLSw5s6KN16p9hOE5Rhmh1k7Iy2P4KouWxatjf4YhDp+8hCoTpH7DYYfdS1AfLIiZIAoFck+87wMX/VpUWynmsLUz1bR24uc+mU2wDt4tG70s/FtCrxThRw==; 5:GYqLkWKGfhnAW4cYhKQH0yuv/swjLPxSopogjTN82Upmsfl5E7TLRK6Z3zM4bcEo9Iy6cFxSh0cErfW49kbq7fO6Sk3NymIVQufV8AHTYuxXDX9ruY5zHlBdkpyDbe4VH6LZytoUE8gNg3ldR5i50UnELdcUyg1vyJIWdWVt9vU=; 7:KpYSZ4BR0LdXuFBrkOxRXk/fsSizp01H/EcslTxoa/k/hCBXiItG5CF3S5XBDUxZSKwxcxZ4qLGnKOXxB8+EB6SjsjrRx/8YMmOApT/gWDQbWrXcy5qOxGcb99TllE+S7MY7yUlVs/IbhJZRd/pvXA== x-ms-office365-filtering-correlation-id: 0362462a-0221-4a4b-0ed6-08d63f3f2a23 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4052; x-ms-traffictypediagnostic: AM0PR04MB4052: 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)(5005006)(8121501046)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB4052; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4052; x-forefront-prvs: 084285FC5C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(346002)(39860400002)(136003)(189003)(199004)(11346002)(99286004)(26005)(316002)(7416002)(305945005)(66066001)(2900100001)(386003)(6506007)(7736002)(102836004)(86362001)(2616005)(36756003)(476003)(71190400001)(71200400001)(446003)(6116002)(186003)(97736004)(76176011)(54906003)(52116002)(3846002)(5250100002)(486006)(2501003)(2906002)(50226002)(8936002)(106356001)(8676002)(14454004)(81156014)(81166006)(39060400002)(68736007)(6512007)(6436002)(6486002)(105586002)(6916009)(2351001)(4326008)(478600001)(53936002)(5660300001)(256004)(25786009)(14444005)(5640700003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4052; 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: d9kjxEpNzjzggw8AA51aQkeD6VFD0kFEt+mwLEvzgONUbo8E3Ehk8t6DfGDQWtwbAmpGjyP8EstrNMO8cgjJazOqQBWV2fJr6nmuyLQ1L5pw5E2S9u6kbBNdxHE1WlWBLdV9mCw616TJg58ckCXceMnFDunjPRv5Ic8PVYk00u91ja7MMl8ZPzLu8afGTPt7j5bvz/L+cdyChqLjkPTl+4O5Ls+V+P7WzHXEXnbwyZO65eF/KTGNQqTfD9Uov2XDzcKkPuibWM9cTFiEc+5srFaVAmOwvPpwl3IrXYGoPpcY9NdKJXWiilAIO2yWzZM/mR+2kfUDbzmt7bmoZe/BNEuts/mwIXmHwT/fc9RO2Ds= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0362462a-0221-4a4b-0ed6-08d63f3f2a23 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2018 14:43:04.5096 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4052 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_074320_535603_558477BA X-CRM114-Status: GOOD ( 12.18 ) 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.