From patchwork Mon Oct 16 17:13:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10009383 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 B1BA260235 for ; Mon, 16 Oct 2017 17:14:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96E491FFFF for ; Mon, 16 Oct 2017 17:14:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B4B520572; Mon, 16 Oct 2017 17:14:26 +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, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED 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 2F27B2858C for ; Mon, 16 Oct 2017 17:14:26 +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: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:In-Reply-To: References:List-Owner; bh=nkj/tEeIcixRQF1Gt94b7SeyM7ZeDXchzq8ssmx4j7Y=; b=Kvy uPVqfD2hna7ctPc8PJ4gtXz+sl062ZklwGTI+rNknCFOF90whYskz08Jl9U+0FToKR17yuTdloCPu MIacWIUjzoXUrKNbRHS8u3JJ6IPZSeXHVt4Mfva0HeNVPWv/JGUi2rH04NNW92075C+Yg9C0SphiW pm8FxrKrBATx2mqKyoyCGHgHw6C2CezaueHNsgko7Mpl630C/fazbRUPWeUx4khEL5IoIL50KO5q+ 5OnVRaXRjUow7mIOVqh/SHP3lPCChasqOOulkcopI5bKIKxMJO+oGyMzpEqVEx0nQHx4W30O6bMYo Y2LdJqq9fDDy+zkLMDlDNNXwxXiEQtw==; 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 1e48xn-0004A9-Nz; Mon, 16 Oct 2017 17:14:03 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e48xi-00045q-6W; Mon, 16 Oct 2017 17:14:01 +0000 Received: by mail-pg0-x243.google.com with SMTP id m18so7315504pgd.13; Mon, 16 Oct 2017 10:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GzgWPvBFcuMHRZSGT/hKyEn1Ns/Iz0G4g/b5mjiGeKw=; b=ajkC6Gz6TjX0TDJfVeN+HvfanfdjlGbxjqm3ZfcM6ge1KLO7uuH87mv5gnWeuwBU59 JdYgJvyYK/RiryxvQVRJDqegf4B69QX5xO05zdsYxkFhWovNEEodm58Vl0AGEqNGPhJI iAB52mksBPFryR2HIJkBA3vzw1iLi7LQqCOGntjJu2NtUQF60bNodOtSL6TcFCA76IRO E4qTq6hLgY+Ix/7xveFW+Eff95H63gq1/WujW6FTm9kdSKuXzfgRxt0ajaPnnv1fAPtq dhT1jI7w+JyLHbuTttcJae/EYBauFLnCfAkhSQfz21zkLCLIqc1CGAsbQUV4u3gfzJTU AZxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GzgWPvBFcuMHRZSGT/hKyEn1Ns/Iz0G4g/b5mjiGeKw=; b=Rcrg8JmsVzgICq0+HH7eWAhjEMtMmW9Vs1cufaoYQQTAWnVcgV+xZPjtCS7xyDIDxu w8FkPfxs8Ft/wdwgsPGoJF8noaBGFhYRWWTkv+MAinB3qiS5NlXhqrxMi3e+/UFycAoi 0Aj8wBu+JXP/DtK24fhXg4n5EjbJVh9/hepeJghEbZ8F1eKeTTqNwAUpQC7/valLJNvo ukCxVin6PDfH+Sj+Kco/dPnBmw/icv7hVvBy31Qr3U79sBqGc8gFHeN+SsVan9MYtbij 2tPRlHi0L01wST+TGdYHEk6giZBca6ESrG++X6299yh0qnRzvXIeY9Mqhvlyk8Qigxu5 xZLw== X-Gm-Message-State: AMCzsaU0IqxKblUy3c6fD2aNGtxMjD62wlUsywIVJy3dOL3HKvsGdGmG dQwcB5iJdozs6R2ZbUR5cNsZbxWrlqQ= X-Google-Smtp-Source: AOwi7QBDzluWgNYnSIAAkYucGnvibUoCwUT09CNXKWGUit6BnPWvVoWOl418dg3VPWJOKjxsD+KgHQ== X-Received: by 10.98.86.81 with SMTP id k78mr9303850pfb.58.1508174016337; Mon, 16 Oct 2017 10:13:36 -0700 (PDT) Received: from localhost.localdomain ([1.128.7.208]) by smtp.gmail.com with ESMTPSA id m9sm14668869pff.26.2017.10.16.10.13.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Oct 2017 10:13:34 -0700 (PDT) From: Jagan Teki X-Google-Original-From: Jagan Teki To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 5/9] ARM: dts: rockchip: Add gmac support for rk3288-vyasa board Date: Mon, 16 Oct 2017 22:43:07 +0530 Message-Id: <1508173987-26688-1-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171016_101358_386177_96BAAB85 X-CRM114-Status: UNSURE ( 8.98 ) X-CRM114-Notice: Please train this message. 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 , devicetree@vger.kernel.org, Heiko Stuebner , Russell King , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Jagan Teki , Michael Trimarchi 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 Signed-off-by: Jagan Teki --- Changes for v2: - status s/ok/okay arch/arm/boot/dts/rk3288-vyasa.dts | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-vyasa.dts b/arch/arm/boot/dts/rk3288-vyasa.dts index 0fa447f..c79a4c7 100644 --- a/arch/arm/boot/dts/rk3288-vyasa.dts +++ b/arch/arm/boot/dts/rk3288-vyasa.dts @@ -104,12 +104,35 @@ regulator-boot-on; vin-supply = <&dc12_vbat>; }; + + ext_gmac: external-gmac-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <125000000>; + clock-output-names = "ext_gmac"; + }; }; &cpu0 { cpu0-supply = <&vdd_cpu>; }; +&gmac { + assigned-clocks = <&cru SCLK_MAC>; + assigned-clock-parents = <&ext_gmac>; + clock_in_out = "input"; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>; + phy-supply = <&vcc_lan>; + phy-mode = "rgmii"; + snps,reset-active-low; + snps,reset-delays-us = <0 10000 1000000>; + snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>; + tx_delay = <0x30>; + rx_delay = <0x10>; + status = "okay"; +}; + &gpu { mali-supply = <&vdd_gpu>; status = "okay"; @@ -361,6 +384,24 @@ }; &pinctrl { + pcfg_output_high: pcfg-output-high { + output-high; + }; + + gmac { + phy_int: phy-int { + rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + phy_pmeb: phy-pmeb { + rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + phy_rst: phy-rst { + rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>; + }; + }; + pmic { pmic_int: pmic-int { rockchip,pins = ;