Home › Forums › snickerdoodle Baseboards › • Community Built › Ethernet connection

Viewing 10 reply threads
  • Author
    Posts
    • Steven Janssens
      Participant
      Post count: 9
      Hi guys,

      Love it where this project is going to!
      I only have 1 concern, the internet connection.
      My project will have a stationary snickerdoodle which will need a reliable connection. Will there be a tutorial on how to implement an ethernet plug on the board without having to buy a baseboard and lose a lot of GPIO?
      Greetings
    • “krtkl inc.”
      Participant
      Post count: 62
      Hi Steven,
      Thanks! snickerdoodle actually has two dedicated gigabit Ethernet interfaces so no need to worry about taking up I/O. We actually have reference designs/schematics for implementing this on a baseboard here: https://github.com/krtkl/schematics/blob/master/piSmasher-schematic-r1p2.pdf
      Along with details (footprint, pin assignments, etc.) on what you'd need to build a baseboard here: https://github.com/krtkl/snickerdoodle-manual/blob/master/snickerdoodle-user-manual.pdf
      Hope that helps – let me know if you have any further questions.
      -Ryan
    • Steven Janssens
      Participant
      Post count: 9
      Hi Ryan

      Thanks for the reply.
      Electronics ain't realy my thing, but I think it doesn't look that hard to connect.
      I've read on the manual of the KSZ that it has auto-mapping on the MDI/MDI-X, what does that mean to the wiring?
      Regards
    • “krtkl inc.”
      Participant
      Post count: 62
      Hi Steven,

      Auto MDI/MDI-X (required by the standard) has to do with the physical RJ45 ethernet jack adapting to both switch-port wiring and host wiring but for Gigabit, that’s pretty irrelevant because of the way the signaling is done. NoteL on the 10/100 Mbit jacks, this does actually matter… Fortunately his is all handled by the PHY, so nothing to worry about and you can just use a " Joe standard" Ethernet cable.  


      In the old days you'd have to make or buy crossover Ethernet cables in certain situations, but (fortunately) all modern hardware adapts to the cabling used – including the Micrel PHY.


      Hope that helps!

      Ryan

    • Nick Burkitt
      Participant
      Post count: 109
      Ryan – I'm trying to bring up  Micrel PHY on our latest baseboard. Can you supply any references for devicetree setup? The standard Linux documentation-by-folklore approach is getting really old.

      Thanks,
      -Nick

      On Saturday, October 17, 2015 at 3:26:48 PM UTC-7, krtk…@gmail.com wrote:

      Hi Steven,

      Auto MDI/MDI-X (required by the standard) has to do with the physical RJ45 ethernet jack adapting to both switch-port wiring and host wiring but for Gigabit, that’s pretty irrelevant because of the way the signaling is done. NoteL on the 10/100 Mbit jacks, this does actually matter… Fortunately his is all handled by the PHY, so nothing to worry about and you can just use a " Joe standard" Ethernet cable.  


      In the old days you'd have to make or buy crossover Ethernet cables in certain situations, but (fortunately) all modern hardware adapts to the cabling used – including the Micrel PHY.


      Hope that helps!

      Ryan

    • Bush
      Moderator
      Post count: 125
      This is the device tree node we've have used for other ENET baseboards:

                      gem0: ethernet@e000b000 {
                              compatible =            "cdns,zynq-gem", "cdns,gem";
                              reg =                   <0xe000b000 0x1000>;
                              status =                "okay";
                              interrupts =            <0x0 0x16 0x4>;
                              clocks =                <&clkc 0x1e>,
                                                      <&clkc 0x1e>,
                                                      <&clkc 0xd>;
                              clock-names =           "pclk", "hclk", "tx_clk";
                              #address-cells =        <0x1>;
                              #size-cells =           <0x0>;
                              phy-mode =              "rgmii-id";
                              phy-handle =            <&ethernet_phy>;

                              ethernet_phy: ethernet-phy@0 {
                                      reg = <0x0>;
                              };
                      };

      On Wednesday, November 16, 2016 at 2:38:57 PM UTC-8, Nick Burkitt wrote:

      Ryan – I'm trying to bring up  Micrel PHY on our latest baseboard. Can you supply any references for devicetree setup? The standard Linux documentation-by-folklore approach is getting really old.

      Thanks,
      -Nick

      On Saturday, October 17, 2015 at 3:26:48 PM UTC-7, krtk…@gmail.com wrote:

      Hi Steven,

      Auto MDI/MDI-X (required by the standard) has to do with the physical RJ45 ethernet jack adapting to both switch-port wiring and host wiring but for Gigabit, that’s pretty irrelevant because of the way the signaling is done. NoteL on the 10/100 Mbit jacks, this does actually matter… Fortunately his is all handled by the PHY, so nothing to worry about and you can just use a " Joe standard" Ethernet cable.  


      In the old days you'd have to make or buy crossover Ethernet cables in certain situations, but (fortunately) all modern hardware adapts to the cabling used – including the Micrel PHY.


      Hope that helps!

      Ryan

    • Nick Burkitt
      Participant
      Post count: 109
      The ENET 0 MIO connection wasn't enabled. If I fix that, though, I get changes to system.dts. But I need to build zynq-snickerdoodle.dts. What's the accepted way of getting both files into the devicetree binary? Or amy I missing something obvious?

      Thanks,
      -Nick

      On Wednesday, November 16, 2016 at 2:44:39 PM UTC-8, Bush wrote:

      This is the device tree node we've have used for other ENET baseboards:

                      gem0: ethernet@e000b000 {
                              compatible =            "cdns,zynq-gem", "cdns,gem";
                              reg =                   <0xe000b000 0x1000>;
                              status =                "okay";
                              interrupts =            <0x0 0x16 0x4>;
                              clocks =                <&clkc 0x1e>,
                                                      <&clkc 0x1e>,
                                                      <&clkc 0xd>;
                              clock-names =           "pclk", "hclk", "tx_clk";
                              #address-cells =        <0x1>;
                              #size-cells =           <0x0>;
                              phy-mode =              "rgmii-id";
                              phy-handle =            <&ethernet_phy>;

                              ethernet_phy: ethernet-phy@0 {
                                      reg = <0x0>;
                              };
                      };

      On Wednesday, November 16, 2016 at 2:38:57 PM UTC-8, Nick Burkitt wrote:

      Ryan – I'm trying to bring up  Micrel PHY on our latest baseboard. Can you supply any references for devicetree setup? The standard Linux documentation-by-folklore approach is getting really old.

      Thanks,
      -Nick

      On Saturday, October 17, 2015 at 3:26:48 PM UTC-7, krtk…@gmail.com wrote:

      Hi Steven,

      Auto MDI/MDI-X (required by the standard) has to do with the physical RJ45 ethernet jack adapting to both switch-port wiring and host wiring but for Gigabit, that’s pretty irrelevant because of the way the signaling is done. NoteL on the 10/100 Mbit jacks, this does actually matter… Fortunately his is all handled by the PHY, so nothing to worry about and you can just use a " Joe standard" Ethernet cable.  


      In the old days you'd have to make or buy crossover Ethernet cables in certain situations, but (fortunately) all modern hardware adapts to the cabling used – including the Micrel PHY.


      Hope that helps!

      Ryan

    • Bush
      Moderator
      Post count: 125
      You can add or change the bindings of the generated device tree by including it in a separate tree and adding whatever nodes or parameters you need. Check out some of the base device tree sources from here: https://github.com/krtkl/snickerdoodle-dts

      Can you post the generated device tree source?

      On Wednesday, November 16, 2016 at 6:11:12 PM UTC-8, Nick Burkitt wrote:

      The ENET 0 MIO connection wasn't enabled. If I fix that, though, I get changes to system.dts. But I need to build zynq-snickerdoodle.dts. What's the accepted way of getting both files into the devicetree binary? Or amy I missing something obvious?

      Thanks,
      -Nick

      On Wednesday, November 16, 2016 at 2:44:39 PM UTC-8, Bush wrote:

      This is the device tree node we've have used for other ENET baseboards:

                      gem0: ethernet@e000b000 {
                              compatible =            "cdns,zynq-gem", "cdns,gem";
                              reg =                   <0xe000b000 0x1000>;
                              status =                "okay";
                              interrupts =            <0x0 0x16 0x4>;
                              clocks =                <&clkc 0x1e>,
                                                      <&clkc 0x1e>,
                                                      <&clkc 0xd>;
                              clock-names =           "pclk", "hclk", "tx_clk";
                              #address-cells =        <0x1>;
                              #size-cells =           <0x0>;
                              phy-mode =              "rgmii-id";
                              phy-handle =            <&ethernet_phy>;

                              ethernet_phy: ethernet-phy@0 {
                                      reg = <0x0>;
                              };
                      };

      On Wednesday, November 16, 2016 at 2:38:57 PM UTC-8, Nick Burkitt wrote:

      Ryan – I'm trying to bring up  Micrel PHY on our latest baseboard. Can you supply any references for devicetree setup? The standard Linux documentation-by-folklore approach is getting really old.

      Thanks,
      -Nick

      On Saturday, October 17, 2015 at 3:26:48 PM UTC-7, krtk…@gmail.com wrote:

      Hi Steven,

      Auto MDI/MDI-X (required by the standard) has to do with the physical RJ45 ethernet jack adapting to both switch-port wiring and host wiring but for Gigabit, that’s pretty irrelevant because of the way the signaling is done. NoteL on the 10/100 Mbit jacks, this does actually matter… Fortunately his is all handled by the PHY, so nothing to worry about and you can just use a " Joe standard" Ethernet cable.  


      In the old days you'd have to make or buy crossover Ethernet cables in certain situations, but (fortunately) all modern hardware adapts to the cabling used – including the Micrel PHY.


      Hope that helps!

      Ryan

    • Nick Burkitt
      Participant
      Post count: 109
      Thanks – I didn't quite follow that. The generated file, system.dts can't be included (as in /include/) without provoking a compiler error. Not counting one wholly made up file (for my UIO stuff), there are two source (.dts) and three include (.dtsi) files. It appears that I need the union of those five files, but the DTC compiler doesn't know that trick. Here's the generated system.dts.

      Thanks,
      -Nick

      /*
       * CAUTION: This file is automatically generated by Xilinx.
       * Version:  
       * Today is: Wed Nov 16 16:35:38 2016
      */


      /dts-v1/;
      /include/ "zynq-7000.dtsi"
      /include/ "pl.dtsi"
      / {
      cpus {
      cpu@0 {
      operating-points = <666666 1000000 333333 1000000>;
      };
      };
      chosen {
      bootargs = "console=ttyPS0,115200";
      };
      aliases {
      ethernet0 = &gem0;
      serial0 = &uart0;
      serial1 = &axi_uartlite_1;
      serial2 = &axi_uart16550_0;
      serial3 = &axi_uartlite_0;
      spi0 = &qspi;
      spi1 = &spi1;
      };
      memory {
      device_type = "memory";
      reg = <0x0 0x40000000>;
      };
      };
      &gpio0 {
      emio-gpio-width = <64>;
      gpio-mask-high = <0x0>;
      gpio-mask-low = <0x5600>;
      };
      &i2c0 {
      clock-frequency = <400000>;
      status = "okay";
      };
      &i2c1 {
      clock-frequency = <400000>;
      status = "okay";
      };
      &intc {
      num_cpus = <2>;
      num_interrupts = <96>;
      };
      &qspi {
      is-dual = <0>;
      num-cs = <1>;
      status = "okay";
      };
      &sdhci0 {
      status = "okay";
      xlnx,has-cd = <0x0>;
      xlnx,has-power = <0x0>;
      xlnx,has-wp = <0x0>;
      };
      &sdhci1 {
      status = "okay";
      xlnx,has-cd = <0x0>;
      xlnx,has-power = <0x0>;
      xlnx,has-wp = <0x0>;
      };
      &spi1 {
      is-decoded-cs = <0>;
      num-cs = <1>;
      status = "okay";
      };
      &uart0 {
      current-speed = <115200>;
      device_type = "serial";
      port-number = <0>;
      status = "okay";
      };
      &gem0 {
      local-mac-address = [00 0a 35 00 00 00];
      phy-mode = "rgmii-id";
      status = "okay";
      xlnx,ptp-enet-clock = <0x69f6bcb>;
      };
      &clkc {
      fclk-enable = <0x1>;
      ps-clk-frequency = <33333333>;
      };
      On Wednesday, November 16, 2016 at 6:16:43 PM UTC-8, Bush wrote:

      You can add or change the bindings of the generated device tree by including it in a separate tree and adding whatever nodes or parameters you need. Check out some of the base device tree sources from here: https://github.com/krtkl/snickerdoodle-dts

      Can you post the generated device tree source?

      On Wednesday, November 16, 2016 at 6:11:12 PM UTC-8, Nick Burkitt wrote:

      The ENET 0 MIO connection wasn't enabled. If I fix that, though, I get changes to system.dts. But I need to build zynq-snickerdoodle.dts. What's the accepted way of getting both files into the devicetree binary? Or amy I missing something obvious?

      Thanks,
      -Nick

      On Wednesday, November 16, 2016 at 2:44:39 PM UTC-8, Bush wrote:

      This is the device tree node we've have used for other ENET baseboards:

                      gem0: ethernet@e000b000 {
                              compatible =            "cdns,zynq-gem", "cdns,gem";
                              reg =                   <0xe000b000 0x1000>;
                              status =                "okay";
                              interrupts =            <0x0 0x16 0x4>;
                              clocks =                <&clkc 0x1e>,
                                                      <&clkc 0x1e>,
                                                      <&clkc 0xd>;
                              clock-names =           "pclk", "hclk", "tx_clk";
                              #address-cells =        <0x1>;
                              #size-cells =           <0x0>;
                              phy-mode =              "rgmii-id";
                              phy-handle =            <&ethernet_phy>;

                              ethernet_phy: ethernet-phy@0 {
                                      reg = <0x0>;
                              };
                      };

      On Wednesday, November 16, 2016 at 2:38:57 PM UTC-8, Nick Burkitt wrote:

      Ryan – I'm trying to bring up  Micrel PHY on our latest baseboard. Can you supply any references for devicetree setup? The standard Linux documentation-by-folklore approach is getting really old.

      Thanks,
      -Nick

      On Saturday, October 17, 2015 at 3:26:48 PM UTC-7, krtk…@gmail.com wrote:

      Hi Steven,

      Auto MDI/MDI-X (required by the standard) has to do with the physical RJ45 ethernet jack adapting to both switch-port wiring and host wiring but for Gigabit, that’s pretty irrelevant because of the way the signaling is done. NoteL on the 10/100 Mbit jacks, this does actually matter… Fortunately his is all handled by the PHY, so nothing to worry about and you can just use a " Joe standard" Ethernet cable.  


      In the old days you'd have to make or buy crossover Ethernet cables in certain situations, but (fortunately) all modern hardware adapts to the cabling used – including the Micrel PHY.


      Hope that helps!

      Ryan

    • Bush
      Moderator
      Post count: 125
      It looks like you won't be able to directly import the generated dts without modifying it in some way. The issue is in the /dts-v1/; line. The DTC expects this to be the first instruction line it encounters and for it to appear only once. You can directly modify the system.dts file, although the changes will not persist if/when you modify your design.  You can change:

      &gem0 {
      local-mac-address = [00 0a 35 00 00 00];
      phy-mode = "rgmii-id";
      status = "okay";
      xlnx,ptp-enet-clock = <0x69f6bcb>;
      };

      to

      &gem0 {
      local-mac-address = [00 0a 35 00 00 00];
      phy-mode = "rgmii-id";
      status = "okay";
      xlnx,ptp-enet-clock = <0x69f6bcb>;
      phy-handle = <&ethernet_phy>;
      ethernet_phy: ethernet-phy@0 {
      reg = <0x0>;

      };
      };

      Otherwise you will need to remove the /dts-v1/; line from the generated dts and then use the /include/ method to modify the dts contents.

      On Wednesday, November 16, 2016 at 6:39:48 PM UTC-8, Nick Burkitt wrote:

      Thanks – I didn't quite follow that. The generated file, system.dts can't be included (as in /include/) without provoking a compiler error. Not counting one wholly made up file (for my UIO stuff), there are two source (.dts) and three include (.dtsi) files. It appears that I need the union of those five files, but the DTC compiler doesn't know that trick. Here's the generated system.dts.

      Thanks,
      -Nick

      /*
       * CAUTION: This file is automatically generated by Xilinx.
       * Version:  
       * Today is: Wed Nov 16 16:35:38 2016
      */


      /dts-v1/;
      /include/ "zynq-7000.dtsi"
      /include/ "pl.dtsi"
      / {
      cpus {
      cpu@0 {
      operating-points = <666666 1000000 333333 1000000>;
      };
      };
      chosen {
      bootargs = "console=ttyPS0,115200";
      };
      aliases {
      ethernet0 = &gem0;
      serial0 = &uart0;
      serial1 = &axi_uartlite_1;
      serial2 = &axi_uart16550_0;
      serial3 = &axi_uartlite_0;
      spi0 = &qspi;
      spi1 = &spi1;
      };
      memory {
      device_type = "memory";
      reg = <0x0 0x40000000>;
      };
      };
      &gpio0 {
      emio-gpio-width = <64>;
      gpio-mask-high = <0x0>;
      gpio-mask-low = <0x5600>;
      };
      &i2c0 {
      clock-frequency = <400000>;
      status = "okay";
      };
      &i2c1 {
      clock-frequency = <400000>;
      status = "okay";
      };
      &intc {
      num_cpus = <2>;
      num_interrupts = <96>;
      };
      &qspi {
      is-dual = <0>;
      num-cs = <1>;
      status = "okay";
      };
      &sdhci0 {
      status = "okay";
      xlnx,has-cd = <0x0>;
      xlnx,has-power = <0x0>;
      xlnx,has-wp = <0x0>;
      };
      &sdhci1 {
      status = "okay";
      xlnx,has-cd = <0x0>;
      xlnx,has-power = <0x0>;
      xlnx,has-wp = <0x0>;
      };
      &spi1 {
      is-decoded-cs = <0>;
      num-cs = <1>;
      status = "okay";
      };
      &uart0 {
      current-speed = <115200>;
      device_type = "serial";
      port-number = <0>;
      status = "okay";
      };
      &gem0 {
      local-mac-address = [00 0a 35 00 00 00];
      phy-mode = "rgmii-id";
      status = "okay";
      xlnx,ptp-enet-clock = <0x69f6bcb>;
      };
      &clkc {
      fclk-enable = <0x1>;
      ps-clk-frequency = <33333333>;
      };
      On Wednesday, November 16, 2016 at 6:16:43 PM UTC-8, Bush wrote:

      You can add or change the bindings of the generated device tree by including it in a separate tree and adding whatever nodes or parameters you need. Check out some of the base device tree sources from here: https://github.com/krtkl/snickerdoodle-dts

      Can you post the generated device tree source?

      On Wednesday, November 16, 2016 at 6:11:12 PM UTC-8, Nick Burkitt wrote:

      The ENET 0 MIO connection wasn't enabled. If I fix that, though, I get changes to system.dts. But I need to build zynq-snickerdoodle.dts. What's the accepted way of getting both files into the devicetree binary? Or amy I missing something obvious?

      Thanks,
      -Nick

      On Wednesday, November 16, 2016 at 2:44:39 PM UTC-8, Bush wrote:

      This is the device tree node we've have used for other ENET baseboards:

                      gem0: ethernet@e000b000 {
                              compatible =            "cdns,zynq-gem", "cdns,gem";
                              reg =                   <0xe000b000 0x1000>;
                              status =                "okay";
                              interrupts =            <0x0 0x16 0x4>;
                              clocks =                <&clkc 0x1e>,
                                                      <&clkc 0x1e>,
                                                      <&clkc 0xd>;
                              clock-names =           "pclk", "hclk", "tx_clk";
                              #address-cells =        <0x1>;
                              #size-cells =           <0x0>;
                              phy-mode =              "rgmii-id";
                              phy-handle =            <&ethernet_phy>;

                              ethernet_phy: ethernet-phy@0 {
                                      reg = <0x0>;
                              };
                      };

      On Wednesday, November 16, 2016 at 2:38:57 PM UTC-8, Nick Burkitt wrote:

      Ryan – I'm trying to bring up  Micrel PHY on our latest baseboard. Can you supply any references for devicetree setup? The standard Linux documentation-by-folklore approach is getting really old.

      Thanks,
      -Nick

      On Saturday, October 17, 2015 at 3:26:48 PM UTC-7, krtk…@gmail.com wrote:

      Hi Steven,

      Auto MDI/MDI-X (required by the standard) has to do with the physical RJ45 ethernet jack adapting to both switch-port wiring and host wiring but for Gigabit, that’s pretty irrelevant because of the way the signaling is done. NoteL on the 10/100 Mbit jacks, this does actually matter… Fortunately his is all handled by the PHY, so nothing to worry about and you can just use a " Joe standard" Ethernet cable.  


      In the old days you'd have to make or buy crossover Ethernet cables in certain situations, but (fortunately) all modern hardware adapts to the cabling used – including the Micrel PHY.


      Hope that helps!

      Ryan

    • Nick Burkitt
      Participant
      Post count: 109
      Okay, thanks. Obviously, a process that includes hand-editing generated files is less than ideal. But that could be said for the whole devicetree thing. 

      There is a lot of redundant information in these files, and it's undoubtedly a last-man-standing algorithm as to what ends up in the binary, which means the order in which the files are included is critical. In the spirit of "don't force it, get a bigger hammer," I'm just going to strip all the /include/ directives from the files, along with the /dtc-v1/ line, and make my own .dts file that includes things in order from boilerplate to bespoke. It's a few bash lines, plus a sed script to automate the process. Grumble, grumble.
      But still no joy. Is there any telltale behavior to look for from the MAC if it's not connected to a PHY, when the PHY itself isn't connected to a network?
      Thanks again,
      -Nick

      On Wednesday, November 16, 2016 at 6:48:58 PM UTC-8, Bush wrote:

      It looks like you won't be able to directly import the generated dts without modifying it in some way. The issue is in the /dts-v1/; line. The DTC expects this to be the first instruction line it encounters and for it to appear only once. You can directly modify the system.dts file, although the changes will not persist if/when you modify your design.  You can change:

      &gem0 {
      local-mac-address = [00 0a 35 00 00 00];
      phy-mode = "rgmii-id";
      status = "okay";
      xlnx,ptp-enet-clock = <0x69f6bcb>;
      };

      to

      &gem0 {
      local-mac-address = [00 0a 35 00 00 00];
      phy-mode = "rgmii-id";
      status = "okay";
      xlnx,ptp-enet-clock = <0x69f6bcb>;
      phy-handle = <&ethernet_phy>;
      ethernet_phy: ethernet-phy@0 {
      reg = <0x0>;

      };
      };

      Otherwise you will need to remove the /dts-v1/; line from the generated dts and then use the /include/ method to modify the dts contents.

      On Wednesday, November 16, 2016 at 6:39:48 PM UTC-8, Nick Burkitt wrote:

      Thanks – I didn't quite follow that. The generated file, system.dts can't be included (as in /include/) without provoking a compiler error. Not counting one wholly made up file (for my UIO stuff), there are two source (.dts) and three include (.dtsi) files. It appears that I need the union of those five files, but the DTC compiler doesn't know that trick. Here's the generated system.dts.

      Thanks,
      -Nick

      /*
       * CAUTION: This file is automatically generated by Xilinx.
       * Version:  
       * Today is: Wed Nov 16 16:35:38 2016
      */


      /dts-v1/;
      /include/ "zynq-7000.dtsi"
      /include/ "pl.dtsi"
      / {
      cpus {
      cpu@0 {
      operating-points = <666666 1000000 333333 1000000>;
      };
      };
      chosen {
      bootargs = "console=ttyPS0,115200";
      };
      aliases {
      ethernet0 = &gem0;
      serial0 = &uart0;
      serial1 = &axi_uartlite_1;
      serial2 = &axi_uart16550_0;
      serial3 = &axi_uartlite_0;
      spi0 = &qspi;
      spi1 = &spi1;
      };
      memory {
      device_type = "memory";
      reg = <0x0 0x40000000>;
      };
      };
      &gpio0 {
      emio-gpio-width = <64>;
      gpio-mask-high = <0x0>;
      gpio-mask-low = <0x5600>;
      };
      &i2c0 {
      clock-frequency = <400000>;
      status = "okay";
      };
      &i2c1 {
      clock-frequency = <400000>;
      status = "okay";
      };
      &intc {
      num_cpus = <2>;
      num_interrupts = <96>;
      };
      &qspi {
      is-dual = <0>;
      num-cs = <1>;
      status = "okay";
      };
      &sdhci0 {
      status = "okay";
      xlnx,has-cd = <0x0>;
      xlnx,has-power = <0x0>;
      xlnx,has-wp = <0x0>;
      };
      &sdhci1 {
      status = "okay";
      xlnx,has-cd = <0x0>;
      xlnx,has-power = <0x0>;
      xlnx,has-wp = <0x0>;
      };
      &spi1 {
      is-decoded-cs = <0>;
      num-cs = <1>;
      status = "okay";
      };
      &uart0 {
      current-speed = <115200>;
      device_type = "serial";
      port-number = <0>;
      status = "okay";
      };
      &gem0 {
      local-mac-address = [00 0a 35 00 00 00];
      phy-mode = "rgmii-id";
      status = "okay";
      xlnx,ptp-enet-clock = <0x69f6bcb>;
      };
      &clkc {
      fclk-enable = <0x1>;
      ps-clk-frequency = <33333333>;
      };
      On Wednesday, November 16, 2016 at 6:16:43 PM UTC-8, Bush wrote:

      You can add or change the bindings of the generated device tree by including it in a separate tree and adding whatever nodes or parameters you need. Check out some of the base device tree sources from here: https://github.com/krtkl/snickerdoodle-dts

      Can you post the generated device tree source?

      On Wednesday, November 16, 2016 at 6:11:12 PM UTC-8, Nick Burkitt wrote:

      The ENET 0 MIO connection wasn't enabled. If I fix that, though, I get changes to system.dts. But I need to build zynq-snickerdoodle.dts. What's the accepted way of getting both files into the devicetree binary? Or amy I missing something obvious?

      Thanks,
      -Nick

      On Wednesday, November 16, 2016 at 2:44:39 PM UTC-8, Bush wrote:

      This is the device tree node we've have used for other ENET baseboards:

                      gem0: ethernet@e000b000 {
                              compatible =            "cdns,zynq-gem", "cdns,gem";
                              reg =                   <0xe000b000 0x1000>;
                              status =                "okay";
                              interrupts =            <0x0 0x16 0x4>;
                              clocks =                <&clkc 0x1e>,
                                                      <&clkc 0x1e>,
                                                      <&clkc 0xd>;
                              clock-names =           "pclk", "hclk", "tx_clk";
                              #address-cells =        <0x1>;
                              #size-cells =           <0x0>;
                              phy-mode =              "rgmii-id";
                              phy-handle =            <&ethernet_phy>;

                              ethernet_phy: ethernet-phy@0 {
                                      reg = <0x0>;
                              };
                      };

      On Wednesday, November 16, 2016 at 2:38:57 PM UTC-8, Nick Burkitt wrote:

      Ryan – I'm trying to bring up  Micrel PHY on our latest baseboard. Can you supply any references for devicetree setup? The standard Linux documentation-by-folklore approach is getting really old.

      Thanks,
      -Nick

      On Saturday, October 17, 2015 at 3:26:48 PM UTC-7, krtk…@gmail.com wrote:

      Hi Steven,

      Auto MDI/MDI-X (required by the standard) has to do with the physical RJ45 ethernet jack adapting to both switch-port wiring and host wiring but for Gigabit, that’s pretty irrelevant because of the way the signaling is done. NoteL on the 10/100 Mbit jacks, this does actually matter… Fortunately his is all handled by the PHY, so nothing to worry about and you can just use a " Joe standard" Ethernet cable.  


      In the old days you'd have to make or buy crossover Ethernet cables in certain situations, but (fortunately) all modern hardware adapts to the cabling used – including the Micrel PHY.


      Hope that helps!

      Ryan

Viewing 10 reply threads
  • You must be logged in to reply to this topic.