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

drivers: gpio: Add Davinci gpio controller support #61316

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

slpp95prashanth
Copy link
Contributor

@slpp95prashanth slpp95prashanth commented Aug 9, 2023

Davinci gpio controller support to add various soc gpio support (J721E, AM654).

TRM for J721e https://www.ti.com/lit/zip/spruil1
File: spruil1c.pdf
GPIO: section 12.1.2

BeagleBone AI_64 https://beagleboard.org/ai-64

Copy link
Contributor

@DhruvaG2000 DhruvaG2000 left a comment

Choose a reason for hiding this comment

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

Have left inline comments

drivers/gpio/gpio_davinci.c Outdated Show resolved Hide resolved
drivers/gpio/Kconfig.davinci Outdated Show resolved Hide resolved
drivers/gpio/gpio_davinci.c Outdated Show resolved Hide resolved
drivers/gpio/gpio_davinci.c Show resolved Hide resolved
drivers/gpio/gpio_davinci.c Outdated Show resolved Hide resolved
dts/bindings/gpio/ti,am654-gpio-nexus.yaml Outdated Show resolved Hide resolved
@vaishnavachath vaishnavachath self-requested a review August 9, 2023 07:22
Copy link
Collaborator

@dnltz dnltz left a comment

Choose a reason for hiding this comment

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

Left some inline comments too.

drivers/gpio/CMakeLists.txt Outdated Show resolved Hide resolved
dts/bindings/gpio/ti,am654-gpio-nexus.yaml Outdated Show resolved Hide resolved
dts/bindings/gpio/ti,am654-gpio-nexus.yaml Outdated Show resolved Hide resolved
drivers/gpio/gpio_davinci.c Outdated Show resolved Hide resolved
drivers/gpio/gpio_davinci.c Show resolved Hide resolved
drivers/gpio/gpio_davinci.c Outdated Show resolved Hide resolved
drivers/gpio/gpio_davinci.c Show resolved Hide resolved
Copy link
Collaborator

@dnltz dnltz left a comment

Choose a reason for hiding this comment

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

Good job! I only see one issue with how you broke the arguments.

drivers/gpio/gpio_davinci.c Outdated Show resolved Hide resolved
Copy link
Collaborator

@dnltz dnltz left a comment

Choose a reason for hiding this comment

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

Looks good to me :)

@DhruvaG2000
Copy link
Contributor

@slpp95prashanth any reason to still keep this a draft PR? Please mark as ready if you finally think it's in a good state to review and merge. (unless there's some "depends on" PR that needs to go in before this). If so then please specify which PR

@slpp95prashanth slpp95prashanth marked this pull request as ready for review August 15, 2023 12:01
@zephyrbot zephyrbot added platform: TI SimpleLink Texas Instruments SimpleLink MCU area: Devicetree Binding PR modifies or adds a Device Tree binding area: GPIO labels Aug 15, 2023
Copy link
Contributor

@DhruvaG2000 DhruvaG2000 left a comment

Choose a reason for hiding this comment

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

Left some comments, please take a look

drivers/gpio/gpio_davinci.c Show resolved Hide resolved
dts/bindings/gpio/ti,davinci-gpio.yaml Outdated Show resolved Hide resolved
drivers/gpio/gpio_davinci.c Show resolved Hide resolved
drivers/gpio/gpio_davinci.c Show resolved Hide resolved
Copy link
Contributor

@DhruvaG2000 DhruvaG2000 left a comment

Choose a reason for hiding this comment

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

LGTM. thanks for addressing all my concerns!

drivers/gpio/gpio_davinci.c Show resolved Hide resolved
drivers/gpio/gpio_davinci.c Show resolved Hide resolved
vaishnavachath
vaishnavachath previously approved these changes Aug 21, 2023
Copy link
Collaborator

@vaishnavachath vaishnavachath left a comment

Choose a reason for hiding this comment

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

Looks Good, this should ideally be merged only after #59191 is merged, if someone tests and confirms functionality on AM62 A53/M4 target that would be great.

@dnltz
Copy link
Collaborator

dnltz commented Aug 21, 2023

Looks Good, this should ideally be merged only after #59191 is merged, if someone tests and confirms functionality on AM62 A53/M4 target that would be great.

I can do that today/tomorrow!

aasinclair
aasinclair previously approved these changes Aug 24, 2023
Copy link
Contributor

@aasinclair aasinclair left a comment

Choose a reason for hiding this comment

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

Looks good.
Some of the whitespace looks a little strange, for future contributions you may wish to consider using clang-format to autoformat the code, rather than aligning things manually.

drivers/gpio/gpio_davinci.c Outdated Show resolved Hide resolved
Davinci gpio controller support to add various soc gpio
support (J721E, AM654).

TRM for J721e https://www.ti.com/lit/zip/spruil1
File: spruil1c.pdf
GPIO: section 12.1.2

BeagleBone AI_64 https://beagleboard.org/ai-64

Signed-off-by: Prashanth S <slpp95prashanth@yahoo.com>
drivers/gpio/gpio_davinci.c Show resolved Hide resolved
@gmarull gmarull dismissed their stale review August 31, 2023 08:23

not applicable

@carlescufi carlescufi merged commit 12996d5 into zephyrproject-rtos:main Aug 31, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Devicetree Binding PR modifies or adds a Device Tree binding area: GPIO platform: TI SimpleLink Texas Instruments SimpleLink MCU
Projects
None yet
Development

Successfully merging this pull request may close these issues.