From patchwork Mon Feb 8 17:59:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suravee Suthikulpanit X-Patchwork-Id: 8253901 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5A92E9F1C0 for ; Mon, 8 Feb 2016 18:08:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8783D2020F for ; Mon, 8 Feb 2016 18:08:20 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AC0DE201F4 for ; Mon, 8 Feb 2016 18:08:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aSqD0-0000Uv-2c; Mon, 08 Feb 2016 18:06:46 +0000 Received: from mail-bl2on0055.outbound.protection.outlook.com ([65.55.169.55] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aSq6c-0000FK-6A for linux-arm-kernel@lists.infradead.org; Mon, 08 Feb 2016 18:00:13 +0000 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=amd.com; Received: from ssuthiku-ubuntu-lt.amd.com (165.204.77.1) by SN1PR12MB0446.namprd12.prod.outlook.com (10.162.105.14) with Microsoft SMTP Server (TLS) id 15.1.403.16; Mon, 8 Feb 2016 17:59:41 +0000 From: Suravee Suthikulpanit To: , , , , , Subject: [PATCH V2 07/12] dtb: amd: Misc changes for GPIO devices Date: Mon, 8 Feb 2016 11:59:12 -0600 Message-ID: <1454954357-8395-8-git-send-email-Suravee.Suthikulpanit@amd.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454954357-8395-1-git-send-email-Suravee.Suthikulpanit@amd.com> References: <1454954357-8395-1-git-send-email-Suravee.Suthikulpanit@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN1PR0501CA0010.namprd05.prod.outlook.com (25.163.126.148) To SN1PR12MB0446.namprd12.prod.outlook.com (25.162.105.14) X-MS-Office365-Filtering-Correlation-Id: 69ed3dfc-1b22-4157-5765-08d330b19f09 X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0446; 2:AmdB3k3aM+1sVy175fFSvzsYeysofzUtRGXVC5eXjJ6eqRj9hExuMUp2Us+v7VI12kqY8MqKE3Hu23qE/CgyALT4ovevHt3e1NGR/uf/atIlrfKJRx/Vak0HVHBHIY/lUcrlNsMzZgrnPplU/e7a2buup6TI4ULkWn8X6IWOMRbS5YLKOvRdmT+mvhLxCwY2; 3:+tL89/xCWPhYTBzOITrkObL3+tqn05Waki5xV0/Q6moTdnSExQxfz5mwxc1bVui2WpXe7FPhBz4lwdO57BuGvXB27jkYbJJVp8j9xMjOnmw65SMdxBR/NvDFQXP8BOfh; 25:Gd6hotErC3KcilpP5p7Ki+CPR2SHcJ+iGc0B0QbTms9Pev7SSoktrsNik7m69BbwIZoCTrX6s4I7OoEEBtsL+2aIuZ5VXkz0oMfj8efdCDWPb4qHfkuRu1zlSEaR6Af181Yj2Ydxs5tSQhw+m4JT+lUa4zrfM8ZblyZouE9gHyH2VxpLUM1J6x0eucEcdWY7P+1JgzhfPpN5d7EK1fiMfqiyaSgNl5FhVwJmApjIs1iD24JRUNg23iXr2QDuY0pORTLSACVB9Ijj8XZoHPfjXOgpS+f3WYvKlYfKPHw2loolT3Nj2vFa6dzHoFMkK6v1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0446; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0446; 20:Wovwy95dK6BX66pFo9rg7yTMXR/zMky9JAjumOoht3FJJ/ZakU1292VZOD7Fkpl8IsQUQUJrydFu/cNpPHmM/n4h3VouZB/OKHPjHLKhzMtzfCVJfR0OMdkZULxNxxViQQiTciOy5C5dDPsgjPMzCUByUQr21onWwnrS4p3rmgB1UYo0YZ+9LEOvt6Fozn5aKVgVBTAEqcLQQIjlaVv/UxOQvklGilPvvgYXaTAhUj868Gt0uLqwxBRPOo1XE7xzqdYgQ7bZzHB/2Y4r/I48gRQzUHxHTeV03zP72TvXQEA+kF680WWos3GFB6pJuUQySEa7gmiHsdNDDn8GpdXGatm2oD3FFsPdycRXMYEZCjQDByCaLilQy6Vi5Ofl+lsrB+zJF8JdUKDdPBIGSOH6seX0cFpQyMKNY7RPp9E79+hCahZq+y12HIeOHMFLCuS/gzVki0PmxNmT7eG0y1xKV37RB1AN9M7roe3iB2Ci3fWhF9p3wQjalehXz8JrMm1S; 4:Qp8nfQE2/ZF9lRrTvLPup10yEIyu+r5bf0AYqlSaCR+It7xiYry1LxtxLliWs+aSDxWg7sjBuKKXdb7qQyU7gCHPxhuhdkCwjRbcOc0UviZf4e59LQmmQ8lyewWtaTiexUUkT9HjfMXUKvQcQrx0/1xEM0nYLIsaJYLqZfhfDtHYSlZUrW3WaG+ZeE/xQJar6e/X4+kYnfN6fZdDNYr+mn9EVzczHbY2m2lsdT7H5lYQz+r26xR0mZdWkFtde9jPwNzzWW2T9uR+n8m84YwHA77c6SHRnRH4roTiti36fKGz/vrX0kSoKUNxvO+mt6kKE6zMnUjgXqLaay2P4btL8wD5KtFFw0MMFemELsqTHu26hE06xFGznYeOObBhRwWR+NuFGZ0q8wemPkHv8J+KnG+v7YUsf419h/nfB4fmqw8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:SN1PR12MB0446; BCL:0; PCL:0; RULEID:; SRVR:SN1PR12MB0446; X-Forefront-PRVS: 084674B2CF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(77096005)(50986999)(76176999)(19580405001)(122386002)(86362001)(66066001)(19580395003)(42186005)(50226001)(87976001)(189998001)(53416004)(5008740100001)(5001770100001)(6116002)(5004730100002)(229853001)(5003940100001)(47776003)(586003)(3846002)(1096002)(40100003)(48376002)(2950100001)(92566002)(2906002)(4326007)(50466002)(36756003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR12MB0446; H:ssuthiku-ubuntu-lt.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0446; 23:CTuuWIv8gD12v5ZKb1d4qEh6eDXKjYLDor2rjXwl3kkRWZVNHQ4FrTcz/ZltmqZYjSjTptAO/d/RkKarw0R4o0OTXoCqRe3XdhrLOg7LA5zLqrZXn6zcQsZLsGp1yal+cOPGo3jysa973XIt7S/miU2Q2cUi2MUIUmh8t0RYMZfrNMJ4c9Y+0aS8stq0dbS6CQNWHHrOolmQNXL8ZYAbXaXBmJ5UVqDs9Nv+iZkBKEneM09AmBlvAhfwIyJoMV6OGbcAXl6ThsWzWV89F+xBAEIoywDA4jO7wtXclGleF6q4InT9rqQ+3OO4bPfwg6MrRdbq+Kk2s+of9BNlDHTcGqfuKfjEYScvwPg/piyEL1TomWYjbGZnbWL/7IAf/tYVQg8Rvsniaz7OoNqBDNSqtmeVuphzd//htkI64yOtBq9cG/ifBmt0kF6dC0+kROIEymLNO6ZzecEcrv6eua956fd+WodU/q3D0rO9arXqPK3LEAvcnuU8mXmp49+AFny7cDoSgf1V2SosRnVzO4ZQF/0ooKFp/Zq4zUadhkGxpqlBOcUnNzOhMJTdkyn2hMgHgNM7jiynrVxWRhxiJiBzYnPPY9orMGTAi3DKpv00EcF2rxt72nQjsuzdaloWX5qzy49iqmWFJaE2AdEpI2KDE0WPiAG5aoDqLO8LUSm3L3TkrR5jLBywKiDHI2Kdw5MgU7HVIeR/GBzJXbUToH/EjdK7SeoU5ISlKxUXBy0D9TeChIhbUc/y6YG0/SIPq3Quw+ytKR7LIPJyF0M6R35mek3JNK0hdd6VKDgJCYWMVpg0+n/AuYg5ab6MKk1rD83yK1D5wYI9gNX+Gz1TdsWV/3IeGU4vbPmGt8BBbOCETxYws9B3CHOoEHXPPsaKC8TrnQiwXUCxyYDfA+nsM0ZvMw== X-Microsoft-Exchange-Diagnostics: 1; SN1PR12MB0446; 5:RisQrECooT0KK4yQ1N0JHVa8EsYhBBQFrhdbyaBHb6Een1dhKNRJI2b19FSrY0qmHLqjFJyRL7duM49p3qcPm33N87x+1waZLRBNoLqFLHWf11QhU4GnEuFuWjaMwVIh4rPt/5e8PUFFNvIuIwa01w==; 24:E009MHV/GkxCbk/xOjL9k0leqYY4lSAPd5CV/J3uUADnznrMSOCaeuMMZuuq8Ah/4ic8LypTFVTKJx6gdeiu3eQZ8rbc90+Y15DmPESerNQ=; 20:TnGKRoAPcaxp9JmCQYH1UlETMCQBjMoCrtCXwwxHGBAsy2ii0yVgzg6aFFAuaVDtbOF0n08wXC+5LmuJ9YCMdkHXuWaTgrGG5XvyTg2SyzwtYxPPWMeJg2X2R+ura3GtAYoBJLnL+OETTO5PAt8FSE2Lf6SFdA7Kaquu6UghA0CowSAu8EL2PP3jzKTshP9O267BtWJKvh+7AR6QyWEUhxHQimakE4Z13aWGfP6TcBFbMV8vGAl4a/reUTnmqL2A X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2016 17:59:41.3655 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0446 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160208_100010_778891_1109F750 X-CRM114-Status: UNSURE ( 8.29 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, brijeshkumar.singh@amd.com, thomas.lendacky@amd.com, linux-kernel@vger.kernel.org, arm@kernel.org, leo.duran@amd.com, Suravee Suthikulpanit , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Suravee Suthikulpanit Add new GPIO device nodes and fix clock on gpio0. Signed-off-by: Suravee Suthikulpanit --- arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi | 49 +++++++++++++++++++++++++--- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi b/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi index 9f59381..ba455d1 100644 --- a/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi +++ b/arch/arm64/boot/dts/amd/amd-seattle-soc.dtsi @@ -129,7 +129,7 @@ #size-cells = <0>; }; - gpio0: gpio@e1040000 { + gpio0: gpio@e1040000 { /* Not available to OS for B0 */ status = "disabled"; compatible = "arm,pl061", "arm,primecell"; #gpio-cells = <2>; @@ -138,18 +138,59 @@ interrupts = <0 359 4>; interrupt-controller; #interrupt-cells = <2>; - clocks = <&uartspiclk_100mhz>; + clocks = <&miscclk_250mhz>; clock-names = "apb_pclk"; }; - gpio1: gpio@e1050000 { + gpio1: gpio@e1050000 { /* [0:7] */ status = "disabled"; compatible = "arm,pl061", "arm,primecell"; #gpio-cells = <2>; reg = <0 0xe1050000 0 0x1000>; gpio-controller; + interrupt-controller; + #interrupt-cells = <2>; interrupts = <0 358 4>; - clocks = <&uartspiclk_100mhz>; + clocks = <&miscclk_250mhz>; + clock-names = "apb_pclk"; + }; + + gpio2: gpio@e0020000 { /* [8:15] */ + status = "disabled"; + compatible = "arm,pl061", "arm,primecell"; + #gpio-cells = <2>; + reg = <0 0xe0020000 0 0x1000>; + gpio-controller; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = <0 366 4>; + clocks = <&miscclk_250mhz>; + clock-names = "apb_pclk"; + }; + + gpio3: gpio@e0030000 { /* [16:23] */ + status = "disabled"; + compatible = "arm,pl061", "arm,primecell"; + #gpio-cells = <2>; + reg = <0 0xe0030000 0 0x1000>; + gpio-controller; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = <0 365 4>; + clocks = <&miscclk_250mhz>; + clock-names = "apb_pclk"; + }; + + gpio4: gpio@e0080000 { /* [24] */ + status = "disabled"; + compatible = "arm,pl061", "arm,primecell"; + #gpio-cells = <2>; + reg = <0 0xe0080000 0 0x1000>; + gpio-controller; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = <0 361 4>; + clocks = <&miscclk_250mhz>; clock-names = "apb_pclk"; };