From patchwork Mon Oct 31 10:53:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9405263 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 0E02260585 for ; Mon, 31 Oct 2016 10:53:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 059C328DFE for ; Mon, 31 Oct 2016 10:53:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ECCBA28E1E; Mon, 31 Oct 2016 10:53:56 +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=-2.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.tuxfamily.net (mail.tuxfamily.net [212.85.158.8]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4EEDD28E44 for ; Mon, 31 Oct 2016 10:53:56 +0000 (UTC) Received: from listengine (helo=tuxfamily.org) by mx1.tuxfamily.net with local-bsmtp (Exim 4.84_2) (envelope-from ) id 1c1ADy-0002gs-RR for patchwork-linux-oxnas@patchwork.kernel.org; Mon, 31 Oct 2016 11:53:54 +0100 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by mx1.tuxfamily.net with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1c1ADv-0002g8-QU for linux-oxnas@lists.tuxfamily.org; Mon, 31 Oct 2016 11:53:51 +0100 Received: by mail-wm0-x22e.google.com with SMTP id t79so42016062wmt.0 for ; Mon, 31 Oct 2016 03:53:51 -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=gKVt5TqnF0uPIs3Ua552irF9XiEpuyUQuL/z0AN0Gj7CS2D18HlBr2UZlRfQpNvye0 C8hp3skjeZOVq4F+YDJsjCWmwprmMf7pKZ5yuEAdvPvGQFYOyVZHhKeCcycCHw0xnVqx BI4MR0gQiAGzxQoHuPKrG2OxVkKbyxNafOpjRAkbS0ne1ue218XSZVIfJaskx/guLF1M YLU9NeXmT5jvtxDchLm4EWNrTY/Eu612RNFv91HZBYJdShweu0UGj4aThX/hTN/SnFFj WRYu1mWwf5VLYGmwRCCw6UHwT3356wxiqv0Kxm5uBJJYjFosFmHgGe/Kk3aDkCJyk0YV LGog== 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=Nuim/vWIp2WxARba+Bb50YM3ECzYf+uzpw6c4BB3CUHApjjL5ed/tGQ6SRxmEop3dL lljeEfbEIR/bhVIQAMe5S8GRFN1wNKZvdyOTjSer9n0/U6EzLRYy7y2sKFulpelHxjgO yB+BnWSkswkzTpNWHrkkO0Y2MiQXItwGiFlK7NGsz7dOqyuagu7iMdY1PgOCZtRRHret /ZW3FiQHr0PqYxvunj+89B56taWJm+gqOOa4Zl8YpWL2GyZ8MV53AYQfmvtSJLtHNjUo hMHCTeVNUETOaLwCLxTfzr/pBZN5iQX6gQkRcNLRNrfa7J9cRWySji9Bwc0o78CsIqug 7wbQ== X-GM-Message-State: ABUngvdRw6v7gt+OX2jP9xPJx6OyD01SFKpYhs8YGakws25aeTJ0wqQZtAnJsxSbEJ6rZQxW X-Received: by 10.28.24.80 with SMTP id 77mr10780585wmy.74.1477911231194; Mon, 31 Oct 2016 03:53:51 -0700 (PDT) Received: from build.net (build.baylibre.com. [37.187.146.144]) by smtp.gmail.com with ESMTPSA id 70sm24053916wmv.1.2016.10.31.03.53.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 31 Oct 2016 03:53:50 -0700 (PDT) From: Neil Armstrong To: peppe.cavallaro@st.com, alexandre.torgue@st.com CC: Neil Armstrong , netdev@vger.kernel.org, linux-oxnas@lists.tuxfamily.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [linux-oxnas] [PATCH v2 2/2] dt-bindings: net: Add OXNAS DWMAC Bindings Date: Mon, 31 Oct 2016 11:53:45 +0100 Message-ID: <20161031105345.16711-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161031105345.16711-1-narmstrong@baylibre.com> References: <20161031105345.16711-1-narmstrong@baylibre.com> List-Unsubscribe: List-Subscribe: List-Help: List-Software: Listengine, VHFFS 4.7-dev-4c39578052 List-ID: List-Post: List-Archive: Precedence: list Reply-To: linux-oxnas@lists.tuxfamily.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Neil Armstrong --- .../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"; +};