From patchwork Wed Aug 31 06:13:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9306371 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 AB68D601C0 for ; Wed, 31 Aug 2016 06:16:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D68328B0B for ; Wed, 31 Aug 2016 06:16:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90C4628D99; Wed, 31 Aug 2016 06:16:30 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 245C828B0B for ; Wed, 31 Aug 2016 06:16:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1beynq-0001Hw-0I; Wed, 31 Aug 2016 06:15:14 +0000 Received: from mail-pa0-f68.google.com ([209.85.220.68]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1beyn1-0000UA-AJ; Wed, 31 Aug 2016 06:14:26 +0000 Received: by mail-pa0-f68.google.com with SMTP id hh10so2112071pac.1; Tue, 30 Aug 2016 23:14:02 -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=TUMk/4XIPb3/foNN8kXBPHxzbKB/C4/KXKoq5UGVCzY=; b=AxvmqKeEN0vMzxKh4lxyrJhJaJuUEtzV3EP+ayGGHYa0gW5PrFuk7dURBeSzE68Wuc usdZyta76+C+GYfa4u3G6hxVP4zKz95poBAhhz8UJR0G2r0R7Twe3fF1bIKuPlx4NWqs Vn5k/Rw3mNa8KtT7e+yfCx8yX4ZUCDWNZjs1RhnvXHVrSbPZmeZlbCiuHgQkK+MiDbha Do/aliw9/qC5aKiSgLXdQ6Zfeswto1WmIP90cQS/ZibuaDQMCoErSdvGJxCEMMvqg0tJ x4scawLx+CFWGlhN46X7qzw7XCv6NrdfFC+MoDE7adLWFNRRSmCRGJI2VlUVajnkqwRP 8oHw== X-Gm-Message-State: AE9vXwNiWJEB+aT/ShSj0T1txZFNt2JXYhSqKgmDArapVXa9JoshHMd1Fs8BdeaxfA+O6g== X-Received: by 10.66.242.166 with SMTP id wr6mr13700237pac.147.1472624042514; Tue, 30 Aug 2016 23:14:02 -0700 (PDT) Received: from localhost.localdomain (50-196-170-193-static.hfc.comcastbusiness.net. [50.196.170.193]) by smtp.gmail.com with ESMTPSA id n80sm61618441pfi.19.2016.08.30.23.14.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Aug 2016 23:14:01 -0700 (PDT) From: Caesar Wang To: Heiko Stuebner , netdev@vger.kernel.org Subject: [RESEND PATCH 4/4] arm64: dts: rockchip: enable the gmac for rk3399 evb board Date: Wed, 31 Aug 2016 14:13:48 +0800 Message-Id: <1472624028-7082-5-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1472624028-7082-1-git-send-email-wxt@rock-chips.com> References: <1472624028-7082-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160830_231423_650710_128524B8 X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Brian Norris , Arnd Bergmann , Masahiro Yamada , Frank Wang , Catalin Marinas , dbasehore@chromium.org, Will Deacon , Douglas Anderson , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Roger Chen , Jianqun Xu , linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 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 We add the required and optional properties for evb board. See the [0] to get the detail information. [0]: Documentation/devicetree/bindings/net/rockchip-dwmac.txt Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts index d47b4e9..ed6f2e8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-evb.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-evb.dts @@ -94,12 +94,43 @@ regulator-always-on; regulator-boot-on; }; + + clkin_gmac: external-gmac-clock { + compatible = "fixed-clock"; + clock-frequency = <125000000>; + clock-output-names = "clkin_gmac"; + #clock-cells = <0>; + }; + + vcc_phy: vcc-phy-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc_phy"; + regulator-always-on; + regulator-boot-on; + }; + }; &emmc_phy { status = "okay"; }; +&gmac { + phy-supply = <&vcc_phy>; + phy-mode = "rgmii"; + clock_in_out = "input"; + snps,reset-gpio = <&gpio3 15 GPIO_ACTIVE_LOW>; + snps,reset-active-low; + snps,reset-delays-us = <0 10000 50000>; + assigned-clocks = <&cru SCLK_RMII_SRC>; + assigned-clock-parents = <&clkin_gmac>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + tx_delay = <0x28>; + rx_delay = <0x11>; + status = "okay"; +}; + &pwm0 { status = "okay"; };