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
8 changed files with 25 additions and 43 deletions
|
@ -15,4 +15,14 @@ config IEEE802154_NRF5
|
||||||
config BT_CTLR
|
config BT_CTLR
|
||||||
default BT
|
default BT
|
||||||
|
|
||||||
|
if DAC
|
||||||
|
|
||||||
|
config DAC_MCP4725
|
||||||
|
default y
|
||||||
|
|
||||||
|
config I2C
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # DAC
|
||||||
|
|
||||||
endif # BOARD_BL653_DVK
|
endif # BOARD_BL653_DVK
|
||||||
|
|
|
@ -106,6 +106,15 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
sda-pin = <26>;
|
sda-pin = <26>;
|
||||||
scl-pin = <27>;
|
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 {
|
&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
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
&i2c0 {
|
&dac0 {
|
||||||
dac0: mcp4725@60 {
|
status = "okay";
|
||||||
compatible = "microchip,mcp4725";
|
|
||||||
reg = <0x60>;
|
|
||||||
label = "MCP4725";
|
|
||||||
#io-channel-cells = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
&i2c0 {
|
&dac0 {
|
||||||
dac0: mcp4725@60 {
|
status = "okay";
|
||||||
/* MCP4725 not populated at factory */
|
|
||||||
compatible = "microchip,mcp4725";
|
|
||||||
reg = <0x60>;
|
|
||||||
label = "MCP4725";
|
|
||||||
#io-channel-cells = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
&i2c0 {
|
&dac0 {
|
||||||
dac0: mcp4725@60 {
|
status = "okay";
|
||||||
/* MCP4725 not populated at factory */
|
|
||||||
compatible = "microchip,mcp4725";
|
|
||||||
reg = <0x60>;
|
|
||||||
label = "MCP4725";
|
|
||||||
#io-channel-cells = <1>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue