Received: by 10.192.165.148 with SMTP id m20csp82330imm; Fri, 4 May 2018 07:03:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqO3JahzWTFlKT9ilOJFdD672zVY16OFeiD75z+m0q9wTLbYthnTC/u2/D55Bi2X/IuaEP+ X-Received: by 2002:a63:77c3:: with SMTP id s186-v6mr21634394pgc.296.1525442601185; Fri, 04 May 2018 07:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525442601; cv=none; d=google.com; s=arc-20160816; b=h9Lsu1czqa9Y+QEHtjF0uyFbgPXg932WMAu9ibuZoVyvp0iEaHVJGF8nP6X6o6HObf 3ZUO4HdyxjvRK6nzXwmHXpvVkZZWtugeZKubnHaWSeovGPUjLDrfqZhTMVH1KPQoUHPi 77J1PTpteyiz2vtGvtc66HRBVwRZsWixgFn6k60jQejSr7AazuvHuQTHnlUFmBE+WW7S NLuvIuBDjFVN9ljdcUPEy0onXbPRe49DpDtr7G1toHJT6GbBrU96cDMKorIPE7CSLCH4 VIh1JV8LBvbtH4OfSwNX/8WWZJyrcULitjEIEf+5ThP09Xd4U66rw1vqbba4mg7OSRo/ S+lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=NRGSbTuVLFB6sYEGF7E5+s0lc3/hSQrVlnxVjMmOXww=; b=r7WfvsLm1F9RdfXi6t0oGJ9fcA42VYt5ClW/bTkbs74Hacn5qtE7oCxJRvtuDKN2ug 3jVoWQbWi7byq6phQMCDlMqOYPrOZWv+OFsEJSqQWwTIrYm7D+/jHtFtL1XeABv4ViFK yQDxUlTTbz2GC4MhKIcSI0rdWOdpDl/46vQFte2psk4svmcn1msgRxcSXj6VCiQI1AFn Kxskcj5+djHJBESuAGT2wB9l3ZWP0ZFrUTZB6odS9cJvSBeEsdrJOYJjeAPFRWrDAAZV LNLiN/yN45tviJJStOEcgjBuBtinKuu2zZa98fSL5cLe9FNpoKwzvin6utRYBRcUFPGj njHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7-v6si13379624pge.559.2018.05.04.07.03.06; Fri, 04 May 2018 07:03:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752090AbeEDOCK (ORCPT + 99 others); Fri, 4 May 2018 10:02:10 -0400 Received: from mail.bootlin.com ([62.4.15.54]:60436 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751917AbeEDOAQ (ORCPT ); Fri, 4 May 2018 10:00:16 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 9D37220A21; Fri, 4 May 2018 16:00:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 6ABF020A23; Fri, 4 May 2018 16:00:04 +0200 (CEST) From: Antoine Tenart To: davem@davemloft.net, kishon@ti.com, linux@armlinux.org.uk, gregory.clement@bootlin.com, andrew@lunn.ch, jason@lakedaemon.net, sebastian.hesselbarth@gmail.com Cc: Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, maxime.chevallier@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com, linux-arm-kernel@lists.infradead.org, Antoine Tenart Subject: [PATCH net-next v2 10/13] arm64: dts: marvell: mcbin: add 10G SFP support Date: Fri, 4 May 2018 15:56:40 +0200 Message-Id: <20180504135643.23466-11-antoine.tenart@bootlin.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180504135643.23466-1-antoine.tenart@bootlin.com> References: <20180504135643.23466-1-antoine.tenart@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Russell King This patch adds the SFP cage description in the Marvell Armada 8040 mcbin, for both 10G interfaces. Signed-off-by: Russell King [Antoine: small reworks, commit message] Signed-off-by: Antoine Tenart --- .../boot/dts/marvell/armada-8040-mcbin.dts | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts index 81de03ef860d..eaa67de8c2bb 100644 --- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts +++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts @@ -64,6 +64,30 @@ compatible = "usb-nop-xceiv"; vcc-supply = <&v_5v0_usb3_hst_vbus>; }; + + sfp_eth0: sfp-eth0 { + /* CON15,16 - CPM lane 4 */ + compatible = "sff,sfp"; + i2c-bus = <&sfpp0_i2c>; + los-gpio = <&cp1_gpio1 28 GPIO_ACTIVE_HIGH>; + mod-def0-gpio = <&cp1_gpio1 27 GPIO_ACTIVE_LOW>; + tx-disable-gpio = <&cp1_gpio1 29 GPIO_ACTIVE_HIGH>; + tx-fault-gpio = <&cp1_gpio1 26 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&cp1_sfpp0_pins>; + }; + + sfp_eth1: sfp-eth1 { + /* CON17,18 - CPS lane 4 */ + compatible = "sff,sfp"; + i2c-bus = <&sfpp1_i2c>; + los-gpio = <&cp1_gpio1 8 GPIO_ACTIVE_HIGH>; + mod-def0-gpio = <&cp1_gpio1 11 GPIO_ACTIVE_LOW>; + tx-disable-gpio = <&cp1_gpio1 10 GPIO_ACTIVE_HIGH>; + tx-fault-gpio = <&cp0_gpio2 30 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&cp1_sfpp1_pins &cp0_sfpp1_pins>; + }; }; &uart0 { @@ -180,6 +204,10 @@ "mpp60", "mpp61"; marvell,function = "sdio"; }; + cp0_sfpp1_pins: sfpp1-pins { + marvell,pins = "mpp62"; + marvell,function = "gpio"; + }; }; &cp0_xmdio { @@ -188,11 +216,13 @@ phy0: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c45"; reg = <0>; + sfp = <&sfp_eth0>; }; phy8: ethernet-phy@8 { compatible = "ethernet-phy-ieee802.3-c45"; reg = <8>; + sfp = <&sfp_eth1>; }; }; @@ -258,6 +288,10 @@ }; &cp1_pinctrl { + cp1_sfpp1_pins: sfpp1-pins { + marvell,pins = "mpp8", "mpp10", "mpp11"; + marvell,function = "gpio"; + }; cp1_spi1_pins: spi1-pins { marvell,pins = "mpp12", "mpp13", "mpp14", "mpp15", "mpp16"; marvell,function = "spi1"; @@ -266,6 +300,10 @@ marvell,pins = "mpp6", "mpp7"; marvell,function = "uart0"; }; + cp1_sfpp0_pins: sfpp0-pins { + marvell,pins = "mpp26", "mpp27", "mpp28", "mpp29"; + marvell,function = "gpio"; + }; }; /* J27 UART header */ -- 2.17.0