From patchwork Wed Aug 30 10:25:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 111299 Delivered-To: patches@linaro.org Received: by 10.140.95.112 with SMTP id h103csp696791qge; Wed, 30 Aug 2017 03:26:01 -0700 (PDT) X-Received: by 10.84.132.67 with SMTP id 61mr1340975ple.156.1504088761817; Wed, 30 Aug 2017 03:26:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504088761; cv=none; d=google.com; s=arc-20160816; b=Elc2WIVGwVhRMITb3YDwav/okCQS3AKiPXok5Z+OUGpNfQpnHvY50R98Xa5i19hEvt phtFDL3XtLybEd1/g7hYKvQu49Dhrsd8JnjL7oHoiL5NVxT31hCBkQ4D5A2QCHkkSEDu 0gxOlmgtjl+CUO4l4anPEoBc3238bMCw4LhOY3Z22Jtxqtl4GxcY0GUNE6FYKgf2olKc 870mdUkcTX1BxzL/82vPuaQWalD8O1yVztLIe209Po7uvU4AL4vIxweKsQuNGE8Z2EiY tSldPmE3LyxIRzXdTjhVZoZlS9tO34IhjiIAWGWXGq1sNNbHv5ri/uVrywcaAEmexBfe M1ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Yy6ANxTem6pR+ZU+fFh+vMscBPN2dOs5HInqpctJIE4=; b=kytDT9rZDnfyGL64PeHGqUDiTdwaJlI5oYST/f1NA+TkzZ8WMb42u1dShholDbrULQ L2c6o6Qoa7vjRsE/NVz9ZGM8l8gJUNBetFuPjlQOTCvk8Hh6+0+lDNgfu+/yHrsRB7ey mDc9+EB0lxq4CnSjZIJvqzt2CTpBnfZZq6xcaD5ltKGCKIAhpIv/OiJJ7+PO8G5xrMGY j+v4Aj4Xa0f+pG+5ubm1bsqh8CiV6fWGYYbVbIaJYsUfG3/dyyMPARLPaYOqT/tBHfWS 68wlPpHuo/vs8zYFWUP82yrgjucAPkFYKN1qZe4rB1goaN1fm/aY6NCwXVjboBGRuKi5 6A9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CVFraGDl; spf=pass (google.com: domain of jassisinghbrar@gmail.com designates 2607:f8b0:400e:c05::241 as permitted sender) smtp.mailfrom=jassisinghbrar@gmail.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com. [2607:f8b0:400e:c05::241]) by mx.google.com with ESMTPS id m32si148521pld.695.2017.08.30.03.26.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 03:26:01 -0700 (PDT) Received-SPF: pass (google.com: domain of jassisinghbrar@gmail.com designates 2607:f8b0:400e:c05::241 as permitted sender) client-ip=2607:f8b0:400e:c05::241; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CVFraGDl; spf=pass (google.com: domain of jassisinghbrar@gmail.com designates 2607:f8b0:400e:c05::241 as permitted sender) smtp.mailfrom=jassisinghbrar@gmail.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: by mail-pg0-x241.google.com with SMTP id 63so4781631pgc.1; Wed, 30 Aug 2017 03:26:01 -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=Yy6ANxTem6pR+ZU+fFh+vMscBPN2dOs5HInqpctJIE4=; b=CVFraGDloEwdWDVXcJczZKsP/g3uk6hvwibPwIHb5D8RRhjCQzXlfZ/NugvDvffKom jdVtO0Y2PGk1NQnfcXQJCM8qrwnoO7oHVPgI1KeSdjty8fZgPsCRKpwyRiD0YjYiOHZG on1ly4QsQylEpB9P8EHG4O6qMzGKcNMQT+8vH/jdNirLOPRaiVlMfBx6XYNfhESL2AVV 470zQ1Nd50j/3RXLiqP/ffF/fgrnWIvOAo/QyFkzstqaEP7PzMFnYb0ZDRA6mqxsIXZ3 GNoCKi9HNCNslZdrXbvtbitmsAuplN5GtL5hodkuBmTyH6pg+XLZ/6TpkLozQJQDP64p hMVw== 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=Yy6ANxTem6pR+ZU+fFh+vMscBPN2dOs5HInqpctJIE4=; b=uZb/3E6Njd38Jx4RLj9I9/uI94UiQge8PWkZwMXtYYlrumjdjayDXNTuTfDm7hCEit PFIOauuL7t+h5Q3LltIayqq0BI4ujEO6QpcD8mVGW2tGmz/v3XxC6iw5RLbqyBhy4zu+ cVmowiO0KaZH9ZHl7zBfaV6CzTyEjmxi12Nk46ftbR1Juyl3ZJq0nJJKNPP7oDZzPd3m ygYwxPti2nFTFEAiRvXyk9ZFwSoq3JSEUtpK7YHRT9peHSqX1+7lvWra81g6TN5cH80U aBWjX+oHj0Gns8uFfIEn977Mwci+Hn/hQ+uwz35BVcjkhmfFuThzGBrqvDO8w3OFQ+Nj mykg== X-Gm-Message-State: AHYfb5jct/AaqqI4TZ1WHqJ7MFbr89c0Daurmp8eeGmU226L8yhHAytB /5tzlKIq2P6zpw== X-Received: by 10.84.224.205 with SMTP id k13mr1316612pln.203.1504088761418; Wed, 30 Aug 2017 03:26:01 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([27.255.192.36]) by smtp.gmail.com with ESMTPSA id l3sm8647611pfj.137.2017.08.30.03.25.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Aug 2017 03:26:00 -0700 (PDT) From: Jassi Brar X-Google-Original-From: Jassi Brar To: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, davem@davemloft.net Cc: patches@linaro.org, arnd@arndb.de, mark.rutland@arm.com, robh+dt@kernel.org, andy@warmcat.com, Jassi Brar Subject: [net-next PATCHv6 1/2] dt-bindings: net: Add DT bindings for Socionext Netsec Date: Wed, 30 Aug 2017 15:55:52 +0530 Message-Id: <1504088752-6204-1-git-send-email-jaswinder.singh@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504088657-6102-1-git-send-email-jaswinder.singh@linaro.org> References: <1504088657-6102-1-git-send-email-jaswinder.singh@linaro.org> This patch adds documentation for Device-Tree bindings for the Socionext NetSec Controller driver. Signed-off-by: Jassi Brar --- .../devicetree/bindings/net/socionext-netsec.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/socionext-netsec.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/net/socionext-netsec.txt b/Documentation/devicetree/bindings/net/socionext-netsec.txt new file mode 100644 index 0000000..12d596c --- /dev/null +++ b/Documentation/devicetree/bindings/net/socionext-netsec.txt @@ -0,0 +1,46 @@ +* Socionext NetSec Ethernet Controller IP + +Required properties: +- compatible: Should be "socionext,netsecv5" +- reg: Address and length of the register sets, the first is the main + registers, then the rdlar and tdlar regions for the SoC +- interrupts: Should contain ethernet controller interrupt +- clocks: phandle to any clocks to be switched by runtime_pm +- phy-mode: See ethernet.txt file in the same directory +- max-speed: See ethernet.txt file in the same directory +- max-frame-size: See ethernet.txt file in the same directory, if 9000 or + above jumbo frames are enabled +- local-mac-address: See ethernet.txt file in the same directory +- phy-handle: phandle to select child phy + +Optional properties: +- use-jumbo: Boolean property to suggest if jumbo packets should be used or not + +For the child phy + +- compatible "ethernet-phy-ieee802.3-c22" is needed +- device_type "ethernet-phy" +- reg: phy address + + +Example: + eth0: ethernet { + compatible = "socionext,netsecv5"; + reg = <0 0x31600000 0x10000>, <0 0x31618000 0x4000>, <0 0x3161c000 0x4000>; + interrupts = <0 163 0x4>; + clocks = <&clk_alw_0_8>; + phy-mode = "rgmii"; + max-speed = <1000>; + max-frame-size = <9000>; + local-mac-address = [ a4 17 31 00 00 ed ]; + phy-handle = <ðphy0>; + + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@1 { + device_type = "ethernet-phy"; + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; + };