net: tsec: Support <reg> property from the subnode "queue-group"
authorBin Meng <bmeng.cn@gmail.com>
Sun, 14 Mar 2021 12:15:01 +0000 (20:15 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 26 Apr 2021 06:48:36 +0000 (12:18 +0530)
commit6b26a74fbb1f1081ea1dd4f0905435bec4b1c052
tree90623e20f0c73abad7ffdd00747f1855b7023895
parent6076f2676dd010a146af803caf2a55840767d9b4
net: tsec: Support <reg> property from the subnode "queue-group"

At present the tsec driver uses a non-standard DT bindings to get
its <reg> base / size. The upstream Linux kernel seems to require
the <reg> base / size to be put under a subnode of the eTSEC node
with a name prefix "queue-group". This is not documented in the
kernel DT bindings, but it looks every dtsi file that contains the
eTSEC node was written like this.

This commit updates the tsec driver to handle this case.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
drivers/net/tsec.c