From: Jassi Brar <jassisinghbrar@gmail.com> 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 <jaswinder.singh@linaro.org> Subject: [net-next PATCHv6 1/2] dt-bindings: net: Add DT bindings for Socionext Netsec Date: Wed, 30 Aug 2017 15:55:52 +0530 [thread overview] Message-ID: <1504088752-6204-1-git-send-email-jaswinder.singh@linaro.org> (raw) In-Reply-To: <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 <jaswinder.singh@linaro.org> --- .../devicetree/bindings/net/socionext-netsec.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/socionext-netsec.txt 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>; + }; + }; -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: jassisinghbrar@gmail.com (Jassi Brar) To: linux-arm-kernel@lists.infradead.org Subject: [net-next PATCHv6 1/2] dt-bindings: net: Add DT bindings for Socionext Netsec Date: Wed, 30 Aug 2017 15:55:52 +0530 [thread overview] Message-ID: <1504088752-6204-1-git-send-email-jaswinder.singh@linaro.org> (raw) In-Reply-To: <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 <jaswinder.singh@linaro.org> --- .../devicetree/bindings/net/socionext-netsec.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/socionext-netsec.txt 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 at 1 { + device_type = "ethernet-phy"; + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; + }; -- 2.7.4
next prev parent reply other threads:[~2017-08-30 10:26 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-08-30 10:24 [net-next PATCHv6 0/2] net: ethernet: Socionext Netsec Jassi Brar 2017-08-30 10:24 ` Jassi Brar 2017-08-30 10:25 ` Jassi Brar [this message] 2017-08-30 10:25 ` [net-next PATCHv6 1/2] dt-bindings: net: Add DT bindings for " Jassi Brar [not found] ` <1504088752-6204-1-git-send-email-jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 2017-08-30 15:19 ` Andrew Lunn 2017-08-30 15:19 ` Andrew Lunn [not found] ` <20170830151942.GB22289-g2DYL2Zd6BY@public.gmane.org> 2017-08-31 3:13 ` Jassi Brar 2017-08-31 3:13 ` Jassi Brar 2017-09-11 20:37 ` Rob Herring 2017-09-11 20:37 ` Rob Herring 2017-08-30 10:26 ` [net-next PATCHv6 2/2] net: socionext: Add NetSec driver Jassi Brar 2017-08-30 10:26 ` Jassi Brar 2017-08-30 17:17 ` Andrew Lunn 2017-08-30 17:17 ` Andrew Lunn [not found] ` <20170830171759.GC22289-g2DYL2Zd6BY@public.gmane.org> 2017-08-31 6:33 ` Jassi Brar 2017-08-31 6:33 ` Jassi Brar [not found] ` <1504088771-6255-1-git-send-email-jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 2017-09-02 11:53 ` kbuild test robot 2017-09-02 11:53 ` kbuild test robot 2017-09-02 12:07 ` kbuild test robot 2017-09-02 12:07 ` kbuild test robot [not found] ` <1504088657-6102-1-git-send-email-jaswinder.singh-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 2017-08-31 4:06 ` [net-next PATCHv6 0/2] net: ethernet: Socionext Netsec Florian Fainelli 2017-08-31 4:06 ` Florian Fainelli [not found] ` <27A7C5A5-AFF4-49F3-B0DF-7F53283EC2A4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2017-08-31 6:31 ` Jassi Brar 2017-08-31 6:31 ` Jassi Brar
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1504088752-6204-1-git-send-email-jaswinder.singh@linaro.org \ --to=jassisinghbrar@gmail.com \ --cc=andy@warmcat.com \ --cc=arnd@arndb.de \ --cc=davem@davemloft.net \ --cc=devicetree@vger.kernel.org \ --cc=jaswinder.singh@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=mark.rutland@arm.com \ --cc=netdev@vger.kernel.org \ --cc=patches@linaro.org \ --cc=robh+dt@kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.