From patchwork Wed Jul 12 16:54:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory CLEMENT X-Patchwork-Id: 9837163 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DB4FA602BD for ; Wed, 12 Jul 2017 16:55:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8A4920952 for ; Wed, 12 Jul 2017 16:55:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B9FA528536; Wed, 12 Jul 2017 16:55:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CC2CF20952 for ; Wed, 12 Jul 2017 16:55:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=03dW6v/ER9JzFRwd67JizSSuqzpjPvZpGyBxwdkGd+4=; b=RI4ZfDXw2l7Bf7AAV1AQtTgok kiieH5uTV+yD3ktqQfpK16mPenXQy9te2S+/sIi8LubOfczHl2vcmIJ+1B4aoNCAuVx+MyMQKTiU+ QQmBRTO33dN300hkXu4pqyosHoEqdARv0ROI/Q5nn42ho0Zb8G0LobdKT+BXYxClcR99E7zXlmRAo 8XtB8XU+0S2H7lkJ42jxGwWMpRucvYwfpe9P9Y89HRr/WW380XXgJshEYYjW7Yl6isj5rIKXuDSfb ZJfhSj8DCQujwQ9OBFOW4r+yITM8tlQy1droQuHwsneOa2nCixOlCxmG+m9CLgYuoJYXlCx3TwGhc mSmbi/cbQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dVKv0-0008Nf-VR; Wed, 12 Jul 2017 16:55:18 +0000 Received: from mail.free-electrons.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dVKuw-00075s-6a for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2017 16:55:17 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 0586421D6F; Wed, 12 Jul 2017 18:54:51 +0200 (CEST) Received: from localhost (unknown [93.29.146.83]) by mail.free-electrons.com (Postfix) with ESMTPSA id C3D752092B; Wed, 12 Jul 2017 18:54:40 +0200 (CEST) From: Gregory CLEMENT To: Russell King - ARM Linux Subject: Re: [PATCH 0/6] Macchiatobin updates References: <20170708191317.GM4902@n2100.armlinux.org.uk> Date: Wed, 12 Jul 2017 18:54:42 +0200 In-Reply-To: <20170708191317.GM4902@n2100.armlinux.org.uk> (Russell King's message of "Sat, 8 Jul 2017 20:13:17 +0100") Message-ID: <87fue1bnot.fsf@free-electrons.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170712_095514_692162_BA9EADC9 X-CRM114-Status: GOOD ( 24.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Andrew Lunn , Jason Cooper , devicetree@vger.kernel.org, Catalin Marinas , Will Deacon , Rob Herring , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Russell King, On sam., juil. 08 2017, Russell King - ARM Linux wrote: > This series, based upon the 4.12-rc6 backports branch in the MISL tree: > - adds a maintainer entry for the Macchiatobin board. > - adds GPIO interrupt support to the CP110s > - adds the pinmux entries > - corrects the 5V regulator GPIO entry > - adds support for the I2C mux (used for the SFP slots) > - adds PCIe support > > All entries include the appropriate pinmux and GPIO configuration. > > PCIe support has not been tested locally as I have no PCIe cards to > test with; this patch includes support for the PCIe reset GPIO signal. > If others can test that patch and let me know whether it works, I would > be most grateful. > The first patch had been applied on mvebu/arm64-for-4.14. Patch 2 to 6 had been applied on mvebu/dt64-for-4.14. For the patch 4, I merged it with the patch that Thomas previously sent because it was not in mainline yet even if it was on the backport branch. The resulting patch is attached. Finally I tested the last patch with an Ethernet PCIe card it worked well, but the reset part was not tested as I don't know how it should be tested. As soon as the v4.13-rc1 will be released then the branches will be rebased on it and renamed mvebu/arm64 and mvebu/dt64. Thanks, Gregory > MAINTAINERS | 6 ++ > arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 89 +++++++++++++++++++++- > .../boot/dts/marvell/armada-cp110-master.dtsi | 11 ++- > .../arm64/boot/dts/marvell/armada-cp110-slave.dtsi | 11 ++- > 4 files changed, 112 insertions(+), 5 deletions(-) > > -- > RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ > FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up > according to speedtest.net. From e8f260a4b40e658ab473ff8509192dcc08862d68 Mon Sep 17 00:00:00 2001 From: Russell King Date: Wed, 12 Jul 2017 14:56:55 +0200 Subject: [PATCH] arm64: dts: marvell: fix USB3 regulator definition on MacchiatoBin Due to the lack of GPIO support, the USB3 regulator definition was left unfinished in the MacchiatoBin DT description. Now that GPIO support is available, this commit adjusts the Device Tree to properly describe the USB3 regulator. [gregory.clement@free-electrons.com: use commit log from Thomas] Signed-off-by: Russell King Signed-off-by: Thomas Petazzoni Signed-off-by: Gregory CLEMENT --- arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts index fe91433d6fcd..da13ab2103aa 100644 --- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts +++ b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts @@ -46,6 +46,8 @@ #include "armada-8040.dtsi" +#include + / { model = "Marvell 8040 MACHIATOBin"; compatible = "marvell,armada8040-mcbin", "marvell,armada8040", @@ -77,11 +79,13 @@ v_5v0_usb3_hst_vbus: regulator-usb3-vbus0 { compatible = "regulator-fixed"; + enable-active-high; + gpio = <&cpm_gpio2 15 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&cpm_xhci_vbus_pins>; regulator-name = "v_5v0_usb3_hst_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; - /* actually GPIO controlled, but 8k has no GPIO support yet */ - regulator-always-on; status = "okay"; }; @@ -136,6 +140,10 @@ marvell,pins = "mpp37", "mpp38"; marvell,function = "i2c0"; }; + cpm_xhci_vbus_pins: xhci0-vbus-pins { + marvell,pins = "mpp47"; + marvell,function = "gpio"; + }; cpm_sdhci_pins: sdhci-pins { marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59", "mpp60", "mpp61"; -- 2.13.2