Skip to content

Conversation

@jvasanth1
Copy link
Contributor

The Microchip XEC (MEC172x and MEC152x) have a breathing-blinking LED (BBLED) block which implements a simple PWM mode. This PR adds pwm_mchp_xec_bbled driver to operate the bbled as pwms.

@zephyrbot zephyrbot added area: Devicetree Binding PR modifies or adds a Device Tree binding platform: Microchip MEC Microchip MEC Platform area: PWM Pulse Width Modulation labels Dec 5, 2022
@jvasanth1 jvasanth1 force-pushed the xec_bbled_pwm_pr branch 2 times, most recently from d986cca to 40e5efa Compare December 6, 2022 20:22
@jvasanth1
Copy link
Contributor Author

@albertofloyd can you help to review

albertofloyd
albertofloyd previously approved these changes Dec 12, 2022
@jvasanth1
Copy link
Contributor Author

@galak can you help to review?

Copy link
Member

@henrikbrixandersen henrikbrixandersen left a comment

Choose a reason for hiding this comment

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

The driver and bindings look good, but perhaps a dedicated sample for a simple PWM LED driver is too much?

@jvasanth1
Copy link
Contributor Author

The driver and bindings look good, but perhaps a dedicated sample for a simple PWM LED driver is too much?

The dedicated sample is part of samples/boards/mec172xevb_assy6906

@jvasanth1
Copy link
Contributor Author

@henrikbrixandersen can you help to approve?

Copy link
Member

@henrikbrixandersen henrikbrixandersen left a comment

Choose a reason for hiding this comment

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

The driver and bindings look good, but perhaps a dedicated sample for a simple PWM LED driver is too much?

The dedicated sample is part of samples/boards/mec172xevb_assy6906

I can see that. I still see no value added by a board specific PWM LED sample. We have a couple of PWM LED samples under samples/basic/ already. Any reason why this particular PWM LED cannot work with those samples?

@jvasanth1
Copy link
Contributor Author

I can see that. I still see no value added by a board specific PWM LED sample. We have a couple of PWM LED samples under samples/basic/ already. Any reason why this particular PWM LED cannot work with those samples?

okay, will remove the board specific PWM LED sample.

The Microchip XEC (MEC172x and MEC152x) have a breathing-blinking
LED (BBLED) block which implements a simple PWM mode. The BBLED
PWM frequencies are 32KHz and 48MHz selectable in device tree.
Frequency divider is 12-bit resolution from 256 to (256 * 4096).

Signed-off-by: Jay Vasanth <[email protected]>
@jvasanth1
Copy link
Contributor Author

@henrikbrixandersen can you help to approve?

@jvasanth1
Copy link
Contributor Author

@albertofloyd can you help to re-approve?

@fabiobaltieri fabiobaltieri added this to the v3.4.0 milestone Feb 8, 2023
@nashif nashif merged commit f371482 into zephyrproject-rtos:main Feb 20, 2023
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: PWM Pulse Width Modulation platform: Microchip MEC Microchip MEC Platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants