Add pwm-out DTS binding and fix CONFIG_PWM
The binding .yaml was forgotten in previous charge pump commit. CONFIG_PWM was moved from prj.conf to board_defconfig as not all boards need the PWM driver.
This commit is contained in:
@@ -55,3 +55,5 @@ CONFIG_UART_CONSOLE=y
|
||||
|
||||
# Enable MPU
|
||||
CONFIG_ARM_MPU=y
|
||||
|
||||
CONFIG_PWM=y
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
# Copyright (c) 2020 Martin Jäger / Libre Solar
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
description: GPIO pins to generate a PWM signal
|
||||
|
||||
compatible: "pwm-out"
|
||||
|
||||
child-binding:
|
||||
description: PWM output child node
|
||||
properties:
|
||||
pwms:
|
||||
type: phandle-array
|
||||
required: true
|
||||
label:
|
||||
type: string
|
||||
required: true
|
||||
description: Human readable string describing the device (used by Zephyr for API name)
|
||||
@@ -12,8 +12,6 @@ CONFIG_I2C_1=y
|
||||
CONFIG_ADC=y
|
||||
CONFIG_ADC_1=y
|
||||
|
||||
CONFIG_PWM=y
|
||||
|
||||
# disable log by default to save memory for STM32F0 with little RAM
|
||||
CONFIG_LOG=y
|
||||
CONFIG_LOG_MINIMAL=y
|
||||
|
||||
Reference in New Issue
Block a user