ok so as my journey continue .....
i decided to modify some dts files ... in particular one that corresponds
to audio cape as follow :
@@ -18,70 +18,28 @@
/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
- "P9.14", /* leds: gpio1_18 */
- "P9.16", /* leds: gpio1_19 */
"P9.31", /* mcasp0: mcasp0_aclkx */
"P9.29", /* mcasp0: mcasp0_fsx */
"P9.28", /* mcasp0: mcasp0_axr2 */
"P9.25", /* mcasp0: mcasp0_ahclkx */
/* the hardware ip uses */
- "gpio1_18", "gpio1_19",
"mcasp0";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
-
- bone_audio_cape_led_pins: pinmux_bone_audio_cape_led_pins {
- pinctrl-single,pins = <
- 0x48 0x07 /* gpmc_a2.gpio1_18, OUTPUT | MODE7 */
- 0x4c 0x07 /* gpmc_a3.gpio1_19, OUTPUT | MODE7 */
- >;
- };
-
bone_audio_cape_audio_pins: pinmux_bone_audio_cape_audio_pins {
pinctrl-single,pins = <
0x190 0x20 /* mcasp0_aclkx.mcasp0_aclkx, INPUT | MODE0 */
0x194 0x20 /* mcasp0_fsx.mcasp0_fsx, INPUT | MODE0 */
0x19c 0x22 /* mcasp0_ahclkr.mcasp0_axr2, INPUT | MODE2 */
0x1ac 0x22 /* mcasp0_ahclkx.mcasp0_axr3, INPUT | MODE2 */
-
>;
};
};
};
fragment@1 {
- target = <&ocp>;
- __overlay__ {
-
- /* avoid stupid warning */
- #address-cells = <1>;
- #size-cells = <1>;
-
- gpio-leds-cape-audio {
- compatible = "gpio-leds";
- pinctrl-names = "default";
- pinctrl-0 = <&bone_audio_cape_led_pins>;
-
- audio-led0 {
- label = "audio:green:usr0";
- gpios = <&gpio2 18 0>;
- linux,default-trigger = "heartbeat";
- default-state = "off";
- };
-
- audio-led1 {
- label = "audio:green:usr1";
- gpios = <&gpio2 19 0>;
- linux,default-trigger = "mmc0";
- default-state = "off";
- };
- };
- };
- };
-
- fragment@2 {
target = <&i2c2>;
__overlay__ {
#address-cells = <1>;
@@ -95,7 +53,7 @@
};
};
- fragment@3 {
+ fragment@2 {
target = <&mcasp0>;
__overlay__ {
pinctrl-names = "default";
@@ -117,7 +75,7 @@
};
};
- fragment@4 {
+ fragment@3 {
target = <&ocp>;
__overlay__ {
sound {
after recompiling this files .... no success .....
!!! however ones I changed file name and and names inside the files so
everything in sync
Magic happens
root@beaglebone:~# cat /sys/devices/bone_capemgr.8/slots
0: 54:PF---
1: 55:PF---
3: 57:P---L 4D 4.3 LCD CAPE- 4DCAPE-43T ,00A1,4D SYSTEMS
,BB-BONE-LCD4-01
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-BONE-VAUDI
root@beaglebone:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: EVM [DA830 EVM], device 0: AIC3X tlv320aic3x-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
root@beaglebone:~#
So i'm not sure if this is a bug or not .... but to me ones i change dts
file i should not create new one just so i can experience the change.....
--
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].
For more options, visit https://groups.google.com/groups/opt_out.