From patchwork Wed Sep 27 07:34:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 114364 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4723903qgf; Wed, 27 Sep 2017 00:40:29 -0700 (PDT) X-Received: by 10.98.208.129 with SMTP id p123mr497402pfg.273.1506498029593; Wed, 27 Sep 2017 00:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506498029; cv=none; d=google.com; s=arc-20160816; b=KZ8yKPJnwBdsUkI+ZZt1Xi4F9z3m7Xq1hvUjf3wc5jyyEHuRZDfzzaVMBsuvDPVvxk 57WhBP9cTfrO+09VOKEgAjwpya5Y/r0FWuauVO3lruA2XKNbKKz/2Ef55yyzUZMQlkRn SIAfJGnSYTLccZb3QXMn0rYrJIIgOHHrqwdnF00nC8Vh7yrJ4Yp8YLaEbYkDClqPwHFW MNMDcG7QGkyLA+LnWGo6SAi+HmHaZGCJj35Ix+GrA8JSzwsUhoSDYEPIQ1w7IWYWE+wa PjWlYpEWq1kQn0imeeyVx+tKdtP75f7g1u2aK8Lb51f/d14Bh/q4+DlGNc4A4gUeRer1 EbLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=TCaq+L0ACn83URvot4Qh0PvleIfjU5dQTuprZW0mEnw=; b=VqOB1bLAqVmZPA+QoR9XQyRrP/cV6uvKKM0U1vwJvXIAcYW37XLHK9nJVvePWAv0gt uW1k9Kiyhe2h8CNLh51EdCg+H9YomAhPo0jfUGqAsRPh9RJiN2PDN4LOHV1OQK2QSdGP 3cJoQ7RSo+DzAlp1p1yrWfcwuc4NJ2JHb6oDcWikfAAqRqUYh2qiijZp8QOE8TNswpeJ xdRd8QSmANGVkOKqDZ5cKgaBF+Y/TuMqPY8fh9XSnXKxvf27dLCzUYdvUJucjHwfrm7R YrIlBygOPQVvW2TRC/h4LGyPVibRloXRH1l2v+f3//J+v017Uf8n3nftAFnrpOcQ6XAS aHyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s9I2WE6c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u6si7077068plj.715.2017.09.27.00.40.28; Wed, 27 Sep 2017 00:40:29 -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=@gmail.com header.s=20161025 header.b=s9I2WE6c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752507AbdI0Hk1 (ORCPT + 26 others); Wed, 27 Sep 2017 03:40:27 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35975 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751922AbdI0Hgf (ORCPT ); Wed, 27 Sep 2017 03:36:35 -0400 Received: by mail-wr0-f195.google.com with SMTP id k10so509472wrk.3; Wed, 27 Sep 2017 00:36:34 -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=s9I2WE6caM0BGuXRpWwABPA7/6KHeF2CZ+jsAxEJsW3Z39fSgtfljV9/haTuVosZ0h BMFK6z/KoWVEn2rPqtn/V6cJeuZ4rXT32n3mBYeV7JoRgV7cxxBR8d5Be2ReRG6kn8wN tkPJAYQVN1mYTk181N3LJUKh52eto2YZERXeqzleoCrD7gZeWEhgN2bwxRaMmJ0RHcYf IbvcoHcnffYhK+fVGikU2wjFitv9koUI60zzmMAbvkUssKmeiBHJX1a/vSY8z+otlZLx +4LUvSdDpZ8+wAov0gWrrqUGo2oAJov22RQKfVrIj740wuyDkVy85j7naRyKkMVbcpn9 engA== 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=VF9SABP6w8DrqyUpp5AFojqdhUUxpXzBw9Vm/lexG26gHbLJFvzqgWqF2p6r20CwP6 nKyY7Ls0SKANruX8NdE1QlY+wTE9X658wY0r+JmO9699MNoH3RZFLdkhAeMiiiOK7IX6 0n/r2KBhZvF/7keAb0+HYmGejoJsZ+kGEyAuCWpmuWivwmA90YwJjbBkyb5/7Rxf0QUj JG1bPnetVJ30wmvLJauwvxSgqJgyHCn5E5+ZFGgEGzfB67bZKaT3w+wy/x8J9BZKFilC bI2QuB5RgCSjopYJ3wLZE0h0P2MZueWUAoYEeasCszJvgrO8MmCNAClUHECPFf27EE/c p4+A== X-Gm-Message-State: AHPjjUjVebftyZE+bpsID1jmGlRUPLr4Kq5DmguTOIHZdbljLtr/qiCr rXczWBq2HvPvpePuncIuWeM= X-Google-Smtp-Source: AOwi7QCsG9EUrI9QUUo4WwymsnoPUypWNoaMSe3qguo6JWtBuh1sLH5oVl5wVMtHPv35DQaOXVLCzQ== X-Received: by 10.223.159.6 with SMTP id l6mr564203wrf.156.1506497793805; Wed, 27 Sep 2017 00:36:33 -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 n9sm5660526wmd.12.2017.09.27.00.36.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Sep 2017 00:36:33 -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, frowand.list@gmail.com Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe Subject: [PATCH v6 01/11] dt-bindings: net: Restore sun8i dwmac binding Date: Wed, 27 Sep 2017 09:34:04 +0200 Message-Id: <20170927073414.17361-2-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170927073414.17361-1-clabbe.montjoie@gmail.com> References: <20170927073414.17361-1-clabbe.montjoie@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- .../devicetree/bindings/net/dwmac-sun8i.txt | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dwmac-sun8i.txt -- 2.13.5 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>; + }; + }; +};