move all the remaining entries that are in the overlay into a new .dts file 
> based on this < 
> http://pastebin.com/Wja7ZQRk>, compile that, and load it at boot. 
>
>
Here's my attempt to do what you suggest:


/*
 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
/dts-v1/;

#include "am33xx.dtsi"
#include "am33xx-es2.dtsi"
#include "am335x-bone-common.dtsi"
#include "am33xx-overlay-edma-fix.dtsi"

/ {
  model = "TI AM335x BeagleBone Black";
  compatible = "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx", 
"simple-audio-card";
  simple-audio-card,name = "AudioCape Rev B";
  simple-audio-card,widgets =
    "Headphone", "Headphone Jack",
    "Line", "Line In";
    simple-audio-card,routing =
        "Headphone Jack",       "HPLOUT",
        "Headphone Jack",       "HPROUT",
        "LINE1L",               "Line In",
        "LINE1R",               "Line In";
    simple-audio-card,format = "dsp_b";
    simple-audio-card,bitclock-master = <&sound_master>;
    simple-audio-card,frame-master = <&sound_master>;
    simple-audio-card,bitclock-inversion;

    simple-audio-card,cpu {
        sound-dai = <&mcasp0>;
    };

  sound_master: simple-audio-card,codec {
    #sound-dai-cells = <0>;
    sound-dai = <&tlv320aic3104>;
    clocks = <&clk_mcasp0>;
    clock-names = "mclk";
  };

  clk_mcasp0_fixed: clk_mcasp0_fixed {
    #clock-cells = <0>;
    compatible = "fixed-clock";
    clock-frequency = <24576000>;
  };

  clk_mcasp0: clk_mcasp0 {
    #clock-cells = <0>;
    compatible = "gpio-gate-clock";
    clocks = <&clk_mcasp0_fixed>;
    enable-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; /* BeagleBone Black Clk 
enable on GPIO1_27 */
  };

  audio_pins: audio_pins {
    pinctrl-single,pins = <
      0x190 (PIN_INPUT_PULLDOWN | MUX_MODE0)    /* 
mcasp0_aclkx.mcasp0_aclkx */
      0x194 (PIN_INPUT_PULLDOWN | MUX_MODE0)    /* mcasp0_fsx.mcasp0_fsx, 
INPUT */
      0x198 (PIN_INPUT_PULLDOWN | MUX_MODE0)    /* mcasp0_axr0.mcasp0_axr0 
*/
      0x19c (PIN_INPUT_PULLDOWN | MUX_MODE2)    /* 
mcasp0_ahclkr.mcasp0_axr2 */
      0x1ac (PIN_INPUT_PULLDOWN | MUX_MODE0)    /* MCASP0_AHCLKX -> 
MCASP0_AHCLKX (I2S_MCLK_OUT)- in */
    >;
  };
};

&i2c2 {
  #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>;
  };
};

&mcasp0 {
  #sound-dai-cells = <0>;
    pinctrl-names = "default";
    pinctrl-0 = <&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>;
};

&ldo3_reg {
    regulator-min-microvolt = <1800000>;
    regulator-max-microvolt = <1800000>;
    regulator-always-on;
};

&mmc1 {
    vmmc-supply = <&vmmcsd_fixed>;
};

&mmc2 {
    vmmc-supply = <&vmmcsd_fixed>;
    pinctrl-names = "default";
    pinctrl-0 = <&emmc_pins>;
    bus-width = <8>;
    status = "okay";
};



I compiled it as am335x-boneblack-audio-fixed.dtb, copied it to 
/boot/dtbs/4.4.7-bone-rt-r9 and added # 
dtb=am335x-boneblack-audio-fixed.dtb to /boot/uEnv.txt. When I try to boot 
the board the 4 user leds stay lit. No luck booting.

Can someone spot an error on the dts or suggest a way to find error 
messages?

Thanks!
 

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/bc1b8ca7-7850-4953-b2e5-67b8c7bb580e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to