Texas Instruments ICSSM PRUSS Ethernet

Schema identifier ($id): "http://devicetree.org/schemas/net/ti,icssm-prueth.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Roger Quadros <rogerq@ti.com>", "Andrew F. Davis <afd@ti.com>", "Parvathi Pudi <parvathi@couthit.com>", "Basharath Hussain Khaja <basharath@couthit.com>"

Ethernet based on the Programmable Real-Time Unit and Industrial Communication Subsystem.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,am57-prueth", "ti,am4376-prueth", "ti,am3359-prueth"

sram — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle to OCMC SRAM node

ti,mii-rt — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle to the MII_RT peripheral for ICSS

ti,iep — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle to IEP (Industrial Ethernet Peripheral) for ICSS

ti,ecap — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle to Enhanced Capture (eCAP) event for ICSS

interrupts — required here #

Array item rules (items) #

Item 1

High priority Rx Interrupt specifier.

Item 2

Low priority Rx Interrupt specifier.

interrupt-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx_hp"

Item 2

Exact value (const): "rx_lp"

ethernet-ports — required here #

Value type (type): "object"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

#address-cells — not listed as required here

Exact value (const): 1

#size-cells — not listed as required here

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

^ethernet-port@[0-1]$ — name matches this regular expression

Value type (type): "object"

ICSSM PRUETH external ports

Shared schema rule ($ref): ethernet-controller.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

reg — required here

Array item rules (items)

Item 1

Allowed values (enum): 0, 1

ICSSM PRUETH port number

interrupts — not listed as required here

Maximum number of items (maxItems): 3

interrupt-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "emac_ptp_tx"

Item 3

Exact value (const): "hsr_ptp_tx"

Required in this object (required): "reg"

At least one of these rules must match (anyOf) #

Rule 1

Required in this object (required): "ethernet-port@0"

Rule 2

Required in this object (required): "ethernet-port@1"

Required in this object (required): "compatible", "sram", "ti,mii-rt", "ti,iep", "ti,ecap", "ethernet-ports", "interrupts", "interrupt-names"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/remoteproc/ti,pru-consumer.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

/* Dual-MAC Ethernet application node on PRU-ICSS2 */
pruss2_eth: pruss2-eth {
  compatible = "ti,am57-prueth";
  ti,prus = <&pru2_0>, <&pru2_1>;
  sram = <&ocmcram1>;
  ti,mii-rt = <&pruss2_mii_rt>;
  ti,iep = <&pruss2_iep>;
  ti,ecap = <&pruss2_ecap>;
  interrupts = <20 2 2>, <21 3 3>;
  interrupt-names = "rx_hp", "rx_lp";
  interrupt-parent = <&pruss2_intc>;

  ethernet-ports {
    #address-cells = <1>;
    #size-cells = <0>;
    pruss2_emac0: ethernet-port@0 {
      reg = <0>;
      phy-handle = <&pruss2_eth0_phy>;
      phy-mode = "mii";
      interrupts = <20 2 2>, <26 6 6>, <23 6 6>;
      interrupt-names = "rx", "emac_ptp_tx", "hsr_ptp_tx";
      /* Filled in by bootloader */
      local-mac-address = [00 00 00 00 00 00];
    };

    pruss2_emac1: ethernet-port@1 {
      reg = <1>;
      phy-handle = <&pruss2_eth1_phy>;
      phy-mode = "mii";
      interrupts = <21 3 3>, <27 9 7>, <24 9 7>;
      interrupt-names = "rx", "emac_ptp_tx", "hsr_ptp_tx";
      /* Filled in by bootloader */
      local-mac-address = [00 00 00 00 00 00];
    };
  };
};
/* Dual-MAC Ethernet application node on PRU-ICSS1 */
pruss1_eth: pruss1-eth {
  compatible = "ti,am4376-prueth";
  ti,prus = <&pru1_0>, <&pru1_1>;
  sram = <&ocmcram>;
  ti,mii-rt = <&pruss1_mii_rt>;
  ti,iep = <&pruss1_iep>;
  ti,ecap = <&pruss1_ecap>;
  interrupts = <20 2 2>, <21 3 3>;
  interrupt-names = "rx_hp", "rx_lp";
  interrupt-parent = <&pruss1_intc>;

  pinctrl-0 = <&pruss1_eth_default>;
  pinctrl-names = "default";

  ethernet-ports {
    #address-cells = <1>;
    #size-cells = <0>;
    pruss1_emac0: ethernet-port@0 {
      reg = <0>;
      phy-handle = <&pruss1_eth0_phy>;
      phy-mode = "mii";
      interrupts = <20 2 2>, <26 6 6>, <23 6 6>;
      interrupt-names = "rx", "emac_ptp_tx",
                                      "hsr_ptp_tx";
      /* Filled in by bootloader */
      local-mac-address = [00 00 00 00 00 00];
    };

    pruss1_emac1: ethernet-port@1 {
      reg = <1>;
      phy-handle = <&pruss1_eth1_phy>;
      phy-mode = "mii";
      interrupts = <21 3 3>, <27 9 7>, <24 9 7>;
      interrupt-names = "rx", "emac_ptp_tx",
                                      "hsr_ptp_tx";
      /* Filled in by bootloader */
      local-mac-address = [00 00 00 00 00 00];
    };
  };
};
/* Dual-MAC Ethernet application node on PRU-ICSS */
pruss_eth: pruss-eth {
  compatible = "ti,am3359-prueth";
  ti,prus = <&pru0>, <&pru1>;
  sram = <&ocmcram>;
  ti,mii-rt = <&pruss_mii_rt>;
  ti,iep = <&pruss_iep>;
  ti,ecap = <&pruss_ecap>;
  interrupts = <20 2 2>, <21 3 3>;
  interrupt-names = "rx_hp", "rx_lp";
  interrupt-parent = <&pruss_intc>;

  pinctrl-0 = <&pruss_eth_default>;
  pinctrl-names = "default";

  ethernet-ports {
    #address-cells = <1>;
    #size-cells = <0>;
    pruss_emac0: ethernet-port@0 {
      reg = <0>;
      phy-handle = <&pruss_eth0_phy>;
      phy-mode = "mii";
      interrupts = <20 2 2>, <26 6 6>, <23 6 6>;
      interrupt-names = "rx", "emac_ptp_tx",
                                      "hsr_ptp_tx";
      /* Filled in by bootloader */
      local-mac-address = [00 00 00 00 00 00];
    };

    pruss_emac1: ethernet-port@1 {
      reg = <1>;
      phy-handle = <&pruss_eth1_phy>;
      phy-mode = "mii";
      interrupts = <21 3 3>, <27 9 7>, <24 9 7>;
      interrupt-names = "rx", "emac_ptp_tx",
                                      "hsr_ptp_tx";
      /* Filled in by bootloader */
      local-mac-address = [00 00 00 00 00 00];
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 22: for AM57x SoC family

Line 23: for AM43x SoC family

Line 24: for AM33x SoC family

Edit this page