[Linux-stm32] [PATCH net-next 08/12] dt-bindings: net: toshiba, tc965x-dwmac: add TC956x Ethernet bridge

Rob Herring robh at kernel.org
Thu May 7 23:39:37 UTC 2026


On Thu, May 7, 2026 at 5:17 PM Alex Elder <elder at riscstar.com> wrote:
>
> On 5/1/26 12:38 PM, Andrew Lunn wrote:
> > Why not add an subnodes for the ethernet interfaces?
>
> We will define "ethernet" devicetree subnodes of the PCIe functions
> in the next version of the series.  Something like what's below.

Are they PCIe functions? As in bus, dev, function addresses. How to do
functions is already defined by the PCI binding.

>                                         -Alex
>
> pci at 0,1 {

The 0 here is devnum and the 1 is function.

>          compatible = "pci1179,0220";
>          reg = <0x50100 0x0 0x0 0x0 0x0>;
>          #address-cells = <3>;
>          #size-cells = <2>;
>          device_type = "pci";
>          ranges;
>
>          ethernet {
>                  phy-mode = "sgmii";
>                  phy-handle = <&tc956x_emac1_phy>;
>
>                  mdio {
>                          compatible = "snps,dwmac-mdio";
>                          #address-cells = <1>;
>                          #size-cells = <0>;
>
>                          tc956x_emac1_phy: ethernet-phy at 1c {
>                                  compatible = "ethernet-phy-id004d.d101";
>                                 ...
>                         };
>                 };
>         };
> };



More information about the Linux-stm32 mailing list