From patchwork Thu Feb 11 03:51:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suravee Suthikulpanit X-Patchwork-Id: 8276491 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4CCCBBEEE5 for ; Thu, 11 Feb 2016 03:55:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 67E6B20373 for ; Thu, 11 Feb 2016 03:55:28 +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 8BCDC20306 for ; Thu, 11 Feb 2016 03:55:27 +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 1aTiKI-0004dI-Jm; Thu, 11 Feb 2016 03:53:54 +0000 Received: from mail-bl2on0097.outbound.protection.outlook.com ([65.55.169.97] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aTiJ3-0003Th-1h for linux-arm-kernel@lists.infradead.org; Thu, 11 Feb 2016 03:52:40 +0000 Authentication-Results: lixom.net; dkim=none (message not signed) header.d=none; lixom.net; dmarc=none action=none header.from=amd.com; Received: from localhost.localdomain (124.121.8.20) by BLUPR12MB0436.namprd12.prod.outlook.com (10.162.92.141) with Microsoft SMTP Server (TLS) id 15.1.403.16; Thu, 11 Feb 2016 03:52:15 +0000 From: Suravee Suthikulpanit To: , , , , , , Subject: [PATCH V3 07/12] dtb: amd: Misc changes for GPIO devices Date: Wed, 10 Feb 2016 21:51:06 -0600 Message-ID: <1455162671-16044-8-git-send-email-Suravee.Suthikulpanit@amd.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455162671-16044-1-git-send-email-Suravee.Suthikulpanit@amd.com> References: <1455162671-16044-1-git-send-email-Suravee.Suthikulpanit@amd.com> MIME-Version: 1.0 X-Originating-IP: [124.121.8.20] X-ClientProxiedBy: KL1PR02CA0013.apcprd02.prod.outlook.com (25.165.15.23) To BLUPR12MB0436.namprd12.prod.outlook.com (25.162.92.141) X-MS-Office365-Filtering-Correlation-Id: d2706c82-8dea-4a74-29eb-08d33296be4d X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0436; 2:RpaxXsG+jDc/0or0XHaC7amwSyv66M5eoUXq5zr6cq8suk3Jl0BvGd6Z6EZ7Nr+8E1BNZQ2aX6P+eZeP5uCu9jXkwG0BOKxebMFLxmpd5xGby7m8xfiF/UCKnRK18mUDXAeShQHjCavg5N6iAEMuSR81iValhZfPF7fU5fblHbW3UtPhOs66xdXWgLcTkjT9; 3:Z5nIcb/u9vLi6O/Jj1javWduYXx8eToBRy26Xdl5o5lSEs+sxzWYUnNXx+9S2oWY3Ajrj48IXFxK38nRyt/wT2Z09qfUfLtQxy41RbHn7eZ7lIihfVbdjGij51nIT0Fp; 25:Qof9j7HKRuoiL5tKB/ShBdgXuwm9d59x5d6VCPoMYEcqiP4wsKEVgH7Ika0cSPFJMBdpGecKOlr/5UcTwqLEv09I4U09szHi5PhJ2Rq1zzFs6WPwlZNjzpbYfhyvzLv+Kh/TgnUt/OBLqCR74T404Q9YQH6b6uPlC4OyMBufjI0ZJwfYV5Q0FNjp4PTPAbXDo0KBs5hb565fYVtJZpRZ4AtBK8QPhzuX6vSiayPGJdnAhmcN6AZ7bfc6Fo/0AkcXK6U1cO1ib14f96E2HZIxasL+5ltRFrHOhxpV5DP6o2S+QAvXznlzuh5EN5iFpwcT X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0436; X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0436; 20:YvlvMnBhMgallQGcoviegRI3PKlfS1KliMiVKM1LTRKLsTlZx9dIjoJRadCRnGw1lDuxekXRjOZGQqrwFMdAeO/xMLOl1/p462uS8MAmBot2sCI/Y8ythRvizlJnjcIh3arGjqEcMw/qmwqjb32dtL4umfwOKIHCJbgAbb0sZMb8SlEIen4LT8b3yLgrzSdCfcm/cWzYTy2sFqvGzrXYaNNAV2cnCkNGKCFH/AHCGDi9pjRF9vkjt0SaQZpd4yZQS8X4+Rl+fIn9K1uxFwswhXGzlerJaC8UjH6AhZ5ksUxgShIuVyBOKoRzSdRFwYL9TPKwi3H8fj2X19RRRNifoDBDbto4KI1tuFOIho4Zq44jm2Y/ocrL7tq4Ri/fjFcsNIsYOmcmQjphP90KptigS/LSO1FttWJEE39LfvGat/pN4c/rE6DfX5im4HAcykT80ctPdVSSzqPl8+b7lBQKLNdnEaZnx8GRzF+HK0djdQURJUGPOzlxut7vb8qvNQvy; 4:QOzZUFChMIwEUWDQQ31IXDdWbew6H0UBWpzBEf2hHUotk7R9uzlej/E0kqgIcZliTtycU3zJhRgdUw/ss2IbymUJSwDJHqzChHz55Amc5x7lXssKRvr+o0F/7kfgcXP+8kg8RbB9xDFE2b0qky/Xm2LzFlb/L6FaNSpov+4BDPbCwghZpS+znASLYQICdSRD8jpVFCxwPjfb7lhR4NWeuvVyGGRVohQaj/4Fki5uDfljEuPHvs69q6275SYwLdBqCo9X+ikvddjjMomwJeiDOpP0fAiFWQ/jaX8YqiqOcjB19cbJgFgTk2ydyv8zV9eeh66gv3U0pabGNmuSJu+Ta1WcWBvBGS4P+TuyZGK0IkZQnl/syxhY3J61HfLVzD5NHF1SFRJt6KZiIm3u5XRTP7t0fZxERnHn2Pk+U1zVYPo= 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:BLUPR12MB0436; BCL:0; PCL:0; RULEID:; SRVR:BLUPR12MB0436; X-Forefront-PRVS: 08497C3D99 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(50986999)(36756003)(92566002)(4326007)(76176999)(19580405001)(19580395003)(5001770100001)(5001960100002)(5004730100002)(5008740100001)(6116002)(1096002)(586003)(3846002)(47776003)(2906002)(189998001)(229853001)(77096005)(40100003)(42186005)(2950100001)(122386002)(87976001)(66066001)(86362001)(50226001)(48376002)(5003940100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR12MB0436; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0436; 23:60Jy3TDTYMZYZY7x4MPjM8wky/IrkEM0OiZjg8DeqQS1PWvUcEBCrCUM4ZOZpXOpSmRsWjTSg3u4hgivN3vWR6MSLiRo7aEAuldohDP+06cLlzIox185G5xju4foBi2+M+RxOmIHzDeLd9ZWcZGS1IIjrr95HBgmQyr+vcBHMQDoglZK0PdaxfO3mF+yCzECD9bpBTnzDj3sijINtoh/HxfJeEdEYHVkiceAj1sGcuAk7WAiDV2v/8pkuT4gIJsRCn9MQ0iHjSXyPaxLgFhPt0z7xFOeFithfAxdlEC7eKiVFulnYRwii5UJ+TvqsdXf0leNIiDYvIy/ZAr70GP6SxtMWTyhHtGnu+XNhuz14Y0m6Q8etL6Yz+TDC3MiRf04aFfNAFDKWcWc5n0XfB/uONKvSZ60jmVOcpxzaxFEm7t/JG7OMyIbLutloUrYw16rsDI8ruiOm/rcohbTB75e9ddTL8uwsaxy1+ayhM1T5aEZYKg4inr9OQAOykPmWkK5PR7OVPVMKZyEb0m+QN9UrJf/nHSo6wOfth2w/wYtqdYfuBtZfJvT+yYGfwq+OWA3jtoKDO+QIzWoroZA5rYXhxKU+H5zfg8lqcXdk8ilos8/5MZgeWXS/oc6oM2aIs/J4RNtDigDPzxAmVE9Q5QjX15GS1xH51erAUjbPZluvldEgzQVIHBtiOpSblssKdpE1RtutNV294puCT1DyDhws8nh2Y5X7ptE64x1y6n9hDpxN6s1NgCie5THk8irK6TsBqu/v53dzl5NlmFy75qOP+sJF2Uu0v47jHmspOV1mn3iThqOPHz6WeHLmfds4klj2nzaq7PhZ/uM/qr/GE6KDR+4083CZx8rJXtNW/Cnqvz6EdUwr7skHrG/HYkTi6uUBHrt/NJt3kTAzDEuslNi9Q== X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0436; 5:ZTIZtBpd71gDV9bVYBBIgkYE9+06hXahdjNxRaP7vBPSQ1DtmLka5vQhZE3Ma/WYeCggRLuj8URF46coDB8BSJyweYQhLyi1h6EUrMZKver8dR86YObXbt3VNfcqIyvcYTrdrZj95tGc3wkAOCH5/w==; 24:lmKae/C/LIxB+dCdLer2jfy8TmhsWxyudWqB+gIpvuCFb/XZiRW7QKHUD7K8Z00EyqgiFlPzH2Ew74OoEDqVQWa5ftQOE6pKkp8iDwVsvqE=; 20:6Nloz0TvA1wsTMEdanR8M50d7uGCn3CclrJpzBL9ECQ0HcDHfITwvf+Y/YtUy3AjbKxmJdchGXw2BfPOEoadmqS2DopHWxr4go3jWRgakKmyuIeYXDyu0YEk0Q6fsHPuipylBIy/q8Ey6nUL3E6ai/4LsxfOT0+BO1wJouvRwFPMOIH8c6JlcNAlxohM/wj+xgVui4+xPFreiP2pHKGu922pddagQburvMQZCZG9lZ0AXx91HjOropFnUT/o56XU X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2016 03:52:15.7331 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0436 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160210_195237_496010_54A158D4 X-CRM114-Status: UNSURE ( 7.99 ) 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.4 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"; };