Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1154432ybi; Fri, 21 Jun 2019 15:07:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+79g8tOVS295AaJfAEeiYJs/B51cty8DcA9g64+Ra331U7sRPL9H+4cwyl31QhICR4zSr X-Received: by 2002:a17:90a:8984:: with SMTP id v4mr9363509pjn.133.1561154858185; Fri, 21 Jun 2019 15:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561154858; cv=none; d=google.com; s=arc-20160816; b=KAbuHApZg3qBzeNsH1zFutOB5JYKlbon7Sm4qZMKJhv35r2g1E2TDQSGKDTJd+aW8K bE0qdoMgvWFQYT0zo7B/7nt2f29LafRzZP1nRm5cdoWF7XzC4r4KPKBlww8JANjbdqzL 8LpAfAiuVssR6dieOuPELJzrk8y/dFwv7cPiwtqObwoZmKjtK8gbW5yQcIHJw0JY/c7Y cfE/1W3/XK2ufeLaP+UWxl2nDP/f4lPSQE/gkFdUy6k5hL8jAq12RgdVfYqvIVHZD5Id X3Z00sQ6P8wJSzWCxPbpCugpr5dXVcn49z7zRTF9nPvog44cH0MCcwD0h+gMXhxzvz6g ZaiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=ryaqQTZCUF/hF6VaO5QT3dMTov2dUM5dS2MnCcID9K0=; b=kcekcdC4ZNmYfK89iatMUY2TFLfS5pBQFK1TO3j5VOqVK5kB7q1p1sSz/iQnMhBF8Q PwcUX/ja9q5kwja6f3HSzjIUtIIVH/9NVjJq0VjmdapfsXkPd0zM30C1FD81vmGhlPYB tnLx0fhN374VM0QwUJpLNyv3Ys7zDXC+LX9ugAdt7S08/py0kDicH/AwcomB+40KFNZq wiImEIBF5GVfJdOh6640KVl0QRYYlMHzJoCsG0dszZWKyuTGWvAbhIslbD87VLdfbRgT //DRThikEJ2Sm31TUEeNUna9PjfWDMizb4EDO0A8+dDG2yOLEZSQeEDcLIqysBj/71vg d8mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=bkZJOh+m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 83si3686310pgc.302.2019.06.21.15.07.23; Fri, 21 Jun 2019 15:07:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=bkZJOh+m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726276AbfFUWGz (ORCPT + 99 others); Fri, 21 Jun 2019 18:06:55 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35946 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbfFUWGy (ORCPT ); Fri, 21 Jun 2019 18:06:54 -0400 Received: by mail-pg1-f193.google.com with SMTP id f21so4004211pgi.3 for ; Fri, 21 Jun 2019 15:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=ryaqQTZCUF/hF6VaO5QT3dMTov2dUM5dS2MnCcID9K0=; b=bkZJOh+mMCVPn2xsEFJxgIc9ElvjsMXyto539DExGlvLKQCbEFYxF4Jd5vd9pOyLkR CjV5R5M89170qSsfAspvKmuBX6HMni74NRnyMt67MKlELohZ00koslBoKOQTAk8T3c7r Y9UBWw3sPchkhSZu2pX50693ihMbgRHvTpWtgjovbnAa0nIWZcVimE8RB9Q6XLJ42PnQ +xlBpQUuXhrTABFgdtVBBW3U4jqW4BIeWNRNdETOZ/QW1Fj9s9CLDjVNWIYSuVgxkXWK 2j4QKgob0abP4Nspj5OVm0H74Oqa3n5eDNulAoiCVmSiZdLE1J7qooYddxZ6upU/MvtL +Rsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=ryaqQTZCUF/hF6VaO5QT3dMTov2dUM5dS2MnCcID9K0=; b=KmJscEDo3uT9JSFrnraeZ9lYZtj6BKsmIVfzINFjhY0rIgAn2o11pFpjb7iQPJ3InM 80dAWBMMg+ZjNoaguk+8NY5qyoV/gzyAJiq4ahMFg/VAm2DacvoukNM/5yxve2hlXeyv jRYK47JzF49SvZVS4JCxFA72YW+QGQ5DppboQDBZ/KsNBiheZGfK+X3ZutdFoxCx9fXr c+mMe0swIWPgmcTguyxKCbzBnJFfkOdtSxwOCDChpYb4ZPEnSGixeW55Gj1Vki16XVz1 3rhS9tQkbyRzdo+SMfrVLE6NXQbGZtP4z6Qtnpqo1OtZYZYvAOIsko5P7liYRSSES4Z8 EaCQ== X-Gm-Message-State: APjAAAU4sQN6/t1iJenNzy2kAwh5ALGGKm1cBxuCEaIvK1X6XeVaEs0H C438qPz/5fu8FbgdMOAl9p2Pkg== X-Received: by 2002:a63:4556:: with SMTP id u22mr14410988pgk.444.1561154814071; Fri, 21 Jun 2019 15:06:54 -0700 (PDT) Received: from localhost ([38.98.37.134]) by smtp.gmail.com with ESMTPSA id x7sm3439038pfm.82.2019.06.21.15.06.51 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 21 Jun 2019 15:06:53 -0700 (PDT) Date: Fri, 21 Jun 2019 15:06:29 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Yash Shah cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, palmer@sifive.com, aou@eecs.berkeley.edu, sachin.ghadi@sifive.com Subject: Re: [PATCH v2] riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver In-Reply-To: <1561114429-29612-2-git-send-email-yash.shah@sifive.com> Message-ID: References: <1561114429-29612-1-git-send-email-yash.shah@sifive.com> <1561114429-29612-2-git-send-email-yash.shah@sifive.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Jun 2019, Yash Shah wrote: > DT node for SiFive FU540-C000 GEMGXL Ethernet controller driver added > > Signed-off-by: Yash Shah Thanks, dropped the "reg-names" property from the patch, and queued the following updated version for v5.2-rc. - Paul From: Yash Shah Date: Fri, 21 Jun 2019 16:23:49 +0530 Subject: [PATCH] riscv: dts: Add DT node for SiFive FU540 Ethernet controller driver DT node for SiFive FU540-C000 GEMGXL Ethernet controller driver added Signed-off-by: Yash Shah Reviewed-by: Anup Patel Tested-by: Atish Patra [paul.walmsley@sifive.com: dropped the "reg-names" property, as it is not documented in the binding nor used in the driver] Signed-off-by: Paul Walmsley --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 16 ++++++++++++++++ .../boot/dts/sifive/hifive-unleashed-a00.dts | 9 +++++++++ 2 files changed, 25 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi index 3c06ee4b2b29..83f40b00ab63 100644 --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi @@ -211,5 +211,21 @@ #address-cells = <1>; #size-cells = <0>; }; + eth0: ethernet@10090000 { + compatible = "sifive,fu540-macb"; + interrupt-parent = <&plic0>; + interrupts = <53>; + reg = <0x0 0x10090000 0x0 0x2000 + 0x0 0x100a0000 0x0 0x1000>; + reg-names = "control"; + status = "disabled"; + local-mac-address = [00 00 00 00 00 00]; + clock-names = "pclk", "hclk"; + clocks = <&prci PRCI_CLK_GEMGXLPLL>, + <&prci PRCI_CLK_GEMGXLPLL>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; }; diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts index 4da88707e28f..d783bf2c3507 100644 --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts @@ -63,3 +63,12 @@ disable-wp; }; }; + +ð0 { + status = "okay"; + phy-mode = "gmii"; + phy-handle = <&phy1>; + phy1: ethernet-phy@0 { + reg = <0>; + }; +}; -- 2.20.1