8xx PCMCIA stuff && cleanup: take 4
cover 8xx PCMCIA stuff && cleanup: take 4
Hopefully last round, with Kumar's notes addressed,
and BSP mpc885_setup.c Lindented in 2-nd patch as well as PCMCIA driver.
-
Sincerely, Vitaly
PATCH 1/3 8xx: mpc885ads pcmcia support
Adds support for PowerQuicc on-chip PCMCIA. The driver is implemented as of_device, so only arch/powerpc stuff is capable to use it, which now implies only mpc885ads reference board.
To cope with the code that should be hooked inside driver, but is really board specific (like set_voltage), global structure mpc8xx_pcmcia_ops holds necessary function pointers that are filled in the BSP code.
---
arch/powerpc/boot/dts/mpc885ads.dts | 11 + arch/powerpc/platforms/8xx/m8xx_setup.c | 5 arch/powerpc/platforms/8xx/mpc885ads_setup.c | 71 +++++ arch/powerpc/sysdev/fsl_soc.c | 13 + arch/powerpc/sysdev/mpc8xx_pic.h | 10 + drivers/pcmcia/Kconfig | 1 drivers/pcmcia/m8xx_pcmcia.c | 351 ++++++++++++-------------- include/asm-powerpc/mpc8xx.h | 4 include/linux/fsl_devices.h | 5 9 files changed, 285 insertions(+), 186 deletions(-)
arch/powerpc/boot/dts/mpc885ads.dts +11 -0
@@ -112,6 +112,17 @@ compatible = "CPM"; }; + pcmcia@0080 { + #address-cells = <3>; + #interrupt-cells = <1>; + #size-cells = <2>; + compatible = "fsl,pq-pcmcia"; + device_type = "pcmcia"; + reg = <80 80>; + interrupt-parent = <ff000000>; + interrupts = <d 1>; + }; + cpm@ff000000 { linux,phandle = <ff000000>; #address-cells = <1>;
arch/powerpc/platforms/8xx/m8xx_setup.c +5 -0
@@ -32,6 +32,7 @@#include <linux/root_dev.h> #include <linux/time.h> #include <linux/rtc.h> +#include <linux/fsl_devices.h> #include <asm/mmu.h> #include <asm/reg.h>
@@ -49,6 +50,10 @@#include "sysdev/mpc8xx_pic.h" +#ifdef CONFIG_PCMCIA_M8XX +struct mpc8xx_pcmcia_ops m8xx_pcmcia_ops; +#endif +void m8xx_calibrate_decr (void );extern void m8xx_wdt_handler_install (bd_t *bp);extern int cpm_pic_init (void );
arch/powerpc/platforms/8xx/mpc885ads_setup.c +71 -0
89 lines not on this page · raw message
arch/powerpc/sysdev/fsl_soc.c +13 -0
@@ -1028,6 +1028,19 @@ err:arch_initcall (fs_enet_of_init); +static int __init fsl_pcmcia_of_init (void ) +{ +struct device_node *np =NULL ; +/* +* Register all the devices which type is "pcmcia" +*/ +while ((np =of_find_compatible_node (np, +"pcmcia" ,"fsl,pq-pcmcia" )) !=NULL ) +of_platform_device_create (np,"m8xx-pcmcia" ,NULL ); +return 0 ; +} + +arch_initcall (fsl_pcmcia_of_init);static const char *smc_regs ="regs" ;static const char *smc_pram ="pram" ;
arch/powerpc/sysdev/mpc8xx_pic.h +8 -2
@@ -4,9 +4,15 @@#include <linux/irq.h> #include <linux/interrupt.h> -extern struct hw_interrupt_type mpc8xx_pic; -int mpc8xx_pic_init (void );unsigned int mpc8xx_get_irq (void ); +/* +* Some internal interrupt registers use an 8-bit mask for the interrupt +* level instead of a number. +*/ +static inline uint mk_int_int_mask (uint mask) { +return (1 << (7 - (mask/2 ))); +} +#endif /* _PPC_KERNEL_PPC8xx_H */
drivers/pcmcia/Kconfig +1 -0
@@ -183,6 +183,7 @@ config PCMCIA_M8XX tristate "MPC8xx PCMCIA support" depends on PCMCIA && PPC && 8xx select PCCARD_IODYN + select PCCARD_NONSTATIC help Say Y here to include support for PowerPC 8xx series PCMCIA controller.
drivers/pcmcia/m8xx_pcmcia.c +167 -184
605 lines not on this page · raw message
include/asm-powerpc/mpc8xx.h +4 -0
@@ -23,6 +23,10 @@#include <platforms/8xx/mpc885ads.h> #endif +#ifdef CONFIG_PCMCIA_M8XX +extern struct mpc8xx_pcmcia_ops m8xx_pcmcia_ops; +#endif +#endif /* CONFIG_8xx */ #endif /* __CONFIG_8xx_DEFS */ #endif /* __KERNEL__ */
include/linux/fsl_devices.h +5 -0
@@ -120,5 +120,10 @@ struct fsl_spi_platform_data {u32 sysclk; }; +struct mpc8xx_pcmcia_ops { +void (*hw_ctrl)(int slot,int enable); +int (*voltage_set)(int slot,int vcc,int vpp); +}; +#endif /* _FSL_DEVICE_H_ */ #endif /* __KERNEL__ */
Re: [PATCH 1/3] [POWERPC] 8xx: mpc885ads pcmcia support
arch/powerpc/sysdev/mpc8xx_pic.h line 16
Quoted 7 lines · On Wed, 09 May 2007 02:31:25 +0400 Vitaly Bordug <[email protected]>…
arch/powerpc/sysdev/mpc8xx_pic.h +7
-0+/* +* Some internal interrupt registers use an 8-bit mask for the interrupt +* level instead of a number. +*/ +static inline uint mk_int_int_mask (uint mask) { +return (1 << (7 - (mask/2 ))); +}
grumble. "uint" isn't a favoured "type". Please prefer to use "unsigned int" if that's what is meant. Or maybe u32, if that's more appropriate - and it probably is, as we're dealing with device registers here.
PATCH 2/3 8xx: fix whitespace and indentation
In reply to Vitaly BordugRolling forward PCMCIA driver, it was discovered that the indentation in existing one, as well as in BSP side are very odd. This patch is just result of Lindent run ontop of culprit files.
---
arch/powerpc/platforms/8xx/mpc885ads_setup.c | 125 +++--- drivers/pcmcia/m8xx_pcmcia.c | 548 +++++++++++++------------- 2 files changed, 336 insertions(+), 337 deletions(-)
arch/powerpc/platforms/8xx/mpc885ads_setup.c +58 -67
@@ -40,7 +40,7 @@#include <asm/prom.h> extern void cpm_reset (void ); -extern void mpc8xx_show_cpuinfo (struct seq_file *); +extern void mpc8xx_show_cpuinfo (struct seq_file *);extern void mpc8xx_restart (char *cmd);extern void mpc8xx_calibrate_decr (void );extern int mpc8xx_set_rtc_time (struct rtc_time *tm);
@@ -48,9 +48,9 @@ extern void mpc8xx_get_rtc_time(struct rtc_time *tm);extern void m8xx_pic_init (void );extern unsigned int mpc8xx_get_irq (void ); -static void init_smc1_uart_ioports (struct fs_uart_platform_info * fpi); -static void init_smc2_uart_ioports (struct fs_uart_platform_info * fpi); -static void init_scc3_ioports (struct fs_platform_info * ptr); +static void init_smc1_uart_ioports (struct fs_uart_platform_info *fpi); +static void init_smc2_uart_ioports (struct fs_uart_platform_info *fpi); +static void init_scc3_ioports (struct fs_platform_info *ptr);#ifdef CONFIG_PCMCIA_M8XX static void pcmcia_hw_setup (int slot,int enable)
@@ -73,7 +73,7 @@ static int pcmcia_set_voltage(int slot, int vcc, int vpp) bcsr_io =ioremap (BCSR1 ,sizeof (unsigned long )); -switch (vcc) { +switch (vcc) {case 0 :break ;case 33 :
@@ -86,12 +86,12 @@ static int pcmcia_set_voltage(int slot, int vcc, int vpp)return 1 ; } -switch (vpp) { +switch (vpp) {case 0 :break ;case 33 :case 50 : -if (vcc == vpp) +if (vcc == vpp) reg |=BCSR1_PCCVPP1 ;else return 1 ;
@@ -127,7 +127,7 @@ void __init mpc885ads_board_setup(void)#endif bcsr_io =ioremap (BCSR1 ,sizeof (unsigned long )); - cp = (cpm8xx_t *)immr_map (im_cpm); + cp = (cpm8xx_t *)immr_map (im_cpm);if (bcsr_io ==NULL ) {printk (KERN_CRIT "Could not remap BCSR\n" );
@@ -140,13 +140,13 @@ void __init mpc885ads_board_setup(void)out_8 (&(cp->cp_smc[0 ].smc_smcm), tmpval8);clrbits16 (&cp->cp_smc[0 ].smc_smcmr,SMCMR_REN |SMCMR_TEN );/* brg1 */ #else -setbits32 (bcsr_io,BCSR1_RS232EN_1 ); +setbits32 (bcsr_io,BCSR1_RS232EN_1 );out_be16 (&cp->cp_smc[0 ].smc_smcmr,0 );out_8 (&cp->cp_smc[0 ].smc_smce,0 );#endif #ifdef CONFIG_SERIAL_CPM_SMC2 -clrbits32 (bcsr_io,BCSR1_RS232EN_2 ); +clrbits32 (bcsr_io,BCSR1_RS232EN_2 );clrbits32 (&cp->cp_simode,0xe0000000 >>1 );setbits32 (&cp->cp_simode,0x20000000 >>1 );/* brg2 */ tmpval8 =in_8 (&(cp->cp_smc[1 ].smc_smcm)) | (SMCM_RX |SMCM_TX );
@@ -155,7 +155,7 @@ void __init mpc885ads_board_setup(void)init_smc2_uart_ioports (0 );#else -setbits32 (bcsr_io,BCSR1_RS232EN_2 ); +setbits32 (bcsr_io,BCSR1_RS232EN_2 );out_be16 (&cp->cp_smc[1 ].smc_smcmr,0 );out_8 (&cp->cp_smc[1 ].smc_smce,0 );#endif
@@ -164,16 +164,16 @@ void __init mpc885ads_board_setup(void)#ifdef CONFIG_FS_ENET /* use MDC for MII (common) */ - io_port = (iop8xx_t *)immr_map (im_ioport); + io_port = (iop8xx_t *)immr_map (im_ioport);setbits16 (&io_port->iop_pdpar,0x0080 );clrbits16 (&io_port->iop_pddir,0x0080 ); bcsr_io =ioremap (BCSR5 ,sizeof (unsigned long )); -clrbits32 (bcsr_io,BCSR5_MII1_EN ); -clrbits32 (bcsr_io,BCSR5_MII1_RST ); +clrbits32 (bcsr_io,BCSR5_MII1_EN ); +clrbits32 (bcsr_io,BCSR5_MII1_RST );#ifndef CONFIG_FC_ENET_HAS_SCC -clrbits32 (bcsr_io,BCSR5_MII2_EN ); -clrbits32 (bcsr_io,BCSR5_MII2_RST ); +clrbits32 (bcsr_io,BCSR5_MII2_EN ); +clrbits32 (bcsr_io,BCSR5_MII2_RST );#endif iounmap (bcsr_io);
@@ -182,17 +182,16 @@ void __init mpc885ads_board_setup(void)#endif #ifdef CONFIG_PCMCIA_M8XX -/*Set up board specific hook-ups*/ +/*Set up board specific hook-ups */ m8xx_pcmcia_ops.hw_ctrl = pcmcia_hw_setup; m8xx_pcmcia_ops.voltage_set = pcmcia_set_voltage;#endif } - -static void init_fec1_ioports (struct fs_platform_info * ptr) +static void init_fec1_ioports (struct fs_platform_info *ptr) { -cpm8xx_t *cp = (cpm8xx_t *)immr_map (im_cpm); -iop8xx_t *io_port = (iop8xx_t *)immr_map (im_ioport); +cpm8xx_t *cp = (cpm8xx_t *)immr_map (im_cpm); +iop8xx_t *io_port = (iop8xx_t *)immr_map (im_ioport);/* configure FEC1 pins */ setbits16 (&io_port->iop_papar,0xf830 );
@@ -214,11 +213,10 @@ static void init_fec1_ioports(struct fs_platform_info* ptr)immr_unmap (cp); } - -static void init_fec2_ioports (struct fs_platform_info * ptr) +static void init_fec2_ioports (struct fs_platform_info *ptr) { -cpm8xx_t *cp = (cpm8xx_t *)immr_map (im_cpm); -iop8xx_t *io_port = (iop8xx_t *)immr_map (im_ioport); +cpm8xx_t *cp = (cpm8xx_t *)immr_map (im_cpm); +iop8xx_t *io_port = (iop8xx_t *)immr_map (im_ioport);/* configure FEC2 pins */ setbits32 (&cp->cp_pepar,0x0003fffc );
@@ -248,15 +246,15 @@ void init_fec_ioports(struct fs_platform_info *fpi) } } -static void init_scc3_ioports (struct fs_platform_info * fpi) +static void init_scc3_ioports (struct fs_platform_info *fpi) {unsigned *bcsr_io;iop8xx_t *io_port;cpm8xx_t *cp; bcsr_io =ioremap (BCSR_ADDR ,BCSR_SIZE ); - io_port = (iop8xx_t *)immr_map (im_ioport); - cp = (cpm8xx_t *)immr_map (im_cpm); + io_port = (iop8xx_t *)immr_map (im_ioport); + cp = (cpm8xx_t *)immr_map (im_cpm);if (bcsr_io ==NULL ) {printk (KERN_CRIT "Could not remap BCSR\n" );
@@ -265,9 +263,9 @@ static void init_scc3_ioports(struct fs_platform_info* fpi)/* Enable the PHY. */ -clrbits32 (bcsr_io+4 ,BCSR4_ETH10_RST ); +clrbits32 (bcsr_io +4 ,BCSR4_ETH10_RST );udelay (1000 ); -setbits32 (bcsr_io+4 ,BCSR4_ETH10_RST ); +setbits32 (bcsr_io +4 ,BCSR4_ETH10_RST );/* Configure port A pins for Txd and Rxd. */ setbits16 (&io_port->iop_papar,PA_ENET_RXD |PA_ENET_TXD );
@@ -283,8 +281,7 @@ static void init_scc3_ioports(struct fs_platform_info* fpi)*/ setbits32 (&cp->cp_pepar,PE_ENET_TCLK |PE_ENET_RCLK );clrbits32 (&cp->cp_pepar,PE_ENET_TENA ); -clrbits32 (&cp->cp_pedir, -PE_ENET_TCLK |PE_ENET_RCLK |PE_ENET_TENA ); +clrbits32 (&cp->cp_pedir,PE_ENET_TCLK |PE_ENET_RCLK |PE_ENET_TENA );clrbits32 (&cp->cp_peso,PE_ENET_TCLK |PE_ENET_RCLK );setbits32 (&cp->cp_peso,PE_ENET_TENA );
@@ -308,7 +305,7 @@ static void init_scc3_ioports(struct fs_platform_info* fpi)clrbits32 (&cp->cp_pedir,PE_ENET_TENA );setbits32 (&cp->cp_peso,PE_ENET_TENA ); -setbits32 (bcsr_io+4 ,BCSR1_ETHEN ); +setbits32 (bcsr_io +4 ,BCSR1_ETHEN );iounmap (bcsr_io);immr_unmap (io_port);immr_unmap (cp);
@@ -328,50 +325,48 @@ void init_scc_ioports(struct fs_platform_info *fpi) } } - - -static void init_smc1_uart_ioports (struct fs_uart_platform_info * ptr) +static void init_smc1_uart_ioports (struct fs_uart_platform_info *ptr) { -unsigned *bcsr_io; +unsigned *bcsr_io;cpm8xx_t *cp; - cp = (cpm8xx_t *)immr_map (im_cpm); + cp = (cpm8xx_t *)immr_map (im_cpm);setbits32 (&cp->cp_pepar,0x000000c0 );clrbits32 (&cp->cp_pedir,0x000000c0 );clrbits32 (&cp->cp_peso,0x00000040 );setbits32 (&cp->cp_peso,0x00000080 );immr_unmap (cp); - bcsr_io =ioremap (BCSR1 ,sizeof (unsigned long )); + bcsr_io =ioremap (BCSR1 ,sizeof (unsigned long )); -if (bcsr_io ==NULL ) { -printk (KERN_CRIT "Could not remap BCSR1\n" ); -return ; - } -clrbits32 (bcsr_io,BCSR1_RS232EN_1 ); -iounmap (bcsr_io); +if (bcsr_io ==NULL ) { +printk (KERN_CRIT "Could not remap BCSR1\n" ); +return ; + } +clrbits32 (bcsr_io,BCSR1_RS232EN_1 ); +iounmap (bcsr_io); } -static void init_smc2_uart_ioports (struct fs_uart_platform_info * fpi) +static void init_smc2_uart_ioports (struct fs_uart_platform_info *fpi) { -unsigned *bcsr_io; +unsigned *bcsr_io;cpm8xx_t *cp; - cp = (cpm8xx_t *)immr_map (im_cpm); + cp = (cpm8xx_t *)immr_map (im_cpm);setbits32 (&cp->cp_pepar,0x00000c00 );clrbits32 (&cp->cp_pedir,0x00000c00 );clrbits32 (&cp->cp_peso,0x00000400 );setbits32 (&cp->cp_peso,0x00000800 );immr_unmap (cp); - bcsr_io =ioremap (BCSR1 ,sizeof (unsigned long )); + bcsr_io =ioremap (BCSR1 ,sizeof (unsigned long )); -if (bcsr_io ==NULL ) { -printk (KERN_CRIT "Could not remap BCSR1\n" ); -return ; - } -clrbits32 (bcsr_io,BCSR1_RS232EN_2 ); -iounmap (bcsr_io); +if (bcsr_io ==NULL ) { +printk (KERN_CRIT "Could not remap BCSR1\n" ); +return ; + } +clrbits32 (bcsr_io,BCSR1_RS232EN_2 ); +iounmap (bcsr_io); }void init_smc_ioports (struct fs_uart_platform_info *data)
@@ -444,15 +439,11 @@ static int __init mpc885ads_probe(void)return 1 ; } -define_machine (mpc885_ads) { - .name = "MPC885 ADS", - .probe = mpc885ads_probe, - .setup_arch = mpc885ads_setup_arch, - .init_IRQ = m8xx_pic_init, - .show_cpuinfo = mpc8xx_show_cpuinfo, - .get_irq = mpc8xx_get_irq, - .restart = mpc8xx_restart, - .calibrate_decr = mpc8xx_calibrate_decr, - .set_rtc_time = mpc8xx_set_rtc_time, - .get_rtc_time = mpc8xx_get_rtc_time, -}; +define_machine (mpc885_ads) +{ +.name = "MPC885 ADS",.probe = mpc885ads_probe,.setup_arch = + mpc885ads_setup_arch,.init_IRQ = + m8xx_pic_init,.show_cpuinfo = mpc8xx_show_cpuinfo,.get_irq = + mpc8xx_get_irq,.restart = mpc8xx_restart,.calibrate_decr = + mpc8xx_calibrate_decr,.set_rtc_time = + mpc8xx_set_rtc_time,.get_rtc_time = mpc8xx_get_rtc_time,};
drivers/pcmcia/m8xx_pcmcia.c +278 -270
1,072 lines not on this page · raw message
PATCH 3/3 dts: kill hardcoded phandles
In reply to Vitaly BordugRemoved explicit linux,phandle usage. Using references and labels now in PQ and PQ2 boards currently supported in arch/powerpc.
---
arch/powerpc/boot/dts/mpc8272ads.dts | 42 +++++++++++--------------------- arch/powerpc/boot/dts/mpc866ads.dts | 31 ++++++++--------------- arch/powerpc/boot/dts/mpc885ads.dts | 45 +++++++++++++--------------------- 3 files changed, 43 insertions(+), 75 deletions(-)
arch/powerpc/boot/dts/mpc8272ads.dts +15 -27
@@ -14,12 +14,10 @@ compatible = "MPC8260ADS"; #address-cells = <1>; #size-cells = <1>; - linux,phandle = <100>; cpus { #address-cells = <1>; #size-cells = <0>; - linux,phandle = <200>; PowerPC,8272@0 { device_type = "cpu";
@@ -32,12 +30,10 @@ bus-frequency = <0>; clock-frequency = <0>; 32-bit; - linux,phandle = <201>; }; }; - interrupt-controller@f8200000 { - linux,phandle = <f8200000>; + pci_pic: interrupt-controller@f8200000 { #address-cells = <0>; #interrupt-cells = <2>; interrupt-controller;
@@ -47,15 +43,13 @@ }; memory { device_type = "memory"; - linux,phandle = <300>; reg = <00000000 4000000 f4500000 00000020>; }; chosen { name = "chosen"; linux,platform = <0>; - interrupt-controller = <10c00>; - linux,phandle = <400>; + interrupt-controller = <&Cpm_pic>; }; soc8272@f0000000 {
@@ -70,20 +64,17 @@ device_type = "mdio"; compatible = "fs_enet"; reg = <0 0>; - linux,phandle = <24520>; #address-cells = <1>; #size-cells = <0>; - ethernet-phy@0 { - linux,phandle = <2452000>; - interrupt-parent = <10c00>; + phy0:ethernet-phy@0 { + interrupt-parent = <&Cpm_pic>; interrupts = <17 4>; reg = <0>; bitbang = [ 12 12 13 02 02 01 ]; device_type = "ethernet-phy"; }; - ethernet-phy@1 { - linux,phandle = <2452001>; - interrupt-parent = <10c00>; + phy1:ethernet-phy@1 { + interrupt-parent = <&Cpm_pic>; interrupts = <17 4>; bitbang = [ 12 12 13 02 02 01 ]; reg = <3>;
@@ -101,8 +92,8 @@ reg = <11300 20 8400 100 11380 30>; mac-address = [ 00 11 2F 99 43 54 ]; interrupts = <20 2>; - interrupt-parent = <10c00>; - phy-handle = <2452000>; + interrupt-parent = <&Cpm_pic>; + phy-handle = <&Phy0>; rx-clock = <13>; tx-clock = <12>; };
@@ -115,14 +106,13 @@ reg = <11320 20 8500 100 113b0 30>; mac-address = [ 00 11 2F 99 44 54 ]; interrupts = <21 2>; - interrupt-parent = <10c00>; - phy-handle = <2452001>; + interrupt-parent = <&Cpm_pic>; + phy-handle = <&Phy1>; rx-clock = <17>; tx-clock = <18>; }; cpm@f0000000 { - linux,phandle = <f0000000>; #address-cells = <1>; #size-cells = <1>; #interrupt-cells = <2>;
@@ -142,7 +132,7 @@ reg = <11a00 20 8000 100>; current-speed = <1c200>; interrupts = <28 2>; - interrupt-parent = <10c00>; + interrupt-parent = <&Cpm_pic>; clock-setup = <0 00ffffff>; rx-clock = <1>; tx-clock = <1>;
@@ -156,15 +146,14 @@ reg = <11a60 20 8300 100>; current-speed = <1c200>; interrupts = <2b 2>; - interrupt-parent = <10c00>; + interrupt-parent = <&Cpm_pic>; clock-setup = <1b ffffff00>; rx-clock = <4>; tx-clock = <4>; }; }; - interrupt-controller@10c00 { - linux,phandle = <10c00>; + cpm_pic:interrupt-controller@10c00 { #address-cells = <0>; #interrupt-cells = <2>; interrupt-controller;
@@ -174,7 +163,6 @@ compatible = "CPM2"; }; pci@0500 { - linux,phandle = <0500>; #interrupt-cells = <1>; #size-cells = <2>; #address-cells = <3>;
@@ -202,7 +190,7 @@ c000 0 0 2 f8200000 43 8 c000 0 0 3 f8200000 40 8 c000 0 0 4 f8200000 41 8>; - interrupt-parent = <10c00>; + interrupt-parent = <&Cpm_pic>; interrupts = <14 8>; bus-range = <0 0>; ranges = <02000000 0 80000000 80000000 0 40000000
@@ -216,7 +204,7 @@ compatible = "talitos"; reg = <30000 10000>; interrupts = <b 2>; - interrupt-parent = <10c00>; + interrupt-parent = <&Cpm_pic>; num-channels = <4>; channel-fifo-len = <18>; exec-units-mask = <0000007e>;
arch/powerpc/boot/dts/mpc866ads.dts +11 -20
@@ -15,12 +15,10 @@ compatible = "mpc8xx"; #address-cells = <1>; #size-cells = <1>; - linux,phandle = <100>; cpus { #address-cells = <1>; #size-cells = <0>; - linux,phandle = <200>; PowerPC,866@0 { device_type = "cpu";
@@ -34,14 +32,12 @@ clock-frequency = <0>; 32-bit; interrupts = <f 2>; // decrementer interrupt - interrupt-parent = <ff000000>; - linux,phandle = <201>; + interrupt-parent = <&Mpc8xx_pic>; }; }; memory { device_type = "memory"; - linux,phandle = <300>; reg = <00000000 800000>; };
@@ -57,11 +53,9 @@ device_type = "mdio"; compatible = "fs_enet"; reg = <e80 8>; - linux,phandle = <e80>; #address-cells = <1>; #size-cells = <0>; - ethernet-phy@f { - linux,phandle = <e800f>; + phy: ethernet-phy@f { reg = <f>; device_type = "ethernet-phy"; };
@@ -75,12 +69,11 @@ reg = <e00 188>; mac-address = [ 00 00 0C 00 01 FD ]; interrupts = <3 1>; - interrupt-parent = <ff000000>; - phy-handle = <e800f>; + interrupt-parent = <&Mpc8xx_pic>; + phy-handle = <&Phy>; }; - pic@ff000000 { - linux,phandle = <ff000000>; + mpc8xx_pic: pic@ff000000 { interrupt-controller; #address-cells = <0>; #interrupt-cells = <2>;
@@ -91,7 +84,6 @@ }; cpm@ff000000 { - linux,phandle = <ff000000>; #address-cells = <1>; #size-cells = <1>; #interrupt-cells = <2>;
@@ -102,15 +94,14 @@ command-proc = <9c0>; brg-frequency = <0>; interrupts = <0 2>; // cpm error interrupt - interrupt-parent = <930>; + interrupt-parent = <&Cpm_pic>; - pic@930 { - linux,phandle = <930>; + cpm_pic: pic@930 { interrupt-controller; #address-cells = <0>; #interrupt-cells = <2>; interrupts = <5 2 0 2>; - interrupt-parent = <ff000000>; + interrupt-parent = <&Mpc8xx_pic>; reg = <930 20>; built-in; device_type = "cpm-pic";
@@ -128,7 +119,7 @@ tx-clock = <1>; current-speed = <0>; interrupts = <4 3>; - interrupt-parent = <930>; + interrupt-parent = <&Cpm_pic>; }; smc@a90 {
@@ -142,7 +133,7 @@ tx-clock = <2>; current-speed = <0>; interrupts = <3 3>; - interrupt-parent = <930>; + interrupt-parent = <&Cpm_pic>; }; scc@a00 {
@@ -153,7 +144,7 @@ reg = <a00 18 3c00 80>; mac-address = [ 00 00 0C 00 03 FD ]; interrupts = <1e 3>; - interrupt-parent = <930>; + interrupt-parent = <&Cpm_pic>; }; }; };
arch/powerpc/boot/dts/mpc885ads.dts +17 -28
133 lines not on this page · raw message