From patchwork Tue Oct 14 00:05:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 5077541 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2986A9F387 for ; Tue, 14 Oct 2014 00:08:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A4CB20179 for ; Tue, 14 Oct 2014 00:08:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 03359201C7 for ; Tue, 14 Oct 2014 00:08:53 +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 1Xdpd8-0002YK-Ki; Tue, 14 Oct 2014 00:06:22 +0000 Received: from exprod5og105.obsmtp.com ([64.18.0.180]) by bombadil.infradead.org with smtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xdpcx-0002Uy-Qt for linux-arm-kernel@lists.infradead.org; Tue, 14 Oct 2014 00:06:12 +0000 Received: from mail-pa0-f50.google.com ([209.85.220.50]) (using TLSv1) by exprod5ob105.postini.com ([64.18.4.12]) with SMTP ID DSNKVDxo4Iabm0/URU6f5OQNCuYo6ga3MNcl@postini.com; Mon, 13 Oct 2014 17:06:11 PDT Received: by mail-pa0-f50.google.com with SMTP id kx10so6812288pab.9 for ; Mon, 13 Oct 2014 17:05:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=d9ZW9cADs+uj/eXLJVohLtRJ2VuUZpnhRxZ2BbyRudQ=; b=ej5nFnDtCXL79DVqRS3tV6AnGtG/YUcqporfgbDCIFB3A6rfwgTD341CEMy8mklxSh Gg7vb5RWpt908U0UMtou+848zdax0NY+zhKrtrpjLNKjxES79fCYZoexDrIcBZ12GRO3 mexL+inUZV9AUKN1O5sbnHo6NYDsnqEu4IBGriIEdSRSgHtp4HwGnQmOIFJeFZ+GR9qn iD4oWzmRkNEGo12QXYKCqd2hRy+H2YsLA6o5UfHamY+G4bkezxilAOI3GU9tasTEjret e/S8TXEsvvWWf+GRX7868GLabu2HYczDPXL5kXAyX4huvJQufyqqPFaluueKaqnX7tJ3 hZvA== X-Gm-Message-State: ALoCoQk8P+chy9Wy+LIh4LMKe6Op0MyA3CaKTZvXQpL+rwvvEj7ZMoxOs7Xt3T1adylTC34PqJn3/bfLO9B4WqJg43V3gnD7+5R3pwZoWuKjmklryXsUB9LwfYw/lxR56Hpvpmt4WrlqRYpvY2P6qOU5HSP3DswmoABDumoiY0s8P0j6zSc/K3U= X-Received: by 10.70.95.199 with SMTP id dm7mr1498263pdb.95.1413245152373; Mon, 13 Oct 2014 17:05:52 -0700 (PDT) X-Received: by 10.70.95.199 with SMTP id dm7mr1498231pdb.95.1413245152169; Mon, 13 Oct 2014 17:05:52 -0700 (PDT) Received: from svdclab-13-11.amcc.com (67-207-112-226.static.wiline.com. [67.207.112.226]) by mx.google.com with ESMTPSA id xf9sm12430374pab.2.2014.10.13.17.05.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Oct 2014 17:05:51 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, romieu@fr.zoreil.com, netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/4] dtb: Add SGMII based 1GbE node to APM X-Gene SoC device tree Date: Mon, 13 Oct 2014 17:05:32 -0700 Message-Id: <1413245135-2989-2-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413245135-2989-1-git-send-email-isubramanian@apm.com> References: <1413245135-2989-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141013_170611_900532_AA42F9F0 X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) Cc: kchudgar@apm.com, patches@apm.com, linux-arm-kernel@lists.infradead.org, Iyappan Subramanian X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_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 Signed-off-by: Iyappan Subramanian Signed-off-by: Keyur Chudgar --- arch/arm64/boot/dts/apm-mustang.dts | 4 ++++ arch/arm64/boot/dts/apm-storm.dtsi | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/apm-mustang.dts b/arch/arm64/boot/dts/apm-mustang.dts index 2ae782b..71a1489 100644 --- a/arch/arm64/boot/dts/apm-mustang.dts +++ b/arch/arm64/boot/dts/apm-mustang.dts @@ -33,6 +33,10 @@ status = "ok"; }; +&sgenet0 { + status = "ok"; +}; + &xgenet { status = "ok"; }; diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index d16cc03..f45bbfe 100644 --- a/arch/arm64/boot/dts/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm-storm.dtsi @@ -176,6 +176,16 @@ clock-output-names = "menetclk"; }; + sge0clk: sge0clk@1f21c000 { + compatible = "apm,xgene-device-clock"; + #clock-cells = <1>; + clocks = <&socplldiv2 0>; + reg = <0x0 0x1f21c000 0x0 0x1000>; + reg-names = "csr-reg"; + csr-mask = <0x3>; + clock-output-names = "sge0clk"; + }; + xge0clk: xge0clk@1f61c000 { compatible = "apm,xgene-device-clock"; #clock-cells = <1>; @@ -446,6 +456,20 @@ }; }; + sgenet0: ethernet@1f210000 { + compatible = "apm,xgene-enet"; + status = "disabled"; + reg = <0x0 0x1f210000 0x0 0x10000>, + <0x0 0x1f200000 0x0 0X10000>, + <0x0 0x1B000000 0x0 0X20000>; + reg-names = "enet_csr", "ring_csr", "ring_cmd"; + interrupts = <0x0 0xA0 0x4>; + dma-coherent; + clocks = <&sge0clk 0>; + local-mac-address = [00 00 00 00 00 00]; + phy-connection-type = "sgmii"; + }; + xgenet: ethernet@1f610000 { compatible = "apm,xgene-enet"; status = "disabled";