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:
Martin Jäger
2020-02-28 13:24:25 +01:00
parent 7722f12a0c
commit 0e918e6b2e
3 changed files with 19 additions and 2 deletions
@@ -55,3 +55,5 @@ CONFIG_UART_CONSOLE=y
# Enable MPU
CONFIG_ARM_MPU=y
CONFIG_PWM=y
+17
View File
@@ -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)
-2
View File
@@ -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