android_kernel_xiaomi_sm8350/arch/powerpc/sysdev
David Gibson e58ca3de64 [POWERPC] Fix problems with device tree representation of TSI-1xx bridges
This fixes some problems with the way the some things
represented in the device tree for the Holly and Taiga boards.  This
means changes both to the dts files, and to the code which
instantiates the tsi108 ethernet platform devices based on the device
tree.

	- First, and most importantly, the ethernet PHYs are given
with an identical 'reg' property.  This reg currently encodes the
accessible register used to initiate mdio interaction with the PHYs,
rather than a meaningful address on the parent bus (mdio in this
case), which is incorrect.  Instead we give the address of these
registers as 'reg' in the mdio node itself, and encode the ID of each
phy in their 'reg' propertyies.
	- Currently the platform device constructor enables a
workaround in the tsi108 ethernet driver based on the compatible
property of the PHY.  This is incorrect, because the workaround in
question is necessary due to the board's wiring of the PHY, not the
model of PHY itself.  This patch alters the constructor to instead
enable the workaround based on a new special property in the PHY node.
	- The compatible properties on a number of nodes in the device
tree are insufficiently precise.  In particular the PHYs give only
"bcm54xx", which is broken, since there are many bcm54xx PHY models,
and they have differences which matter.  The mdio had a compatible
property of "tsi-ethernet" identical to the ethernet MAC nodes, which
doesn't make sense.  The ethernet, i2c, bridge and PCI nodes were
given only as "tsi-*" which is somewhat inprecise, we replace with
"tsi108-*" in the case of Taiga (which has a TSI108 bridge), and
"tsi109-*", "tsi108-*" in the case of Holly (which has a TSI109
bridge).
	- We remove some "model" properties from the ethernets on
Taiga board which were neither useful nor adequately precise.
	- On Holly we change to using a dtc label instead of a full
path to reference the MPIC node, which makes the dts a little more
readable.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-06-14 22:30:17 +10:00
..
qe_lib [POWERPC] QE: fix Kconfig 'select' warning with UCC_FAST 2007-05-23 07:23:55 -05:00
commproc.c [POWERPC] Change rheap functions to use ulongs instead of pointers 2007-05-09 23:01:43 -05:00
cpm2_common.c [POWERPC] Change rheap functions to use ulongs instead of pointers 2007-05-09 23:01:43 -05:00
cpm2_pic.c
cpm2_pic.h
dart_iommu.c [POWERPC] DART iommu suspend 2007-05-07 20:31:14 +10:00
dart.h
dcr-low.S
dcr.c [POWERPC] Rename get_property to of_get_property: arch/powerpc 2007-04-13 03:55:19 +10:00
fsl_pcie.c
fsl_pcie.h
fsl_soc.c [POWERPC] fsl_soc: Make mac_addr const in fs_enet_of_init(). 2007-05-09 16:35:00 +10:00
fsl_soc.h
grackle.c
i8259.c
indirect_pci.c
ipic.c
ipic.h
Makefile [POWERPC] Add Marvell mv64x60 PCI bridge support 2007-05-12 11:32:50 +10:00
micropatch.c
mmio_nvram.c
mpc8xx_pic.c
mpc8xx_pic.h
mpic_msi.c [POWERPC] MPIC MSI allocator 2007-05-08 13:43:48 +10:00
mpic_u3msi.c [POWERPC] MPIC U3/U4 MSI backend 2007-05-08 13:46:48 +10:00
mpic.c [POWERPC] Remove warning in mpic.c 2007-05-17 21:11:14 +10:00
mpic.h [POWERPC] MPIC U3/U4 MSI backend 2007-05-08 13:46:48 +10:00
mv64x60_dev.c [POWERPC] Create Marvell mv64x60 I2C platform_data 2007-05-12 11:32:50 +10:00
mv64x60_pci.c [POWERPC] Add Marvell mv64x60 PCI bridge support 2007-05-12 11:32:50 +10:00
mv64x60_pic.c [POWERPC] Add interrupt support for Marvell mv64x60 chips 2007-05-12 11:32:49 +10:00
mv64x60.h [POWERPC] Add Marvell mv64x60 PCI bridge support 2007-05-12 11:32:50 +10:00
pmi.c [POWERPC] add of_iomap function 2007-04-23 21:44:40 +02:00
timer.c [POWERPC] arch/powerpc/sysdev/timer.c build fix 2007-04-30 11:02:05 +10:00
tsi108_dev.c [POWERPC] Fix problems with device tree representation of TSI-1xx bridges 2007-06-14 22:30:17 +10:00
tsi108_pci.c [POWERPC] Generalize tsi108 PCI setup 2007-05-08 11:54:20 +10:00
uic.c [POWERPC] Rename device_is_compatible to of_device_is_compatible 2007-05-07 20:31:14 +10:00