From patchwork Mon Oct 16 12:16:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10008137 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 05C5D604D7 for ; Mon, 16 Oct 2017 12:18:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1CCF28563 for ; Mon, 16 Oct 2017 12:18:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E48D92855C; Mon, 16 Oct 2017 12:18:52 +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 5D56D27F2B for ; Mon, 16 Oct 2017 12:18:52 +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=J9uFtRpLVmNOfMX+7BnqkB8YnTraPX6FIuDSyC2WIs8=; b=ozEu2t9uBKCQSClKlXiI8VLyJ2 gSNrpUs2A+rkGdaW3jsKo2SVvbQGQLhHh6Y6kVHtTmTzhnp2E5/4R81ydhOmQ7x0eLvXrdmL3GTW3 Bviua7x6mRT4lwDuiQyumYN6b428u/LBupF/EbJu1n6bzUVx/6Bvn/7gC3cD7Scfp1Umxq7rg343Y 9+9/RjVl9TSFAcswBS6Z5c1JWi5HmDEu5sdZ8D8wpQli1aaQRUEFB3cE0kJG+GPSNTLuKJH7NSdHg jKNmwuQdGB8XAFvhelaU3bfbXlAQyJQCUCcyPKN4HO82j8vK+1ybpoHAy+q7c0GTE2XJlnM0Sa9ey 4POxjIqg==; 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 1e44M3-0008HW-5Z; Mon, 16 Oct 2017 12:18:47 +0000 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e44LZ-0007am-Vn; Mon, 16 Oct 2017 12:18:23 +0000 Received: by mail-pf0-x241.google.com with SMTP id i5so2594048pfe.6; Mon, 16 Oct 2017 05:17:57 -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:in-reply-to:references; bh=mPc1jrVSph1SxAkWcpIadQWUpcEeMPVdJ94sxfKcGec=; b=o0Cv7DFgGOnMegDrW953mFm24I7vUV9eAPE6QQLW2BC/b+VIVSYEI1tFYr4xvS9VON n9O/24o7ObISSaDwCELxP4ChPXuKXZ3YP5Uu1mAVXOjwRmQO3SR6ktK1cNKtxLHe87gq r92VSZDOBMn1fjJZwK4EB335SvuEzdxuRW8p4AjtQrNFW8MDro3HDQzKiUbJZH13+Qo9 47njCxfGCvfZ50ZZeGGiik+bqQA0TrmjcoumQCjaevpCXBLhXvpzSbQWcJpn6ayo3aCZ +pXrBlXtlAldX4QqAxcVc/D8Zkr3jD+LgorxAttkwj68fqh74DYzzjzAdN+Ijz/uIAVs z7/g== 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:in-reply-to :references; bh=mPc1jrVSph1SxAkWcpIadQWUpcEeMPVdJ94sxfKcGec=; b=sucJ4OGQTCsmiwdKDm6AdC2VbM5mEVysGNkBvvf/I+XQ41T5A9D2h0wXQvQz6hJlLo bhN3XuVlDOOSBrQN1+DQcS2ppgTzs/Ojw7Ryfr2EoODYsFdAa61dKNL1Bufn9TRqbBHW C0Kga0WUHZTKt99bpMbLmkeKd8mWUhJaC3OfUIOPYKlmHmm/UZa755chp/4poA6H87Bj FqYPC9R97pIac1xPPSvxCt1p78MpARTGtIBOEdais12D8cuzA0iMkdFxILvOWTmCAeNn jez6HiFAZq/+c6u2tw6SweyFRgULpilVl6EWA7VUH1kKihWZAtOnOnlvk0UdH2WsDNJy 4Irg== X-Gm-Message-State: AMCzsaXbYfQQkErU3E5rPkK5qxC9Y4QemsSLktTg2nPemiMCTQyqz15z 1ZIeAmPss0cfoay9UgFhqDwmRGrXKqg= X-Google-Smtp-Source: AOwi7QC9c0HrZvqcMBeI94pCgA25xdgxzBgOqWGvbdJPTfc0lOkuUscHPdG2OgHrVBERnLCSET4TYg== X-Received: by 10.84.240.1 with SMTP id y1mr8125439plk.360.1508156276952; Mon, 16 Oct 2017 05:17:56 -0700 (PDT) Received: from localhost.localdomain ([1.128.10.43]) by smtp.gmail.com with ESMTPSA id r18sm12753490pfi.59.2017.10.16.05.17.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Oct 2017 05:17:55 -0700 (PDT) From: Jagan Teki X-Google-Original-From: Jagan Teki To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/9] ARM: dts: rockchip: Add gmac support for rk3288-vyasa board Date: Mon, 16 Oct 2017 17:46:23 +0530 Message-Id: <1508156187-27519-6-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508156187-27519-1-git-send-email-jagan@amarulasolutions.com> References: <1508156187-27519-1-git-send-email-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171016_051818_203736_79AB907D X-CRM114-Status: UNSURE ( 8.84 ) 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 --- 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 = "ok"; +}; + &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 = ;