Skip to content

Commit

Permalink
boards: intel_s1000: audio codec in device tree
Browse files Browse the repository at this point in the history
Add TLV320DAC to the device tree for Intel S1000 CRB
Add a DTS fixup for Intel S1000 CRB

Signed-off-by: Sathish Kuttan <sathish.k.kuttan@intel.com>
  • Loading branch information
Sathish Kuttan authored and nashif committed Aug 19, 2018
1 parent 03da2f5 commit 3c2a56b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions boards/xtensa/intel_s1000_crb/dts.fixup
@@ -0,0 +1,18 @@
/*
* Copyright (c) 2018 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/* Board level DTS fixup file */

#define CONFIG_CODEC_I2C_BUS_NAME \
SNPS_DESIGNWARE_I2C_80400_TI_TLV320DAC_18_BUS_NAME

#define CONFIG_CODEC_I2C_BUS_ADDR \
SNPS_DESIGNWARE_I2C_80400_TI_TLV320DAC_18_BASE_ADDRESS

#define CONFIG_CODEC_NAME \
SNPS_DESIGNWARE_I2C_80400_TI_TLV320DAC_18_LABEL

/* End of Board Level DTS fixup file */
6 changes: 6 additions & 0 deletions boards/xtensa/intel_s1000_crb/intel_s1000_crb.dts
Expand Up @@ -24,4 +24,10 @@
&i2c0 {
status = "ok";
clock-frequency = <I2C_BITRATE_FAST>;

codec0: tlv320dac@18 {
compatible = "ti,tlv320dac";
reg = <0x18>;
label = "TLV320DAC";
};
};

0 comments on commit 3c2a56b

Please sign in to comment.