I convertert the BB-BONE-AUDI-02-00A0.dtbo in BB-BONE-AUDI-02-00A0.dts and I find this:
/dts-v1/;
/ {
fragment@0 {
target-path = [ 2f 00 ];
__overlay__ {
chosen {
overlays {
BB-BONE-AUDI-02-00A0 = "Sat Aug 21 14:57:17 2021";
};
};
};
};
fragment@1 {
target = < 0xffffffff >;
__overlay__ {
P9_25_pinmux {
status = "disabled";
};
P9_28_pinmux {
status = "disabled";
};
P9_29_pinmux {
status = "disabled";
};
P9_30_pinmux {
status = "disabled";
};
P9_31_pinmux {
status = "disabled";
};
};
};
fragment@2 {
target = < 0xffffffff >;
__overlay__ {
pinmux_bone_audio_cape_audio_pins {
pinctrl-single,pins = < 0x190 0x20 0x194 0x20 0x198 0x20 0x19c 0x22 0x1ac 0x20 0x6c 0x07 >;
phandle = < 0x05 >;
};
};
};
fragment@3 {
target-path = [ 2f 00 ];
__overlay__ {
clk_mcasp0_fixed {
#clock-cells = < 0x00 >;
compatible = "fixed-clock";
clock-frequency = < 0x1770000 >;
phandle = < 0x01 >;
};
clk_mcasp0 {
#clock-cells = < 0x00 >;
compatible = "gpio-gate-clock";
clocks = < 0x01 >;
enable-gpios = < 0xffffffff 0x1b 0x00 >;
phandle = < 0x04 >;
};
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "AudioCape Rev B";
simple-audio-card,widgets = "Headphone\0Headphone Jack\0Line\0Line In";
simple-audio-card,routing = "Headphone Jack\0HPLOUT\0Headphone Jack\0HPROUT\0LINE1L\0Line In\0LINE1R\0Line In";
simple-audio-card,format = "dsp_b";
simple-audio-card,bitclock-master = < 0x02 >;
simple-audio-card,frame-master = < 0x02 >;
simple-audio-card,bitclock-inversion;
simple-audio-card,cpu {
sound-dai = < 0xffffffff >;
};
simple-audio-card,codec {
#sound-dai-cells = < 0x00 >;
sound-dai = < 0x03 >;
clocks = < 0x04 >;
clock-names = "mclk";
phandle = < 0x02 >;
};
};
};
};
fragment@4 {
target = < 0xffffffff >;
__overlay__ {
#address-cells = < 0x01 >;
#size-cells = < 0x00 >;
clock-frequency = < 0x186a0 >;
status = "okay";
tlv320aic3104@18 {
#sound-dai-cells = < 0x00 >;
compatible = "ti,tlv320aic3104";
reg = < 0x18 >;
phandle = < 0x03 >;
};
};
};
fragment@5 {
target = < 0xffffffff >;
__overlay__ {
#sound-dai-cells = < 0x00 >;
pinctrl-names = "default";
pinctrl-0 = < 0x05 >;
status = "okay";
op-mode = < 0x00 >;
tdm-slots = < 0x02 >;
num-serializer = < 0x10 >;
serial-dir = < 0x02 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 >;
tx-num-evt = < 0x01 >;
rx-num-evt = < 0x01 >;
};
};
__symbols__ {
bone_audio_cape_audio_pins = "/fragment@2/__overlay__/pinmux_bone_audio_cape_audio_pins";
clk_mcasp0_fixed = "/fragment@3/__overlay__/clk_mcasp0_fixed";
clk_mcasp0 = "/fragment@3/__overlay__/clk_mcasp0";
sound_master = "/fragment@3/__overlay__/sound/simple-audio-card,codec";
tlv320aic3104 = "/fragment@4/__overlay__/tlv320aic3104@18";
};
__fixups__ {
ocp = "/fragment@1:target:0";
am33xx_pinmux = "/fragment@2:target:0";
gpio1 = "/fragment@3/__overlay__/clk_mcasp0:enable-gpios:0";
mcasp0 = "/fragment@3/__overlay__/sound/simple-audio-card,cpu:sound-dai:0\0/fragment@5:target:0";
i2c2 = "/fragment@4:target:0";
};
__local_fixups__ {
fragment@3 {
__overlay__ {
clk_mcasp0 {
clocks = < 0x00 >;
};
sound {
simple-audio-card,bitclock-master = < 0x00 >;
simple-audio-card,frame-master = < 0x00 >;
simple-audio-card,codec {
sound-dai = < 0x00 >;
clocks = < 0x00 >;
};
};
};
};
fragment@5 {
__overlay__ {
pinctrl-0 = < 0x00 >;
};
};
};
};
But it’s different to .dts that , why?
How to enable the 24.576Mhz oscillator by the GPIO1_27 in the .dts?