boards: arm: Configure DAC on bl653_dvk

Moves DAC dts node and driver configuration defaults from the
application level to the board level for the bl653_dvk board.

Signed-off-by: Maureen Helm <maureen.helm@intel.com>
This commit is contained in:
Maureen Helm 2021-10-25 17:44:33 -05:00 committed by Carles Cufí
parent 192d710c45
commit 96c7875f40
8 changed files with 25 additions and 43 deletions

View file

@ -15,4 +15,14 @@ config IEEE802154_NRF5
config BT_CTLR
default BT
if DAC
config DAC_MCP4725
default y
config I2C
default y
endif # DAC
endif # BOARD_BL653_DVK

View file

@ -106,6 +106,15 @@
status = "okay";
sda-pin = <26>;
scl-pin = <27>;
dac0: mcp4725@60 {
/* MCP4725 not populated at factory */
compatible = "microchip,mcp4725";
reg = <0x60>;
label = "MCP4725";
#io-channel-cells = <1>;
status = "disabled";
};
};
&pwm0 {

View file

@ -1,6 +0,0 @@
#
# Copyright (c) 2021 Laird Connectivity
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_DAC_MCP4725=y

View file

@ -4,11 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
&i2c0 {
dac0: mcp4725@60 {
compatible = "microchip,mcp4725";
reg = <0x60>;
label = "MCP4725";
#io-channel-cells = <1>;
};
&dac0 {
status = "okay";
};

View file

@ -1,7 +0,0 @@
#
# Copyright (c) 2021 Laird Connectivity
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_I2C=y
CONFIG_DAC_MCP4725=y

View file

@ -4,12 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
&i2c0 {
dac0: mcp4725@60 {
/* MCP4725 not populated at factory */
compatible = "microchip,mcp4725";
reg = <0x60>;
label = "MCP4725";
#io-channel-cells = <1>;
};
&dac0 {
status = "okay";
};

View file

@ -1,7 +0,0 @@
#
# Copyright (c) 2021 Laird Connectivity
#
# SPDX-License-Identifier: Apache-2.0
#
CONFIG_I2C=y
CONFIG_DAC_MCP4725=y

View file

@ -4,12 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/
&i2c0 {
dac0: mcp4725@60 {
/* MCP4725 not populated at factory */
compatible = "microchip,mcp4725";
reg = <0x60>;
label = "MCP4725";
#io-channel-cells = <1>;
};
&dac0 {
status = "okay";
};