Skip to content

Conversation

@anuj01-gupta
Copy link

This patch consolidates all definitions related to PINs being used for rtl8730e board. This version changes

  • creates one board specific file board_pins.c and modified one board specific file board_pins.h
  • board_pins.c Have all the board pins which are accessed according to enabled and disabled peripheral.
  • Disabled peripheral pins are mentioned as unused pins
  • Enabled peripheral pins are used in the pin_table start
  • board_pins.h used for accesing pin_table using Macro based indexing, It is called from the peripherals.
  • Pins are assigned during runtime.

Comment on lines 33 to 40
#if defined(CONFIG_RTL8730E_BOARD_AIL) || defined(CONFIG_RTL8730E_BOARD_AILP) || defined(CONFIG_RTL8730E_BOARD_AILPW)
// UART1
{_PA_9, GPIO_PuPd_UP, GPIO_PuPd_UP},
{_PA_10, GPIO_PuPd_UP, GPIO_PuPd_UP},
#elif defined(CONFIG_RTL8730E_BOARD_AID)
{_PA_4, GPIO_PuPd_UP, GPIO_PuPd_UP},
{_PA_5, GPIO_PuPd_DOWN, GPIO_PuPd_DOWN},
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we seperate this file to each board?

************************************************************************************/
/* File name: rtl8730e_aid_board_pins.h */

#ifndef RTL8730E_AID_BOARD_PINS_H
Copy link
Contributor

Choose a reason for hiding this comment

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

This file is seems just cal count each board.

How about make this file to common and move the error checking to each board_pins.c
#error Not Supported, Please check the board type configure

sorry for confusing my prev comment

Copy link
Contributor

Choose a reason for hiding this comment

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

@ewoodev : board_pins.c will be for each board separately. like rtl8730e_aid_board_pins.c, rtl8730e_ailp_board_pins.c, etc.
and depending upon board type, one of these files will get into build using board type CONFIG option.

is it ok ?

@anuj01-gupta anuj01-gupta force-pushed the pin_restucture branch 2 times, most recently from 0f2df12 to 4a09cad Compare November 18, 2025 10:14
This patch consolidates all definitions related to PINs being used for rtl8730e board. This version changes

- creates one board specific file board_pins.c and modified one board specific file board_pins.h
- board_pins.c Have all the board pins which are accessed according to enabled and disabled perpheral.
- Disabled peripheral pins are mentioned as unused pins
- Enabled peripheral pins are used in the pin_table start
- board_pins.h used for accesing pin_table using Macro based indexing, It is called from the peripherals.
- Pins are assigned during runtime.
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.

4 participants