From patchwork Wed Nov 2 14:02:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9409227 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 A5648601C2 for ; Wed, 2 Nov 2016 14:04:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94EF62A204 for ; Wed, 2 Nov 2016 14:04:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 871482A216; Wed, 2 Nov 2016 14:04:41 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 15B922A204 for ; Wed, 2 Nov 2016 14:04:41 +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 1c1w8N-0002MM-0v; Wed, 02 Nov 2016 14:03:19 +0000 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c1w89-00029W-Fw for linux-arm-kernel@lists.infradead.org; Wed, 02 Nov 2016 14:03:07 +0000 Received: by mail-wm0-x22b.google.com with SMTP id a197so142923129wmd.0 for ; Wed, 02 Nov 2016 07:02:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dv+ocXSSUuuj4P9Gi+vmVMK2l9UujGYjRBK2prK998U=; b=Qi2EH0Ewp8dLZdE8Sf/4gZggZhkb+EIpzafIpqKF0Q23pAOlOWhfPlPanJjMVLFtB2 0RG0bJp2Rb779rKwLpJd9nVU9PYORwDbKHTJAZpYOKNzC6VM6AjVxm2YPcknc62dyElE DC4NgT7DHywbhqTlMb9w/3lq4wZ9NBA6B/t6zCrTbl3VP+CRgGsvokeLscQ47+fz/jwf ZKFwzFXprN48QcSnWTWKiNkqlQk+MXSeHsugtXrcFj1Xfo8SvI1GYJlxc+50zl3mx+qF y2i5uaGytzQiHC8XRsjh2vxiOg4aKkLnTIkl4cfwM7izocHshTazteIRDprmw3r8PLhg DqWg== 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=dv+ocXSSUuuj4P9Gi+vmVMK2l9UujGYjRBK2prK998U=; b=T7dP3CrDsS224X93xx59w9twt64OzR9nuVik82GTIK7KwW0bHY4ykNpDpIXbFTuKd7 0P2qvXMS+YAdHns2NijjV14kwTPX4RVrfLyUZcoSKgSE48AbzrQ4MfQIeBCIkMyxFZ+o gqO4OfH4y9BhxE9awVXlYfHURrALwbBUEik/9CvRETRkr4+as5fde+jY7gBkUUMvlAgp VrVMtn7+aJcwWb2UoeKluJWN1HBVs4vhi1BUH17tmfCCMMb2Mf4ouBEGWaVxUL/Vfvmx ENf07N0W2VQs63u0EL4b6wDf6Rr1JByo76md2bZi7vXxfUc36gwU+Mpyx7b5G/PVN6hg EpWw== X-Gm-Message-State: ABUngvfSieJg8lHV/LCWKH8yQMqvMugrJF2iQXghnAtGsXPdPDt1EmjpNwLMBMkp0BFY7KUa X-Received: by 10.28.226.7 with SMTP id z7mr3474059wmg.83.1478095363503; Wed, 02 Nov 2016 07:02:43 -0700 (PDT) Received: from build.net (build.baylibre.com. [37.187.146.144]) by smtp.gmail.com with ESMTPSA id j185sm3425370wmg.13.2016.11.02.07.02.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Nov 2016 07:02:42 -0700 (PDT) From: Neil Armstrong To: peppe.cavallaro@st.com, alexandre.torgue@st.com Subject: [PATCH v3 2/2] dt-bindings: net: Add OXNAS DWMAC Bindings Date: Wed, 2 Nov 2016 15:02:37 +0100 Message-Id: <20161102140237.6955-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161102140237.6955-1-narmstrong@baylibre.com> References: <20161102140237.6955-1-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161102_070305_782075_121D99FD X-CRM114-Status: GOOD ( 14.05 ) 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: devicetree@vger.kernel.org, Neil Armstrong , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-oxnas@lists.tuxfamily.org, linux-arm-kernel@lists.infradead.org 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: Neil Armstrong Acked-by: Rob Herring --- .../devicetree/bindings/net/oxnas-dwmac.txt | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/oxnas-dwmac.txt diff --git a/Documentation/devicetree/bindings/net/oxnas-dwmac.txt b/Documentation/devicetree/bindings/net/oxnas-dwmac.txt new file mode 100644 index 0000000..df0534e --- /dev/null +++ b/Documentation/devicetree/bindings/net/oxnas-dwmac.txt @@ -0,0 +1,39 @@ +* Oxford Semiconductor OXNAS DWMAC Ethernet controller + +The device inherits all the properties of the dwmac/stmmac devices +described in the file stmmac.txt in the current directory with the +following changes. + +Required properties on all platforms: + +- compatible: For the OX820 SoC, it should be : + - "oxsemi,ox820-dwmac" to select glue + - "snps,dwmac-3.512" to select IP version. + +- clocks: Should contain phandles to the following clocks +- clock-names: Should contain the following: + - "stmmaceth" for the host clock - see stmmac.txt + - "gmac" for the peripheral gate clock + +- oxsemi,sys-ctrl: a phandle to the system controller syscon node + +Example : + +etha: ethernet@40400000 { + compatible = "oxsemi,ox820-dwmac", "snps,dwmac-3.512"; + reg = <0x40400000 0x2000>; + interrupts = , + ; + interrupt-names = "macirq", "eth_wake_irq"; + mac-address = [000000000000]; /* Filled in by U-Boot */ + phy-mode = "rgmii"; + + clocks = <&stdclk CLK_820_ETHA>, <&gmacclk>; + clock-names = "gmac", "stmmaceth"; + resets = <&reset RESET_MAC>; + + /* Regmap for sys registers */ + oxsemi,sys-ctrl = <&sys>; + + status = "disabled"; +};