Skip to content
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

build/tools/amebasmart/gnu_utility: Enable GPIO B for wakeup src inte… #6546

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhongnuo-tang
Copy link
Contributor

@zhongnuo-tang zhongnuo-tang commented Dec 2, 2024

…rrupt

  1. enable GPIO B for wakeup src interrupt

@zhongnuo-tang
Copy link
Contributor Author

zhongnuo-tang commented Dec 2, 2024

Please take note for PA_4 to be wakeup src, CONFIG_RTL8730E_BOARD_REVISION needs to be >=5, else PA_4 is used as UART1 rx.

Hi @ewoodev, since PB22 is required as a GPIO wakeup source, it cannot be use for I2S2 MCLK concurrently, I will PR separately to remove i2s2 mclk. From my understanding, I2S2 MCLK is not required for the current setting, so i will set it as NULL and not do any pinmux for it. Please let me know if my understanding is wrong.

Test results:
CA32PG-KM4PG-Wakeup : GPIO B
CA32PG-KM4PG-Wakeup : GPIO A

Thank you

…rrupt

1. enable GPIO B for wakeup src interrupt
@zhongnuo-tang
Copy link
Contributor Author

PR #6549 to remove PB22 in I2S2

@@ -240,8 +240,10 @@ void board_gpio_initialize(void)
u32 pinpull;
} pins[] = {
{PA_23, PIN_INPUT, PullNone},
{PA_4, PIN_INPUT, PullNone},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this is only supported for board revision smaller than 5, you should add this
#if CONFIG_RTL8730E_BOARD_REVISION < 5

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add the condition here #if CONFIG_RTL8730E_BOARD_REVISION >= 5, but that needs I2C1 to be disabled (I2C1 is not used).

Hi @sunghan-chang ,
Do you think we should introduce other macro for such gpio wakeup pin? As either >=5 or <5 have peripheral uses PA_4, it might create unnecessary issue.

@@ -240,8 +240,10 @@ void board_gpio_initialize(void)
u32 pinpull;
} pins[] = {
{PA_23, PIN_INPUT, PullNone},
{PA_4, PIN_INPUT, PullNone},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove it in here.

we have no plan to register gpio driver about this pin.

/* PB_20 is gpio pin number for LED */
{PB_20, PIN_OUTPUT, PullDown},
{PB_22, PIN_INPUT, PullNone},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#6533
This changing is duplicating, Could you please remove it here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants