From patchwork Thu Oct 1 09:48:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sjoerd Simons X-Patchwork-Id: 54351 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by patches.linaro.org (Postfix) with ESMTPS id C113D205D0 for ; Thu, 1 Oct 2015 09:51:01 +0000 (UTC) Received: by pacgz1 with SMTP id gz1sf116727112pac.0 for ; Thu, 01 Oct 2015 02:51:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=/3einKyHDlXNeIANlfm8qwjiMDUThB3hN/tRo0JoUNk=; b=ILR5rN3S8z9sVnT7OcePWXl9Mqg/t691J1agFKNSjmCQ3M7z5l3df/crGO2GkthMD2 JrBC+osPGxyqrs10F949yQwer0iB9gkpqQ+IE2VyL0o+kp3Sy/cuQJmoKCl3OqZ/tKD2 gxvRd8TQwnqgbVkxnuZlwizn5i7vcoGrIirrY3HBDUFmyRKZkv7mUm1oT3pbSD0fyDxt 9Sx9eO3ZCbYLZIz4mlv+ALV7zsb9i/qdXhHHPhqWM9OEdHTtTloP+ulwjlUz+3CEwqIY qJKBkLAK20DoICT9DQTFsCnn+8es/FJouZHuV8sELMfsla0B95NtlI9ET+4v3jA52qSE I4Qg== X-Gm-Message-State: ALoCoQm1Cv9s3wkMW7qjGOG73/5Wwb9U4ZgfcbkdyNP61lNJheqIJW8rY6OHshmmeKxa2gvvj4+x X-Received: by 10.68.138.132 with SMTP id qq4mr7354531pbb.11.1443693061105; Thu, 01 Oct 2015 02:51:01 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.107.134.24 with SMTP id i24ls579049iod.23.gmail; Thu, 01 Oct 2015 02:51:00 -0700 (PDT) X-Received: by 10.66.55.41 with SMTP id o9mr11098487pap.44.1443693060941; Thu, 01 Oct 2015 02:51:00 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id rm9si7782235pab.83.2015.10.01.02.51.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Oct 2015 02:51:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by laer8 with SMTP id r8so71076054lae.2 for ; Thu, 01 Oct 2015 02:50:57 -0700 (PDT) X-Received: by 10.25.211.201 with SMTP id k192mr1728116lfg.32.1443693057581; Thu, 01 Oct 2015 02:50:57 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.59.35 with SMTP id w3csp483414lbq; Thu, 1 Oct 2015 02:50:56 -0700 (PDT) X-Received: by 10.180.92.201 with SMTP id co9mr2477038wib.58.1443693056613; Thu, 01 Oct 2015 02:50:56 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id fl12si6312366wjc.60.2015.10.01.02.50.56; Thu, 01 Oct 2015 02:50:56 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7D9D74B8E2; Thu, 1 Oct 2015 11:48:59 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iGmiiK-CwlIj; Thu, 1 Oct 2015 11:48:59 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 513494B936; Thu, 1 Oct 2015 11:48:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F00444B933 for ; Thu, 1 Oct 2015 11:48:51 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kzLvXCYtWLRj for ; Thu, 1 Oct 2015 11:48:51 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [93.93.135.160]) by theia.denx.de (Postfix) with ESMTPS id A195F4B8B7 for ; Thu, 1 Oct 2015 11:48:47 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sjoerd) with ESMTPSA id AAEF86092C4 Received: by dusk.luon.net (Postfix, from userid 1000) id D758123699; Thu, 1 Oct 2015 11:48:13 +0200 (CEST) From: Sjoerd Simons To: Simon Glass Date: Thu, 1 Oct 2015 11:48:10 +0200 Message-Id: <1443692893-19905-8-git-send-email-sjoerd.simons@collabora.co.uk> X-Mailer: git-send-email 2.5.3 In-Reply-To: <1443692893-19905-1-git-send-email-sjoerd.simons@collabora.co.uk> References: <1443692893-19905-1-git-send-email-sjoerd.simons@collabora.co.uk> Cc: Tom Rini , u-boot@lists.denx.de Subject: [U-Boot] [PATCH 07/10] rockchip: rk3288-firefly: Add gmac definition X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sjoerd.simons@collabora.co.uk X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Add a definition for the gmac interface to the firefly device-tree. Copied verbatim from the linux kernel. Signed-off-by: Sjoerd Simons Acked-by: Simon Glass --- arch/arm/dts/rk3288-firefly.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/rk3288-firefly.dtsi b/arch/arm/dts/rk3288-firefly.dtsi index 5aec1b8..072eaa6 100644 --- a/arch/arm/dts/rk3288-firefly.dtsi +++ b/arch/arm/dts/rk3288-firefly.dtsi @@ -146,6 +146,22 @@ status = "okay"; }; +&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 8 GPIO_ACTIVE_LOW>; + tx_delay = <0x30>; + rx_delay = <0x10>; + status = "okay"; +}; + &hdmi { ddc-i2c-bus = <&i2c5>; status = "okay";