RE: [PATCH] arm64/dts/ls2080a-rdb: remove disable status of pca9547

2017-01-02 Thread Meng Yi
> -Original Message- > From: Shawn Guo [mailto:shawn...@kernel.org] > Sent: Monday, January 02, 2017 5:17 PM > To: Meng Yi > Cc: robh...@kernel.org; Stuart Yoder ; linux- > ker...@vger.kernel.org; linux-arm-ker...@lists.infradead.org > Subject: Re: [PATCH] arm64/dt

[PATCH] arm64/dts/ls2080a-rdb: remove disable status of pca9547

2016-12-19 Thread Meng Yi
pca9547 won't probed since its status property is disabled. while there are devices connected to it, we need remove status property to let ds3232 and adt7461 probed correctly. Signed-off-by: Meng Yi --- arch/arm64/boot/dts/freescale/fsl-ls2080a-rdb.dts | 1 - 1 file changed, 1 deletion(-)

RE: [RFC PATCH] rtc/nxp: add FTM alarm driver as the wakeup source

2016-12-01 Thread Meng Yi
> > > + > > > +static int nxp_ftm_rtc_read_time(struct device *dev, struct > > > +rtc_time > > > +*tm) { > > > + struct timeval time; > > > + unsigned long local_time; > > > + > > > + do_gettimeofday(&time); > > > + local_time = (u32)(time.tv_sec - (sys_tz.tz_minuteswest * 60)); > > > + rtc_time_to

[PATCH] nxp/diu: enable diu support for t1042 platform

2016-11-25 Thread Meng Yi
From: Jason Jin This patch add the DIU support for t1042 platform. signed-off-by: Jason Jin [Meng Yi: Made file t1042rdb-specific] Signed-off-by: Meng Yi --- arch/powerpc/platforms/85xx/Makefile | 1 + arch/powerpc/platforms/85xx/t1042rdb_diu.c | 152 + 2

RE: [RFC PATCH] rtc/nxp: add FTM alarm driver as the wakeup source

2016-11-02 Thread Meng Yi
> + > +static int ftm_alarm_irq_enable(struct device *dev, unsigned int > +enabled) { > + if (enabled) > + ftm_irq_enable(true); > + else > + ftm_irq_enable(false); > + > + return 0; > +} > + > +static int nxp_ftm_rtc_read_time(struct device *dev, struct rtc_time

[RFC PATCH] rtc/nxp: add FTM alarm driver as the wakeup source

2016-10-23 Thread Meng Yi
For the platforms including LS1021A, LS1043A that has the flextimer module, implementing alarm functions within RTC subsystem to wakeup the system when system going to sleep. Only Ftm0 can be used to wakeup the system. Signed-off-by: Meng Yi --- drivers/rtc/Kconfig | 9 ++ drivers/rtc

RE: [PATCH v3 1/5] drm/fsl-dcu: enable TCON bypass mode by default

2016-10-19 Thread Meng Yi
RGB/LVDS encoder */ > + if (fsl_dev->tcon) > + fsl_tcon_bypass_enable(fsl_dev->tcon); > + > ret = drm_encoder_init(fsl_dev->drm, encoder, &encoder_funcs, > DRM_MODE_ENCODER_LVDS, NULL); > if (ret < 0) > return ret; > > - drm_encoder_helper_add(encoder, &encoder_helper_funcs); > - > return 0; > } > > -- > 2.10.0 Tested-By: Meng Yi Tested those 5 patches on LS1021a-twr, and everything is fine. Meng

[PATCH v3] clocksource/fsl: Fix errata A-007728 for flextimer

2016-09-21 Thread Meng Yi
d-off-by: Meng Yi --- Change from V1: -add timeout into wile loop using a counter --- drivers/clocksource/fsl_ftm_timer.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clocksource/fsl_ftm_timer.c b/drivers/clocksource/fsl_ftm_timer.c index 738515b..97bdb09 1

RE: [PATCH v2] clocksource/fsl: Fix errata A-007728 for flextimer

2016-09-21 Thread Meng Yi
> > __iomem *base) > > > > static inline void ftm_irq_acknowledge(void __iomem *base) { > > - u32 val; > > + unsigned long timeout = jiffies + msecs_to_jiffies(100); > > Do you expect the jiffies to be updated when we are in the timer irq handler ? > Oops, my bad. Will correct that using

[PATCH v2] clocksource/fsl: Fix errata A-007728 for flextimer

2016-09-18 Thread Meng Yi
d-off-by: Meng Yi --- Change in V2: -add timeout into IRQ context(suggested by Alexander) --- drivers/clocksource/fsl_ftm_timer.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/clocksource/fsl_ftm_timer.c b/drivers/clocksource/fsl_ftm_timer.c index 73

RE: [PATCH] clocksource/fsl: Fix errata A-007728 for flextimer

2016-09-08 Thread Meng Yi
> > drivers/clocksource/fsl_ftm_timer.c | 9 - > > 1 file changed, 4 insertions(+), 5 deletions(-) > > > > diff --git a/drivers/clocksource/fsl_ftm_timer.c > > b/drivers/clocksource/fsl_ftm_timer.c index 738515b..ade26e5 100644 > > --- a/drivers/clocksource/fsl_ftm_timer.c > > +++ b/driver

[PATCH] clocksource/fsl: Fix errata A-007728 for flextimer

2016-09-07 Thread Meng Yi
d-off-by: Meng Yi --- drivers/clocksource/fsl_ftm_timer.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/clocksource/fsl_ftm_timer.c b/drivers/clocksource/fsl_ftm_timer.c index 738515b..ade26e5 100644 --- a/drivers/clocksource/fsl_ftm_timer.c +++ b/dr

RE: [PATCH 0/4] drm/fsl-dcu: add overlay and cursor plane support

2016-09-07 Thread Meng Yi
Hi Stefan, I had tested the patches on LS1021A-TWR board using drmlib. Like set three overlays: root@ls1021atwr:~# ./modetest -P 39:900x100+10+10@RG24 -P 39:200x200+300+0@RG24 -P 39:200x200+400+300@RG24 How did you test the overlays and cursor layer, I mean I see you using x-window like thing

RE: [PATCH 3/4] drm/fsl-dcu: update all registers on flush

2016-09-07 Thread Meng Yi
Hi Stefan, Some comments below > > diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c b/drivers/gpu/drm/fsl- > dcu/fsl_dcu_drm_crtc.c > index d30b61e..62eb284 100644 > --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c > +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c > @@ -27,6 +27,9 @@ sta

[PATCH RESEND] ARM: dts: ls1021a: Add of_graph dt nodes to describe the panel

2016-09-06 Thread Meng Yi
add of_graph dt nodes to describe the panel, and removed "fsl,panel" property Signed-off-by: Meng Yi --- arch/arm/boot/dts/ls1021a-twr.dts | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ls1021a-twr.dts b/arch/arm/boot/dts/ls102

RE: [PATCH] drm/fsl-dcu: fix endian issue when using clk_register_divider

2016-09-05 Thread Meng Yi
"big-endian" to determine the > location of DIV_RATIO. > > Cc: sta...@vger.kernel.org > Fixes: 2d701449bce1 ("drm/fsl-dcu: use common clock framework for pixel > clock divider") > Reported-by: Meng Yi > Signed-off-by: Stefan Agner > --- > drivers/gpu/

RE: fsl-dcu not works on latest "drm-next"

2016-06-06 Thread Meng Yi
Hi Stefan, > >> static const struct regmap_config fsl_dcu_regmap_config = { > >> .reg_bits = 32, > >> .reg_stride = 4, > >> .val_bits = 32, > >> .cache_type = REGCACHE_RBTREE, > > > > This needs to be a flat cache. See > > https://lists.freedesktop.org/archives/dri-devel/2016-Janua

RE: fsl-dcu not works on latest "drm-next"

2016-06-06 Thread Meng Yi
Hi Stefan, Sorry for reply late, I was on PTO. And another PTO on June 9~11, 2016.UTC+8 > >> static const struct regmap_config fsl_dcu_regmap_config = { > >> .reg_bits = 32, > >> .reg_stride = 4, > >> .val_bits = 32, > >> .cache_type = REGCACHE_RBTREE, > > > > This needs to be a

RE: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Meng Yi
.volatile_reg = fsl_dcu_drm_is_volatile_reg, }; I expect that regmap write as big endian, and I am seeing is regmap write as little endian. Thanks, Best Regards, Meng Yi

RE: fsl-dcu not works on latest "drm-next"

2016-05-26 Thread Meng Yi
4, .val_bits = 32, .cache_type = REGCACHE_RBTREE, // .reg_format_endian = REGMAP_ENDIAN_BIG, // .val_format_endian = REGMAP_ENDIAN_BIG, .volatile_reg = fsl_dcu_drm_is_volatile_reg, }; Thanks, Best Regards, Meng Yi

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Meng Yi
find which commit caused that. Since I am not familiar with regmap, hope you can give me some advice. Thanks, Best Regards, Meng Yi

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Meng Yi
t works. But "regmap_update_bits" still have the problem. I had checked log of regmap, and didn't find which commit caused that. I am not familiar with regmap, can you give some advices? Thanks, Best Regards, Meng Yi

RE: fsl-dcu not works on latest "drm-next"

2016-05-25 Thread Meng Yi
Hi Alexander, > From: Alexander Stein [mailto:alexander.st...@systec-electronic.com] > Sent: Wednesday, May 25, 2016 4:32 PM > To: Stefan Agner > Cc: Meng Yi ; dri-de...@lists.freedesktop.org; David Airlie > ; airl...@redhat.com; linux-kernel@vger.kernel.org; Mark > Brown >

RE: fsl-dcu not works on latest "drm-next"

2016-05-24 Thread Meng Yi
? Thanks, Meng ----- From: Meng Yi Sent: Tuesday, May 03, 2016 5:27 PM To: 'dri-de...@lists.freedesktop.org' ; David Airlie ; 'Stefan Agner' ; 'airl...@redhat.com' Subject: fsl-dcu not works on latest "drm-next" Hi, I

[PATCH 2/2] ARM: dts: ls1021a: Add a TFT LCD panel.

2015-11-24 Thread Meng Yi
Signed-off-by: Alison Wang Signed-off-by: Xiubo Li Signed-off-by: Jianwei Wang --- arch/arm/boot/dts/ls1021a-twr.dts | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a-twr.dts b/arch/arm/boot/dts/ls1021a-twr.dts index fbb89d1..fad2e3b 100644 --- a/arch/a

[PATCH 1/2] ARM: dts: ls1021a: Add DCU dts node.

2015-11-24 Thread Meng Yi
Signed-off-by: Alison Wang Signed-off-by: Xiubo Li Signed-off-by: Jianwei Wang --- arch/arm/boot/dts/ls1021a.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 9430a99..f01c98b 100644 --- a/arch/arm/boot/dts