Re: [PATCH] Use linux/of_{platform, device}.h and not asm/... variants.

2008-01-08 Thread Jon Loeliger
So, like, the other day Stephen Rothwell mumbled: Hi Jon, Continue to fight the Good Fight by removing old include file references that managed to creep in recently. Thanks for doing this. By $DIETY, I'll obtain Janitorial Karma one way or another! The question now is, what next?

Generic MMC-over-SPI binding?

2008-01-08 Thread Simon Richter
Hi, in an embedded system similar to the lite5200 board, there is an MMC card socket connected to one of the PSCs. Ideally, I'd like to express this fact via the device tree and have the kernel bind the mmc-spi driver to the SPI interface, but I cannot find any place where to insert this code

[PATCH 4/4] [POWERPC] fsl_spi_init and users: stop using device_type = spi

2008-01-08 Thread Anton Vorontsov
Also: - 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 Signed-off-by: Anton

[PATCH 1/4] [POWERPC] qe_lib and users: get rid of device_types and model

2008-01-08 Thread Anton Vorontsov
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 Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- Documentation/powerpc/booting-without-of.txt |6 --

Re: [PATCH v6] qe: add ability to upload QE firmware

2008-01-08 Thread Timur Tabi
Stephen Rothwell wrote: Why not: const u64 *iprop; int len; iprop = of_get_property(fs, extended-modes, len); if (iprop (len == sizeof(u64)) qe_firmware_info.extended_modes = *iprop; Actually, I like my way better, because then I don't have to

Re: [PATCH v6] qe: add ability to upload QE firmware

2008-01-08 Thread Josh Boyer
On Tue, 08 Jan 2008 09:26:27 -0600 Timur Tabi [EMAIL PROTECTED] wrote: Stephen Rothwell wrote: If you use: for_each_child_of_node(qe, fw) You don't need to initialise 'fw' in its declararion. I can't find for_each_child_of_node. It's not in Kumar's for-2.6.25 branch.

Re: [PATCH 1/3] add default device trees for MPC837x MDS board

2008-01-08 Thread Grant Likely
Hi Leo, comments below. I've made my comments on the first file, but they apply to the other two also. Cheers, g. On 1/7/08, Li Yang [EMAIL PROTECTED] wrote: Signed-off-by: Li Yang [EMAIL PROTECTED] --- address comments and use new dts spec. arch/powerpc/boot/dts/mpc8377_mds.dts | 277

Re: [PATCH] enable built-in networking for Sequoia defconfig

2008-01-08 Thread Josh Boyer
On Fri, 04 Jan 2008 17:26:54 -0600 Hollis Blanchard [EMAIL PROTECTED] wrote: Enable EMAC driver for Sequoia (and while we're in there, disable Macintosh drivers for Sequoia and Bamboo). Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] applied, thanks. josh

Re: [PATCH v2] [POWERPC] Update MPC8610 HPCD to support audio drivers

2008-01-08 Thread Liam Girdwood
On Tue, 2008-01-08 at 11:56 +1100, Stephen Rothwell wrote: Hi Timur, On Mon, 7 Jan 2008 12:56:43 -0600 Timur Tabi [EMAIL PROTECTED] wrote: +++ b/arch/powerpc/platforms/86xx/mpc8610_hpcd.c @@ -34,9 +34,27 @@ #include asm/mpic.h +#include linux/of_platform.h #include

[PATCH 0/7] mpc5121 support

2008-01-08 Thread John Rigby
The following series adds basic support for mpc5121. I'm hoping that this can get reviewed quickly so it can get into the for-2.6.25 tree. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH 5/7] Separate MPC52xx PSC FIFO registers from rest of PSC

2008-01-08 Thread John Rigby
This is in preparation for the addition of MPC512x PSC support. The main difference in the 512x is in the fifo registers. Signed-off-by: John Rigby [EMAIL PROTECTED] --- drivers/serial/mpc52xx_uart.c | 10 ++ include/asm-powerpc/mpc52xx_psc.h |3 +++

[PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread John Rigby
512x is very similar to 83xx and most of this is patterned after code from 83xx New platform: changed: arch/powerpc/Kconfig arch/powerpc/platforms/Kconfig arch/powerpc/platforms/Kconfig.cputype arch/powerpc/platforms/Makefile new:

[PATCH 1/7] mpc5121: Add IPIC config option

2008-01-08 Thread John Rigby
IPIC is not just for 83xx anymore so make it a separate config option. Signed-off-by: John Rigby [EMAIL PROTECTED] --- arch/powerpc/platforms/Kconfig |5 + arch/powerpc/sysdev/Makefile |2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git

Re: Generic MMC-over-SPI binding?

2008-01-08 Thread Robert Schwebel
On Tue, Jan 08, 2008 at 03:22:00PM +0100, Simon Richter wrote: in an embedded system similar to the lite5200 board, there is an MMC card socket connected to one of the PSCs. Ideally, I'd like to express this fact via the device tree and have the kernel bind the mmc-spi driver to the SPI

[PATCH 4/7] Device tree for MPC5121 ADS

2008-01-08 Thread John Rigby
Bare minimum tree containing only what is currently supported. Signed-off-by: John Rigby [EMAIL PROTECTED] --- arch/powerpc/boot/dts/mpc5121ads.dts | 102 ++ 1 files changed, 102 insertions(+), 0 deletions(-) create mode 100644

Re: [PATCH 0/2] ASoC drivers for the Freescale MPC8610 SoC

2008-01-08 Thread Liam Girdwood
On Mon, 2008-01-07 at 12:56 -0600, Timur Tabi wrote: These patches add ALSA SoC device drivers for the Freescale MPC8610 SoC and the MPC8610-HPCD reference board. The first patch updates some files in arch/powerpc and booting-without-of.txt. The second patch adds the new audio driver files

[PATCH 2/7] Add mpc512x ipic support

2008-01-08 Thread John Rigby
Added ipic_info entries for vectors used by 512x that were previously unused by 83xx. Signed-off-by: John Rigby [EMAIL PROTECTED] --- arch/powerpc/sysdev/ipic.c | 62 1 files changed, 62 insertions(+), 0 deletions(-) diff --git

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread Grant Likely
Looks pretty good; major comment is that it should be multiplatform enabled. Cheers, g. On 1/8/08, John Rigby [EMAIL PROTECTED] wrote: 512x is very similar to 83xx and most of this is patterned after code from 83xx New platform: changed: arch/powerpc/Kconfig

Re: [PATCH v2] [ALSA] Add ASoC drivers for the Freescale MPC8610 SoC

2008-01-08 Thread Liam Girdwood
On Mon, 2008-01-07 at 12:56 -0600, Timur Tabi wrote: Add the ASoC drivers for the Freescale MPC8610 SoC and the MPC8610 HPCD reference board. Signed-off-by: Timur Tabi [EMAIL PROTECTED] Acked-by: Liam Girdwood [EMAIL PROTECTED] ___ Linuxppc-dev

[PATCH 6/7] Add mpc512x_find_ips_freq

2008-01-08 Thread John Rigby
Added mpc512x_find_ips_freq needed by the following serial driver patch. It is basically a renamed mpc512x_find_ipd_freq from 52xx. Signed-off-by: John Rigby [EMAIL PROTECTED] --- arch/powerpc/platforms/512x/mpc5121_ads.c | 28 include/asm-powerpc/mpc512x.h

Re: How to write a device driver in such a fashion .????

2008-01-08 Thread Scott Wood
On Mon, Jan 07, 2008 at 08:31:10PM -0800, Misbah khan wrote: using mmap() in application to access the h/w is only possible if the device memory is mapped in the kernel virtual memory how come we directly map to the physical memory to virtual from user space ??? No, /dev/mem takes physical

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-08 Thread Scott Wood
On Tue, Jan 08, 2008 at 12:56:27AM -0500, Sean MacLennan wrote: Stephen Rothwell wrote: On Mon, 07 Jan 2008 21:03:12 -0500 Sean MacLennan [EMAIL PROTECTED] wrote: +static int __devinit iic_probe(struct of_device *ofdev, + const struct

[PATCH 7/7] Add MPC512x PSC serial driver

2008-01-08 Thread John Rigby
mpc512x_uart.c is based on mpc52xx_uart.c with names changed arch/ppc support removed 512x psc fifo support added shares mpc52xx_psc.h with 52xx driver Signed-off-by: John Rigby [EMAIL PROTECTED] --- drivers/serial/Kconfig| 18 + drivers/serial/Makefile |

[PATCH v7] qe: add ability to upload QE firmware

2008-01-08 Thread Timur Tabi
Define the layout of a binary blob that contains a QE firmware and instructions on how to upload it. Add function qe_upload_firmware() to parse the blob and perform the actual upload. Fully define 'struct rsp' in immap_qe.h to include the actual RISC Special Registers. Added description of a

Re: [PATCH 1/3] add default device trees for MPC837x MDS board

2008-01-08 Thread Scott Wood
On Tue, Jan 08, 2008 at 08:58:17AM -0700, Grant Likely wrote: On 1/7/08, Li Yang [EMAIL PROTECTED] wrote: + [EMAIL PROTECTED] { + #address-cells = 1; + #size-cells = 1; + device_type = soc; I recommend dropping device_type and adding

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread Jon Loeliger
So, like, the other day Olof Johansson mumbled: @@ -0,0 +1,90 @@ +#include asm/system.h +#include asm/atomic.h +#include asm/machdep.h +#include asm/ipic.h +#include asm/prom.h +#include asm/time.h +#include asm/of_platform.h Stephen will tell you to include

Re: [PATCH 1/3] add default device trees for MPC837x MDS board

2008-01-08 Thread Grant Likely
On 1/8/08, Scott Wood [EMAIL PROTECTED] wrote: On Tue, Jan 08, 2008 at 08:58:17AM -0700, Grant Likely wrote: On 1/7/08, Li Yang [EMAIL PROTECTED] wrote: + phy_type = utmi_wide; fsl,phy_type please. Again, code will break. Can we stop ambushing people submitting

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread Scott Wood
On Tue, Jan 08, 2008 at 10:19:20AM -0700, Grant Likely wrote: +config MPC5121_ADS + bool Freescale MPC5121E ADS + select DEFAULT_UIMAGE + help + This option enables support for the MPC5121E ADS board. Make this depend on PPC_MULTIPLATFORM and PPC32 I don't

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread Olof Johansson
Hi, diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 66a3d8c..81c3f05 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -470,7 +470,7 @@ config PCI bool PCI support if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \ || PPC_MPC52xx ||

Re: [PATCH 4/7] Device tree for MPC5121 ADS

2008-01-08 Thread Grant Likely
Comments below. On 1/8/08, John Rigby [EMAIL PROTECTED] wrote: Bare minimum tree containing only what is currently supported. Signed-off-by: John Rigby [EMAIL PROTECTED] --- arch/powerpc/boot/dts/mpc5121ads.dts | 102 ++ 1 files changed, 102

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread Grant Likely
On 1/8/08, Scott Wood [EMAIL PROTECTED] wrote: On Tue, Jan 08, 2008 at 10:19:20AM -0700, Grant Likely wrote: +config MPC5121_ADS + bool Freescale MPC5121E ADS + select DEFAULT_UIMAGE + help + This option enables support for the MPC5121E ADS board. Make

Re: [PATCH 5/7] Separate MPC52xx PSC FIFO registers from rest of PSC

2008-01-08 Thread Grant Likely
On 1/8/08, John Rigby [EMAIL PROTECTED] wrote: This is in preparation for the addition of MPC512x PSC support. The main difference in the 512x is in the fifo registers. Signed-off-by: John Rigby [EMAIL PROTECTED] Looks good, I'll pick this one up. Acked-by: Grant Likely [EMAIL PROTECTED]

Re: Generic MMC-over-SPI binding?

2008-01-08 Thread Arnd Bergmann
On Tuesday 08 January 2008, Simon Richter wrote: in an embedded system similar to the lite5200 board, there is an MMC card socket connected to one of the PSCs. Ideally, I'd like to express this fact via the device tree and have the kernel bind the mmc-spi driver to the SPI interface, but I

Re: [PATCH 6/7] Add mpc512x_find_ips_freq

2008-01-08 Thread Grant Likely
Looks good to me; but I'd just merge this one with the earlier patch that adds 5121 board support. Cheers, g. On 1/8/08, John Rigby [EMAIL PROTECTED] wrote: Added mpc512x_find_ips_freq needed by the following serial driver patch. It is basically a renamed mpc512x_find_ipd_freq from 52xx.

Re: [PATCH 7/7] Add MPC512x PSC serial driver

2008-01-08 Thread Grant Likely
Exactly *how* different is the 5121 PSC from the 5200 PSC? If it is really different, then it makes sense to clone. In fact; I'd duplicate the mpc52xx_psc.h file also to avoid any crossover. However, if the differences are manegable, I'd rather see a single driver that can drive either type of

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread Arnd Bergmann
On Tuesday 08 January 2008, John Rigby wrote:  obj-$(CONFIG_PPC_CHRP) += chrp/  obj-$(CONFIG_40x)  += 40x/  obj-$(CONFIG_44x)  += 44x/ +obj-$(CONFIG_PPC_512x) += 512x/  obj-$(CONFIG_PPC_MPC52xx)  += 52xx/  obj-$(CONFIG_PPC_8xx)  += 8xx/  

Re: [PATCH] Hwmon for Taco

2008-01-08 Thread Sean MacLennan
Grant Likely wrote: This is *very* board specific and not very complex a driver. It should probably live with the platform code somewhere in arch/powerpc/platforms. You can use the machine_device_initcall() hook to kick off the thread. Doh, this is why I post to this list. The platform

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread John Rigby
Olof Johansson wrote: Hi, diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 66a3d8c..81c3f05 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -470,7 +470,7 @@ config PCI bool PCI support if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread John Rigby
@@ -229,7 +229,7 @@ config NR_CPUS config NOT_COHERENT_CACHE bool -depends on 4xx || 8xx || E200 +depends on 4xx || 8xx || E200 || PPC_512x default y Why do you need this, when 5200 doesn't? Because the 5121 cache is not coherent. The 5121 is not

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread John Rigby
Arnd Bergmann wrote: On Tuesday 08 January 2008, John Rigby wrote: obj-$(CONFIG_PPC_CHRP) += chrp/ obj-$(CONFIG_40x) += 40x/ obj-$(CONFIG_44x) += 44x/ +obj-$(CONFIG_PPC_512x) += 512x/ obj-$(CONFIG_PPC_MPC52xx) += 52xx/

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread Arnd Bergmann
On Tuesday 08 January 2008, Olof Johansson wrote: diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 66a3d8c..81c3f05 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -470,7 +470,7 @@ config PCI   bool PCI support if 40x || CPM2 || PPC_83xx || PPC_85xx ||

Re: [PATCH 4/8] pseries: phyp dump: use sysfs to release reserved mem

2008-01-08 Thread Linas Vepstas
On 07/01/2008, Stephen Rothwell [EMAIL PROTECTED] wrote: On Mon, 07 Jan 2008 18:21:57 -0600 Manish Ahuja [EMAIL PROTECTED] wrote: +static int __init phyp_dump_setup(void) +{ + /* Is there dump data waiting for us? */ + rtas = of_find_node_by_path(/rtas); + dump_header =

Re: [PATCH RFC 0/3] PowerPC: implement support for GPIO LIB API

2008-01-08 Thread Grant Likely
On 1/8/08, Anton Vorontsov [EMAIL PROTECTED] wrote: Hi all, Thanks for the previous review and ideas. Here is the RFC for the GPIO LIB support. I like this layout for gpios. It's concise and compact. It will work well for my gpio driver also. I'm using it like this: qe_pio_a:

[PATCH for 2.6.24][NET] fs_enet: check for phydev existence in the ethtool handlers

2008-01-08 Thread Anton Vorontsov
Otherwise oops will happen if ethernet device has not been opened: Unable to handle kernel paging request for data at address 0x014c Faulting instruction address: 0xc016f7f0 Oops: Kernel access of bad area, sig: 11 [#1] MPC85xx NIP: c016f7f0 LR: c01722a0 CTR: REGS: c79ddc70 TRAP:

Re: [PATCH] Hwmon for Taco

2008-01-08 Thread Sean MacLennan
Ok, here is the ad7414 only. taco-dtm is no more! Cheers, Sean diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index a0445be..f14972a 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -57,6 +57,16 @@ config SENSORS_ABITUGURU3 This driver can also be built

[PATCH 1/3] [POWERPC] Implement support for the GPIO LIB API

2008-01-08 Thread Anton Vorontsov
This patch implements support for the GPIO LIB API. Two calls unimplemented though: irq_to_gpio and gpio_to_irq. Various OF helpers provided to ease life and reduce code duplication. Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- Documentation/powerpc/booting-without-of.txt | 58

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-08 Thread Sean MacLennan
Let's try again. Cheers, Sean diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index c466c6c..e9e1493 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -241,7 +241,6 @@ config I2C_PIIX4 config I2C_IBM_IIC tristate IBM PPC 4xx on-chip

[PATCH 2/3] [POWERPC] QE: split par_io_config_pin()

2008-01-08 Thread Anton Vorontsov
This patch splits par_io_config_pin so we can use it with GPIO LIB API. Also add a comment regarding #ifdef CONFIG_PPC_85xx being legacy. Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- arch/powerpc/sysdev/qe_lib/qe_io.c | 60 +++ 1 files changed, 39

[PATCH 3/3] [POWERPC] QE: implement GPIO LIB API

2008-01-08 Thread Anton Vorontsov
Signed-off-by: Anton Vorontsov [EMAIL PROTECTED] --- Documentation/powerpc/booting-without-of.txt | 32 +++ arch/powerpc/platforms/Kconfig |2 + arch/powerpc/sysdev/qe_lib/qe_io.c | 73 ++ include/asm-powerpc/qe.h

Re: [PATCH] Miscellaneous for Taco

2008-01-08 Thread Sean MacLennan
How about just 44x? Cheers, Sean diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 7580aa5..682deae 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig @@ -39,6 +39,7 @@ config USB_ARCH_HAS_OHCI # PPC: default y if STB03xxx default y if PPC_MPC52xx +

Re: [PATCH 1/2] Base Warp Platform support

2008-01-08 Thread Sean MacLennan
*diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 66a3d8c..b3e4c35 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -469,7 +469,7 @@ config MCA config PCI bool PCI support if 40x || CPM2 || PPC_83xx || PPC_85xx || PPC_86xx \ || PPC_MPC52xx ||

[PATCH] [POWERPC] Add of_find_matching_node() helper function

2008-01-08 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] Similar to of_find_compatible_node(), of_find_matching_node() and for_each_matching_node() allow you to iterate over the device tree looking for specific nodes except that it accepts a of_device_id table instead of strings. This patch also moves

Re: [PATCH] Miscellaneous for Taco

2008-01-08 Thread Stefan Roese
On Tuesday 08 January 2008, Sean MacLennan wrote: How about just 44x? Cheers, Sean diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 7580aa5..682deae 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig @@ -39,6 +39,7 @@ config USB_ARCH_HAS_OHCI # PPC:

Re: [PATCH 2/2] Base Warp Platform support

2008-01-08 Thread Sean MacLennan
--- /dev/null 2005-11-20 22:22:37.0 -0500 +++ arch/powerpc/boot/cuboot-warp.c 2008-01-08 12:09:39.0 -0500 @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2008 PIKA Technologies + * Sean MacLennan [EMAIL PROTECTED] + * + * This program is free software; you can redistribute it and/or

Re: [PATCH 4/7] Device tree for MPC5121 ADS

2008-01-08 Thread Scott Wood
On Tue, Jan 08, 2008 at 09:01:30AM -0700, John Rigby wrote: + [EMAIL PROTECTED] { + device_type = board-control; + reg = 8200 8000; + }; Should be: [EMAIL PROTECTED] { compatible = fsl,mpc5121ads-cpld; reg = 8200 8000; }; +

Re: [PATCH 3/7] Basic Freescale MPC512x support

2008-01-08 Thread Scott Wood
On Tue, Jan 08, 2008 at 10:56:41AM -0700, Grant Likely wrote: On 1/8/08, Scott Wood [EMAIL PROTECTED] wrote: On Tue, Jan 08, 2008 at 10:19:20AM -0700, Grant Likely wrote: +config MPC5121_ADS + bool Freescale MPC5121E ADS + select DEFAULT_UIMAGE + help +

[PATCH 3/7] [POWERPC] Xilinx: Update compatible to use values generated by BSP generator.

2008-01-08 Thread Stephen Neuendorffer
Mainly, this involves two changes: 1) xilinx-xlnx (recognized standard is to use the stock ticker) 2) In order to have the device tree focus on describing what the hardware is as exactly as possible, the compatible strings contain the full IP name and IP version. Signed-off-by: Stephen

Re: [PATCH] i2c-ibm_iic driver - new patch

2008-01-08 Thread Stefan Roese
On Tuesday 08 January 2008, Sean MacLennan wrote: Let's try again. Looks good now. Time to send it to the i2c mailing list [EMAIL PROTECTED] and the maintainer Jean Delvare [EMAIL PROTECTED]. And please keep the linuxppc-dev list on CC. Thanks. Ciao, Stefan

[PATCH 5/7] [POWERPC] Xilinx: Update booting-without-of.

2008-01-08 Thread Stephen Neuendorffer
This now better describes what the UBoot device tree generator actually does. In particular: 1) Nodes have a label derived from the device name, and a node name derived from a generic version of the device type, e.g. 'ethernet', 'serial', etc. 2) Usage of compound nodes (representing more than

[PATCH 0/7] [POWERPC] Xilinx: Device Tree updates for xilinx.

2008-01-08 Thread Stephen Neuendorffer
These patches synchronize all the in-kernel drivers to use the compatible names generated by the UBoot BSP generator. (at git://git.xilinx.com/gen-mhs-devtree.git) This set of patches should all be ready for 2.6.25: I've removed the ones that weren't and cleaned up the remainder. In

[PATCH 7/7] [POWERPC] Xilinx: Uartlite: Section type fixups

2008-01-08 Thread Stephen Neuendorffer
All the __devexit functions are now appropriately tagged. This fixes some ppc link warnings. Signed-off-by: Stephen Neuendorffer [EMAIL PROTECTED] --- drivers/serial/uartlite.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial/uartlite.c

[PATCH 2/7] [POWERPC] Xilinx: update compatible list for interrupt controller

2008-01-08 Thread Stephen Neuendorffer
These values now match what is generated by the uboot BSP generator. Signed-off-by: Stephen Neuendorffer [EMAIL PROTECTED] --- arch/powerpc/sysdev/xilinx_intc.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/sysdev/xilinx_intc.c

Re: [PATCH 0/7] [POWERPC] Xilinx: Device Tree updates for xilinx.

2008-01-08 Thread Grant Likely
On 1/8/08, Stephen Neuendorffer [EMAIL PROTECTED] wrote: These patches synchronize all the in-kernel drivers to use the compatible names generated by the UBoot BSP generator. (at git://git.xilinx.com/gen-mhs-devtree.git) This set of patches should all be ready for 2.6.25: I've removed the

[PATCH 6/7] [POWERPC] Xilinx: updated device tree compatibility to match uboot bsp generator.

2008-01-08 Thread Stephen Neuendorffer
Missed this one in the boot loader before. Signed-off-by: Stephen Neuendorffer [EMAIL PROTECTED] --- arch/powerpc/boot/serial.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/boot/serial.c b/arch/powerpc/boot/serial.c index cafeece..b6c68ef 100644 ---

[PATCH 1/7] [POWERPC] Xilinx: Uartlite: Make console output actually work.

2008-01-08 Thread Stephen Neuendorffer
From: Grant Likely [EMAIL PROTECTED] Signed-off-by: Grant Likely [EMAIL PROTECTED] Fixed to apply against 2.6.24-rc5, and remove DEBUG information. Signed-off-by: Stephen Neuendorffer [EMAIL PROTECTED] --- drivers/serial/uartlite.c | 121 + 1 files

[PATCH 4/7] [POWERPC] Xilinx: Add correct compatible list for device tree bus bindings.

2008-01-08 Thread Stephen Neuendorffer
Includes both flavors of plb, opb, dcr, and a pseudo 'compound' bus for representing compound peripherals containing more than one logical device. Signed-off-by: Stephen Neuendorffer [EMAIL PROTECTED] --- arch/powerpc/platforms/40x/virtex.c | 12 +++- 1 files changed, 11 insertions(+),

Re: [PATCH] Hwmon for Taco

2008-01-08 Thread Anton Vorontsov
On Tue, Jan 08, 2008 at 01:02:51PM -0600, Josh Boyer wrote: On Tue, 08 Jan 2008 13:30:00 -0500 Sean MacLennan [EMAIL PROTECTED] wrote: Ok, here is the ad7414 only. taco-dtm is no more! Cool. Couple more things. 1) This should go through the hwmon maintainer. Send it to him. (CC'ing

Re: [PATCH] Hwmon for Taco

2008-01-08 Thread Josh Boyer
On Tue, 8 Jan 2008 23:13:14 +0300 Anton Vorontsov [EMAIL PROTECTED] wrote: [snip mostly valid stuff] Yes, it's common sense and politeness to keep Signed-off-by lines intact (and the order of these lines), but it's not strict requirement. Based on the patch from ... is the equivalent of this

Re: [PATCH 7/7] Add MPC512x PSC serial driver

2008-01-08 Thread John Rigby
Thanks for the quick feedback Grant. Grant Likely wrote: Exactly *how* different is the 5121 PSC from the 5200 PSC? If it is really different, then it makes sense to clone. The fifo handling has completely changed that is the main difference. In fact; I'd duplicate the mpc52xx_psc.h file

Re: [PATCH 7/7] Add MPC512x PSC serial driver

2008-01-08 Thread Grant Likely
On 1/8/08, John Rigby [EMAIL PROTECTED] wrote: Thanks for the quick feedback Grant. Grant Likely wrote: Exactly *how* different is the 5121 PSC from the 5200 PSC? If it is really different, then it makes sense to clone. The fifo handling has completely changed that is the main difference.

Re: [PATCH] Miscellaneous for Taco

2008-01-08 Thread Benjamin Herrenschmidt
On Tue, 2008-01-08 at 20:23 +0100, Stefan Roese wrote: On Tuesday 08 January 2008, Sean MacLennan wrote: How about just 44x? Cheers, Sean diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index 7580aa5..682deae 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig

[RFC] Xilinx: lltemac: use uboot bsp generated device tree style.

2008-01-08 Thread Stephen Neuendorffer
This driver is not in mainline, however since it is by far the most complex driver we have in terms of interacting with the device tree, I wouldn't mind some feedback. The complexity comes from the fact that the driver is capable of being connected through two different control interfaces.

Generic desktop/server/laptop lable is confusing [Was Re: [PATCH 3/7] Basic Freescale MPC512x support]

2008-01-08 Thread John Rigby
It may work, but it pulls in code like prom_init.c that is not needed on non-OF boards. It's also quite confusing to have an embedded board's checkbox only show up when you say yes to Generic desktop/server/laptop. I have to agree with this, I have been confused by this myself. Perhaps

Re: Generic desktop/server/laptop lable is confusing [Was Re: [PATCH 3/7] Basic Freescale MPC512x support]

2008-01-08 Thread Grant Likely
On 1/8/08, John Rigby [EMAIL PROTECTED] wrote: It may work, but it pulls in code like prom_init.c that is not needed on non-OF boards. It's also quite confusing to have an embedded board's checkbox only show up when you say yes to Generic desktop/server/laptop. I have to agree with

Re: Generic desktop/server/laptop lable is confusing [Was Re: [PATCH 3/7] Basic Freescale MPC512x support]

2008-01-08 Thread Scott Wood
Grant Likely wrote: On 1/8/08, John Rigby [EMAIL PROTECTED] wrote: It may work, but it pulls in code like prom_init.c that is not needed on non-OF boards. It's also quite confusing to have an embedded board's checkbox only show up when you say yes to Generic desktop/server/laptop. I have to

[PATCH 0/3 v2] Add iomega StorCenter basic port

2008-01-08 Thread Jon Loeliger
Folks, Here's the second pass at the patches to add the basic iomega StorCenter port to arch/powerpc. This version of the patches addresses the comments from the first round, cleaning up the Kconfig, DTS and board file. Thanks, jdl arch/powerpc/boot/Makefile |3 +-

Re: [PATCH 1/3 v2] Add StorCenter DTS first draft.

2008-01-08 Thread Scott Wood
Jon Loeliger wrote: So, like, the other day Scott Wood mumbled: On Tue, Jan 08, 2008 at 04:06:56PM -0600, Jon Loeliger wrote: +/ { + model = StorCenter; + compatible = storcenter; + #address-cells = 1; + #size-cells = 1; + +aliases { +serial0 = serial0; +

Re: [PATCH 1/3 v2] Add StorCenter DTS first draft.

2008-01-08 Thread Jon Loeliger
So, like, the other day Scott Wood mumbled: On Tue, Jan 08, 2008 at 04:06:56PM -0600, Jon Loeliger wrote: +/ { + model = StorCenter; + compatible = storcenter; + #address-cells = 1; + #size-cells = 1; + +aliases { +serial0 = serial0; +

Re: [PATCH 1/3 v2] Add StorCenter DTS first draft.

2008-01-08 Thread Scott Wood
On Tue, Jan 08, 2008 at 04:06:56PM -0600, Jon Loeliger wrote: +/ { + model = StorCenter; + compatible = storcenter; + #address-cells = 1; + #size-cells = 1; + +aliases { +serial0 = serial0; +serial1 = serial1; +pci0

[PATCH 3/3 v2] Add initial storcenter config file.

2008-01-08 Thread Jon Loeliger
Signed-off-by: Andy Wilcox [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- Cleaned up config options by starting with ancient working config and oldconfig'ing it. Ugh and all. arch/powerpc/configs/storcenter_defconfig | 1174 + 1 files changed,

[PATCH 1/3 v2] Add StorCenter DTS first draft.

2008-01-08 Thread Jon Loeliger
Based on the Kurobox DTS files. Signed-off-by: Andy Wilcox [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- Pulled PCI node out. Fixed flash node. arch/powerpc/boot/dts/storcenter.dts | 155 ++ 1 files changed, 155 insertions(+), 0

[PATCH 2/3 v2] Add initial iomega StorCenter board port.

2008-01-08 Thread Jon Loeliger
Use cuImage bootwrapper until U-Boot port is completed. Derived heavily from Linkstation port. Signed-off-by: Andy Wilcox [EMAIL PROTECTED] Signed-off-by: Jon Loeliger [EMAIL PROTECTED] --- Fixed Kconfig to select options rather than depend on them. Fleshed out storcenter_restart() stub routines

Re: [PATCH 7/8] pseries: phyp dump: Unregister and print dump areas.

2008-01-08 Thread Manish Ahuja
Stephen, +/* Add addr value if not initialized before */ +if (ph-cpu_data.destination_address == 0) { +ph-cpu_data.destination_address += addr; Could be just '=' like further down, right? Actually the one below should be += as well. Thanks for catching it. +/*

Re: [PATCH] Use linux/of_{platform, device}.h and not asm/... variants.

2008-01-08 Thread Stephen Rothwell
On Tue, 08 Jan 2008 08:05:49 -0600 Jon Loeliger [EMAIL PROTECTED] wrote: By $DIETY, I'll obtain Janitorial Karma one way or another! :-) The question now is, what next? I'm thinking about picking on arch/sparc/, then drivers/ and sound/, and finally pick off /include. arch/sparc{,64}

printk() does not work on UART1

2008-01-08 Thread mike zheng
Hi All, I have one mpc8568 board using UART1 as the serial port. The OS is Linux Kernel2.4. If I use the polling mode driver of gen550_progress(), it works fine. However the printk() does not work after the console_init(). Anyone know what shall I change in the kernel to use UART1 as serial

Re: [PATCH 1/3] [POWERPC] Implement support for the GPIO LIB API

2008-01-08 Thread Stephen Rothwell
On Tue, 8 Jan 2008 21:45:18 +0300 Anton Vorontsov [EMAIL PROTECTED] wrote: +int of_mm_gpiochip_add(struct device_node *np, +const struct of_gpio_chip *of_gc) +{ + int ret = -ENOMEM; + struct of_mm_gpio_chip *mm_gc; + + mm_gc = kzalloc(sizeof(*mm_gc),

RE: [PATCH] Use linux/of_{platform, device}.h and not asm/...variants.

2008-01-08 Thread Stephen Neuendorffer
-Original Message- From: [EMAIL PROTECTED] [mailto:linuxppc-dev- [EMAIL PROTECTED] On Behalf Of Stephen Rothwell Sent: Tuesday, January 08, 2008 3:29 PM To: Jon Loeliger Cc: linuxppc-dev@ozlabs.org Subject: Re: [PATCH] Use linux/of_{platform, device}.h and not asm/...variants.

Re: [PATCH 4/7] [POWERPC] Xilinx: Add correct compatible list for device tree bus bindings.

2008-01-08 Thread Stephen Rothwell
Hi Stephen, On Tue, 8 Jan 2008 11:35:06 -0800 Stephen Neuendorffer [EMAIL PROTECTED] wrote: +static struct of_device_id xilinx_of_bus_ids[] = { Should be __initdata. -- Cheers, Stephen Rothwell[EMAIL PROTECTED] http://www.canb.auug.org.au/~sfr/ pgpvngJViwM5v.pgp

Re: [PATCH 7/7] Add MPC512x PSC serial driver

2008-01-08 Thread Stephen Rothwell
On Tue, 8 Jan 2008 09:01:33 -0700 John Rigby [EMAIL PROTECTED] wrote: +++ b/drivers/serial/mpc512x_uart.c +#include asm/of_platform.h Purely to avoid suggestions of favouritism, I will not the above. :-) +static struct of_device_id mpc512x_uart_of_match[] = { Please make this const.

Re: [PATCH 1/8] pseries: phyp dump: Docmentation

2008-01-08 Thread Nathan Lynch
Manish Ahuja wrote: + + Hypervisor-Assisted Dump + + November 2007 Date is unneeded (and, uhm, dated :) +The goal of hypervisor-assisted dump is to enable the dump of +a crashed system, and to do so from a

Re: [PATCH 3/7] sbc8560: add support for Wind River SBC8560 in arch/powerpc

2008-01-08 Thread Paul Gortmaker
Stephen Rothwell wrote: Hi Paul, On Mon, 7 Jan 2008 09:25:28 -0500 Paul Gortmaker [EMAIL PROTECTED] wrote: [...] +static const struct cpm_pin sbc8560_pins[] = { Of course, these could be __initdata (but not const as well). Sorry about not mentioning this last time and it is a

Re: [PATCH 1/8] pseries: phyp dump: Docmentation

2008-01-08 Thread Michael Ellerman
On Tue, 2008-01-08 at 22:29 -0600, Nathan Lynch wrote: Manish Ahuja wrote: + + Hypervisor-Assisted Dump + + November 2007 Date is unneeded (and, uhm, dated :) +The goal of hypervisor-assisted dump

Re: printk() does not work on UART1

2008-01-08 Thread mike zheng
Hi All, I have one mpc8568 board using UART1 as the serial port. The OS is Linux Kernel2.4. If I use the polling mode driver of gen550_progress(), it works fine. However the printk() does not work after the console_init(). Anyone know what shall I change in the kernel to use UART1 as

[PATCH V2] [POWERPC] Add common clock setting routine mpc52xx_psc_set_clkdiv()

2008-01-08 Thread Grant Likely
From: Grant Likely [EMAIL PROTECTED] PSC drivers should not access the CDM registers directly. Instead provide a common routine for setting the PSC clock parameters with the required locking. Signed-off-by: Grant Likely [EMAIL PROTECTED] --- arch/powerpc/platforms/52xx/efika.c |3

[PATCH 1/5] sbc8548: Add basic support for Wind River SBC8548 as powerpc

2008-01-08 Thread Paul Gortmaker
This adds the basic support for the Wind River SBC8548 board, implemented as powerpc. It closely follows the implementation of the MPC8548CDS. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] --- arch/powerpc/platforms/85xx/Kconfig | 10 ++- arch/powerpc/platforms/85xx/Makefile |1 +

[PATCH 2/5] sbc8548: Add device tree source for Wind River SBC8548 board

2008-01-08 Thread Paul Gortmaker
This adds the device tree source for the Wind River SBC8548 board. The biggest difference between this and the MPC8548CDS reference platform is the absence of the CDS's Arcadia peripherals and physical access to PCI#2. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] ---

[PATCH 3/5] sbc8548: Add default .config file for Wind River SBC8548

2008-01-08 Thread Paul Gortmaker
This is a suitable .config file for building the WRS SBC8548 kernel to be used for NFS root via one of the TSEC interfaces and with serial console via the soc/16550 compatible UART. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] --- arch/powerpc/configs/sbc8548_defconfig | 740

[PATCH 4/5] sbc8548: Convert device tree to be dts-v1 compatible

2008-01-08 Thread Paul Gortmaker
This converts the dts to be dts-v1 compatible. Tested with the latest git pull of dtc (Dec 21/07). Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] --- arch/powerpc/boot/dts/sbc8548.dts | 122 +++-- 1 files changed, 62 insertions(+), 60 deletions(-) diff --git

[PATCH 5/5] sbc85xx: remove PCI exclude device for sbc8548/sbc8560

2008-01-08 Thread Paul Gortmaker
The PCI exclude device for the sbc85xx boards was only filtering out the PHB and nothing else. This functionality is no longer required at a board specific level -- it is handled as a more global quirk now. Signed-off-by: Paul Gortmaker [EMAIL PROTECTED] ---

Re: [PATCH 2/3 v2] Add initial iomega StorCenter board port.

2008-01-08 Thread Stephen Rothwell
Hi Jon, On Tue, 08 Jan 2008 16:07:17 -0600 Jon Loeliger [EMAIL PROTECTED] wrote: +static void __init storcenter_init_IRQ(void) +{ + struct mpic *mpic; + struct device_node *dnp; + const void *prop; + int size; + phys_addr_t paddr; + + dnp =

  1   2   >