Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1144983imu; Wed, 23 Jan 2019 11:30:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Nwz7VMjQcDUsTsitawRsRPwcOg2Qzt9Kb3i1Jzh7mAvMRomwquu3afeZFVTVfoYC/sifx X-Received: by 2002:a63:8c0d:: with SMTP id m13mr3188133pgd.422.1548271856867; Wed, 23 Jan 2019 11:30:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548271856; cv=none; d=google.com; s=arc-20160816; b=IA8HB/BGL7rkPisA6y0CCAQFhd+SRk4vYGD8GnoJgL35J7gd3L5wHNjhTSrcsXCSNO 93mWPWl1Fh1GXb+X8oEMXZVlfHPEuPQ6cMCVq+b013cj+gjVVd7GbVKhkSBkBVtdqgEe FcHoK/+LztuDnag5gGa/kvIYwgjMgyjXZ9+2wL18AtAIGyHowuLGoILVqXhaV8X2LtdB 4lW4MsoCw6QhXJ/9WGhjA/FuE+n09XBgFjES0lroY7EhSeFmVRBnlX1QzbD2XkNtAtKY IhhcnYWBCdbDiTlXRqMM/Lf3Lc0AxhH1DaqvlD0NDeGVxfgk2tSZCCqs4dTDtG7fo1Nj 3CIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=xm3LIsp1Rc+PdSfoLt6efwhwAxxedTYbxsbzuQBlX3E=; b=G5qLcj+gUNE0kfqZax3xr/Hj9ClLAX9r5kXLaPlwU3Z91fKdiM3XmL5FO/E9UnzPkk 7zu6zhcv7r9qiVL2w7+6TNBIUlfBUvQAvil66CVvCQ3tZ6lcot3UKZxARQqIBn5+xiHH HC1EENYZVoo01Y378QL3kYFyF36CEreKKEn214bwtoGKqR6syqk8tgwP+snKdTX9akwO Bm6OeoKP7m4ypa3znGU/cpw039uBa8UdeDVJcd6NwxVQmsua/tTzoCgUPsRRW/sFffGh hsX31tk2hbmDL049AvgZEm+BvMqlRPX8MIuE4CnmlYl2/sGrlGfPkhJsi9RM93jJk509 MeJA== 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 a2si15966856pgd.461.2019.01.23.11.30.38; Wed, 23 Jan 2019 11:30:56 -0800 (PST) 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 S1726324AbfAWTad (ORCPT + 99 others); Wed, 23 Jan 2019 14:30:33 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:52863 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbfAWTad (ORCPT ); Wed, 23 Jan 2019 14:30:33 -0500 X-Originating-IP: 88.190.179.123 Received: from localhost (unknown [88.190.179.123]) (Authenticated sender: repk@triplefau.lt) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id DDC011BF20E; Wed, 23 Jan 2019 19:30:28 +0000 (UTC) From: Remi Pommarel To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Rob Herring , Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Remi Pommarel Subject: [PATCH] arm64: dts: armada-3720-espressobin: Configure RGMII and SMI pins Date: Wed, 23 Jan 2019 20:39:46 +0100 Message-Id: <20190123193946.13594-1-repk@triplefau.lt> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to be able to communicate with the 88e6341 switch some pins have to be repurposed as RGMII and SMI pins. This fixes ethernet support on system booted via a bootloader that has not already configured those pins (e.g. mainline u-boot, or vendor u-boot compiled without ethernet support). Signed-off-by: Remi Pommarel --- This should be applied along with pinctrl fixes from https://lkml.org/lkml/2018/12/21/507 which have been merged in next branch of linux-pinctrl tree. --- arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts | 2 ++ arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts index 846003bb480c..b60897edc885 100644 --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts @@ -196,6 +196,8 @@ }; ð0 { + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>, <&smi_pins>; phy-mode = "rgmii-id"; status = "okay"; diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi index e05594ea15fb..f61538910901 100644 --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi @@ -271,6 +271,11 @@ function = "mii"; }; + smi_pins: smi-pins { + groups = "smi"; + function = "smi"; + }; + sdio_pins: sdio-pins { groups = "sdio_sb"; function = "sdio"; -- 2.20.1