-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] Pull request for ip_k66f board 13.04 #24323
Conversation
The ip_k66f board (embOS/IP switch) from Segger doesn't have the serial console pins connected to J-Link OB. As a result one needs to use RTT to get the serial console. Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Due to the routing, the ip_k66f board can only use RTT to export console. With this change the SHELL is enabled to get access to network commands (like ping). To use it with RTT from Segger: ------------------------------- On HOST (terminal 1): ./JLink_V664/JLinkRTTLogger -Device MK66FN2M0XXX18 -RTTChannel 1 -if SWD -Speed 4000 ~/rtt.log On HOST (terminal 2): nc localhost 19021 (19021 is the port number for the Segger RTT server) Signed-off-by: Lukasz Majewski <lukma@denx.de>
This change allows usage of larger RTT "UP" buffers from target to host. It is necessary to allow correct execution of ping command: net ping 192.168.0.1 Signed-off-by: Lukasz Majewski <lukma@denx.de>
The CONFIG_OSC_XTAL0_FREQ shall be defined only once, so remove it from board specific defconfig. Signed-off-by: Lukasz Majewski <lukma@denx.de>
…I clock This option will configure MCUX block (by setting RMIISRC [19] bit to 1 in SIM_SOPT2 register) to use external clock source for RMII from ENET_1588_CLKIN). Signed-off-by: Lukasz Majewski <lukma@denx.de>
This change enables the RMII external clock source at the clock initialization function. Signed-off-by: Lukasz Majewski <lukma@denx.de>
…M_K64F The ip_k66f board can run with clock frequency of 180 MHz. However, this requires switching it to high speed mode. Now, this board uses 120MHz as already done for k64f SoC (setting PLL freq to 180 MHz causes the board to hang). Signed-off-by: Lukasz Majewski <lukma@denx.de>
…fconfig Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
…MI for PHY setup Some ICs - like DSA switches (e.g. ksz8794) - do not use SMI to setup and configure PHY. This change introduces a new Kconfig define - CONFIG_ETH_MCUX_NO_PHY_SMI - to allow replacing SMI communication with SPI or I2C. Signed-off-by: Lukasz Majewski <lukma@denx.de>
…tion via SMI After setting this option the ENET ETH driver for Kinetics can use I2C, SPI or be set as a fixed PHY. Signed-off-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Lukasz Majewski <lukma@denx.de>
This commit adds support for setting PHY configuration parameters at compilation time in Kconfig (i.e. the fixed PHY functionality). Signed-off-by: Lukasz Majewski <lukma@denx.de>
This change introduces a set of new Kconfig options necessary for setting PHY configuration at compilation time. Signed-off-by: Lukasz Majewski <lukma@denx.de>
By default the 100Mbps and Full Duplex PHY transmission is setup. Signed-off-by: Lukasz Majewski <lukma@denx.de>
This patch adds support for Microchip's KSZ8794 DSA device, which for switch and PHY control uses SPI communication. Signed-off-by: Lukasz Majewski <lukma@denx.de>
This patch add support for DSA switches to zephyr. It uses just single dsa_init() function to setup the switch IC. Signed-off-by: Lukasz Majewski <lukma@denx.de>
This patch adds support for DSA devices - like ksz8794 switch to the mcux Kinetics driver. It is recommended to enable ETH_MCUX_FIXED_PHY Kconfig switch. Signed-off-by: Lukasz Majewski <lukma@denx.de>
…board Signed-off-by: Lukasz Majewski <lukma@denx.de>
Some checks failed. Please fix and resubmit. checkpatch issues
Gitlint issuesCommit 5d77d03a67: Commit 68369d7eac: Commit 5f1aa14e1b: Commit a907ac8b1b: Commit 1c815b05ff: Commit 7dbcbd9a4d: Commit dc176695e2: Commit c106000230: Commit 93bb26839d: Commit 7ba63dd5b1: Commit 2a88019c2b: Commit 9710571d19: Commit eca8bd84d0: Commit 91d8104c3f: Commit e18207046a: Commit 9cdce893ae: Commit 97587f27e5: Commit abe936987d: Commit ad78ff9c2a: Commit 0883e3f6a1: Commit d3f7af956a: Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No objections to adding DSA support to Zephyr. There is actually an issue #22061 for this so you could mention that issue in one of the commits and add "Fixes ..." to it.
In order to help reviewing this thing, I would split the PR into multiple pieces:
- the DSA infrastructure support
- changes to boards
- changes to mcux
Currently many of the commits are somewhat unrelated to each other so in order to ease the review, it would be great if you could split the PR into more managable pieces.
Hi @lmajewski, I'm about going the same route but with KSZ9893. In our setup, the MCU (i.MX-RT 1062) has two ethernet (MAC) ports, where one port is having a single PHY (KSZ8081) and the second port is connected to the KSZ9893 trought RMII. The management of the switch is done over I2C and SMI (MDIO) is not used. With you changes to |
In my use case (the single eth port on K66F) the static (in Kconfig) option was the most appropriate and straightforward. Note 1: Note 2: |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
Dear Community,
This PR is more a RFC for proposed changes for NXP's Kinetics MCUX ENET to add support for
KSZ8794 DSA switch.
Most notable changes:
I would like to hear your opinion on the FIXED_PHY and proposed DSA support.