Hou Zhiqiang and Tom Rini
7fb568de53
net: tsec: Add the compatible string "gianfar" support
...
Add compatible string "gianfar" support and update the
device-tree-bindings doc.
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Hou Zhiqiang and Tom Rini
25a2e24e94
net: tsec: Add fixed-link PHY support
...
The info of fixed-link PHY is described in DT node instead of
getting from MII, so detect the fixed-link PHY DT node first,
if it doesn't exist then probe the MII.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Hou Zhiqiang and Tom Rini
b4eb9cfc09
net: tsec: convert to use DM_MDIO when DM_ETH enabled
...
For the platforms on which the eTSEC driver uses DM_ETH, convert its
MDIO controller code to also use DM_MDIO.
Note that for handling the TBI PHY (the MAC PCS for SGMII), we still
don't register a udevice for it, since we can drive it locally and there
is no point in doing otherwise.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Reworked to fix gazerbeam config]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Hou Zhiqiang and Tom Rini
16c53ce712
net: fsl_mdio: Correct the MII management register block address
...
The MII management register block offset is different between
gianfar and etsec2 compatible devices, this patch is to fix
this issue by adding driver data for different compatible
string.
Fixes: 2932c5a802 ("net: tsec: fsl_mdio: add DM MDIO support")
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Hou Zhiqiang and Tom Rini
c54f6139ed
net: fsl_mdio: Change to use virtual address
...
Use virtual address to access the MII block registers instead
of physical address.
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Vladimir Oltean and Tom Rini
01ffe18f14
configs: enable DM_MDIO for LS1021A-TWR and LS1021A-TSN
...
The tsec driver now requires DM_MDIO when DM_ETH is enabled. To avoid
build errors, enable DM_MDIO in these boards' configs before we actually
add DM_MDIO support to tsec.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Vladimir Oltean and Tom Rini
15c49df8d4
phy: make phy_connect_fixed work with a null mdio bus
...
It is utterly pointless to require an MDIO bus pointer for a fixed PHY
device. The fixed.c implementation does not require it, only
phy_device_create. Fix that.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Hou Zhiqiang and Tom Rini
f51ce945d0
configs: P1010RDB: Enable eSPI controller and SPI flash DM driver
...
Enable the DM_SPI and DM_SPI_FLASH in P1010RDB defconfigs except
SECBOOT defconfigs.
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Hou Zhiqiang and Tom Rini
3f8e731599
dts: P1010RDB: Add eSPI slave DT nodes
...
Add DT nodes for eSPI slave device SPI flash.
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Hou Zhiqiang and Tom Rini
04b3821b81
dts: P1010: Add eSPI controller DT node
...
Add eSPI controller DT node for P1010.
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
194ececc3d
configs: T4240RDB: Enable ESPI driver
...
Enable the DM ESPI driver in T4240RDB defconfig.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
ba2f651cfa
dts: T4240RDB: Add ESPI slave device node
...
Add ESPI slave node for T4240RDB.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
4f09505261
dts: T4240: Add ESPI DT nodes
...
Add ESPI controller DT node for T4240.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
f66833e163
configs: T2080RDB: Enable ESPI driver
...
Enable the DM ESPI driver in T2080RDB defconfig.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
38572e741e
dts: T2080RDB: Add ESPI slave device node
...
Add ESPI slave node for T2080RDB.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
5662164406
configs: T1042D4RDB: Enable ESPI driver
...
Enable the DM ESPI driver in T1042D4RDB defconfig.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
4f085f7f44
dts: T1042D4RDB: Add ESPI slave device node
...
Add ESPI slave node for T1042D4RDB.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
efcba592b3
dts: T104x: Add ESPI DT nodes
...
Add ESPI controller DT node for T104x.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
350719c4aa
configs: T1024RDB: Enable ESPI driver
...
Enable the DM ESPI driver in T1024RDB defconfig.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
9ec8a585f4
dts: T1024RDB: Add ESPI slave device node
...
Add ESPI slave node for T1024RDB.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
34b1c6a5f9
dts: T102x: Add ESPI DT nodes
...
Add ESPI controller DT node for T102x.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
ff9227b634
configs: P5040DS: Enable ESPI driver
...
Enable the DM ESPI driver in P5040DS defconfig.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
68de1ccc00
dts: P5040DS: Add ESPI slave device node
...
Add ESPI slave node for P5040DS.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
8d45082c46
dts: P5040: Add ESPI DT nodes
...
Add ESPI controller DT node for P5040.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
55562cb997
configs: P4080DS: Enable ESPI driver
...
Enable the DM ESPI driver in P4080DS defconfig.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
cbf202f3a1
dts: P4080DS: Add ESPI slave device node
...
Add ESPI slave node for P4080DS.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
fd54c7af0c
dts: P4080: Add ESPI DT nodes
...
Add ESPI controller DT node for P4080.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
508121c8ef
configs: P3041DS: Enable ESPI driver
...
Enable the DM ESPI driver in P3041DS defconfig.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
e6e00b4c59
dts: P3041DS: Add ESPI slave device node
...
Add ESPI slave node for P3041DS.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
e3a7239cd0
dts: P3041: Add ESPI DT nodes
...
Add ESPI controller DT node for P3041.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
c673942a04
configs: P2041RDB: Enable ESPI driver
...
Enable the DM ESPI driver in P2041RDB defconfig.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
8cbfaf6ce9
dts: P2041RDB: Add ESPI slave device node
...
Add ESPI slave node for P2041RDB.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
d4d4a3ae71
dts: P2041: Add ESPI DT nodes
...
Add ESPI controller DT node for P2041.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
277507369d
configs: P2020RDB: Enable ESPI driver
...
Enable the DM ESPI driver in P2020RDB defconfig.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
76b6db69df
dts: P2020RDB: Add ESPI slave device node
...
Add ESPI slave node for P2020RDB.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
c730329147
dts: P2020: Add ESPI DT nodes
...
Add ESPI controller DT node for P2020.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
873a033c72
configs: P1020RDB: Enable ESPI driver
...
Enable the DM ESPI driver in P1020RDB defconfig.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
69942590f4
dts: P1020RDB: Add ESPI slave device node
...
Add ESPI slave node for P1020RDB.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Xiaowei Bao and Tom Rini
42896376e6
dts: P1020: Add ESPI DT nodes
...
Add ESPI controller DT node for P1020.
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Chuanhua Han and Tom Rini
2c56e7b7e7
configs: enable espi device module in T2080QDS
...
This patch is to enable espi DM for T2080QDS in uboot
Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com >
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
[Rebased]
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Chuanhua Han and Tom Rini
55c8760476
powerpc: dts: t2080qds: add espi slave nodes support
...
Add espi slave nodes to support t2080qds.
Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com >
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Chuanhua Han and Tom Rini
76eb66d80a
powerpc: dts: t2080: add espi controller node support
...
Add espi controller node to support t2080.
Signed-off-by: Chuanhua Han <chuanhua.han@nxp.com >
Signed-off-by: Xiaowei Bao <xiaowei.bao@nxp.com >
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com >
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com >
2020-09-24 08:27:44 -04:00
Tom Rini
3c1e6a6c23
Merge tag 'dm-pull-22sep20' of git://git.denx.de/u-boot-dm into next
...
binman enhancements for FIT
sunxi64 conversion to use binman
New 'no-map' property for reserved memory
2020-09-22 16:59:48 -04:00
Heinrich Schuchardt and Simon Glass
e5b35f706d
log: mute messages generated by log drivers
...
When a message is written by a log driver (e.g. via the network stack) this
may result in the generation of further messages. We cannot allow these
additional messages to be emitted as this might result in an infinite
recursion.
Up to now only the syslog driver was safeguarded. We should safeguard all
log drivers instead.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de >
Reviewed-by: Simon Glass <sjg@chromium.org >
2020-09-22 12:54:13 -06:00
Patrick Delaunay and Simon Glass
01d89e3d12
dm: add cells_count parameter in live DT APIs of_parse_phandle_with_args
...
In the live tree API ofnode_parse_phandle_with_args, the cell_count
argument must be used when cells_name is NULL.
But this argument is not provided to the live DT function
of_parse_phandle_with_args even it is provided to
fdtdec_parse_phandle_with_args.
This patch adds support of the cells_count parameter in dev_ and
of_node API to allow migration and support of live DT:
- of_parse_phandle_with_args
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2020-09-22 12:54:13 -06:00
Etienne Carriere and Simon Glass
3e15c315f9
optee: add property no-map to secure reserved memory
...
OP-TEE reserved memory node must set property "no-map" to prevent
Linux kernel from mapping secure memory unless what non-secure world
speculative accesses of the CPU can violate the memory firmware
configuration.
Fixes: 6ccb05eae0 ("image: fdt: copy possible optee nodes to a loaded devicetree")
Signed-off-by: Etienne Carriere <etienne.carriere@st.com >
Signed-off-by: Patrice Chotard <patrice.chotard@st.com >
2020-09-22 12:54:13 -06:00
Patrice Chotard and Simon Glass
6613ed1e07
test: fdtdec: Add test for new no-map fdtdec_add_reserved_memory() parameter
...
Add a test to verify that the no-map property is added in reserved-memory
node when fdtdec_add_reserved_memory() no-map parameter is set to true.
Signed-off-by: Patrice Chotard <patrice.chotard@st.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2020-09-22 12:54:13 -06:00
Etienne Carriere and Simon Glass
ccaa5747bd
fdtdec: optionally add property no-map to created reserved memory node
...
Add boolean input argument @no_map to helper function
fdtdec_add_reserved_memory() to add or not "no-map" property
for an added reserved memory node.
Property no-map is used by the Linux kernel to not not map memory
in its static memory mapping. It is needed for example for the|
consistency of system non-cached memory and to prevent speculative
accesses to some firewalled memory.
No functional change. A later change will update to OPTEE library to
add no-map property to OP-TEE reserved memory nodes.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com >
Signed-off-by: Patrice Chotard <patrice.chotard@st.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2020-09-22 12:54:13 -06:00
Simon Glass
68de0679c9
binman: sunxi: Add help message for missing sunxi ATF BL31
...
Add a special help message pointing to the relevant README.
Signed-off-by: Simon Glass <sjg@chromium.org >
2020-09-22 12:54:13 -06:00
Simon Glass
b238143db9
binman: Support help messages for missing blobs
...
When an external blob is missing it can be quite confusing for the user.
Add a way to provide a help message that is shown.
Signed-off-by: Simon Glass <sjg@chromium.org >
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com >
2020-09-22 12:54:13 -06:00