-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
NXP S32 introduce support PSI5 #79824
base: main
Are you sure you want to change the base?
NXP S32 introduce support PSI5 #79824
Conversation
0ee0652
to
b50ef76
Compare
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. |
acc9b3e
to
5a072e9
Compare
101fad8
to
dfebc33
Compare
dfebc33
to
69e051a
Compare
402551c
to
9a0367b
Compare
4ce3d57
to
eca2db8
Compare
147bb43
to
05f2644
Compare
05f2644
to
942502a
Compare
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.
A test is needed as well, samples are not a replacement for tests.
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
description: Properties for Peripheral Sensor Interface (PSI5) |
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.
DeviceTree binding for
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.
I updated
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.
@congnguyenhuu They are redundant and do not need to be prefixed. Putting them in dts/bindings
already indicates that they are a binding. E.g. other bindings description.
Renesas RA ADC node
Static Battery Characteristics
Description of pre-defined file systems.
ADI MAX32 compatible Counter RTC
PL330 DMA Controller
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.
Since this is a vendor-agnostic API, I don't see why this sample is placed in the NXP folder.
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.
Because this is the smallest sample it provides that can run, I guess its prototype is developed based on nxp 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.
Except the device node name (added a comment about it below), I don't see anything vendor-specific in the sample's code, that would justify placing it in the vendor's folder.
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.
I moved this sample to a generic driver sample.
And also created a test API driver .
|
||
#include <zephyr/drivers/psi5/psi5.h> | ||
|
||
#define PSI5_NODE DT_INST(0, nxp_s32_psi5) |
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.
A vendor-agnostic alias, that will be defined in board overlay, should be used here, instead of the IP DT node name.
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.
I updated
This driver allows to communication (send, receive) with PSI5 device Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
enable support psi5 Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
Create test, sample for psi5 driver Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
942502a
to
8c5a2c3
Compare
Introduce support Peripheral Sensor Interface (PSI5) driver on S32Z. This driver allows to communication (send, receive) with PSI5 device.
The test result: PSI5-TESTING-RESULT.pptx