-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
drivers: ethernet: renesas: Support Renesas RA8 Ethernet driver #77850
base: main
Are you sure you want to change the base?
drivers: ethernet: renesas: Support Renesas RA8 Ethernet driver #77850
Conversation
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
7f2c197
to
46a85e2
Compare
interrupts: | ||
required: true | ||
|
||
phy-type: |
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.
This is too similar to the generic phy-connection-type. Also I don't think it's a good idea to have an enum of a bunch of different specific phy devices. The phy should be a separate node in DT if it is a separate device in hardware.
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.
@decsny , Changed to phy-connection-type
dts/arm/renesas/ra/ra8/ra8x1.dtsi
Outdated
reg = <0x40354100 0xfc>; | ||
interrupts = <42 0>; | ||
local-mac-address = [00 11 22 33 44 55]; | ||
phy-type = <RA_PHY_ICS1894>; |
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.
some info specific external phy doesn't belong in an soc devictree, unless that phy is embedded in the soc
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.
@decsny , Thank you for you feedback, now we are using phy node
drivers/ethernet/eth_renesas_ra.c
Outdated
} | ||
} | ||
} else if (res == -EAGAIN) { | ||
res = R_ETHER_LinkProcess(&ctx->ctrl); |
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.
should be using zephyr phy API in the driver, no new vendor hal phy apis please, users hate this
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.
@decsny , Thank you for you feedback, we change to implement mdio driver and now is using phy API from Zephyr, could you please help to recheck
46a85e2
to
d34901d
Compare
446ca92
to
d0199df
Compare
b92bf83
to
ac021e5
Compare
# Copyright (c) 2024 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
CONFIG_ENTROPY_DEVICE_RANDOM_GENERATOR=y |
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.
this is on by default, if the device supports it. so no need to enable it explicit.
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.
Thank you, I rebase the change and remove the commit for this.
CONFIG_ENTROPY_DEVICE_RANDOM_GENERATOR=y | ||
|
||
CONFIG_NET_DHCPV4=y | ||
CONFIG_NET_DHCPV4_INITIAL_DELAY_MAX=2 |
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.
is it necessary to set this to 2 instead using the default of 10?
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.
Thank you, I rebase the change and remove the commit for this.
a0c9ead
to
7384dd7
Compare
# Copyright (c) 2024 Renesas Electronics Corporation | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
CONFIG_ENTROPY_DEVICE_RANDOM_GENERATOR=y |
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.
with #80677 merged, this file and the other board specific files are no longer needed for that sample.
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.
@maass-hamburg , Thank you, I rebase the change and remove the commit for this.
Add support for mdio driver for Renesas RA MCU series This support utilize the r_ether_phy driver in hal renesas to support mdio write and read function Signed-off-by: Duy Nguyen <[email protected]>
The ICS1894 phy AN_COMPLETE bit is latched high, this make the BMSR first read return incorrect status of the AN state, update one more BMSR read to ensure all latched bit is clear and BMSR return actual status of the phy chip Signed-off-by: Duy Nguyen <[email protected]>
This commit is to enable Ethernet drivers support on Renesas RA MCU, first target support is the Renesas RA8 series Signed-off-by: Duy Nguyen <[email protected]>
7384dd7
to
cf598a4
Compare
@decsny , could you help to recheck this PR |
Enable Ethernet controller node and mdio node for RA boards. Add pinctl for mdio and Ethernet usage Signed-off-by: Duy Nguyen <[email protected]>
Temporary update hal_renesas commit for Ethernet Signed-off-by: Thao Luong <[email protected]>
When publish message, the dup_flag is not intialize causing it to have random value and making the AWS MQTT broker to reject the message Add initialize dup_flag as 0 Signed-off-by: Duy Nguyen <[email protected]>
cf598a4
to
34df366
Compare
|
||
#define ETHER_ISR_EE_RECEIVE_EVENT_MASK (0x01070000) | ||
|
||
#if ((ETHER_TOTAL_BUF_NUM) >= 2) |
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.
BTW, you could avoid these long list of conditional variable declarations by using LISTIFY()
macro. It would make the code a bit more readable by avoiding this repetitive code.
This PR is to support Ethernet driver for the Renesas RA8 boards
The driver design is based on the using Ethernet and Ethernet PHY FSP driver from hal_renesas to implement.