Skip to content

drivers: pwm: nrf: nrf pwm driver modification to use DT #11726

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
243 changes: 0 additions & 243 deletions drivers/pwm/Kconfig.nrfx
Original file line number Diff line number Diff line change
Expand Up @@ -13,284 +13,41 @@ menuconfig PWM_NRFX
if PWM_NRFX

if PWM_0

config PWM_0_NAME
string "PWM module 0 device name"
default "PWM_0"
help
Specify the device name for the Nordic Semiconductor nRF52 series HW
PWM module 0.

config PWM_0_NRF_CLOCK_PRESCALER
int "Clock prescaler"
range 0 7
default 0
help
Clock = 16MHz / (2^prescaler).

config PWM_0_NRF_CH0_PIN
int "CH0 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH0 (set to -1 if not used).

config PWM_0_NRF_CH0_INVERTED
bool "CH0 inverted"
help
Inverses the polarity.

config PWM_0_NRF_CH1_PIN
int "CH1 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH1 (set to -1 if not used).

config PWM_0_NRF_CH1_INVERTED
bool "CH1 inverted"
help
Inverses the polarity.

config PWM_0_NRF_CH2_PIN
int "CH2 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH2 (set to -1 if not used).

config PWM_0_NRF_CH2_INVERTED
bool "CH2 inverted"
help
Inverses the polarity.

config PWM_0_NRF_CH3_PIN
int "CH3 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH3 (set to -1 if not used).

config PWM_0_NRF_CH3_INVERTED
bool "CH3 Inverted"
help
Inverses the polarity.

endif # PWM_0

if PWM_1

config PWM_1_NAME
string "PWM module 1 device name"
default "PWM_1"
help
Specify the device name for the Nordic Semiconductor nRF52 series HW
PWM module 1.

config PWM_1_NRF_CLOCK_PRESCALER
int "Clock prescaler"
range 0 7
default 0
help
Clock = 16MHz / (2^prescaler).

config PWM_1_NRF_CH0_PIN
int "CH0 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH0

config PWM_1_NRF_CH0_INVERTED
bool "CH0 inverted"
help
Inverses the polarity.

config PWM_1_NRF_CH1_PIN
int "CH1 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH1 (set to -1 if not used).

config PWM_1_NRF_CH1_INVERTED
bool "CH1 inverted"
help
Inverses the polarity.

config PWM_1_NRF_CH2_PIN
int "CH2 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH2 (set to -1 if not used).

config PWM_1_NRF_CH2_INVERTED
bool "CH2 inverted"
help
Inverses the polarity.

config PWM_1_NRF_CH3_PIN
int "CH3 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH3 (set to -1 if not used).

config PWM_1_NRF_CH3_INVERTED
bool "CH3 Inverted"
help
Inverses the polarity.

endif # PWM_1


if PWM_2

config PWM_2_NAME
string "PWM module 2 device name"
default "PWM_2"
help
Specify the device name for the Nordic Semiconductor nRF52 series HW
PWM module 2.

config PWM_2_NRF_CLOCK_PRESCALER
int "Clock prescaler"
range 0 7
default 0
help
Clock = 16MHz / (2^prescaler).

config PWM_2_NRF_CH0_PIN
int "CH0 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH0 (set to -1 if not used).

config PWM_2_NRF_CH0_INVERTED
bool "CH0 inverted"
help
Inverses the polarity.

config PWM_2_NRF_CH1_PIN
int "CH1 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH1 (set to -1 if not used).

config PWM_2_NRF_CH1_INVERTED
bool "CH1 inverted"
help
Inverses the polarity.

config PWM_2_NRF_CH2_PIN
int "CH2 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH2 (set to -1 if not used).

config PWM_2_NRF_CH2_INVERTED
bool "CH2 inverted"
help
Inverses the polarity.

config PWM_2_NRF_CH3_PIN
int "CH3 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH3 (set to -1 if not used).

config PWM_2_NRF_CH3_INVERTED
bool "CH3 Inverted"
help
Inverses the polarity.

endif # PWM_2

if PWM_3

config PWM_3_NAME
string "PWM module 3 device name"
default "PWM_3"
help
Specify the device name for the Nordic Semiconductor nRF52 series HW
PWM module 3.

config PWM_3_NRF_CLOCK_PRESCALER
int "Clock prescaler"
range 0 7
default 0
help
Clock = 16MHz / (2^prescaler).

config PWM_3_NRF_CH0_PIN
int "CH0 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH0 (set to -1 if not used).

config PWM_3_NRF_CH0_INVERTED
bool "CH0 inverted"
help
Inverses the polarity.

config PWM_3_NRF_CH1_PIN
int "CH1 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH1.

config PWM_3_NRF_CH1_INVERTED
bool "CH1 inverted"
help
Inverses the polarity.

config PWM_3_NRF_CH2_PIN
int "CH2 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH2 (set to -1 if not used).

config PWM_3_NRF_CH2_INVERTED
bool "CH2 inverted"
help
Inverses the polarity.

config PWM_3_NRF_CH3_PIN
int "CH3 pin number"
range -1 47 if SOC_NRF52840_QIAA
range -1 31
default -1
help
GPIO pin number to use for CH3 (set to -1 if not used).

config PWM_3_NRF_CH3_INVERTED
bool "CH3 Inverted"
help
Inverses the polarity.

endif # PWM_3

endif # PWM_NRFX
Loading