[PATCH 2/4] [POWERPC][NET] ucc_geth_mii and users: get rid of device_type

2007-12-19 Thread Anton Vorontsov
device_type property is bogus, better use proper compatible property. Also change compatible to "fsl,ucc-mdio". Per http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048388.html Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc832x_mds.dts

[PATCH 3/4] [POWERPC][SPI] use brg-frequency for SPI in QE

2007-12-19 Thread Anton Vorontsov
In case of QE we can use brg-frequency (which is qeclk/2). Thus no need to divide sysclk in the spi_mpc83xx. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_soc.c | 18 +++--- drivers/spi/spi_mpc83xx.c |6 +- 2 files changed, 12 inse

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

2007-12-19 Thread Anton Vorontsov
Also rename "fsl_spi" to "fsl,spi". Per http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048388.html Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8313erdb.dts|3 +-- arch/powerpc/boot/dts/mpc832x_mds.dts|6 ++-

Re: [PATCH 0/4] device_type/compatible cleanups

2007-12-19 Thread Anton Vorontsov
On Wed, Dec 19, 2007 at 02:34:28PM -0600, Scott Wood wrote: > Anton Vorontsov wrote: > >Scott, I didn't add "fsl,cpm-muram" stuff, it just doesn't make > >sense now: qe and cpm anyway using different code base. > > That should change. Sure. When that wi

Re: [PATCH] [POWERPC][RFC] MPC8360E-RDK: Device tree and board file

2007-12-19 Thread Anton Vorontsov
OR flash and let kernel be 3MB? Personally, I tend to not inculcate partition map into the dts at all. How about that version? - - - - From: Anton Vorontsov <[EMAIL PROTECTED]> [POWERPC] MPC8360E-RDK: Device tree and board file This is new board made by Freescale Semiconductor Inc. and Lo

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

2007-12-19 Thread Anton Vorontsov
On Wed, Dec 19, 2007 at 02:54:09PM -0600, Kumar Gala wrote: > > On Dec 19, 2007, at 2:38 PM, Anton Vorontsov wrote: > > >Also rename "fsl_spi" to "fsl,spi". > > > >Per http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048388.html > >

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

2007-12-19 Thread Anton Vorontsov
On Wed, Dec 19, 2007 at 03:04:51PM -0600, Timur Tabi wrote: > Anton Vorontsov wrote: > > >diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c > >index 3cf84d0..91bac51 100644 > >--- a/arch/powerpc/sysdev/fsl_soc.c > >+++ b/arch/powerpc/sysdev/f

[PATCH/.24] [NET] fs_enet: check for phydev existence in the ethtool handlers

2007-12-20 Thread Anton Vorontsov
[c000d4c0] ret_from_syscall+0x0/0x3c Instruction dump: 8163 800b0030 2f80 419e0010 7c0803a6 4e800021 7c691b78 80010014 7d234b78 38210010 7c0803a6 4e800020 <8003014c> 7c6b1b78 3860 90040004 Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- drivers/net/fs_enet

[PATCH v2 0/4] device_type/compatible cleanups

2007-12-20 Thread Anton Vorontsov
Hi all, Here is the second version. 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, -- Anton Vorontsov

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

2007-12-20 Thread Anton Vorontsov
Now we're searching for "fsl,qe", "fsl,qe-muram", "fsl,qe-muram-data". Per http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048388.html Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc832x_mds.dts |7 --- arc

[PATCH v2 2/4] [POWERPC][NET] ucc_geth_mii and users: get rid of device_type

2007-12-20 Thread Anton Vorontsov
device_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 Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc832x_mds.dts

[PATCH v2 3/4] [POWERPC][SPI] use brg-frequency for SPI in QE

2007-12-20 Thread Anton Vorontsov
In 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. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_soc.c

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

2007-12-20 Thread Anton Vorontsov
..also rename "fsl_spi" to "fsl,spi" and add cell-index property. Per http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048388.html Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8313erdb.dts|4 ++-- arch/powerpc/boot/dts

Re: [PATCH v2 3/4] [POWERPC][SPI] use brg-frequency for SPI in QE

2007-12-20 Thread Anton Vorontsov
On Thu, Dec 20, 2007 at 11:33:22PM +0300, Anton Vorontsov wrote: > In 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. > Signed-off-by: Anton Vorontsov &l

[PATCH 3/4] [POWERPC][SPI] use brg-frequency for SPI in QE

2007-12-21 Thread Anton Vorontsov
In 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. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> Acked-by: David Brownell <[EMAIL PROTECTED]> --- arch/po

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

2007-12-21 Thread Anton Vorontsov
ber/048388.html Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- 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/powerp

[PATCH] [POWERPC] MPC8360E-RDK: Device tree and board file

2007-12-21 Thread Anton Vorontsov
with FSL UPM patches) 2. QE SCCs (slow UCCs, used as an UARTs) 3. ADC AD7843 4. FHCI USB 5. Graphics controller, Fujitsu MB86277 Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc836x_rdk.dts | 331 + arch/powerpc/platforms/83xx/K

[PATCH 0/4] PowerPC: implement GPIO API

2007-12-21 Thread Anton Vorontsov
oved; - Added a patch which implements GPIO API for CPM1; - Few minor fixes. Thanks, [1] http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.24-rc4/2.6.24-rc4-mm1/broken-out/generic-gpio-gpio_chip-support.patch -- Anton Vorontsov email: [EMAIL PROTECTED] backup email: [EMAIL

[PATCH 3/4] [POWERPC] CPM2: implement GPIO API

2007-12-21 Thread Anton Vorontsov
Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/platforms/Kconfig|1 + arch/powerpc/sysdev/cpm2_common.c | 121 + 2 files changed, 122 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/platforms/Kconfig b/arch/p

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

2007-12-21 Thread Anton Vorontsov
Now we're searching for "fsl,qe", "fsl,qe-muram", "fsl,qe-muram-data". Per http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048388.html Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc832x_mds.dts |7 -

[PATCH 2/3] [POWERPC][NAND] FSL UPM NAND driver

2007-12-21 Thread Anton Vorontsov
It's using FSL UPM infrastructure. So far only 8 bit accessors are implemented. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- drivers/mtd/nand/Kconfig |7 + drivers/mtd/nand/Makefile |1 + drivers/mtd/nand/fsl_upm.c | 313 ++

[PATCH v3 0/4] device_type/compatible cleanups

2007-12-21 Thread Anton Vorontsov
David. 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, -- Anton Vorontsov email: [EMAIL PROTECTED] backup ema

[PATCH 2/4] [POWERPC][NET] ucc_geth_mii and users: get rid of device_type

2007-12-21 Thread Anton Vorontsov
device_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 Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc832x_mds.dts

[PATCH 1/4] [POWERPC] Implement GPIO API embryo

2007-12-21 Thread Anton Vorontsov
This patch implements GPIO API as described in Documentation/gpio.txt. Two calls unimplemented though: irq_to_gpio and gpio_to_irq. This patch also provides OF helpers. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig |3 ++ arch/powerpc/

[PATCH 2/4] [POWERPC] QE: implement GPIO API

2007-12-21 Thread Anton Vorontsov
Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/platforms/Kconfig |1 + arch/powerpc/sysdev/qe_lib/qe_io.c | 82 +++- 2 files changed, 81 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/Kconfig b/arch/p

[PATCH 1/3] [POWERPC] FSL UPM: routines to manage FSL UPMs

2007-12-21 Thread Anton Vorontsov
Here are few routines needed to manage FSL UPMs. It doesn't include UPM programming, yet. So far u-boot manages to program everything. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/Kconfig |3 + arch/powerpc/sysdev/Makefile |1 + arch/pow

[PATCH 0/3] fsl upm, nand driver and MPC8360E-RDK as its first user

2007-12-21 Thread Anton Vorontsov
Hi all, Here is the FSL UPM infrastructure and FSL UPM NAND driver which is using it. This patchset depends on GPIO API. Changes since RFC: - Lockless variant removed; - Implemented "width" property; - Few cosmetic changes. Thanks, -- Anton Vorontsov email: [EMAIL PROTECTED] ba

[PATCH 4/4] [POWERPC] CPM1: implement GPIO API

2007-12-21 Thread Anton Vorontsov
From: Jochen Friedrich <[EMAIL PROTECTED]> Signed-off-by: Jochen Friedrich <[EMAIL PROTECTED]> Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Jochen, I kept your Signed-off-by, though this isn't your original patch. Hope you're okay with it. I also hope you&#x

[PATCH 3/3] [POWERPC] MPC8360E-RDK: add support for NAND on UPM

2007-12-21 Thread Anton Vorontsov
Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc836x_rdk.dts | 19 +-- arch/powerpc/platforms/83xx/Kconfig |1 + 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/boot/dts/mpc836x_rdk.dts b/arch/powerpc/bo

Re: [PATCH 0/4] PowerPC: implement GPIO API

2007-12-21 Thread Anton Vorontsov
On Fri, Dec 21, 2007 at 01:50:10PM -0700, Grant Likely wrote: > On 12/21/07, Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > Also, in the upcoming kernels, there will be GPIOLIB[1] addition to > > the generic GPIO API, to support off-chip GPIO expanders (like MFDs > >

Re: [PATCH 0/4] PowerPC: implement GPIO API

2007-12-21 Thread Anton Vorontsov
On Fri, Dec 21, 2007 at 02:17:57PM -0700, Grant Likely wrote: > On 12/21/07, Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > As I've probably said once already: if there are plans to build single > > kernel with QE+CPM1+CPM2 inside tomorrow -- then of course, I'd

Re: [PATCH 3/4] [POWERPC] CPM2: implement GPIO API

2007-12-21 Thread Anton Vorontsov
On Fri, Dec 21, 2007 at 10:16:32PM +0100, Arnd Bergmann wrote: > On Friday 21 December 2007, Anton Vorontsov wrote: > > > > +static spinlock_t cpm2_port_lock = __SPIN_LOCK_UNLOCKED(cpm2_port_lock); > > This needs to be > > static DEFINE_SPINLOCK(cpm2_port_lo

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

2007-12-21 Thread Anton Vorontsov
On Fri, Dec 21, 2007 at 03:25:53PM -0600, Olof Johansson wrote: > Hi, > > On Fri, Dec 21, 2007 at 11:20:54PM +0300, Anton Vorontsov wrote: > > diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c > > b/arch/powerpc/platforms/85xx/mpc85xx_mds.c > > index e6c63a5..a1

Re: [PATCH 4/4] [POWERPC] CPM1: implement GPIO API

2007-12-22 Thread Anton Vorontsov
+ > > + np = of_find_node_by_name(NULL, "fsl,cpm1-pario"); > > + if (!np) > > + return -ENOENT; > > + > > I guess this should be: > > np = of_find_compatible_node(NULL, NULL, "fsl,cpm1-pario"); > > With this

Re: [PATCH 0/4] PowerPC: implement GPIO API

2007-12-23 Thread Anton Vorontsov
ne gpio direction in the gpio-spec, but the thing is: we're passing gpios to the drivers which are already know in what direction gpio should be set up, and we have an API to set up GPIOs. Example: fsl_nand, we're passing gpio, and driver is doing gpio_direction_output() call on it. So we don't have to pass gpio direction information in the gpio specifier. As for level, yes this is important information, and encoding it into gpio-spec seems reasonable (in fsl_nand example, ready-not-busy (rnb) gpio. GPIO could be wired to be !rnb or just rnb). Thanks! -- Anton Vorontsov email: [EMAIL PROTECTED] backup email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH 1/3] [POWERPC] FSL UPM: routines to manage FSL UPMs

2007-12-23 Thread Anton Vorontsov
On Sun, Dec 23, 2007 at 01:24:57PM +1100, Stephen Rothwell wrote: > On Fri, 21 Dec 2007 23:39:25 +0300 Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > > > +int fsl_upm_get_for(struct device_node *node, const char *name, > > + struct fsl_upm *upm) > > +

Re: [PATCH 2/3] [POWERPC][NAND] FSL UPM NAND driver

2007-12-23 Thread Anton Vorontsov
On Sun, Dec 23, 2007 at 01:33:29PM +1100, Stephen Rothwell wrote: > On Fri, 21 Dec 2007 23:41:30 +0300 Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > > > +static int __devinit upm_chip_probe(struct of_device *ofdev, > > + cons

Re: [PATCH 1/3] [POWERPC] FSL UPM: routines to manage FSL UPMs

2007-12-23 Thread Anton Vorontsov
On Sun, Dec 23, 2007 at 02:59:35PM +0300, Anton Vorontsov wrote: [..] > > > +static inline void fsl_upm_start_pattern(struct fsl_upm *upm, u32 > > > pat_offset) > > > +{ > > > + spin_lock_irqsave(&upm_lock, upm_lock_flags); > > > > I may

Re: [PATCH 1/3] [POWERPC] FSL UPM: routines to manage FSL UPMs

2007-12-23 Thread Anton Vorontsov
On Sun, Dec 23, 2007 at 03:17:35PM +0300, Anton Vorontsov wrote: > On Sun, Dec 23, 2007 at 02:59:35PM +0300, Anton Vorontsov wrote: > [..] > > > > +static inline void fsl_upm_start_pattern(struct fsl_upm *upm, u32 > > > > pat_offset) > > > > +{ &

Re: [PATCH] [POWERPC] MPC8360E-RDK: Device tree and board file

2007-12-24 Thread Anton Vorontsov
On Sat, Dec 22, 2007 at 09:25:56PM -0600, Timur Tabi wrote: > Anton Vorontsov wrote: > > >2. QE SCCs (slow UCCs, used as an UARTs) > > I a posted a driver that provides this support, I'm just waiting for > Kumar to apply it. Yup. I've seen it, thanks. I'm g

Re: [PATCH] [POWERPC] MPC8360E-RDK: Device tree and board file

2007-12-24 Thread Anton Vorontsov
On Sat, Dec 22, 2007 at 09:28:31PM -0600, Timur Tabi wrote: > Anton Vorontsov wrote: > > >+[EMAIL PROTECTED] { > >+#address-cells = <1>; > >+#size-cells = <1>; > >+compatible = "fsl,qe"

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

2007-12-26 Thread Anton Vorontsov
prop, > + sizeof(qe_firmware_info.id) - 1); > + > + iprop = of_get_property(fw, "extended_modes", NULL); Checking for size? > + if (iprop) > + qe_firmware_info.extended_modes = > + (u64) iprop[0] << 32 | iprop[1]; > + > + iprop = of_get_property(fw, "virtual_traps", NULL); size? Thanks, -- Anton Vorontsov email: [EMAIL PROTECTED] backup email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH v2] ucc_uart: add support for Freescale QUICCEngine UART

2007-12-26 Thread Anton Vorontsov
dev_err(&ofdev->dev, "could not map IRQ for UCC%u\n", > +qe_port->ucc_num + 1); > + kfree(qe_port); > + return -EINVAL; > + } > + > + np = of_find_node_by_type(NULL, "qe"); Please, add "fsl,q

Re: [PATCH] [POWERPC] MPC8360E-RDK: Device tree and board file

2007-12-26 Thread Anton Vorontsov
On Tue, Dec 25, 2007 at 02:44:46PM -0600, Timur Tabi wrote: > Anton Vorontsov wrote: > > >Yup. I've seen it, thanks. I'm going to test it as well. ;-) > > If they work for you, please let Kumar know. Unfortunately they don't. [EMAIL PROTECTED]:~# echo abc >

Re: [PATCH] [POWERPC] MPC8360E-RDK: Device tree and board file

2007-12-26 Thread Anton Vorontsov
On Wed, Dec 26, 2007 at 07:29:44PM +0300, Anton Vorontsov wrote: > On Tue, Dec 25, 2007 at 02:44:46PM -0600, Timur Tabi wrote: > > Anton Vorontsov wrote: > > > > >Yup. I've seen it, thanks. I'm going to test it as well. ;-) > > > > If they work for

Re: [PATCH] [POWERPC] MPC8360E-RDK: Device tree and board file

2007-12-27 Thread Anton Vorontsov
On Thu, Dec 27, 2007 at 09:38:23AM -0600, Timur Tabi wrote: > Anton Vorontsov wrote: > > >I wonder what are the symptoms if microcode is at fault? According > >to errata description, hang isn't something I should get on the > >transmit attempt. > > Well, if the

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

2007-12-29 Thread Anton Vorontsov
On Sat, Dec 29, 2007 at 04:07:20PM -0600, Timur Tabi wrote: > Anton Vorontsov wrote: > > >> + firmware { > >> + id = "Soft-UART"; > >> + extended_modes = <0 0>; > >> + v

Re: [PATCH v2] ucc_uart: add support for Freescale QUICCEngine UART

2008-01-03 Thread Anton Vorontsov
+ { > + .type = "serial", > + .compatible = "ucc_uart", here "fsl,qe-uart" will look better, no? > + }, > + {}, > +}; > +MODULE_DEVICE_TABLE(of, ucc_uart_match); Thanks, -- Anton Vorontsov email: [EMAIL PROTECTED] backup email:

[PATCH v4 0/4] device_type/compatible cleanups

2008-01-08 Thread Anton Vorontsov
- cell-index property added to spi nodes; - cpm-muram{,-data} added as an addition to qe-muram{,-data}. Thanks, -- Anton Vorontsov email: [EMAIL PROTECTED] backup email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-d

[PATCH 2/4] [POWERPC][NET] ucc_geth_mii and users: get rid of device_type

2008-01-08 Thread Anton Vorontsov
device_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 Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc832x_mds.dts

[PATCH 3/4] [POWERPC][SPI] use brg-frequency for SPI in QE

2008-01-08 Thread Anton Vorontsov
In 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. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> Acked-by: David Brownell <[EMAIL PROTECTED]> --- arch/po

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

2008-01-08 Thread Anton Vorontsov
ber/048388.html Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- 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

[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-

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

2008-01-08 Thread Anton Vorontsov
ed apply these from the -mm tree: generic-gpio-gpio_chip-support.patch generic-gpio-gpio_chip-support-fix.patch generic-gpio-gpio_chip-support-gpiolib-locking-simplified.patch Or just issue this in your working tree: git pull git://git.infradead.org/users/cbou/powerpc-gpio.git gpiolib powerpc-gpio.git

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

2008-01-08 Thread Anton Vorontsov
[c000d4c0] ret_from_syscall+0x0/0x3c Instruction dump: 8163 800b0030 2f80 419e0010 7c0803a6 4e800021 7c691b78 80010014 7d234b78 38210010 7c0803a6 4e800020 <8003014c> 7c6b1b78 3860 90040004 Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> Acked-by: Vitaly Bordug <[EM

[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

[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 chang

[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-powerp

Re: [PATCH] Hwmon for Taco

2008-01-08 Thread Anton Vorontsov
the order of these lines), but it's not strict requirement. "Based on the patch from ..." is the equivalent of this politeness. > You're getting there :) These are all "newbie" type mistakes so keep > plugging

[PATCH v4 0/3] OF-platform PATA driver

2008-01-09 Thread Anton Vorontsov
ntext pio-mode means "pio mode the bus already configured for"; - New optional patch that renames pata_platform_info's ioport_shift to reg_shift. Changes since RFC: - nuked drivers/ata/pata_platform.h; - powerpc bits: proper localbus node added. -- Anton Vorontsov email:

[PATCH 1/3] [libata] pata_platform: make probe and remove functions device type neutral

2008-01-09 Thread Anton Vorontsov
Split pata_platform_{probe,remove} into two pieces: 1. pata_platform_{probe,remove} -- platform_device-dependant bits; 2. __ptata_platform_{probe,remove} -- device type neutral bits. This is done to not duplicate code for the OF-platform driver. Signed-off-by: Anton Vorontsov <[EMAIL PROTEC

[PATCH 2/3] [libata] pata_of_platform: OF-Platform PATA device driver

2008-01-09 Thread Anton Vorontsov
This driver nicely wraps around pata_platform library functions, and provides OF platform bus bindings to the PATA devices. Also add || PPC to the PATA_PLATFORM's "depends on" Kconfig entry, needed for PA Semi Electra. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]&

[PATCH 3/3] [POWERPC] MPC8349E-mITX: introduce localbus and pata nodes

2008-01-09 Thread Anton Vorontsov
This patch adds localbus and pata nodes to use CF IDE interface on MPC8349E-mITX boards. Patch also updates defconfig and adds some code to probe localbus. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> Acked-by: Olof Johansson <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8

Re: [PATCH 1/3] [NET] phy/fixed.c: rework to not duplicate PHY layerfunctionality

2008-01-10 Thread Anton Vorontsov
n for 2.6.25? I believe afterward this one will need some attention too: http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048473.html Thanks in advance, p.s. I just noticed that "fsl_soc: add support for gianfar for fixed-link .." patch could be cosmetically improved (removing cas

Re: [PATCH v4 0/3] OF-platform PATA driver

2008-01-15 Thread Anton Vorontsov
s spotted by Stephen. Great news, thank you! -- Anton Vorontsov email: [EMAIL PROTECTED] backup email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: Fixed phy

2008-01-16 Thread Anton Vorontsov
//ozlabs.org/pipermail/linuxppc-dev/2007-December/047779.html -- Anton Vorontsov email: [EMAIL PROTECTED] backup email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH/RFC] [POWERPC] CPM1: implement GPIO LIB API

2008-01-17 Thread Anton Vorontsov
atters a lot, so arch_initcall could indeed work in the arch/powerpc/sysdev/. I should try that for QE. :-) If it works, you'd better make (1) and (2) static, or just remove them completely, since there are no users outside of this file. Thanks! -- Anton Vorontsov email: [EMAIL PROTECTED] b

Re: Patches added to master/for-2.6.25 branch of powerpc.git

2008-01-17 Thread Anton Vorontsov
//ozlabs.org/pipermail/linuxppc-dev/2007-December/048473.html ^^ fixed phy support for fs_enet. Needed for some other boards, I presume. Thanks! -- Anton Vorontsov email: [EMAIL PROTECTED] backup email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 ___

Re: Patches added to master/for-2.6.25 branch of powerpc.git

2008-01-17 Thread Anton Vorontsov
On Thu, Jan 17, 2008 at 09:11:00AM -0600, Kumar Gala wrote: > > On Jan 17, 2008, at 8:59 AM, Anton Vorontsov wrote: > > >Hello Paul, Kumar, > > > >On Thu, Jan 17, 2008 at 03:39:07PM +1100, Paul Mackerras wrote: > >>Includes commits pulled from Josh Boyer&#x

[PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure (was: Re: fixed phy support (warning related to FIXED_MII_100_FDX))

2008-01-21 Thread Anton Vorontsov
d PHY rework to go through powerpc tree, would you please Ack this patch in addition? I hope cpmac maintainer will fix remaining issues as time goes by. Thanks! - - - - From: Anton Vorontsov <[EMAIL PROTECTED]> Subject: [PATCH] [NET] cpmac: convert to new Fixed PHY infrastructure This patch

mpc8568e-mds: pci-e is broken

2008-01-23 Thread Anton Vorontsov
idge() here or we can fix it other way? Just in case, I'm observing that message for a long long time, and it didn't tell upon any functionality till now. Thanks, -- Anton Vorontsov email: [EMAIL PROTECTED] backup email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 __

Re: mpc8568e-mds: pci-e is broken

2008-01-23 Thread Anton Vorontsov
t; >we can fix it other way? > > > >Just in case, I'm observing that message for a long long time, and > >it didn't tell upon any functionality till now. > > > Is this with the 8568 MDS in standalone or plugged into the back pane? This is standalone se

[PATCH] [POWERPC] MPC8360E-RDK: device tree, board file and defconfig

2008-01-23 Thread Anton Vorontsov
). Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Hello Kumar, ...if there will no further comments regarding this board, it would be great if you will merge it for 2.6.25. I've reworked that patch so today it doesn't depend on the cleanup queue. That is, the devi

Re: [PATCH] [POWERPC] MPC8360E-RDK: device tree, board file and defconfig

2008-01-24 Thread Anton Vorontsov
On Thu, Jan 24, 2008 at 01:22:01PM +1100, Stephen Rothwell wrote: > On Wed, 23 Jan 2008 23:45:07 +0300 Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > > > +++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c > > +static int __init mpc836x_rdk_declare_of_platform_devices(void)

Re: mpc8568e-mds: pci-e is broken

2008-01-24 Thread Anton Vorontsov
*par = bus->parent->resource[i]; > + if (res) { > + res->start = 0; > + res->end = 0; > + res->flags = 0; > + } > + if (res &&a

[PATCH v5 0/5] device_type/compatible cleanups

2008-01-24 Thread Anton Vorontsov
quot; 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

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

2008-01-24 Thread Anton Vorontsov
ooking for it. Per http://ozlabs.org/pipermail/linuxppc-dev/2007-December/048388.html Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt | 11 +++-- arch/powerpc/boot/dts/mpc832x_mds.dts|9 ++-- arch/powerpc/boot/dts/mpc832x_

[PATCH 2/5] [POWERPC][NET] ucc_geth_mii and users: get rid of device_type

2008-01-24 Thread Anton Vorontsov
device_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 Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc832x_mds.dts

[PATCH 3/5] [POWERPC][SPI] use brg-frequency for SPI in QE

2008-01-24 Thread Anton Vorontsov
In 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. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> Acked-by: David Brownell <[EMAIL PROTECTED]> --- arch/po

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

2008-01-24 Thread Anton Vorontsov
ber/048388.html Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- 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

[PATCH 5/5] [POWERPC] fsl_soc, legacy_serial: add support for "soc" compatible matching

2008-01-24 Thread Anton Vorontsov
el number from the soc name to heal arch/powerpc/boot/cuboot-85xx.c, because then dts'es will be incompatible with older u-boots again. So, just one machine converted so far: MPC8360E-RDK. It's new machine so we don't care about backward compatibility yet. Signed-off-by: Anton Vor

Re: [PATCH UCC TDM 1/3 Updated] Platform changes for UCC TDM driver for MPC8323eRDB. Also includes related QE changes and dts entries.

2008-01-24 Thread Anton Vorontsov
Can we not introduce new pio-maps in the device trees? There were debates regarding this, and if I understood everything correctly, pio-maps considered as a bad taste. Better do bunch of par_io_config_pin() in the board file. Better yet fixup the firmware (u-boot) to set up dedicated pins correctly.

Re: [PATCH 2/5] [POWERPC][NET] ucc_geth_mii and users: get rid of device_type

2008-01-24 Thread Anton Vorontsov
On Thu, Jan 24, 2008 at 09:52:14AM -0600, Kumar Gala wrote: > > On Jan 24, 2008, at 9:40 AM, Anton Vorontsov wrote: > > >device_type property is bogus, thus use proper compatible. > > > >Also change compatible property to "fsl,ucc-mdio". > > > >

Re: [PATCH UCC TDM 1/3 Updated] Platform changes for UCC TDM driver for MPC8323eRDB. Also includes related QE changes and dts entries.

2008-01-24 Thread Anton Vorontsov
On Thu, Jan 24, 2008 at 09:55:31AM -0600, Timur Tabi wrote: > Anton Vorontsov wrote: > > >Can we not introduce new pio-maps in the device trees? There > >were debates regarding this, and if I understood everything > >correctly, pio-maps considered as a bad tast

Re: [PATCH UCC TDM 1/3 Updated] Platform changes for UCC TDM driver for MPC8323eRDB. Also includes related QE changes and dts entries.

2008-01-24 Thread Anton Vorontsov
On Thu, Jan 24, 2008 at 10:33:47AM -0600, Timur Tabi wrote: > Anton Vorontsov wrote: > > >Are you saying that TDM is sharing same pins with the other QE device, > >and we can choose to use/not use some device depending on which driver > >is loaded? > > No. I

Re: [PATCH v5 0/5] device_type/compatible cleanups

2008-01-24 Thread Anton Vorontsov
On Thu, Jan 24, 2008 at 06:18:50PM +0300, Anton Vorontsov wrote: [..] > Documentation/powerpc/booting-without-of.txt | 26 +-- > arch/powerpc/boot/dts/mpc832x_mds.dts | 11 - > arch/powerpc/boot/dts/mpc832x_rdb.dts | 11 - > arch/powerpc/boot/dts/mpc

Re: [PATCH 5/5] [POWERPC] fsl_soc, legacy_serial: add support for "soc" compatible matching

2008-01-25 Thread Anton Vorontsov
On Fri, Jan 25, 2008 at 12:17:19PM -0600, Scott Wood wrote: > Anton Vorontsov wrote: > >Freescale soc register space: "fsl,soc" > >generic soc device: "soc" (or maybe "linux,soc" better?) > > > >I know, Scott Wood is pushing "-im

Re: [PATCH 5/5] [POWERPC] fsl_soc, legacy_serial: add support for "soc" compatible matching

2008-01-25 Thread Anton Vorontsov
On Fri, Jan 25, 2008 at 08:13:55PM +0300, Anton Vorontsov wrote: [...] > My thinking: > > Freescale soc register space: "fsl,soc" > generic soc device: "soc" (or maybe "linux,soc" better?) > > I know, Scott Wood is pushing "-immr"

Re: [PATCH 5/5] [POWERPC] fsl_soc, legacy_serial: add support for "soc" compatible matching

2008-01-25 Thread Anton Vorontsov
On Fri, Jan 25, 2008 at 01:03:28PM -0600, Scott Wood wrote: > Anton Vorontsov wrote: > >$ grep qe@ arch/powerpc/boot/dts/* > >arch/powerpc/boot/dts/mpc832x_mds.dts: [EMAIL PROTECTED] { > >arch/powerpc/boot/dts/mpc832x_rdb.dts: [EMAIL PROTECTED] { > >arch/powerpc/boot/d

[PATCH v3] [POWERPC] MPC8360E-RDK: device tree, board file and defconfig

2008-01-25 Thread Anton Vorontsov
On Wed, Jan 23, 2008 at 11:45:07PM +0300, Anton Vorontsov wrote: [...] > Hello Kumar, > > ...if there will no further comments regarding this board, it would > be great if you will merge it for 2.6.25. I've reworked that patch so > today it doesn't depend on the cleanup q

Re: [PATCH 5/5] [POWERPC] fsl_soc, legacy_serial: add support for "soc" compatible matching

2008-01-25 Thread Anton Vorontsov
On Fri, Jan 25, 2008 at 10:35:06AM -0600, Kumar Gala wrote: > > On Jan 24, 2008, at 9:40 AM, Anton Vorontsov wrote: > > >We'll match on "soc" compatible for generic code, and "fsl,soc" > >for fsl specific code. > > > >Unfortunately it&#x

[PATCH 6/5] [POWERPC] get rid of `model = "UCC"' in the ucc nodes

2008-01-25 Thread Anton Vorontsov
It isn't used anywhere, so remove it. If we'll ever need something like this, we'll use compatible property instead. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- New cleanup in this series... Documentation/powerpc/booting-without-of.txt |1 - arch/powerpc/boo

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

2008-01-27 Thread Anton Vorontsov
pio driver.. Actually, I see this as a hardware limitation. For example, on ARMs PXA2xx, there are separate, per bank, read/set/clear GPIO registers, not all-in-one data register. -- Anton Vorontsov email: [EMAIL PROTECTED] backup email: [EMAIL PROTECTED] irc://irc.freenode.net/bd2 ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

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

2008-01-27 Thread Anton Vorontsov
On Sun, Jan 27, 2008 at 01:59:51PM -0700, Grant Likely wrote: a> On 1/27/08, Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > On Sun, Jan 27, 2008 at 02:42:12PM +0100, Jochen Friedrich wrote: > > > Hi Anton, > > > > > > > +static void qe_gpio_set

[PATCH] [POWERPC] fsl_soc: add support for "fsl, immr" compatible matching

2008-02-01 Thread Anton Vorontsov
e with older u-boots again. So, just one machine converted so far: MPC8360E-RDK. It's new machine so we don't care about backward compatibility yet. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt | 18 -- arch/powerpc/bo

[PATCH v4] [POWERPC] MPC8360E-RDK: device tree, board file and defconfig

2008-02-01 Thread Anton Vorontsov
). Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Hello Kumar, It would be great if we can get this into the 2.6.25. Changes since v3: - rebased against recent tree; - compatible = "fsl,mpc8360-immr", "fsl,immr", "simple-bus"; - now "qe"

[PATCH for 2.6.25 1/2] [NET] ucc_geth: fix module removal

2008-02-01 Thread Anton Vorontsov
hX up'; - add unregister_netdev(); - reorder geth_remove() steps. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Hi Li, You kinda promised that these two patches would hit 2.6.25... ;-) I've rebased the patches so they apply cleanly on the current tree. Thanks, drivers/

[PATCH for 2.6.25 2/2] [NET] ucc_geth: add support for netpoll

2008-02-01 Thread Anton Vorontsov
This patch adds netpoll support for the QE UCC Gigabit Ethernet driver. Tested using netconsole and KGDBoE. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Just resending this. drivers/net/ucc_geth.c | 20 1 files changed, 20 insertions(+), 0 deletions(-)

[PATCH] [POWERPC] get rid of `model = "UCC"' in the ucc nodes

2008-02-01 Thread Anton Vorontsov
It isn't used anywhere, so remove it. If we'll ever need something like this, we'll use compatible property instead. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Rebased on top of recent tree. Documentation/powerpc/booting-without-of.txt |1 -

[PATCH] [POWERPC][NET][SERIAL] UCCs: replace device-id with cell-index (was: Re: [PATCH] [POWERPC] get rid of `model = "UCC"' in the ucc nodes)

2008-02-01 Thread Anton Vorontsov
On Fri, Feb 01, 2008 at 09:32:38AM -0600, Kumar Gala wrote: > On Feb 1, 2008, at 9:01 AM, Anton Vorontsov wrote: > > >It isn't used anywhere, so remove it. If we'll ever need something > >like this, we'll use compatible property instead. > > > >Sig

<    4   5   6   7   8   9   10   11   12   13   >