From patchwork Wed Jan 27 21:11:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suravee Suthikulpanit X-Patchwork-Id: 8142851 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 DCA52BEEE5 for ; Wed, 27 Jan 2016 21:15:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BAFC520254 for ; Wed, 27 Jan 2016 21:15:35 +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 B24D62026D for ; Wed, 27 Jan 2016 21:15:34 +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 1aOXPg-0004Wu-5F; Wed, 27 Jan 2016 21:14:04 +0000 Received: from mail-bl2on0058.outbound.protection.outlook.com ([65.55.169.58] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOXOQ-0003dk-7w for linux-arm-kernel@lists.infradead.org; Wed, 27 Jan 2016 21:12:48 +0000 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Suravee.Suthikulpanit@amd.com; Received: from ssuthiku-ubuntu-lt.amd.com (165.204.77.1) by BLUPR12MB0434.namprd12.prod.outlook.com (10.162.92.14) with Microsoft SMTP Server (TLS) id 15.1.390.13; Wed, 27 Jan 2016 21:12:22 +0000 From: Suravee Suthikulpanit To: , , , , , Subject: [PATCH 10/13] dtb: amd: Add AMD XGBE device tree file Date: Wed, 27 Jan 2016 15:11:58 -0600 Message-ID: <1453929121-12171-11-git-send-email-Suravee.Suthikulpanit@amd.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453929121-12171-1-git-send-email-Suravee.Suthikulpanit@amd.com> References: <1453929121-12171-1-git-send-email-Suravee.Suthikulpanit@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BLUPR11CA0006.namprd11.prod.outlook.com (10.141.240.16) To BLUPR12MB0434.namprd12.prod.outlook.com (25.162.92.14) X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0434; 2:zNvfkfoPRKKJvatE1lthV5FvgatKncruQzZdI2fWW69S2kLLUxDGc/rHMCgnECh4qrCvczHj/4WSEEMhHyOm7CdutkCsArEtYyUzMTYPqjNbsvQrbm0eqozeXIUSU3VgGb0umZINg/vi1KC1+UmpvA==; 3:Lszkh91Ig9PQu7km/0jIj3LJMrD5j0EJMdztLD6XPyayE+Hs79IoifLnLY6jhkxsrOfGcYanGHGfX3/eTIqlvDpkRiT3N3pGHbBAS6fw4/PgVWAeWMOrHwxHpiM6HuAY; 25:SWcjG5kgXLDC4kurqGWE1CPQNYWT7B3iNNGbZNHqdxTyQOsAnfsdLwt1L+E7/YjdzPlGVVFWR6KZEQ2FayWSyZFIPcSmfs/dafaSFoXhI4GjT6xXpZDDOc3hDrjxfCLmbq53OHq+bL8yaGT8w7DCzrfIhKCWxEw2PpFDoU0/Eeros+GlByW+K6+UEEtYdHSTC8XlxlMrzPSvdK/dNHSgEyLXdHG6olmc+Pp5shwsflXVe27usL2WtlHxA5MyDV8G X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0434; X-MS-Office365-Filtering-Correlation-Id: ac4b8011-d5ff-4c4e-2053-08d3275e8d03 X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0434; 20:v+0AjoWRn08woCQuDKQ7Kn9SHcDnaIgK3aw0BI8Ah1robdJZ9Y/XJkRdaSiFITmWq2oP97EN6oyrKgZJJMSmMofK8dE7Ci0QtMcoVaMh26Jhx/FO2zVFnwyhIJ+qvONe3wxNkog2tNGS3WHmpZF2bhrzXm2+81huYabroPLRQ8LbY5hDw7kT/aECJiyqi2RXmNiKxpBbUiHlhq/CPnBag96wAI0CGJ2k0DIDTPYKkCZBjm8EzlVkw/o6eF1Z4ikJQTlXxqK4UQDwPdPUTICbKghbp5amelNqgzY5rCdJsG9nOATLUugHNBC/puQLRmjfBfS4Lu1hQO4qGi/APunGm3wwyvpZhbic050R66rqYvvA1hcuzyptm9VB1fBE8lNoaQ28K2szR5TTpbKtsBxIo+iQj2vC942A/kkWWkzcc1KPLszhM5SQHlPkvtFcEU6AIj7u+593G+MOWwHYNwvCwSkT8Ilp0LLGUd5aPlK/vpvVLAzOkkIn6hlohp1LCsTB; 4:pFbC3keBM6RAgAQab3JEV6yACDQaRoj57HkoQUaHVq0tLfe898JR60OO6TvNi3DA4oimGEU4LLYT2BBn3m+j+IzWjF4h7/oPoiN5DFWxuB245L7jtyzqTv5uEgOGSrwRxrnDy/5aUmw0nWzDSNfiQ1qd5h3JgRn9E6bC9QR92dPpWnlQ8uGAk6YC69bJGGLg5pPGyPOhRcrGXDitvl/f75sfUfFlQdHja3kWFtGgmtqyBFJMxhAv1cR7dSopXFkzIlGHp2C7LVFRSELaEMwSPEtpJ03D5+Zo3/5nsEHuZTUr/D7r0KhQBASDKA9KTbKvzaS/781SBdy/33C76xgup+23EyOzLPuHfnwX+UA6RpxyN3tAiaCAqYod5OXC33zg0w94HCkSCNxHWTll0/kHJQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BLUPR12MB0434; BCL:0; PCL:0; RULEID:; SRVR:BLUPR12MB0434; X-Forefront-PRVS: 0834BAF534 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(189002)(199003)(47776003)(97736004)(53416004)(5001770100001)(101416001)(586003)(48376002)(5008740100001)(5004730100002)(122386002)(42186005)(6116002)(3846002)(105586002)(50466002)(19580395003)(3470700001)(189998001)(19580405001)(1096002)(77096005)(66066001)(87976001)(106356001)(36756003)(2950100001)(50986999)(86362001)(229853001)(76176999)(40100003)(5003940100001)(4326007)(2906002)(50226001)(92566002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR12MB0434; H:ssuthiku-ubuntu-lt.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR12MB0434; 23:k6pXVTck7EQnCI5GKp5p6Pro9Jra4CDq5hGGWqBkG?= =?us-ascii?Q?u7Mi4LOAf7gS7XRUtLgVeDUpbWukk/Xxe9kFwEnQlmklTZ5emnPeo4l4tqO4?= =?us-ascii?Q?zGIfZxjcmuq0+pIHbrOPGvfyccieYh++6tPSgLmC82bZvBAxPB6jGV4DEPj7?= =?us-ascii?Q?4c5u9ez1/UnP7S9eiUsPjJrHNVNp7q05FBSg5ioajfi4BuPTvHA9GFKRnCyL?= =?us-ascii?Q?STuKpSgb2LYhEba7Or6wSLKWLVwna5+vbwMno5atPYN+MbWC8IiauJsiSx3M?= =?us-ascii?Q?zqF06g6vQrdMBk6uU6PdIg2UUNO4gKpD6itOB4Xi/YfBEN/EgrS0vTGaVL+5?= =?us-ascii?Q?pySQhESkHgvGiCCgZLbVfi7yky0j23R0Lt3NdwKNfy1nHr69qTbhMoquFLfg?= =?us-ascii?Q?h1+zdBxRen0ozzkCYep8LLPOBr2IXTJhFbG+mBZmNSlpS+giy2uwWLd7Xk3r?= =?us-ascii?Q?GSZ1iq55e85UqUT9KY7jFIyOaujzvfyZR4Q9v8YFPfknY9qnkroHbAugVRl7?= =?us-ascii?Q?zWPqGScopE+T8Z1Xi4Lnu8X/tV/Bs3RKu04B0okxsvdgGCSvTkHcZLmvOgmm?= =?us-ascii?Q?p8cLshY5305aYBbioBEolo9EZN8q2rZ2vah/9uw6rOufejX9sYBf0/IHBjp3?= =?us-ascii?Q?1KnuY4SDk3/uV8cut1FWrs0CaKj7uvzqoSQNm/tjTJcq4+RDe5q49mbvm49w?= =?us-ascii?Q?MbnyOz7FL8KjDUdStAsQcGCLwCZ5FrHkgwLhxJnmwP3Tqxad5/kngF2fWZzZ?= =?us-ascii?Q?oNedGygtmDUdDGUVhuGvA+eXeojE1lM7LVCs2UmDICRLy4EdeQuzFXn0s+jK?= =?us-ascii?Q?1IhWBGK/wfdffeG6EsyI/zm16VwAZGjzFXjqIP980tK5zlF15rblowHoNm6e?= =?us-ascii?Q?Ey8lCKWQ4eTaVEIe7dLcX2o7vogOu6Vlr/ds1CCAlb/HfRIFix2Jkj53W6rn?= =?us-ascii?Q?deiAcPT+Awa5dMGSz3flQ5LjLO1UDroGHsvvokWuvazaksMtlu4SZjremSj5?= =?us-ascii?Q?tWigHlrFq7JIKwgMttnQWDm23HL2I6bfD4CLpw70TQ3qw84NIX6ouEQItIeW?= =?us-ascii?Q?fJNN7U=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR12MB0434; 5:6vMJjSFEJe35hAMzNR2voEz3APxb8LsB+Ikk4o0cnvkiMcwGA20ds6d5ixCu4US3aVRufpOCi4zey7+NQf0snAVasS7VyBRt8xuihElLpdEGGoCIcg8rkeMWC38qTV39wqbbtBq9ZGOlsBr5f50vOg==; 24:mV+3eOtKH+2LuFAjub3kfzmaR4so9squwk5O/UxKijH2pXmhf7WcOgNFwiIGHKX95jlUfr0FXFEa9wRj35E+HPWk1UELhpztiNM/EjKKUHE=; 20:efnpZzIqecuutX15Grb+bhs8hh3vDW1L39tPGv2lM8hnemdqW/u1CTziwQUZfn3jCDEXAPB39oh6dNYV38h0gaD+/9MC5l7MtoKrcNN58NlL3CyQI6/kgMrtNEG7BXOfCVvrc7c25S3ncdsJBAlA74bW8AUaxnDUWldoQILU0J9zYyr8z6XoXpYw++wSvYo+1J5UcFD7HydDOqB1aU70LnIqltOfvFHgnP4SfON4GfTqvDeUeQvhpeh41zwT/7Jh X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jan 2016 21:12:22.8698 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0434 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160127_131246_500161_DC0CD3FB X-CRM114-Status: GOOD ( 11.73 ) 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.2 required=5.0 tests=BAD_ENC_HEADER,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 8179121..d525585 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -682,6 +682,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 + >; + };