From patchwork Fri Jun 23 05:04:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Wu X-Patchwork-Id: 9805699 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 7098E6038C for ; Fri, 23 Jun 2017 05:14:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 683112867E for ; Fri, 23 Jun 2017 05:14:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CB94286B6; Fri, 23 Jun 2017 05:14:56 +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 128F82867E for ; Fri, 23 Jun 2017 05:14:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=6R5dknR3wnJaqGpuTogIOTWT72PkUG9GhuNfbLBkuX4=; b=u4csYKLELbFnYqCznG9Z+8gth+ 66l3sZRfBrQBlBXeRbqbJQA6AZ/HIfun+LixheG+QdAt0vgNa4R0PstL8/4wvuVV3Utg+X29udzMs x/VtrNSA7GAmyWs0nwucfhB3NHiMdXKsnpP5RTvqhj8SBH9ljh9+6PTGapIR4zwB5/NdWMA0KQ+gd v/gRzX+NECSucg/5eomsopT5uSJKbiO0SyBPqS2Qxx0LA5qQX+2mmW785wQZ6pesSe8e02LyHU2se r7Hn1xhpVzVIPKixI1R9z/NXiVkjdSaMzALjWmpqhQQPZKdNDmUjOhdOOvmpCDHegh3Lfz3Zjxi7E a1L/j9QA==; 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 1dOGvm-0001aU-F4; Fri, 23 Jun 2017 05:14:54 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dOGvb-0001F2-U7; Fri, 23 Jun 2017 05:14:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Sz+FYRM0hLrAZF+ufpn10n/O4eOPkPcXb5fyzRYTmuM=; b=jvoFFPas3Z3wQdyorM2OkK6hr XtFlusbieIZNwg+HJSyPl0aXcmEKFDdMiVDFHrzfKb6la6743XDncjuyDFWXrNey2ArDr1omfzPi/ EYKEJqtELQxG7vSdcGswX9f2dSgDQkYhlyvsQ9urvx2n9EFOolpG4G6ys+zhmfIE6C3RUK9vOH6Z2 lpwmwYy9PnHIcCNoFMccLVOkkwhDflnG4f0uC5N5fWrozZVvSDSiDNaQrtIw9aUInsgb9GWBNVHDn 4IKMBJf3S6GgME6Rd+jhfsnblqqEA9YlpACz+gGVZG8/Rqse4inXWP1TEzvU94Cfj/daiePs0+15N z33j3PxRw==; Received: from lucky1.263xmail.com ([211.157.147.130]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dOGik-0004fh-Ce; Fri, 23 Jun 2017 05:01:28 +0000 Received: from david.wu?rock-chips.com (unknown [192.168.167.140]) by lucky1.263xmail.com (Postfix) with ESMTP id 56C2B1EEE6E; Fri, 23 Jun 2017 13:00:35 +0800 (CST) X-263anti-spam: X-MAIL-GRAY: 1 X-MAIL-DELIVERY: 0 X-ABS-CHECKED: 4 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 8D707378; Fri, 23 Jun 2017 13:00:31 +0800 (CST) X-RL-SENDER: david.wu@rock-chips.com X-FST-TO: davem@davemloft.net X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: david.wu@rock-chips.com X-UNIQUE-TAG: <224687e4c0774cdf67137203a1434b49> X-ATTACHMENT-NUM: 0 X-SENDER: wdc@rock-chips.com X-DNS-TYPE: 0 Received: from localhost.localdomain (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 32134NYRT77; Fri, 23 Jun 2017 13:00:35 +0800 (CST) From: David Wu To: davem@davemloft.net, heiko@sntech.de, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, olof@lixom.net, linux@armlinux.org.uk, arnd@arndb.de Subject: [PATCH 11/11] ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb Date: Fri, 23 Jun 2017 13:04:09 +0800 Message-Id: <1498194249-8368-1-git-send-email-david.wu@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1498192929-7519-1-git-send-email-david.wu@rock-chips.com> References: <1498192929-7519-1-git-send-email-david.wu@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170623_060127_246459_0A9FC1CA X-CRM114-Status: UNSURE ( 5.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangtao@rock-chips.com, andrew@lunn.ch, hwg@rock-chips.com, f.fainelli@gmail.com, alexandre.torgue@st.com, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, David Wu , peppe.cavallaro@st.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Let's enable the gmac2phy, make the gmac2phy work on the rk3328-evb board. Signed-off-by: David Wu --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch/arm64/boot/dts/rockchip/rk3328-evb.dts index cf27239..b9f36da 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-evb.dts @@ -50,6 +50,23 @@ chosen { stdout-path = "serial2:1500000n8"; }; + + vcc_phy: vcc-phy-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc_phy"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&gmac2phy { + phy-supply = <&vcc_phy>; + clock_in_out = "output"; + assigned-clocks = <&cru SCLK_MAC2PHY_SRC>; + assigned-clock-rate = <50000000>; + assigned-clocks = <&cru SCLK_MAC2PHY>; + assigned-clock-parents = <&cru SCLK_MAC2PHY_SRC>; + status = "okay"; }; &uart2 {