forked from RobertCNelson/bb.org-overlays
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
BB-BONE-AUDI-02: Enable for 4.x kernel with overlay
* Remove I2C pin muxing definitions which are wrong and are actually redundant here * McASP MCLK is fed from BB and is used by the codec (clk_mcasp0) Note: the clk_mcasp0 is generated on the BB iteself and acivation has to be added to bb-boneblack-overlay.dts as below: ... ... 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 */ }; ... Signed-off-by: Eyal Reizer <eyalr@ti.com>
- Loading branch information
1 parent
87d9186
commit 419c160
Showing
1 changed file
with
14 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mr. Nelson,
I made the code changes above to the BB-BONE-AUDI-02-00A0.dtx file located at /opt/source/lib/bb.org-overlays/src/arm/. The top section of code for file bb-boneblack-overlay.dts is no where on my BBB, so I was not able to make that modification.
I still have no audio working. I am using 4.1.15-ti-rt-r43 currently. I am using (CircuitCo) BB Black Audio Cape Rev B with my BBB Rev C. I am also using 4D Systems (4D 7.0" LCD Cape II ) and still have no audio. Is there a workable patch that allows the two to work together? I have been at this a while with no success.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correction to typo BB-BONE-AUDI-02-00A0.dtx should be BB-BONE-AUDI-02-00A0.dts.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@burjam2000 update to 4.1.18-ti-rt-r52
and use: dtb=am335x-boneblack-audio.dtb
RobertCNelson/ti-linux-kernel-dev@2a25192
Regards,
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I'm new and appreciate your patience. Where do I utilize that statement?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then:
Reboot, then load the "BB-BONE-AUDI-02" overlay..
Regards,
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying now! :-)
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I comment out
cape_disable=capemgr.disable_partno=BB-BONELT-HDMI, BB-BONELT-HDMIN to keep the audio going to the audio cape?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't apply to 4.1.x kernel's..
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have CAPE=BB-BONE-AUDI-02 in the /etc/default/capemgr
Shouldn't that load the BB-BONE-AUDI-02 overlay when I boot?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah it should
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I verify it loaded correctly?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dmesg | grep bone
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one shows the LCD cape too
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No audio. Looks like the LCD and audio are both trying to use slot 0.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line:
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-BONE-LCD7-01-00A3.dts#L113
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-BONE-LCD7-01-00A3.dts#L227-L234
and rerun "./install.sh"
(that git repo is located by default /opt/source/bb.org-overlays/ )
Regards,
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then sudo reboot?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closer...
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-BONE-LCD7-01-00A3.dts#L114
&
https://github.com/beagleboard/bb.org-overlays/blob/master/src/arm/BB-BONE-LCD7-01-00A3.dts#L235-L242
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run the ./install.sh again?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Executed ./install.sh again. :-) and rebooted.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming line 10 indicates a conflict still on P9.30?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Mr. Nelson, I'm sure you are busy and apologize for to being a pest. Do I just remove all the references to the up, down, left, right buttons to remove the conflict at P9.30?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeap
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I'll give that a try. Have a great weekend. If you are ever in Dallas/Fort Worth, I will buy you a beer!!!
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it loaded. However, I get this now when I try to execute the following:
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code removed from BB-BONE-LCD7-01-00A3.dts
"P9.15", /* keys: gpio1_16 LEFT /
"P9.23", / keys: gpio1_17 RIGHT /
"P9.16", / keys: gpio1_19 UP /
"P9.30", / keys: gpio3_16 DOWN /
"P9.21", / keys: gpio0_3 ENTER */
"gpio1_16", /* LEFT /
"gpio1_17", / RIGHT /
"gpio1_19", / UP /
"gpio3_16", / DOWN /
"gpio0_3", / ENTER */
BONE_P9_15 (PIN_INPUT | MUX_MODE7) /* gpmc_a0.gpio1_16 /
BONE_P9_23 (PIN_INPUT | MUX_MODE7) / gpmc_a1.gpio1_17 /
BONE_P9_16 (PIN_INPUT | MUX_MODE7) / gpmc_a3.gpio1_19 /
BONE_P9_30 (PIN_INPUT | MUX_MODE7) / mcasp0_axr0.gpio3_16 /
BONE_P9_21 (PIN_INPUT | MUX_MODE7) / spi0_d0.gpio0_3 */
Appreciate any help on resolving.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it loaded... so the pinmux is fine now.. My audio cape is at work, so i won't be able to look at this till monday..
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mr. Nelson, Thank you for the quick response. Did I remove all the correct code from the LCD7 dts file?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ok if you need to wait until Monday. I very much appreciate your help on this.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it seems to be working just fine:
speaker test works:
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mr. Nelson,
Thank you for the follow up response. Here are the responses to the commands I get.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix your /boot/uEnv.txt
You have:
You just need: (i dont have the lcd plugged in so i faked it)
Now, that works fine:
BB-BONE-LCD7-01:00A3: patch: https://paste.debian.net/417746/
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mr. Nelson, sorry to keep you waiting on my results. When I rebooted after adding cape_enable=bone_capemgr.enable_partno=BB-BONE-LCD7-01:00A3,BB-BONE-AUDI-02
The BBB will not boot up at all. I'm assuming I'll have to go through this process again. :-(
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've got all 4 led's on solid.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the link for the LCD7 patch isn't working.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here's that version:
https://gist.github.com/RobertCNelson/88aa649e43d02fe6858d
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mr. Nelson!! YOU ROCK!!!! It works!!! :-)
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mr. Nelson, might I trouble you with a more simple question? Is there any chance in the future, BBB is going to move from 512 to 1.0 GB RAM?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mr. Nelson, I was hoping not to trouble you, but I upgraded to the latest image 4.1.18/52 and have a new conflict of P9.31. Shown in the attached image. I googled and found the potential culprit being the cape-universaln-00A0.dts, but I made that correction and still show the problem. I have double checked my previous updates in this thread for the LCD7 and AUDI-02 and they are correct/complete. I do hate asking, but am at a loss. If I may trouble you once more for some help, I would be very grateful.
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to the P9.31 correction I made.
cdsteinkuehler/beaglebone-universal-io@2f42fb0
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@burjam2000 why would the conflict with cape-universaln-00A0.dts matter? look at your log, it wasn't even loaded...
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So then I am good to go is what you are saying?
419c160
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you Mr. Nelson for the help and again my apologies for the trouble.