arm64: tegra: Add ethernet controller on Tegra194
authorMikko Perttunen <mperttunen@nvidia.com>
Wed, 20 Jun 2018 12:54:06 +0000 (15:54 +0300)
committerThierry Reding <treding@nvidia.com>
Mon, 2 Jul 2018 13:56:07 +0000 (15:56 +0200)
The Tegra194 contains the same ethernet controller as the Tegra186.
Add the device tree node for it, and correspondingly the PHY node
on the board device tree.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi
arch/arm64/boot/dts/nvidia/tegra194.dtsi

index 713fa3d..57d3f00 100644 (file)
        };
 
        cbb {
+               ethernet@2490000 {
+                       status = "okay";
+
+                       phy-reset-gpios = <&gpio TEGRA194_MAIN_GPIO(G, 5) GPIO_ACTIVE_LOW>;
+                       phy-handle = <&phy>;
+                       phy-mode = "rgmii";
+
+                       mdio {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               phy: phy@0 {
+                                       compatible = "ethernet-phy-ieee802.3-c22";
+                                       reg = <0x0>;
+                                       interrupt-parent = <&gpio>;
+                                       interrupts = <TEGRA194_MAIN_GPIO(G, 4) IRQ_TYPE_LEVEL_LOW>;
+                               };
+                       };
+               };
+
                serial@3110000 {
                        status = "okay";
                };
index 20c3078..2259a2b 100644 (file)
                        gpio-controller;
                };
 
+               ethernet@2490000 {
+                       compatible = "nvidia,tegra186-eqos",
+                                    "snps,dwc-qos-ethernet-4.10";
+                       reg = <0x02490000 0x10000>;
+                       interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&bpmp TEGRA194_CLK_AXI_CBB>,
+                                <&bpmp TEGRA194_CLK_EQOS_AXI>,
+                                <&bpmp TEGRA194_CLK_EQOS_RX>,
+                                <&bpmp TEGRA194_CLK_EQOS_TX>,
+                                <&bpmp TEGRA194_CLK_EQOS_PTP_REF>;
+                       clock-names = "master_bus", "slave_bus", "rx", "tx", "ptp_ref";
+                       resets = <&bpmp TEGRA194_RESET_EQOS>;
+                       reset-names = "eqos";
+                       status = "disabled";
+
+                       snps,write-requests = <1>;
+                       snps,read-requests = <3>;
+                       snps,burst-map = <0x7>;
+                       snps,txpbl = <16>;
+                       snps,rxpbl = <8>;
+               };
+
                uarta: serial@3100000 {
                        compatible = "nvidia,tegra194-uart", "nvidia,tegra20-uart";
                        reg = <0x03100000 0x40>;