From patchwork Fri Sep 8 07:11:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 811359 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="INLF5B7R"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xpTCd5LYTz9sBd for ; Fri, 8 Sep 2017 17:17:01 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755070AbdIHHOO (ORCPT ); Fri, 8 Sep 2017 03:14:14 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35927 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754946AbdIHHOL (ORCPT ); Fri, 8 Sep 2017 03:14:11 -0400 Received: by mail-wm0-f66.google.com with SMTP id p17so1126486wmd.3; Fri, 08 Sep 2017 00:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TCaq+L0ACn83URvot4Qh0PvleIfjU5dQTuprZW0mEnw=; b=INLF5B7RdnFQ3VsC6QPT0LElBeNEP2TKejQtp3JB3DBAZdGyECmAWEWwOF1LwC/eRq legKnZIr7osf5u7vREs5v7tvg086sK3HS9oWfo48p/bSEbZFY6ibJ8p38KawpwjMqJy+ IiKyx8nbkIjpTLsp1MBlAqL1ExK5iOqOFUSkxxVRxMx7Y5SB5/fix+61L4lfSvdYu2+V DrNDKZfpzr5FiA7OMuXPuL93ky889jY1OBR6HeikbJEVWId/IXFVdORyGSHq6H0/ndTW v5Dxxk5QnkNM4IYzRo7pEAgBkB2ec+CoELIY0I8/We0LVxKBSu0iLfne0Rjhx1FDQw1o GWkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TCaq+L0ACn83URvot4Qh0PvleIfjU5dQTuprZW0mEnw=; b=LWunIjnzXTr2yHZVKK+rUCvEh+m8/dkJjC8kZIiKIt11uMzrVqH135kM3Dn8NtccMq h4cSRGFADWWsgC+Y//o17gIreiYaCVSKLUNV2CB8hTya40rmJe6NWfZKXBfCkehy6G1S qpPozJpueH9vHAsI3hCJs1Ow6ooUqnEO3hW3tp2ySY1vLy/qsVtM5t8LhfssgZxJPCn3 cxTpw0jYFnlUy9GfSD3jqGmDs1JjY1FA64VNRtwmglcHZvMkJGtEEpXQryUI7WviLyc2 4sBHj2+Hvxn+wJnpxQH54ogXyhm0wnGPjBGKKpxd7he1jaKv+4/qbc/+Py0uC86oKprH FO6A== X-Gm-Message-State: AHPjjUgYwV4+96saqyY+sr4FI2VhDoSMdBLAXXPzH5ZDr5jLcaLCgU35 yh4/E0a6mw/vqQ== X-Google-Smtp-Source: AOwi7QBXt5bf5YE4/4hFL84eX8QGBUnNlXxFDegej3LUYgffETHKuNNrsaO+xxOPVnJNEnRlHctoiA== X-Received: by 10.28.8.21 with SMTP id 21mr842903wmi.23.1504854849881; Fri, 08 Sep 2017 00:14:09 -0700 (PDT) Received: from Red.local (LFbn-MAR-1-580-96.w90-118.abo.wanadoo.fr. [90.118.159.96]) by smtp.googlemail.com with ESMTPSA id l19sm684566wrl.47.2017.09.08.00.14.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Sep 2017 00:14:09 -0700 (PDT) From: Corentin Labbe To: robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, wens@csie.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, peppe.cavallaro@st.com, alexandre.torgue@st.com, andrew@lunn.ch, f.fainelli@gmail.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v5 02/10] dt-bindings: net: Restore sun8i dwmac binding Date: Fri, 8 Sep 2017 09:11:48 +0200 Message-Id: <20170908071156.5115-3-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170908071156.5115-1-clabbe.montjoie@gmail.com> References: <20170908071156.5115-1-clabbe.montjoie@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch restore dt-bindings documentation about dwmac-sun8i This reverts commit 8aa33ec2f481 ("dt-bindings: net: Revert sun8i dwmac binding") Signed-off-by: Corentin Labbe Acked-by: Rob Herring --- .../devicetree/bindings/net/dwmac-sun8i.txt | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dwmac-sun8i.txt diff --git a/Documentation/devicetree/bindings/net/dwmac-sun8i.txt b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt new file mode 100644 index 000000000000..725f3b187886 --- /dev/null +++ b/Documentation/devicetree/bindings/net/dwmac-sun8i.txt @@ -0,0 +1,84 @@ +* Allwinner sun8i GMAC ethernet controller + +This device is a platform glue layer for stmmac. +Please see stmmac.txt for the other unchanged properties. + +Required properties: +- compatible: should be one of the following string: + "allwinner,sun8i-a83t-emac" + "allwinner,sun8i-h3-emac" + "allwinner,sun8i-v3s-emac" + "allwinner,sun50i-a64-emac" +- reg: address and length of the register for the device. +- interrupts: interrupt for the device +- interrupt-names: should be "macirq" +- clocks: A phandle to the reference clock for this device +- clock-names: should be "stmmaceth" +- resets: A phandle to the reset control for this device +- reset-names: should be "stmmaceth" +- phy-mode: See ethernet.txt +- phy-handle: See ethernet.txt +- #address-cells: shall be 1 +- #size-cells: shall be 0 +- syscon: A phandle to the syscon of the SoC with one of the following + compatible string: + - allwinner,sun8i-h3-system-controller + - allwinner,sun8i-v3s-system-controller + - allwinner,sun50i-a64-system-controller + - allwinner,sun8i-a83t-system-controller + +Optional properties: +- allwinner,tx-delay-ps: TX clock delay chain value in ps. Range value is 0-700. Default is 0) +- allwinner,rx-delay-ps: RX clock delay chain value in ps. Range value is 0-3100. Default is 0) +Both delay properties need to be a multiple of 100. They control the delay for +external PHY. + +Optional properties for the following compatibles: + - "allwinner,sun8i-h3-emac", + - "allwinner,sun8i-v3s-emac": +- allwinner,leds-active-low: EPHY LEDs are active low + +Required child node of emac: +- mdio bus node: should be named mdio + +Required properties of the mdio node: +- #address-cells: shall be 1 +- #size-cells: shall be 0 + +The device node referenced by "phy" or "phy-handle" should be a child node +of the mdio node. See phy.txt for the generic PHY bindings. + +Required properties of the phy node with the following compatibles: + - "allwinner,sun8i-h3-emac", + - "allwinner,sun8i-v3s-emac": +- clocks: a phandle to the reference clock for the EPHY +- resets: a phandle to the reset control for the EPHY + +Example: + +emac: ethernet@1c0b000 { + compatible = "allwinner,sun8i-h3-emac"; + syscon = <&syscon>; + reg = <0x01c0b000 0x104>; + interrupts = ; + interrupt-names = "macirq"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + #address-cells = <1>; + #size-cells = <0>; + + phy-handle = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + int_mii_phy: ethernet-phy@1 { + reg = <1>; + clocks = <&ccu CLK_BUS_EPHY>; + resets = <&ccu RST_BUS_EPHY>; + }; + }; +};