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:
parent
192d710c45
commit
96c7875f40
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2021 Laird Connectivity
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
CONFIG_DAC_MCP4725=y
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2021 Laird Connectivity
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
CONFIG_I2C=y
|
||||
CONFIG_DAC_MCP4725=y
|
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
#
|
||||
# Copyright (c) 2021 Laird Connectivity
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
CONFIG_I2C=y
|
||||
CONFIG_DAC_MCP4725=y
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue