Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6980953ybi; Thu, 1 Aug 2019 01:21:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxhsOV0yijHYcnWITQl2fcBgWwYXPBfZAulZFawX5xgwy9kOCtDu4BMUXV+VmmXf4wcTQYx X-Received: by 2002:a17:90a:c58e:: with SMTP id l14mr7228165pjt.104.1564647708608; Thu, 01 Aug 2019 01:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564647708; cv=none; d=google.com; s=arc-20160816; b=ZRzXQvb8SikmOpEqKk+6qzv1j1oOkFy71Gpc/emeTyUSRBBrjV9B9M95OFG+V43PHU EUMB2vo7kagZrFhqmnDH7YP9EwGvF9Y7PiX3YQVWScYJJBo6d1xycOmaiRamwDRmW5EC ubfN8qEdU5jtoIXP7hnLX7pUFxLCbtBBsWiHnk4/9iyVk9VzKlOAkPDRedP1HnSRO4zn r1L4eDMUX0Hhs2DQPIZ6HYgExvjb+gDfpT4SIoaXJKTX8cdmz5LD4ToH7gsDYu+2Ffdk 0AcUPU/dOXpVSKrzSMWbdKPdHFNypFpeLrFlt8PGkeJ1xrTaoMkpvjkiUtJSBPYA6BmT pEpw== 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; bh=ajkdCwl6azcL4j3OUsmKqm+j0vOka9cbjvarKm+QYDE=; b=Lihs3+Zti+0UxEdE3YKpLC/pwPI41N4LIUia46O9w6wyYOZ87U/msvXeltB3g9OtTi vQTAyazMh+YJz/aC/TCrDOkL66QOxJ82AKb0R9QUqFUilYx++DZTQJ/fBSvk04jHeeRJ Xsiwe0UHG+oSbW9CVnVheonta/cOCdU0XJ4VSw05YizO3Fhvg3uq2uB17QVuALs4ZGP/ EppK1UOPPfHlfJTarFNoHGHQnW1s/n4TnNS2Lc81wZNrSn46iICwtNn4ut+E1T/Zovqs 1Aevq9ol7hCOiBGM+3jUCYbhyHFfzffv3hTkuO9siXDEctg070W1X7J2NdEYVypGiFf+ yohA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=QUARANTINE 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 ay3si31990133plb.174.2019.08.01.01.21.32; Thu, 01 Aug 2019 01:21:48 -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; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730833AbfHAH2H (ORCPT + 99 others); Thu, 1 Aug 2019 03:28:07 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:40270 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730801AbfHAH2G (ORCPT ); Thu, 1 Aug 2019 03:28:06 -0400 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id x717R6Mk004915; Thu, 1 Aug 2019 10:27:06 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 8441) id 45E6661FD3; Thu, 1 Aug 2019 10:27:06 +0300 (IDT) From: Avi Fishman To: venture@google.com, yuenn@google.com, benjaminfair@google.com, davem@davemloft.net, robh+dt@kernel.org, mark.rutland@arm.com, gregkh@linuxfoundation.org Cc: avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, openbmc@lists.ozlabs.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de Subject: [PATCH v1 1/2] dt-binding: net: document NPCM7xx EMC 10/100 DT bindings Date: Thu, 1 Aug 2019 10:26:10 +0300 Message-Id: <20190801072611.27935-2-avifishman70@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20190801072611.27935-1-avifishman70@gmail.com> References: <20190801072611.27935-1-avifishman70@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added device tree binding documentation for Nuvoton NPCM7xx Ethernet MAC Controller (EMC) 10/100 RMII Signed-off-by: Avi Fishman --- .../bindings/net/nuvoton,npcm7xx-emc.txt | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nuvoton,npcm7xx-emc.txt diff --git a/Documentation/devicetree/bindings/net/nuvoton,npcm7xx-emc.txt b/Documentation/devicetree/bindings/net/nuvoton,npcm7xx-emc.txt new file mode 100644 index 000000000000..a7ac3ca66de9 --- /dev/null +++ b/Documentation/devicetree/bindings/net/nuvoton,npcm7xx-emc.txt @@ -0,0 +1,38 @@ +Nuvoton NPCM7XX 10/100 Ethernet MAC Controller (EMC) + +The NPCM7XX provides one or two Ethernet MAC RMII Controllers +for WAN/LAN applications + +Required properties: +- device_type : Should be "network" +- compatible : "nuvoton,npcm750-emc" for Poleg NPCM7XX. +- reg : Offset and length of the register set for the device. +- interrupts : Contain the emc interrupts with flags for falling edge. + first interrupt dedicated to Txirq + second interrupt dedicated to Rxirq +- phy-mode : Should be "rmii" (see ethernet.txt in the same directory) +- clocks : phandle of emc reference clock. +- resets : phandle to the reset control for this device. +- use-ncsi : Use the NC-SI stack instead of an MDIO PHY + +Example: + +emc0: eth@f0825000 { + device_type = "network"; + compatible = "nuvoton,npcm750-emc"; + reg = <0xf0825000 0x1000>; + interrupts = , + ; + phy-mode = "rmii"; + clocks = <&clk NPCM7XX_CLK_AHB>; + + #use-ncsi; /* add this to support ncsi */ + + clock-names = "clk_emc"; + resets = <&rstc 6>; + pinctrl-names = "default"; + pinctrl-0 = <&r1_pins + &r1err_pins + &r1md_pins>; + status = "okay"; +}; -- 2.18.0