From patchwork Tue Oct 31 08:19:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 117531 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3600044qgn; Tue, 31 Oct 2017 01:26:20 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SZUQtA0X9CB0bPclo7tKQ5QESwBrwPM5aeC3aj6C1eJ99Ivuh55QFT++tgxq0JfvNuU7e+ X-Received: by 10.99.144.65 with SMTP id a62mr1137443pge.429.1509438380249; Tue, 31 Oct 2017 01:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509438380; cv=none; d=google.com; s=arc-20160816; b=qKH0EMaDSbNrHDhmW7UyF8FbgXqZirphkB8sBt9i9sF4Pylc4ULvCShudEJt+j1cWG SE2+nAUbd43+aqkifzrIQ4F23ldq+SvxALHif7mwTbXacGZC9aLFWWJgisoLCOs+EHW3 4u45Z0ukG98c2BVxfvfFTEDrOgtAYM+3Uf7yRQUaXFdKNzoNT3bMKmM3+DRS2li+5e29 7FJ/dCzYsENrYJQeSP5m2vvpIgAl8cjad4JenrkDwsMMrKznwVmrSUl4U0EW2DKku80L ujqjr4xY2tWToBurHva6c26m9SIjFjh9QHAAZ6542EsUXk7p3WaCQt0cZ0IVHS+g+UgY otoA== 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=D9ddniEI7oDNTkwNh7cVsL2t0KId+qetaLvOWXWdQsg=; b=xFXSuh39dwiALNyfMiTpEkzYzD+DbVz1PC6djwJ83ghZggquhmmYsGWjyzg8nirzeC OsosI56AYdKUhDNPRKi9HuxQ7Bw7qRLKJCB+kimloPl+z8VsNygpMiU+EV3rKjbnLp4J fxPg84jfbNcdblVooECxS9lndOlPS/G/hDUQP4KREIgumwi3BhhuuklDiF0FArEN+2NG h7fcFtWb91veaylcBI+uEBYQ0RAnAbHBYdiH6TVG8l5uduG/mHnRDlqUOjbVOSUKWmLa UDZ9lkHGYuQ7aKZv72NeBCqr3cptWoZ1n8p74KAqoJq/0W5OEtK8wBPWqnSkWXr8r8li Wigw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=LtIUk2Ye; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 r10si966965pge.285.2017.10.31.01.26.20; Tue, 31 Oct 2017 01:26:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=LtIUk2Ye; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753260AbdJaI0S (ORCPT + 6 others); Tue, 31 Oct 2017 04:26:18 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:49975 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752662AbdJaIVY (ORCPT ); Tue, 31 Oct 2017 04:21:24 -0400 Received: by mail-wm0-f66.google.com with SMTP id b189so20507905wmd.4; Tue, 31 Oct 2017 01:21:23 -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=qBJvp3ysSQ91g66HKGMhbDJjoVj13sTs4Z0/CMDaW78=; b=LtIUk2YeqPLBR2AOuxbWXR5ruPGeP0G1LHNbv2nIwU3lDuJNQ3fPSbKUVR10Fcg90Y impicmBl5SclkDMOl1yaJHUvbKkzQTTyYCbrbN9AHHI92dqUdE6DYztk8ECvTqR3rt1m ZhykkQpf7CK633FIQvfiWvetKjG5/caOzfU75toBR68+9RNHAjrMrcjshMD7BL3C5dV6 0urCUq81gkTgYxikeRIMzIvLIQ+3nT+XQfjIbrai7vLFqJ03ICZeArQLmg63SkLQxo2r nfTpo3bND+70mxvWVO/8tCXzGTeYlnBX14PuIST0CNwBGAEWnhVuPemHs4bBsRocU/ko wW2A== 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=qBJvp3ysSQ91g66HKGMhbDJjoVj13sTs4Z0/CMDaW78=; b=pjzyt2gG0+V7O0M0gwfKpWdN89hl1yjY5uiz3qJ+ZCsJ8atnslIH2A0o00bc/zM67i tRazc6URtHh6OdRN8UvBjhVXlzzlRk8gAiV4qkyWGZDlgNvy0rW8wB+gelTmFwRuXxcI eVu8lc6fg8eb95sfkmIwjmt+7YzwVbplBcR8DnZWi1C5WzmCe2jZIjWZT02PNgahl9kw rsv3FniycPnEwUksRnEQRCvsJaPMmIsA5vF8cmHdYcCPQjgZkNEXktgXLeBaZ7sJHjjO jIdqKcmnHs1WmrMX8ANXytMz2E1m16og6y0Xf4W2dttTIIdqmY+BxWJqcXC85Q1VBjl0 svKA== X-Gm-Message-State: AMCzsaVDnQyfW/1Ah+t5uSEA1d8qSQzJ+zNdIOhImb9+BehlYoWcbRQQ wGSyB6solIM7i2HoThbQ7R0= X-Received: by 10.28.206.142 with SMTP id e136mr1205841wmg.27.1509438082833; Tue, 31 Oct 2017 01:21:22 -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 d18sm796423wra.50.2017.10.31.01.21.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 01:21:22 -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 Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH v10 1/8] dt-bindings: net: Restore sun8i dwmac binding Date: Tue, 31 Oct 2017 09:19:08 +0100 Message-Id: <20171031081915.18960-2-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171031081915.18960-1-clabbe.montjoie@gmail.com> References: <20171031081915.18960-1-clabbe.montjoie@gmail.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The original dwmac-sun8i DT bindings have some issue on how to handle integrated PHY and was reverted in last RC of 4.13. But now we have a solution so we need to get back that was reverted. 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 Acked-by: Florian Fainelli --- .../devicetree/bindings/net/dwmac-sun8i.txt | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dwmac-sun8i.txt -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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>; + }; + }; +};