device_type/compatible cleanups
Subsystems (8)
v4 cover device_type/compatible cleanups
Hi all,
The fourth version follows...
Changes since v3:
- Thanks to reviewers, few glitches found and fixed;
- New conversion: device_type = "qeic" to compatible = "fsl,qe-ic";
- Documentation updated.
Changes since v2:
- SPI conversion fixed and actually tested on MPC8323E-RDB to not break anything;
- Few more users of device_type = "qe" converted to compatible = "fsl,qe";
- Got Ack on SPI part from David Brownell.
Changes since v1:
- Device tree lookup changes should be backward compatible with older dtbs;
- Few of_put_node() cleanups;
- cell-index property added to spi nodes;
- cpm-muram{,-data} added as an addition to qe-muram{,-data}.
Thanks,
Signature · 4 lines
Anton Vorontsov email: [email protected] backup email: [email protected] irc://irc.freenode.net/bd2
PATCH v4 1/4 qe_lib and users: get rid of device_types and model
Now we're searching for "fsl,qe", "fsl,qe-muram", "fsl,qe-muram-data" and "fsl,qe-ic".
Per http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048388.html
--- Documentation/powerpc/booting-without-of.txt | 6 ++++-- arch/powerpc/boot/dts/mpc832x_mds.dts | 11 ++++++----- arch/powerpc/boot/dts/mpc832x_rdb.dts | 11 ++++++----- arch/powerpc/boot/dts/mpc836x_mds.dts | 11 ++++++----- arch/powerpc/boot/dts/mpc8568mds.dts | 11 ++++++----- arch/powerpc/platforms/83xx/mpc832x_mds.c | 11 +++++++---- arch/powerpc/platforms/83xx/mpc832x_rdb.c | 11 +++++++---- arch/powerpc/platforms/83xx/mpc836x_mds.c | 11 +++++++---- arch/powerpc/platforms/85xx/mpc85xx_mds.c | 16 +++++++++++----- arch/powerpc/sysdev/fsl_soc.c | 5 ++++- arch/powerpc/sysdev/qe_lib/qe.c | 16 +++++++++++++--- 11 files changed, 77 insertions(+), 43 deletions(-)
Documentation/powerpc/booting-without-of.txt +4 -2
@@ -1770,7 +1770,7 @@ platforms are moved over to use the flattened-device-tree model. vii) Multi-User RAM (MURAM) Required properties: - - device_type : should be "muram". + - compatible : should be "fsl,cpm-muram", "fsl,qe-muram". - mode : the could be "host" or "slave". - ranges : Should be defined as specified in 1) to describe the translation of MURAM addresses.
@@ -1780,10 +1780,12 @@ platforms are moved over to use the flattened-device-tree model. Example: muram@10000 { - device_type = "muram"; + compatible = "fsl,cpm-muram", "fsl,qe-muram"; ranges = <0 00010000 0000c000>; data-only@0{ + compatible = "fsl,cpm-muram-data", + "fsl,qe-muram-data"; reg = <0 c000>; }; };
arch/powerpc/boot/dts/mpc832x_mds.dts +6 -5
@@ -175,18 +175,19 @@ qe@e0100000 { #address-cells = <1>; #size-cells = <1>; - device_type = "qe"; - model = "QE"; + compatible = "fsl,qe"; ranges = <0 e0100000 00100000>; reg = <e0100000 480>; brg-frequency = <0>; bus-frequency = <BCD3D80>; muram@10000 { - device_type = "muram"; + compatible = "fsl,cpm-muram", "fsl,qe-muram"; ranges = <0 00010000 00004000>; data-only@0 { + compatible = "fsl,cpm-muram-data", + "fsl,qe-muram-data"; reg = <0 4000>; }; };
@@ -271,9 +272,9 @@ }; }; - qeic: qeic@80 { + qeic: interrupt-controller@80 { interrupt-controller; - device_type = "qeic"; + compatible = "fsl,qe-ic"; #address-cells = <0>; #interrupt-cells = <1>; reg = <80 80>;
arch/powerpc/boot/dts/mpc832x_rdb.dts +6 -5
@@ -165,18 +165,19 @@ qe@e0100000 { #address-cells = <1>; #size-cells = <1>; - device_type = "qe"; - model = "QE"; + compatible = "fsl,qe"; ranges = <0 e0100000 00100000>; reg = <e0100000 480>; brg-frequency = <0>; bus-frequency = <BCD3D80>; muram@10000 { - device_type = "muram"; + compatible = "fsl,cpm-muram", "fsl,qe-muram"; ranges = <0 00010000 00004000>; data-only@0 { + compatible = "fsl,cpm-muram-data", + "fsl,qe-muram-data"; reg = <0 4000>; }; };
@@ -252,9 +253,9 @@ }; }; - qeic:qeic@80 { + qeic:interrupt-controller@80 { interrupt-controller; - device_type = "qeic"; + compatible = "fsl,qe-ic"; #address-cells = <0>; #interrupt-cells = <1>; reg = <80 80>;
arch/powerpc/boot/dts/mpc836x_mds.dts +6 -5
@@ -206,18 +206,19 @@ qe@e0100000 { #address-cells = <1>; #size-cells = <1>; - device_type = "qe"; - model = "QE"; + compatible = "fsl,qe"; ranges = <0 e0100000 00100000>; reg = <e0100000 480>; brg-frequency = <0>; bus-frequency = <179A7B00>; muram@10000 { - device_type = "muram"; + compatible = "fsl,cpm-muram", "fsl,qe-muram"; ranges = <0 00010000 0000c000>; data-only@0{ + compatible = "fsl,cpm-muram-data", + "fsl,qe-muram-data"; reg = <0 c000>; }; };
@@ -304,9 +305,9 @@ }; }; - qeic: qeic@80 { + qeic: interrupt-controller@80 { interrupt-controller; - device_type = "qeic"; + compatible = "fsl,qe-ic"; #address-cells = <0>; #interrupt-cells = <1>; reg = <80 80>;
arch/powerpc/boot/dts/mpc8568mds.dts +6 -5
@@ -283,18 +283,19 @@ qe@e0080000 { #address-cells = <1>; #size-cells = <1>; - device_type = "qe"; - model = "QE"; + compatible = "fsl,qe"; ranges = <0 e0080000 00040000>; reg = <e0080000 480>; brg-frequency = <0>; bus-frequency = <179A7B00>; muram@10000 { - device_type = "muram"; + compatible = "fsl,cpm-muram", "fsl,qe-muram"; ranges = <0 00010000 0000c000>; data-only@0{ + compatible = "fsl,cpm-muram-data", + "fsl,qe-muram-data"; reg = <0 c000>; }; };
@@ -385,9 +386,9 @@ }; }; - qeic: qeic@80 { + qeic: interrupt-controller@80 { interrupt-controller; - device_type = "qeic"; + compatible = "fsl,qe-ic"; #address-cells = <0>; #interrupt-cells = <1>; reg = <80 80>;
arch/powerpc/platforms/83xx/mpc832x_mds.c +7 -4
@@ -105,6 +105,7 @@ static struct of_device_id mpc832x_ids[] = { { .type = "soc", }, { .compatible = "soc", }, { .type = "qe", }, + { .compatible = "fsl,qe", }, {}, };
@@ -137,10 +138,12 @@ static void __init mpc832x_sys_init_IRQ(void)of_node_put (np);#ifdef CONFIG_QUICC_ENGINE - np =of_find_node_by_type (NULL ,"qeic" ); -if (!np) -return ; - + np =of_find_compatible_node (NULL ,NULL ,"fsl,qe-ic" ); +if (!np) { + np =of_find_node_by_type (NULL ,"qeic" ); +if (!np) +return ; + }qe_ic_init (np,0 , qe_ic_cascade_low_ipic, qe_ic_cascade_high_ipic);of_node_put (np);#endif /* CONFIG_QUICC_ENGINE */
arch/powerpc/platforms/83xx/mpc832x_rdb.c +7 -4
@@ -118,6 +118,7 @@ static struct of_device_id mpc832x_ids[] = { { .type = "soc", }, { .compatible = "soc", }, { .type = "qe", }, + { .compatible = "fsl,qe", }, {}, };
@@ -151,10 +152,12 @@ void __init mpc832x_rdb_init_IRQ(void)of_node_put (np);#ifdef CONFIG_QUICC_ENGINE - np =of_find_node_by_type (NULL ,"qeic" ); -if (!np) -return ; - + np =of_find_compatible_node (NULL ,NULL ,"fsl,qe-ic" ); +if (!np) { + np =of_find_node_by_type (NULL ,"qeic" ); +if (!np) +return ; + }qe_ic_init (np,0 , qe_ic_cascade_low_ipic, qe_ic_cascade_high_ipic);of_node_put (np);#endif /* CONFIG_QUICC_ENGINE */
arch/powerpc/platforms/83xx/mpc836x_mds.c +7 -4
@@ -136,6 +136,7 @@ static struct of_device_id mpc836x_ids[] = { { .type = "soc", }, { .compatible = "soc", }, { .type = "qe", }, + { .compatible = "fsl,qe", }, {}, };
@@ -168,10 +169,12 @@ static void __init mpc836x_mds_init_IRQ(void)of_node_put (np);#ifdef CONFIG_QUICC_ENGINE - np =of_find_node_by_type (NULL ,"qeic" ); -if (!np) -return ; - + np =of_find_compatible_node (NULL ,NULL ,"fsl,qe-ic" ); +if (!np) { + np =of_find_node_by_type (NULL ,"qeic" ); +if (!np) +return ; + }qe_ic_init (np,0 , qe_ic_cascade_low_ipic, qe_ic_cascade_high_ipic);of_node_put (np);#endif /* CONFIG_QUICC_ENGINE */
arch/powerpc/platforms/85xx/mpc85xx_mds.c +11 -5
@@ -94,7 +94,10 @@ static void __init mpc85xx_mds_setup_arch(void)#endif #ifdef CONFIG_QUICC_ENGINE -if ((np =of_find_node_by_name (NULL ,"qe" )) !=NULL ) { + np =of_find_compatible_node (NULL ,NULL ,"fsl,qe" ); +if (!np) + np =of_find_node_by_name (NULL ,"qe" ); +if (np) {qe_reset ();of_node_put (np); }
@@ -139,6 +142,7 @@ static struct of_device_id mpc85xx_ids[] = { { .type = "soc", }, { .compatible = "soc", }, { .type = "qe", }, + { .compatible = "fsl,qe", }, {}, };
@@ -179,10 +183,12 @@ static void __init mpc85xx_mds_pic_init(void)mpic_init (mpic);#ifdef CONFIG_QUICC_ENGINE - np =of_find_node_by_type (NULL ,"qeic" ); -if (!np) -return ; - + np =of_find_compatible_node (NULL ,NULL ,"fsl,qe-ic" ); +if (!np) { + np =of_find_node_by_type (NULL ,"qeic" ); +if (!np) +return ; + }qe_ic_init (np,0 , qe_ic_cascade_muxed_mpic,NULL );of_node_put (np);#endif /* CONFIG_QUICC_ENGINE */
arch/powerpc/sysdev/fsl_soc.c +4 -1
@@ -1226,7 +1226,10 @@ int __init fsl_spi_init(struct spi_board_info *board_infos,const u32 *sysclk;/* SPI controller is either clocked from QE or SoC clock */ - np =of_find_node_by_type (NULL ,"qe" ); + np =of_find_compatible_node (NULL ,NULL ,"fsl,qe" ); +if (!np) + np =of_find_node_by_type (NULL ,"qe" ); +if (!np) np =of_find_node_by_type (NULL ,"soc" );
arch/powerpc/sysdev/qe_lib/qe.c +13 -3
@@ -68,7 +68,10 @@ phys_addr_t get_qe_base(void)if (qebase !=-1 )return qebase; - qe =of_find_node_by_type (NULL ,"qe" ); + qe =of_find_compatible_node (NULL ,NULL ,"fsl,qe" ); +if (!qe) + qe =of_find_node_by_type (NULL ,"qe" ); +if (qe) {unsigned int size;const void *prop =of_get_property (qe,"reg" , &size);
@@ -155,7 +158,10 @@ unsigned int get_brg_clk(void)if (brg_clk)return brg_clk; - qe =of_find_node_by_type (NULL ,"qe" ); + qe =of_find_compatible_node (NULL ,NULL ,"fsl,qe" ); +if (!qe) + qe =of_find_node_by_type (NULL ,"qe" ); +if (qe) {unsigned int size;const u32 *prop =of_get_property (qe,"brg-frequency" , &size);
@@ -334,7 +340,11 @@ static void qe_muram_init(void)/* XXX: This is a subset of the available muram. It * varies with the processor and the microcode patches activated. */ -if ((np =of_find_node_by_name (NULL ,"data-only" )) !=NULL ) { + np =of_find_compatible_node (NULL ,NULL ,"fsl,qe-muram-data" ); +if (!np) + np =of_find_node_by_name (NULL ,"data-only" ); + +if (np) { address = *of_get_address (np,0 , &size, &flags);of_node_put (np);rh_attach_region (&qe_muram_info, address, (int ) size);
Signature · 1 line
1.5.2.2
PATCH v4 2/4 ucc_geth_mii and users: get rid of device_type
In reply to Anton Vorontsovdevice_type property is bogus, thus use proper compatible.
Also change compatible property to "fsl,ucc-mdio".
Per http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048388.html
--- arch/powerpc/boot/dts/mpc832x_mds.dts | 3 +-- arch/powerpc/boot/dts/mpc832x_rdb.dts | 3 +-- arch/powerpc/boot/dts/mpc836x_mds.dts | 3 +-- arch/powerpc/boot/dts/mpc8568mds.dts | 2 +- drivers/net/ucc_geth_mii.c | 3 +++ 5 files changed, 7 insertions(+), 7 deletions(-)
arch/powerpc/boot/dts/mpc832x_mds.dts +1 -2
@@ -255,8 +255,7 @@ #address-cells = <1>; #size-cells = <0>; reg = <2320 18>; - device_type = "mdio"; - compatible = "ucc_geth_phy"; + compatible = "fsl,ucc-mdio"; phy3: ethernet-phy@03 { interrupt-parent = < &ipic >;
arch/powerpc/boot/dts/mpc832x_rdb.dts +1 -2
@@ -236,8 +236,7 @@ #address-cells = <1>; #size-cells = <0>; reg = <3120 18>; - device_type = "mdio"; - compatible = "ucc_geth_phy"; + compatible = "fsl,ucc-mdio"; phy00:ethernet-phy@00 { interrupt-parent = <&pic>;
arch/powerpc/boot/dts/mpc836x_mds.dts +1 -2
@@ -288,8 +288,7 @@ #address-cells = <1>; #size-cells = <0>; reg = <2120 18>; - device_type = "mdio"; - compatible = "ucc_geth_phy"; + compatible = "fsl,ucc-mdio"; phy0: ethernet-phy@00 { interrupt-parent = < &ipic >;
arch/powerpc/boot/dts/mpc8568mds.dts +1 -1
@@ -356,7 +356,7 @@ #address-cells = <1>; #size-cells = <0>; reg = <2120 18>; - compatible = "ucc_geth_phy"; + compatible = "fsl,ucc-mdio"; /* These are the same PHYs as on * gianfar's MDIO bus */
drivers/net/ucc_geth_mii.c +3 -0
@@ -256,6 +256,9 @@ static struct of_device_id uec_mdio_match[] = { .type = "mdio", .compatible = "ucc_geth_phy", }, + { + .compatible = "fsl,ucc-mdio", + }, {}, };
Signature · 1 line
1.5.2.2
PATCH v4 3/4 use brg-frequency for SPI in QE
In reply to Anton VorontsovIn case of QE we can use brg-frequency (which is qeclk/2). Thus no need to divide sysclk in the spi_mpc83xx.
This patch also adds code to use get_brgfreq() on QE chips.
--- arch/powerpc/sysdev/fsl_soc.c | 44 ++++++++++++++++++++++++++++------------ drivers/spi/spi_mpc83xx.c | 6 +---- 2 files changed, 32 insertions(+), 18 deletions(-)
arch/powerpc/sysdev/fsl_soc.c +31 -13
@@ -66,7 +66,7 @@ phys_addr_t get_immrbase(void)EXPORT_SYMBOL (get_immrbase); -#if defined(CONFIG_CPM2 ) || defined(CONFIG_8xx) +#if defined(CONFIG_CPM2 ) || defined(CONFIG_QUICC_ENGINE ) || defined(CONFIG_8xx)static u32 brgfreq =-1 ;
@@ -91,11 +91,21 @@ u32 get_brgfreq(void)/* Legacy device binding -- will go away when no users are left. */ node =of_find_node_by_type (NULL ,"cpm" ); +if (!node) + node =of_find_compatible_node (NULL ,NULL ,"fsl,qe" ); +if (!node) + node =of_find_node_by_type (NULL ,"qe" ); +if (node) { prop =of_get_property (node,"brg-frequency" , &size);if (prop && size ==4 ) brgfreq = *prop; +if (brgfreq ==-1 || brgfreq ==0 ) { + prop =of_get_property (node,"bus-frequency" , &size); +if (prop && size ==4 ) + brgfreq = *prop /2 ; + }of_node_put (node); }
@@ -1223,22 +1233,30 @@ int __init fsl_spi_init(struct spi_board_info *board_infos, {struct device_node *np;unsigned int i; -const u32 *sysclk; +u32 sysclk;/* SPI controller is either clocked from QE or SoC clock */ - np =of_find_compatible_node (NULL ,NULL ,"fsl,qe" ); -if (!np) - np =of_find_node_by_type (NULL ,"qe" ); + sysclk =get_brgfreq (); +if (sysclk ==-1 ) { +const u32 *freq; +int size; -if (!np) np =of_find_node_by_type (NULL ,"soc" ); +if (!np) +return -ENODEV ; + + freq =of_get_property (np,"clock-frequency" , &size); +if (!freq || size !=sizeof (*freq) || *freq ==0 ) { + freq =of_get_property (np,"bus-frequency" , &size); +if (!freq || size !=sizeof (*freq) || *freq ==0 ) { +of_node_put (np); +return -ENODEV ; + } + } -if (!np) -return -ENODEV ; - - sysclk =of_get_property (np,"bus-frequency" ,NULL ); -if (!sysclk) -return -ENODEV ; + sysclk = *freq; +of_node_put (np); + } for (np = NULL, i = 1; (np = of_find_compatible_node(np, "spi", "fsl_spi")) != NULL;
@@ -1255,7 +1273,7 @@ int __init fsl_spi_init(struct spi_board_info *board_infos,memset (res,0 ,sizeof (res)); - pdata.sysclk = *sysclk; + pdata.sysclk = sysclk; prop =of_get_property (np,"reg" ,NULL );if (!prop)
drivers/spi/spi_mpc83xx.c +1 -5
@@ -436,11 +436,7 @@ static int __init mpc83xx_spi_probe(struct platform_device *dev) mpc83xx_spi->qe_mode = pdata->qe_mode; mpc83xx_spi->get_rx = mpc83xx_spi_rx_buf_u8; mpc83xx_spi->get_tx = mpc83xx_spi_tx_buf_u8; - -if (mpc83xx_spi->qe_mode) - mpc83xx_spi->spibrg = pdata->sysclk /2 ; -else - mpc83xx_spi->spibrg = pdata->sysclk; + mpc83xx_spi->spibrg = pdata->sysclk; mpc83xx_spi->rx_shift =0 ; mpc83xx_spi->tx_shift =0 ;
Signature · 1 line
1.5.2.2
PATCH v4 4/4 fsl_spi_init and users: stop using device_type = "spi"
In reply to Anton VorontsovAlso:
- rename "fsl_spi" to "fsl,spi";
- add and use cell-index property, if found;
- split probing code out of fsl_spi_init, thus we can call it for legacy device_type probing and new "compatible" probing.
Per http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048388.html
--- Documentation/powerpc/booting-without-of.txt | 8 +- arch/powerpc/boot/dts/mpc8313erdb.dts | 4 +- arch/powerpc/boot/dts/mpc832x_mds.dts | 8 +- arch/powerpc/boot/dts/mpc832x_rdb.dts | 8 +- arch/powerpc/boot/dts/mpc8349emitx.dts | 4 +- arch/powerpc/boot/dts/mpc8349emitxgp.dts | 4 +- arch/powerpc/boot/dts/mpc834x_mds.dts | 4 +- arch/powerpc/boot/dts/mpc836x_mds.dts | 8 +- arch/powerpc/boot/dts/mpc8568mds.dts | 8 +- arch/powerpc/sysdev/fsl_soc.c | 94 ++++++++++++++++---------- 10 files changed, 86 insertions(+), 64 deletions(-)
Documentation/powerpc/booting-without-of.txt +4 -4
@@ -1563,8 +1563,8 @@ platforms are moved over to use the flattened-device-tree model. ii) SPI (Serial Peripheral Interface) Required properties: - - device_type : should be "spi". - - compatible : should be "fsl_spi". + - cell-index : SPI controller index. + - compatible : should be "fsl,spi". - mode : the SPI operation mode, it can be "cpu" or "cpu-qe". - reg : Offset and length of the register set for the device - interrupts : <a b> where a is the interrupt number and b is a
@@ -1577,8 +1577,8 @@ platforms are moved over to use the flattened-device-tree model. Example: spi@4c0 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <0>; + compatible = "fsl,spi"; reg = <4c0 40>; interrupts = <82 0>; interrupt-parent = <700>;
arch/powerpc/boot/dts/mpc8313erdb.dts +2 -2
@@ -82,8 +82,8 @@ }; spi@7000 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <0>; + compatible = "fsl,spi"; reg = <7000 1000>; interrupts = <10 8>; interrupt-parent = < &ipic >;
arch/powerpc/boot/dts/mpc832x_mds.dts +4 -4
@@ -193,8 +193,8 @@ }; spi@4c0 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <0>; + compatible = "fsl,spi"; reg = <4c0 40>; interrupts = <2>; interrupt-parent = < &qeic >;
@@ -202,8 +202,8 @@ }; spi@500 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <1>; + compatible = "fsl,spi"; reg = <500 40>; interrupts = <1>; interrupt-parent = < &qeic >;
arch/powerpc/boot/dts/mpc832x_rdb.dts +4 -4
@@ -183,8 +183,8 @@ }; spi@4c0 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <0>; + compatible = "fsl,spi"; reg = <4c0 40>; interrupts = <2>; interrupt-parent = <&qeic>;
@@ -192,8 +192,8 @@ }; spi@500 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <1>; + compatible = "fsl,spi"; reg = <500 40>; interrupts = <1>; interrupt-parent = <&qeic>;
arch/powerpc/boot/dts/mpc8349emitx.dts +2 -2
@@ -82,8 +82,8 @@ }; spi@7000 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <0>; + compatible = "fsl,spi"; reg = <7000 1000>; interrupts = <10 8>; interrupt-parent = < &ipic >;
arch/powerpc/boot/dts/mpc8349emitxgp.dts +2 -2
@@ -80,8 +80,8 @@ }; spi@7000 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <0>; + compatible = "fsl,spi"; reg = <7000 1000>; interrupts = <10 8>; interrupt-parent = < &ipic >;
arch/powerpc/boot/dts/mpc834x_mds.dts +2 -2
@@ -93,8 +93,8 @@ }; spi@7000 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <0>; + compatible = "fsl,spi"; reg = <7000 1000>; interrupts = <10 8>; interrupt-parent = < &ipic >;
arch/powerpc/boot/dts/mpc836x_mds.dts +4 -4
@@ -224,8 +224,8 @@ }; spi@4c0 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <0>; + compatible = "fsl,spi"; reg = <4c0 40>; interrupts = <2>; interrupt-parent = < &qeic >;
@@ -233,8 +233,8 @@ }; spi@500 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <1>; + compatible = "fsl,spi"; reg = <500 40>; interrupts = <1>; interrupt-parent = < &qeic >;
arch/powerpc/boot/dts/mpc8568mds.dts +4 -4
@@ -301,8 +301,8 @@ }; spi@4c0 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <0>; + compatible = "fsl,spi"; reg = <4c0 40>; interrupts = <2>; interrupt-parent = <&qeic>;
@@ -310,8 +310,8 @@ }; spi@500 { - device_type = "spi"; - compatible = "fsl_spi"; + cell-index = <1>; + compatible = "fsl,spi"; reg = <500 40>; interrupts = <1>; interrupt-parent = <&qeic>;
arch/powerpc/sysdev/fsl_soc.c +58 -36
126 lines not on this page · raw message
Signature · 1 line
1.5.2.2