RE: [PATCH 4/5] fsl/qe: Add QE TDM lib

From: Qiang Zhao
Date: Wed Mar 30 2016 - 21:58:14 EST


On Wed, 2016-03-30 at 07:50PM, Joakim Tjernlund wrote:
> -----Original Message-----
> From: Joakim Tjernlund [mailto:Joakim.Tjernlund@xxxxxxxxxxxx]
> Sent: Wednesday, March 30, 2016 7:50 PM
> To: davem@xxxxxxxxxxxxx; Qiang Zhao <qiang.zhao@xxxxxxx>
> Cc: linuxppc-dev@xxxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Xiaobo Xie
> <xiaobo.xie@xxxxxxx>; oss@xxxxxxxxxxxx; gregkh@xxxxxxxxxxxxxxxxxxx;
> akpm@xxxxxxxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH 4/5] fsl/qe: Add QE TDM lib
>
> On Wed, 2016-03-30 at 16:50 +0800, Zhao Qiang wrote:
> > QE has module to support TDM, some other protocols supported by QE are
> > based on TDM.
> > add a qe-tdm lib, this lib provides functions to the protocols using
> > TDM to configurate QE-TDM.
> >
> > Signed-off-by: Zhao Qiang <qiang.zhao@xxxxxxx>
> > + utdm->siram_entry_id = val;
> > +
> > + set_si_param(utdm, ut_info);
> > +
> > + np2 = of_find_compatible_node(NULL, NULL, "fsl,t1040-qe-si");
>
> fsl,t1040-qe-si only? What about mpc83xx?
> I recall QE is a little bit different compared to T1040 or will this work(including
> the hdlc driver) on 83xx as well?

The " fsl,t1040-qe-si " is new added to dts and bindings, it is required to have SoC specific compatible strings.
mpc83xx will not use qe-si node. If there will be other soc useing qe-si, " fsl,t1040-qe-si " will follow the soc specific compatible,
like :
si1: si@700 {
compatible = "fsl,ls1043-qe-si", "fsl,t1040-qe-si";
reg = <0x700 0x80>;
};

Best Regards
Zhao Qiang