From patchwork Thu Feb 11 03:51:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suravee Suthikulpanit X-Patchwork-Id: 8276521 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 4D5F6BEEE5 for ; Thu, 11 Feb 2016 03:57:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5857B2034C for ; Thu, 11 Feb 2016 03:57:32 +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 648FB20306 for ; Thu, 11 Feb 2016 03:57:31 +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 1aTiMF-00081W-FR; Thu, 11 Feb 2016 03:55:55 +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 1aTiJB-0003Th-Fw for linux-arm-kernel@lists.infradead.org; Thu, 11 Feb 2016 03:52:48 +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:32 +0000 From: Suravee Suthikulpanit To: , , , , , , Subject: [PATCH V3 10/12] dtb: amd: Add AMD XGBE device tree file Date: Wed, 10 Feb 2016 21:51:09 -0600 Message-ID: <1455162671-16044-11-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: 5e02a3c2-b822-4afd-04cb-08d33296c836 X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0436; 2:7SWQPMJhMSuMao1fYZVwo3pgU0UFrjjD7P9Q8ghmpG5DgNb4VekCpNenSby0UFeIlggwiYlcwvTRTzXBxQNMCz63mf9QWjS5GJiG1/WCtdTFTGEktQeBTdxwfpAgE7gdTXXo3Qt1ta7RZzQe1azYEytPmWTvUxg/e+AYwQqp7R3bDtwx5E86azpSDltg+i8g; 3:BqePhuLOk4ztJ+wSHWejUyfLz1JDg9ZxzXnQ+pyiLaLBKICRsgkkDdgKwmPhQl4TZYvunKXXnE6Xb1LNFzvqBuowZOegZZhfdaYsubFjsjBJRMNZecog3bHtIxqCxgYv; 25:gEBOokochhbSPdtbygrOFMBabpG8SEo3Q7k9DpDyut2zlZfxUdmUupGrbslOahdeUamomjFl7gb3EbYhjv0luYhfLVciwpNGzgkZOrMM6f9bY1+5XJMvenB4vuN/TKp3LbSYaUHklntM5Y+rnuM0rs39dwuyqTr5CNdwfDJ/fS596+WO+7m4UmgzWx+UjHBvHv05aRQbkB8HJLsGgVSCK08bmt7olFLr7/awgqUbUk2GTJZ0cW3ky9w2zSipZBUYUIhPaxW01x2w8SEZi1/T3ZgMyx0MmIbOmHQl6kCgWd9tZMmCXA2aNSc5j6TAqETj X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0436; X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0436; 20:m52OAKkUGs87NFizLr6z+cC45LWia6RH9vR1BCvsgkdkFmAcMM81V3KbPxVU/xhkyU4Pvy4cmDj3ovjQgu9Dtrwo7LAqvtDkO70FDQvAk1y3wPv3jD3IbvAWRmH8AQj+VSGCs+oOfsKTo7cs9IjP0sh6txOE3tYtMWBw2IPKcmdA7fpSX12yYBmu+pu0m8W4uSjfBuO33yPpAab78c0Gq9+VCIuVsxDeWvyFLsNP511l/1COJTq6Rnt5OZcP85gsaHsJbYWlv0MEtdYjVm5yiJU54iEJPji9IpV5eKddMn03Iar5Vqt91j2sTHywYWTg2seHmAfbzMkIix7h/jyEJfwdppkGXCK2H7TmBYH84OvBXz2O58gxcEvx6djolClbx2rjzc02n4rcnatBZ7Ynw9SNembf1DkbIX00TyJgwAe0uzCkgvbJqJR7Rb8XtUIk0UubmunOov1E8/5JxvS0Jh01bdnu+pJMpxz96sAZ66wZg4O+IRQgnuv7GwW/iq4w; 4:0STsANBLXIZARTtHheYNmP8eog7HqXLCOneuhv9zxS2IIkzllvYkzsK73rDP84MUaY2l6Ji+HUhO3f8tOr9BnVaDQGetwZxjgw4iFheD+DoM9rrdLv4k/92AR/WthogJBPwSODGu9KgNL/vKD97i9H3BFM6/i1Gj8gpuIK0tlTn4rf/Pie9W6WQVdWQhaPynjeGfty+VZyTelJKv3ncSccnfY5k4ZcZKF0JVPA+E5rOBj+TwNy+jIElv1EOMcOo5xU61529z3A1Rmip0WwGMMeygDrRl0yHV+iTmEa+9ZNrNAbVfHrqmrungp37JVIQ0RPio2JrTLcFpKTQC0/zcwxGgLU/ovKoHrluGUcbzeUcxVOGR/nSwQtflA7V4oEIHYDh/hQv67p2wBkmhE1td7o+GCDr/2aI2+sPG3j4QPJU= 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)(217873001); 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:weYMboER8dtDsygwEzqKOCHDm9eB24x8JUHqmSiGlb+a/BoNgTdvZAllzEyBsQnkgH4KQuZJFnhD6urL0CKHrkjpjWdXzoxD3IFymRGZmB6QdeneEIf0pxQiKE50HNQXIecx4Lp3dtgD+IPWtC4YPetywiQkwdzSwD+vgDy966NEsIpzgs+b3kfxdpXtNUgA5aH9DBXr2CNXjRni13Ys5K4Lh5DVLGHJ/Y7C7+i0s5xdLIlTvXnaLkqcu+zOmjF6um8QDf3rFO3jmExjrwVe7XMPok6CgwWDtLSexjCHNjZeR4ZEZxOvi6m6i1/YASzer1fAzPVar0lWfQMFh3FL2M3py8AYT+f7GKFK6R5p5+Z3UJfNC6udblKAM2tAgYZfkH61qA7dMoMT4jJwS+OwId25A9cdNik29ZhrKA586zz9Whe2ta/FR8OuL5vvV8xXANfnudMUrV6+u6+HaxqHPSCVIrqq0D+siWKnL8w7id5Jfht3BW0nhW7QVSSmWv9fACPOKIq9ZbQI+5MqT4rrD+0Tah06uYL1j2ViYSbhikYSlMhPAfGbVjcG3cuY8jxwjNjPTj+ZWts6GhuxpQN91IMs0VytuMlw33EqgdJwVfgxRikHeoXaZti5jXlZRss/a+1CKhju8y+PkWCSC3j1JrdSdMTpGnY3JC7Syejm2Os/Dga7f34/bblP3Q8svjLB4bVxkcE0+fdOQ+qgXq6VuRH59x8zX0RCYext5XBlMN/pAwri3hnzzOVimzMQVFPEkI3zimHSrMK4Ab87Noan9FHd1u56/IrYG2oIvxr0xpLtJczSX2EONt0JiC9IpxP8mZ6u/6jgu4Ft/cRd08vLGkuFNwtqUrbx7guTjcSvoF8YE85xEELNLW8dr5qlpeclEGFHw76isKXsVQk3ehdWpi5KOr8PQy5+0xmjtkTxBQs= X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0436; 5:QBmWBVWVQ7WuLH/VV/9iIUDauxw+c9PGK618yNJX8ykx5o1uRqkAB9u5sF/b2z0X5XBSj4P1LrXWSlH/nkp1mjVgtsIlK/dpeV+OXg49jm+j5wIkuyvc+kEKiJT3HzrCOK/CL+2eb4Xwn4af1ldUNw==; 24:BMmzsHFpZHsC9IKrABUR5NPN3oqlPfbA7ks8/AGIF8WngCom1kPEnb5BOEv/MojPxHwkMCok3CtsNQKleXrbH+KjZLI7JI/0taRQty6iGw8=; 20:v4JMCycUYse5NZSjmnOxSwPKUDQJqlkCcW5is6vZAqEeNKbcfkTVWqeOXhZ2naae8ET/bZLSPntTulrDURpFQ5McRZHaIpfsFPbB3g4SVxdwagFQmYe9UT22h5SddFU8m+teKy84A9aNtk0IEiUZEPdguFvwjFNp6n+L/DgXGoTsabooPX5jlTUzQU4fShglI12X+PGppHIFUuW8l1bVf1XdX/Bas6VUvmxRxCJ2VV3UenaqjUiQcXdduZWDtPIM X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2016 03:52:32.6555 (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_195246_033178_91FEC3E3 X-CRM114-Status: GOOD ( 10.48 ) 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, 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: Tom Lendacky Add AMD XGBE device tree file, which is available in AMD Seattle RevB. Signed-off-by: Tom Lendacky --- MAINTAINERS | 1 + arch/arm64/boot/dts/amd/amd-seattle-xgbe-b.dtsi | 117 ++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 arch/arm64/boot/dts/amd/amd-seattle-xgbe-b.dtsi diff --git a/MAINTAINERS b/MAINTAINERS index e349a32..9547a68 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -685,6 +685,7 @@ M: Tom Lendacky L: netdev@vger.kernel.org S: Supported F: drivers/net/ethernet/amd/xgbe/ +F: arch/arm64/boot/dts/amd/amd-seattle-xgbe*.dtsi AMS (Apple Motion Sensor) DRIVER M: Michael Hanselmann diff --git a/arch/arm64/boot/dts/amd/amd-seattle-xgbe-b.dtsi b/arch/arm64/boot/dts/amd/amd-seattle-xgbe-b.dtsi new file mode 100644 index 0000000..8e86319 --- /dev/null +++ b/arch/arm64/boot/dts/amd/amd-seattle-xgbe-b.dtsi @@ -0,0 +1,117 @@ +/* + * DTS file for AMD Seattle XGBE (RevB) + * + * Copyright (C) 2015 Advanced Micro Devices, Inc. + */ + + xgmacclk0_dma_250mhz: clk250mhz_0 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <250000000>; + clock-output-names = "xgmacclk0_dma_250mhz"; + }; + + xgmacclk0_ptp_250mhz: clk250mhz_1 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <250000000>; + clock-output-names = "xgmacclk0_ptp_250mhz"; + }; + + xgmacclk1_dma_250mhz: clk250mhz_2 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <250000000>; + clock-output-names = "xgmacclk1_dma_250mhz"; + }; + + xgmacclk1_ptp_250mhz: clk250mhz_3 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <250000000>; + clock-output-names = "xgmacclk1_ptp_250mhz"; + }; + + xgmac0: xgmac@e0700000 { + compatible = "amd,xgbe-seattle-v1a"; + reg = <0 0xe0700000 0 0x80000>, + <0 0xe0780000 0 0x80000>, + <0 0xe1240800 0 0x00400>, /* SERDES RX/TX0 */ + <0 0xe1250000 0 0x00060>, /* SERDES IR 1/2 */ + <0 0xe12500f8 0 0x00004>; /* SERDES IR 2/2 */ + interrupts = <0 325 4>, + <0 346 1>, <0 347 1>, <0 348 1>, <0 349 1>, + <0 323 4>; + amd,per-channel-interrupt; + amd,speed-set = <0>; + amd,serdes-blwc = <1>, <1>, <0>; + amd,serdes-cdr-rate = <2>, <2>, <7>; + amd,serdes-pq-skew = <10>, <10>, <18>; + amd,serdes-tx-amp = <0>, <0>, <0>; + amd,serdes-dfe-tap-config = <3>, <3>, <3>; + amd,serdes-dfe-tap-enable = <0>, <0>, <7>; + mac-address = [ 02 A1 A2 A3 A4 A5 ]; + clocks = <&xgmacclk0_dma_250mhz>, <&xgmacclk0_ptp_250mhz>; + clock-names = "dma_clk", "ptp_clk"; + phy-mode = "xgmii"; + #stream-id-cells = <16>; + dma-coherent; + }; + + xgmac1: xgmac@e0900000 { + compatible = "amd,xgbe-seattle-v1a"; + reg = <0 0xe0900000 0 0x80000>, + <0 0xe0980000 0 0x80000>, + <0 0xe1240c00 0 0x00400>, /* SERDES RX/TX1 */ + <0 0xe1250080 0 0x00060>, /* SERDES IR 1/2 */ + <0 0xe12500fc 0 0x00004>; /* SERDES IR 2/2 */ + interrupts = <0 324 4>, + <0 341 1>, <0 342 1>, <0 343 1>, <0 344 1>, + <0 322 4>; + amd,per-channel-interrupt; + amd,speed-set = <0>; + amd,serdes-blwc = <1>, <1>, <0>; + amd,serdes-cdr-rate = <2>, <2>, <7>; + amd,serdes-pq-skew = <10>, <10>, <18>; + amd,serdes-tx-amp = <0>, <0>, <0>; + amd,serdes-dfe-tap-config = <3>, <3>, <3>; + amd,serdes-dfe-tap-enable = <0>, <0>, <7>; + mac-address = [ 02 B1 B2 B3 B4 B5 ]; + clocks = <&xgmacclk1_dma_250mhz>, <&xgmacclk1_ptp_250mhz>; + clock-names = "dma_clk", "ptp_clk"; + phy-mode = "xgmii"; + #stream-id-cells = <16>; + dma-coherent; + }; + + xgmac0_smmu: smmu@e0600000 { + compatible = "arm,mmu-401"; + reg = <0 0xe0600000 0 0x10000>; + #global-interrupts = <1>; + interrupts = /* Uses combined intr for both + * global and context + */ + <0 336 4>, + <0 336 4>; + + mmu-masters = <&xgmac0 + 0 1 2 3 4 5 6 7 + 16 17 18 19 20 21 22 23 + >; + }; + + xgmac1_smmu: smmu@e0800000 { + compatible = "arm,mmu-401"; + reg = <0 0xe0800000 0 0x10000>; + #global-interrupts = <1>; + interrupts = /* Uses combined intr for both + * global and context + */ + <0 335 4>, + <0 335 4>; + + mmu-masters = <&xgmac1 + 0 1 2 3 4 5 6 7 + 16 17 18 19 20 21 22 23 + >; + };