Skip to content

Instantly share code, notes, and snippets.

@JetForMe
Created September 24, 2015 09:50
Show Gist options
  • Save JetForMe/ad57dc9958abb7f6b9c2 to your computer and use it in GitHub Desktop.
Save JetForMe/ad57dc9958abb7f6b9c2 to your computer and use it in GitHub Desktop.
Building toward the overlay for Podtique1.
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone-black";
/* identification */
part-number = "BB-ENABLE-PRU";
/* version */
version = "00A0";
/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P9.31", /* mcasp0: mcasp0_aclkx */
/* "P9.30", mcasp0: mcasp0_axr0 */
"P9.29", /* mcasp0: mcasp0_fsx */
"P9.28", /* mcasp0: mcasp0_axr2 */
"P9.25", /* mcasp0: mcasp0_ahclkx */
"P9.39", /* AIN0 */
"P9.40", /* AIN1 */
"P9.37", /* AIN2 */
/* the hardware ip uses */
"gpio1_18", "gpio1_19",
"mcasp0",
"tscadc";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
i2c2_pins: pinmux_i2c2_pins {
pinctrl-single,pins = <
0x150 0x72 /*spi0_scl.i2c2_sda,SLEWCTRL_SLOW | INPUT_PULLUP |MODE2*/
0x154 0x72 /*spi0_d0.i2c2_scl,SLEWCTRL_SLOW | INPUT_PULLUP | MODE2*/
>;
};
podtique_audio_pins: pinmux_podtique_audio_pins {
pinctrl-single,pins = <
0x1ac 0x00 /* mcasp0_ahclkx, MODE0 | INPUT */
0x19c 0x22 /* mcasp0_ahclkr, */
0x194 0x20 /* mcasp0_fsx, MODE0 | OUTPUT */
0x190 0x20 /* mcasp0_aclkr.mcasp0_aclkx, MODE0 | OUTPUT_PULLDOWN */
0x198 0x20
>;
};
};
};
fragment@1 {
target = <&i2c2>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <100000>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c2_pins>;
tlv320aic3104: tlv320aic3104@18 {
#sound-dai-cells = <0>;
compatible = "ti,tlv320aic3104";
reg = <0x18>;
AVDD-supply = <&ldo4_reg>;
IOVDD-supply = <&ldo4_reg>;
DRVDD-supply = <&ldo4_reg>;
DVDD-supply = <&ldo4_reg>;
};
};
};
fragment@2 {
target = <&mcasp0>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&podtique_audio_pins>;
status = "okay";
op-mode = <0>; /* MCASP_IIS_MODE */
tdm-slots = <2>;
num-serializer = <16>;
serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
2 0 1 0
0 0 0 0
0 0 0 0
0 0 0 0
>;
tx-num-evt = <1>;
rx-num-evt = <1>;
};
};
fragment@3 {
target-path="/";
__overlay__ {
sound {
compatible = "lz-podtique";
lz-podtique,name = "Podtique 1";
lz-podtique,model = "PT-1";
simple-audio-card,widgets =
"Line";
lz-podtique,audio-routing =
"Line Out", "LLOUT",
"Line Out", "RLOUT";
lz-podtique,format = "dsp_b";
lz-podtique,bitclock-master = <&sound_master>;
lz-podtique,frame-master = <&sound_master>;
lz-podtique,bitclock-inversion;
lz-podtique,cpu {
sound-dai = <&mcasp0>;
};
sound_master: lz-podtique,codec {
sound-dai = <&tlv320aic3104>;
system-clock-frequency = <12000000>;
};
};
};
};
fragment@4 {
target = <&tscadc>;
__overlay__ {
status = "okay";
adc {
ti,adc-channels = <0 1 2>;
};
};
};
fragment@5 { // Enable the PRUSS
target = <&pruss>;
__overlay__ {
status = "okay";
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment