Re: [PATCH v5 11/14] ASoC: add simple-graph-card document

From: Kuninori Morimoto
Date: Tue Dec 06 2016 - 19:11:02 EST



Hi Rob

> > Do you mean, is this OK for OF graph ?
>
> Yes, something like this.

Wow!! Thanks !!
it makes new OF-graph easier !!

> > in driver point of view, "I2S" is sound card here.
>
> Well, that seems odd to me because I2S should just be the h/w block
> that interfaces to I2S/SSI signals. I'd expect you still have a card
> node that references these nodes. Maybe it just references the DSP and
> then you walk the graph from there to find the I2S controller and
> codec.

If my understanding was correct, this is good ?

Card {
ports {
port@0 {
card-dsp: endpoint {
remote-endpoint = <&dsp>;
};
};
port@1 {
card-codec: endpoint {
remote-endpoint = <&codec>;
};
}
}
}

DSP {
port {
dsp: endpoint {
remote-endpoint = <&card-dsp>;
}
}
}

Codec {
port {
codec: endpoint {
remote-endpoint = <&card-codec>;
}
}
}