Re: Disabled LocalPlus Controller (LPC) clock on MPC512x

2014-12-02 Thread Matteo Facchinetti
On 26/11/2014 12:49, Alexander Popov wrote: Hello. Hi. My Freescale TWR-MPC5125 board instantly reboots if I touch any physical address on the LocalPlus Bus (LPB) for the first time when Linux has already booted. This effect is reproduced by using /dev/mem or loading a kernel module which wo

Re: Disabled LocalPlus Controller (LPC) clock on MPC512x

2014-12-19 Thread Matteo Facchinetti
On 16/12/2014 13:00, Alexander Popov wrote: 02.12.2014 13:47, Matteo Facchinetti пишет: On 26/11/2014 12:49, Alexander Popov wrote: So starting Linux with clk_ignore_unused bootparam or inserting dummy LPB reading to some initcall is a temporary fix. In fact clk_ignore_unused bootparam helps

[PATCH] powerpc/mpc512x: add MPC5125 reset module support for system restart

2013-06-10 Thread Matteo Facchinetti
uot;struct mpc512x_reset_module" register definition and the same restart procedure. Signed-off-by: Matteo Facchinetti --- arch/powerpc/platforms/512x/mpc512x.h| 1 + arch/powerpc/platforms/512x/mpc512x_shared.c | 15 ++- 2 files changed, 15 insertions(+), 1 deletion(-) di

[PATCH] serial/mpc52xx_uart: fix kernel panic when system reboot

2013-06-12 Thread Matteo Facchinetti
[3438] 0x3438 handlers: [] mpc512x_psc_spi_isr Disabling IRQ #40 Disabling serial console interrupt before free_irq() prevents this error. Signed-off-by: Matteo Facchinetti --- drivers/tty/serial/mpc52xx_uart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/mpc5

[PATCH 1/1] serial/mpc52xx_uart: fix psc clock name for mpc512x

2013-03-12 Thread Matteo Facchinetti
From: Matteo Facchinetti On platform mpc512x, PSC clock name registered by clk_register() (clock.c:703) has _mclk suffix. In mpc512x uart device driver, PSC clock name has _clk suffix. So change PSC clock name in UART device driver using registered clock. Signed-off-by: Matteo Facchinetti

[PATCH 1/3] powerpc/512x: move mpc5121_generic platform to mpc512x_generic.

2013-03-20 Thread Matteo Facchinetti
This provides a base for using 512x_generic platform on mpc5125 boards. By this way 512x_GENERIC it could be used for all generic mpc512x boards and kernel could be compiled with mpc512x_defconfig. Signed-off-by: Matteo Facchinetti --- arch/powerpc/configs/mpc512x_defconfig

[PATCH 0/3] Add MPC5125 platform support

2013-03-20 Thread Matteo Facchinetti
tower system evaluation board. Matteo Facchinetti (3): powerpc/512x: move mpc5121_generic platform to mpc512x_generic. serial/mpc52xx_uart: add PSC UART support for MPC5125 platforms. powerpc/mpc512x: add platform code for MPC5125. arch/powerpc/boot/dts/mpc5125twr.dts | 238

[PATCH 3/3] powerpc/mpc512x: add platform code for MPC5125.

2013-03-20 Thread Matteo Facchinetti
Tested on MPC5125 Tower evaluation board with mpc512x_defconfig compile configuration. In detail, supports for: - PSC / UART - RTC - ETH - DIU - I2C Signed-off-by: Matteo Facchinetti --- arch/powerpc/boot/dts/mpc5125twr.dts | 238 + arch/powerpc/platforms/512x

[PATCH 2/3] serial/mpc52xx_uart: add PSC UART support for MPC5125 platforms.

2013-03-20 Thread Matteo Facchinetti
MPC5125 PSC controller has different registers than MPC5121. This patch was originally created by Vladimir Ermakov https://lists.ozlabs.org/pipermail/linuxppc-dev/2011-March/088954.html Signed-off-by: Vladimir Ermakov Signed-off-by: Matteo Facchinetti --- arch/powerpc/include/asm

Re: [PATCH 3/3] powerpc/mpc512x: add platform code for MPC5125.

2013-04-02 Thread Matteo Facchinetti
On 03/30/2013 11:32 PM, Anatolij Gustschin wrote: +{ + char *psc_compats[] = { + "fsl,mpc5121-psc", + "fsl,mpc5125-psc" + }; + int i; + + for (i = 0; i < ARRAY_SIZE(psc_compats); i++) + if (of_find_compatible_node(NULL, NULL, psc_c

[PATCH v2 3/3] powerpc/mpc512x: add platform code for MPC5125.

2013-04-02 Thread Matteo Facchinetti
Tested on MPC5125 Tower evaluation board with mpc512x_defconfig compile configuration. In detail, supports for: - PSC / UART - RTC - ETH - DIU - I2C Signed-off-by: Matteo Facchinetti --- v2: * change mpc512x_select_psc_compat() implementation and fix it using const char* return * drop

[PATCH v3 3/3] powerpc/mpc512x: add platform code for MPC5125.

2013-04-04 Thread Matteo Facchinetti
Tested on MPC5125 Tower evaluation board with mpc512x_defconfig compile configuration. In detail, supports for: - PSC / UART - RTC - ETH - DIU - I2C Signed-off-by: Matteo Facchinetti --- v2: * change mpc512x_select_psc_compat() implementation and fix it using const char* return * drop

Re: [PATCH v1 0/4] powerpc/512x: update COMMON_CLK support for MPC5125

2013-12-12 Thread Matteo Facchinetti
ll clocks values are OK (except for NFC clock value). I notice that there are missing clock like: gpio1, gpio2, fuse, dma, wdt, pmc, rtc. Is this OK or should be added? Regards, Matteo Facchinetti Sirius Electronic Systems ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH] powerpc/512x: dts: disable MPC5125 usb module

2013-12-19 Thread Matteo Facchinetti
USB controller pin-muxing is not initialized correctly and when system boot, causes a kernel panic. USB controller is also connected with a USB3320 ulpi tranciever and DTS should be includes the correct dependency for initialize and activate this component. Signed-off-by: Matteo Facchinetti

Re: [PATCH] powerpc/512x: dts: disable MPC5125 usb module

2013-12-19 Thread Matteo Facchinetti
On 19/12/2013 13:30, Gerhard Sittig wrote: On Thu, Dec 19, 2013 at 11:23 +0100, Matteo Facchinetti wrote: USB controller pin-muxing is not initialized correctly and when system boot, causes a kernel panic. USB controller is also connected with a USB3320 ulpi tranciever and DTS should be

[PATCH v2] powerpc/512x: dts: disable MPC5125 usb module

2013-12-20 Thread Matteo Facchinetti
pdate to reflect correct dependencies and required initialization data before the USB1 node can get re-enabled. Signed-off-by: Matteo Facchinetti --- v2: * improve the text of the commit as suggested by Gerhard Sittig * put the 'status = "disabled"' to the last line in the li