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: 9405271 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 6EB7360585 for ; Mon, 31 Oct 2016 10:56:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 646D728974 for ; Mon, 31 Oct 2016 10:56:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 563D328AB8; Mon, 31 Oct 2016 10:56:39 +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 D963328974 for ; Mon, 31 Oct 2016 10:56:38 +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 1c1AEY-0001Uq-J0; Mon, 31 Oct 2016 10:54:30 +0000 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c1AEH-0001J1-Hp for linux-arm-kernel@lists.infradead.org; Mon, 31 Oct 2016 10:54:14 +0000 Received: by mail-wm0-x235.google.com with SMTP id t79so42016050wmt.0 for ; Mon, 31 Oct 2016 03:53:53 -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=UAGDXs0pFPgkXffpRK2W9s2KF05f4M69YKm2nP3god3MmRz0taWJfSJ8yocEa2mR8w 62B9RICE4Dpzft1tTVrtnt6bcAJ2z/ub65hegsRcuIUfO1ufy2PEbXGdB0YJnKMQttzX 7XVmqby+UFwkd1L+TZzu3Kfup3ApyWNLuag3jqEOxqDk5Gw9keUN3QjSpuLy7gA0XD6e afR3cF2ndDzwIr37HxFDfIROGfBh7fIPmmIZ+nyN00pSEJjiMl1H7gUyLZ0d61NmIQDi 98fJw1A8tn4toxJB20Cd5n8Jr4IoEKhxt2rPCwxyFodbIwd/k4p3XxDpWvoT1E+Th/Sb CGNg== X-Gm-Message-State: ABUngvcTkslUqfVRU2/WAt5DQF99FGYHz9IWLGUcfFwyJ7IhwvUVs1Xy0Natffho6mJG6uGq 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 Subject: [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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161031_035413_853004_DC917A19 X-CRM114-Status: GOOD ( 13.96 ) 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 --- .../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"; +};