[v2 1/2] dts: ppc: t4240rdb: remove interrupts property

2020-05-20 Thread Biwen Li
From: Biwen Li This removes interrupts property to drop warning as follows: - $ hwclock.util-linux hwclock.util-linux: select() to /dev/rtc0 to wait for clock tick timed out My case: - RTC ds1374's INT pin is connected to VCC on T4240RDB, then the RTC cannot infor

[v2 2/2] dts: ppc: t1024rdb: remove interrupts property

2020-05-20 Thread Biwen Li
From: Biwen Li This removes interrupts property to drop warning as follows: - $ hwclock.util-linux hwclock.util-linux: select() to /dev/rtc0 to wait for clock tick timed out My case: - RTC ds1339s INT pin isn't connected to cpus INT pin on T1024RDB, then the RTC c

RE: [v2 1/2] rtc: pcf2127: properly set flag WD_CD for rtc chips(pcf2129, pca2129)

2020-12-22 Thread Biwen Li
Hi Alexandre, Any comments? Regards, Biwen Li > -Original Message- > From: Biwen Li > Sent: 2020年12月2日 11:19 > To: Leo Li ; alexandre.bell...@bootlin.com; Anson > Huang ; Aisheng Dong > Cc: linux-kernel@vger.kernel.org; Jiafei Pan ; > linux-...@vger.kernel.org; Biw

RE: [EXT] Re: [v3 01/11] irqchip: ls-extirq: Add LS1043A, LS1088A external interrupt

2020-11-30 Thread Biwen Li
> > On 2020-11-30 03:30, Biwen Li wrote: > > From: Hou Zhiqiang > > > > Add an new IRQ chip declaration for LS1043A and LS1088A > > - compatible "fsl,ls1043a-extirq" for LS1043A, LS1046A. > > - compatible "fsl,ls1088a-extirq" for LS108

[v4 01/11] irqchip: ls-extirq: Add LS1043A, LS1088A external interrupt

2020-11-30 Thread Biwen Li
remove confused code(bit_reverse field of struct ls_extirq_data, no need this field for SoC LS1021A. Because the register LS1021A_SCFGREVCR is initialized to 0x by the relative rcw) Signed-off-by: Hou Zhiqiang Signed-off-by: Biwen Li --- Change in v4: - fix warning when checking patc

[v4 03/11] arm64: dts: ls1046a: add DT node for external interrupt lines

2020-11-30 Thread Biwen Li
From: Biwen Li Add device-tree node for external interrupt lines IRQ0-IRQ11. Signed-off-by: Biwen Li --- Change in v4: - remove copyright to fix corrupt Change in v3: - none Change in v2: - none .../arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 25

[v4 04/11] arm64: dts: ls1046ardb: Add interrupt line for RTC node

2020-11-30 Thread Biwen Li
From: Hou Zhiqiang Add interrupt line for RTC node, which is low level active. Signed-off-by: Hou Zhiqiang --- Change in v4: - none Change in v3: - none Change in v2: - none arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 3 +++ 1 file changed, 3 insertions(+) d

[v4 06/11] arm64: dts: ls1088ardb: fix interrupt line for RTC node

2020-11-30 Thread Biwen Li
From: Biwen Li Fix interrupt line for RTC node on ls1088ardb Signed-off-by: Biwen Li --- Change in v4: - none Change in v3: - none Change in v2: - none arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[v4 05/11] arm64: dts: ls1088a: add DT node for external interrupt lines

2020-11-30 Thread Biwen Li
From: Biwen Li Add device-tree node for external interrupt lines IRQ0-IRQ11. Signed-off-by: Biwen Li --- Change in v4: - remove copyright to fix corrupt Change in v3: - none Change in v2: - none .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 31

[v4 10/11] arm64: dts: lx2160ardb: fix interrupt line for RTC node

2020-11-30 Thread Biwen Li
From: Biwen Li Fix interrupt line for RTC node on lx2160ardb Signed-off-by: Biwen Li --- Change in v4: - none Change in v3: - none Change in v2: - none arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[v4 09/11] arm64: dts: lx2160a: add DT node for external interrupt lines

2020-11-30 Thread Biwen Li
From: Biwen Li Add device-tree node for external interrupt lines IRQ0-IRQ11. Signed-off-by: Biwen Li --- Change in v4: - remove copyright to fix corrupt Change in v3: - none Change in v2: - none .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 31

[v4 08/11] arm64: dts: ls208xa-rdb: add interrupt line for RTC node

2020-11-30 Thread Biwen Li
From: Biwen Li Add interrupt line for RTC node on ls208xa-rdb Signed-off-by: Biwen Li --- Change in v4: - none Change in v3: - none Change in v2: - none arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[v4 11/11] dt-bindings: interrupt-controller: update bindings for supporting more SoCs

2020-11-30 Thread Biwen Li
From: Biwen Li Update bindings for Layerscape external irqs, support more SoCs(LS1043A, LS1046A, LS1088A, LS208xA, LX216xA) Signed-off-by: Biwen Li --- Change in v4: - none Change in v3: - remove robust information Change in v2: - update reg property - update

[v4 07/11] arm64: dts: ls208xa: add DT node for external interrupt lines

2020-11-30 Thread Biwen Li
From: Biwen Li Add device-tree node for external interrupt lines IRQ0-IRQ11. Signed-off-by: Biwen Li --- Change in v4: - none Change in v3: - none Change in v2: - none .../arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 33 ++- 1 file changed, 32

[v4 02/11] arm64: dts: ls1043a: add DT node for external interrupt lines

2020-11-30 Thread Biwen Li
From: Biwen Li Add device-tree node for external interrupt lines IRQ0-IRQ11. Signed-off-by: Biwen Li --- Change in v4: - remove copyright to fix corrupt Change in v3: - none Change in v2: - none .../arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 25

[PATCH] rtc: pcf2127: clear the flag TSF1 before enabling interrupt generation

2020-12-01 Thread Biwen Li
From: Biwen Li - clear the flag TSF1 before enabling interrupt generation - properly set flag WD_CD for rtc chips(pcf2129, pca2129) Signed-off-by: Biwen Li --- drivers/rtc/rtc-pcf2127.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc

[v2 1/2] rtc: pcf2127: properly set flag WD_CD for rtc chips(pcf2129, pca2129)

2020-12-01 Thread Biwen Li
From: Biwen Li Properly set flag WD_CD for rtc chips(pcf2129, pca2129) Signed-off-by: Biwen Li --- Change in v2: - set flag WD_CD according to compatible drivers/rtc/rtc-pcf2127.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-pcf2127.c b

[v2 2/2] rtc: pcf2127: clear these flags TSF1, TSF2 before enabling interrupt generation

2020-12-01 Thread Biwen Li
From: Biwen Li Clear these flags TSF1, TSF2 before enabling interrupt generation Signed-off-by: Biwen Li --- Change in v2: - clear flag TSF2 drivers/rtc/rtc-pcf2127.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc

[PATCH] gpio: mpc8xxx: resolve coverity warnings

2020-12-02 Thread Biwen Li
From: Biwen Li Resolve coverity warnings as follows, cond_at_most: Checking gpio >= 28U implies that gpio may be up to 27 on the false branch. overrun-call: Overrunning callees array of size 3 by passing argument gpio (which evaluates to 27) in call to *mpc8xxx

[PATCH] irqchip: ls-extirq: add flag IRQCHIP_SKIP_SET_WAKE to remove call trace

2021-01-26 Thread Biwen Li
From: Biwen Li Add flag IRQCHIP_SKIP_SET_WAKE to remove call trace as follow, [ 45.605239] Unbalanced IRQ 120 wake disable [ 45.609445] WARNING: CPU: 0 PID: 1124 at kernel/irq/manage.c:800 irq_set_irq_wake+0x154/0x1a0 [ 45.617965] Modules linked in: fsl_jr_uio caam_jr caamkeyblob_desc

[v2] irqchip: ls-extirq: add flag IRQCHIP_SKIP_SET_WAKE to remove call trace

2021-01-27 Thread Biwen Li
From: Biwen Li Add flag IRQCHIP_SKIP_SET_WAKE to remove call trace as follow, ... [ 45.605239] Unbalanced IRQ 120 wake disable [ 45.609445] WARNING: CPU: 0 PID: 1124 at kernel/irq/manage.c:800 irq_set_irq_wake+0x154/0x1a0 ... [ 45.645141] pstate: 6085 (nZCv daIf -PAN -UAO -TCO BTYPE

[PATCH] irqchip: ls-extirq: add flag IRQCHIP_SKIP_SET_WAKE to remove call trace

2021-01-27 Thread Biwen Li
From: Biwen Li Add flag IRQCHIP_SKIP_SET_WAKE to remove call trace as follow, ... [ 45.605239] Unbalanced IRQ 120 wake disable [ 45.609445] WARNING: CPU: 0 PID: 1124 at kernel/irq/manage.c:800 irq_set_irq_wake+0x154/0x1a0 ... [ 45.645141] pstate: 6085 (nZCv daIf -PAN -UAO -TCO BTYPE

[v3] irqchip: ls-extirq: add IRQCHIP_SKIP_SET_WAKE to the irqchip flags

2021-01-27 Thread Biwen Li
From: Biwen Li The ls-extirq driver doesn't implement the irq_set_wake() callback, while being wake-up capable. This results in ugly behaviours across suspend/resume cycles. Advertise this by adding IRQCHIP_SKIP_SET_WAKE to the irqchip flags Signed-off-by: Biwen Li --- Change

[v3 01/11] irqchip: ls-extirq: Add LS1043A, LS1088A external interrupt

2020-11-29 Thread Biwen Li
From: Hou Zhiqiang Add an new IRQ chip declaration for LS1043A and LS1088A - compatible "fsl,ls1043a-extirq" for LS1043A, LS1046A. - compatible "fsl,ls1088a-extirq" for LS1088A, LS208xA, LX216xA Signed-off-by: Hou Zhiqiang Signed-off-by: Biwen Li --- Change in v3:

[v3 06/11] arm64: dts: ls1088ardb: fix interrupt line for RTC node

2020-11-29 Thread Biwen Li
From: Biwen Li Fix interrupt line for RTC node on ls1088ardb Signed-off-by: Biwen Li --- Change in v3: - none Change in v2: - none arch/arm64/boot/dts/freescale/fsl-ls1088a-rdb.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts

[v3 04/11] arm64: dts: ls1046ardb: Add interrupt line for RTC node

2020-11-29 Thread Biwen Li
From: Hou Zhiqiang Add interrupt line for RTC node, which is low level active. Signed-off-by: Hou Zhiqiang --- Change in v3: - none Change in v2: - none arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dt

[v3 07/11] arm64: dts: ls208xa: add DT node for external interrupt lines

2020-11-29 Thread Biwen Li
From: Biwen Li Add device-tree node for external interrupt lines IRQ0-IRQ11. Signed-off-by: Biwen Li --- Change in v3: - none Change in v2: - none .../arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 33 ++- 1 file changed, 32 insertions(+), 1 deletion(-) diff

[v3 05/11] arm64: dts: ls1088a: add DT node for external interrupt lines

2020-11-29 Thread Biwen Li
From: Biwen Li Add device-tree node for external interrupt lines IRQ0-IRQ11. Signed-off-by: Biwen Li --- Change in v3: - none Change in v2: - none .../arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 33 ++- 1 file changed, 32 insertions(+), 1 deletion(-) diff

[v3 08/11] arm64: dts: ls208xa-rdb: add interrupt line for RTC node

2020-11-29 Thread Biwen Li
From: Biwen Li Add interrupt line for RTC node on ls208xa-rdb Signed-off-by: Biwen Li --- Change in v3: - none Change in v2: - none arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts

[v3 02/11] arm64: dts: ls1043a: add DT node for external interrupt lines

2020-11-29 Thread Biwen Li
From: Biwen Li Add device-tree node for external interrupt lines IRQ0-IRQ11. Signed-off-by: Biwen Li --- Change in v3: - none Change in v2: - none .../arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff

[v3 09/11] arm64: dts: lx2160a: add DT node for external interrupt lines

2020-11-29 Thread Biwen Li
From: Biwen Li Add device-tree node for external interrupt lines IRQ0-IRQ11. Signed-off-by: Biwen Li --- Change in v3: - none Change in v2: - none .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch

[v3 03/11] arm64: dts: ls1046a: add DT node for external interrupt lines

2020-11-29 Thread Biwen Li
From: Biwen Li Add device-tree node for external interrupt lines IRQ0-IRQ11. Signed-off-by: Biwen Li --- Change in v3: - none Change in v2: - none .../arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff

[v3 10/11] arm64: dts: lx2160ardb: fix interrupt line for RTC node

2020-11-29 Thread Biwen Li
From: Biwen Li Fix interrupt line for RTC node on lx2160ardb Signed-off-by: Biwen Li --- Change in v3: - none Change in v2: - none arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts

[v3 11/11] dt-bindings: interrupt-controller: update bindings for supporting more SoCs

2020-11-29 Thread Biwen Li
From: Biwen Li Update bindings for Layerscape external irqs, support more SoCs(LS1043A, LS1046A, LS1088A, LS208xA, LX216xA) Signed-off-by: Biwen Li --- Change in v3: - remove robust information Change in v2: - update reg property - update compatible property

RE: [EXT] Re: [v3,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-09 Thread Biwen Li
> > On 03/09/2019 08:18, Biwen Li wrote: > > diff --git a/Documentation/devicetree/bindings/rtc/pcf85363.txt > > b/Documentation/devicetree/bindings/rtc/pcf85363.txt > > index 94adc1cf93d9..588f688b30d1 100644 > > --- a/Documentation/devicetree/bindings/rtc/pcf853

RE: [EXT] Re: [v3,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-10 Thread Biwen Li
> Caution: EXT Email > > On Tue, Sep 03, 2019 at 11:37:01AM +0200, Martin Fuzzey wrote: > > On 03/09/2019 08:18, Biwen Li wrote: > > > diff --git a/Documentation/devicetree/bindings/rtc/pcf85363.txt > > > b/Documentation/devicetree/bindings/rtc/pcf85363.txt >

[v4,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-10 Thread Biwen Li
Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li --- Change in v4: - Drop robust defines in include/dt-bindings/rtc/pcf85363.h - Add nxp,rtc-interrupt-type property - Replace interrupt-output-pin with nxp,rtc-interrupt-output-pin Change in v3: - None Change in v2

[v4,2/2] rtc: pcf85263/pcf85363: support PM, wakeup device, improve performance

2019-09-10 Thread Biwen Li
: - https://www.nxp.com/docs/en/data-sheet/PCF85263A.pdf - https://www.nxp.com/docs/en/data-sheet/PCF85363A.pdf Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li --- Change in v4: - Add nxp,rtc-interrupt-type property - Interrupt output pin Cooperate with interrupt type Change in

[v5] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-28 Thread Biwen Li
control registers about stop_enable and resets, second part writes RTC time and date registers. Signed-off-by: Biwen Li --- Change in v5: - drop robust explanation Change in v4: - use old scheme - replace link to lkml.org with commit - add proper

[1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-08-30 Thread Biwen Li
Add some properties for pcf85263/pcf85363 as follows: - interrupt-output-pin: string type - quartz-load-capacitance: integer type - quartz-drive-strength: integer type - quartz-low-jitter: bool type - wakeup-source: bool type Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li

[2/2] rtc: pcf85263/pcf85363: support PM, wakeup device, improve performance

2019-08-30 Thread Biwen Li
-sheet/PCF85263A.pdf - https://www.nxp.com/docs/en/data-sheet/PCF85363A.pdf Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li --- drivers/rtc/rtc-pcf85363.c | 287 +++-- 1 file changed, 274 insertions(+), 13 deletions(-) diff --git a/drivers/rtc/rtc

RE: [EXT] Re: [1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-08-30 Thread Biwen Li
> > On 30/08/2019 17:17:19+0800, Biwen Li wrote: > > Add some properties for pcf85263/pcf85363 as follows: > > - interrupt-output-pin: string type > > - quartz-load-capacitance: integer type > > - quartz-drive-strength: integer type > > - quartz-low-jit

RE: [EXT] Re: [1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-02 Thread Biwen Li
> > Caution: EXT Email > > On Fri, Aug 30, 2019 at 05:17:19PM +0800, Biwen Li wrote: > > Add some properties for pcf85263/pcf85363 as follows: > > - interrupt-output-pin: string type > > - quartz-load-capacitance: integer type > > - quartz-drive-stren

[v2,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-02 Thread Biwen Li
Add some properties for pcf85263/pcf85363 as follows: - interrupt-output-pin: string type - quartz-load-femtofarads: integer type - nxp,quartz-drive-strength: integer type - nxp,quartz-low-jitter: bool type - wakeup-source: bool type Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li

[v2,2/2] rtc: pcf85263/pcf85363: support PM, wakeup device, improve performance

2019-09-02 Thread Biwen Li
/PCF85263A.pdf - https://www.nxp.com/docs/en/data-sheet/PCF85363A.pdf Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li --- Change in v2: - Replace properties name quartz-load-capacitance -> quartz-load-femtofarads quartz-drive-strength -> nxp,quartz

[v3,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-02 Thread Biwen Li
Add some properties for pcf85263/pcf85363 as follows: - interrupt-output-pin: string type - quartz-load-femtofarads: integer type - nxp,quartz-drive-strength: integer type - nxp,quartz-low-jitter: bool type - wakeup-source: bool type Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li

[v3,2/2] rtc: pcf85263/pcf85363: support PM, wakeup device, improve performance

2019-09-02 Thread Biwen Li
/PCF85263A.pdf - https://www.nxp.com/docs/en/data-sheet/PCF85363A.pdf Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li --- Change in v3: - Fix compilation error Change in v2: - Replace properties name quartz-load-capacitance -> quartz-load-femtofar

arm64: ls1028a-qds: correct bus of rtc

2019-09-04 Thread Biwen Li
The rtc is on i2c2 bus(hardware), not on i2c1 channel 3, so correct it Signed-off-by: Biwen Li --- arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts b/arch/arm64

RE: rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-14 Thread Biwen Li
with max_register in regmap_writeable. 2. In drivers/rtc/rtc-pcf85363.c, CTRL_STOP_EN is 0x2e, but DT_100THS is 0, max_regiter is 0x2f, then reg will be equal to 0x30, '0x30 < 0x2f' is false,so regmap_writeable will return false. > > > > > Signed-off-by: Biwen Li

RE: [EXT] Re: rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-14 Thread Biwen Li
> Caution: EXT Email > > Hi, > > On 14/08/2019 17:32:49+0800, Biwen Li wrote: > > Issue: > > # hwclock -w > > hwclock: RTC_SET_TIME: Invalid argument > > > > The patch fixes error when run command hwclock -w with rtc > > pcf85363/pcf852

RE: rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-15 Thread Biwen Li
0, max_regiter is 0x2f, then reg will be equal to 0x30, '0x30 < > > 0x2f' is false,so regmap_writeable will return false. > > From you description, it looks like the problem is actually that the buf[] was > written to a wrong place. If that's the case, we should say

[v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-15 Thread Biwen Li
- Split of writing regs to two parts, first part writes control registers about stop_enable and resets, second part writes RTC time and date registers. Signed-off-by: Biwen Li --- Change in v2: - add Why and How into commit message. drivers/rtc/rtc-pcf85363.c | 7 ++

[v4] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-26 Thread Biwen Li
registers about stop_enable and resets, second part writes RTC time and date registers. Signed-off-by: Biwen Li --- Change in v4: - use old scheme - replace link to lkml.org with commit - add proper explanation Change in v3: - replace old scheme wi

RE: [EXT] Re: [v4] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-27 Thread Biwen Li
> > On 8/27/19 7:37 AM, Biwen Li wrote: > > - In drivers/rtc/rtc-pcf85363.c, CTRL_STOP_EN is 0x2e, but DT_100THS > >is 0, max_regiter is 0x2f, then reg will be equal to 0x30, > >'0x30 < 0x2f' is false,so regmap_writeable will return false.

[1/3] rtc/fsl: support flextimer for lx2160a

2019-08-23 Thread Biwen Li
The patch supports flextimer for lx2160a Signed-off-by: Biwen Li --- drivers/rtc/rtc-fsl-ftm-alarm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-fsl-ftm-alarm.c b/drivers/rtc/rtc-fsl-ftm-alarm.c index 4f7259c2d6a3..2b81525f6db8 100644 --- a/drivers/rtc/rtc-fsl-ftm

[3/3] rtc/fsl: support flextimer for SoC LS1021A (ARM32)

2019-08-23 Thread Biwen Li
Support flextimer for SoC LS1021A (ARM32) Signed-off-by: Biwen Li --- drivers/rtc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 319bec4bef05..58d8b5f7cfc5 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig

[2/3] arm64: dts: lx2160a: add ftm_alarm0 DT node

2019-08-23 Thread Biwen Li
The patch adds ftm_alarm0 DT node for Soc LX2160A FlexTimer1 module is used to wakeup the system in deep sleep Signed-off-by: Biwen Li --- arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl

RE: [EXT] Re: [1/3] rtc/fsl: support flextimer for lx2160a

2019-08-25 Thread Biwen Li
> On 23/08/2019 17:57:38+0800, Biwen Li wrote: > > The patch supports flextimer for lx2160a > > > > Signed-off-by: Biwen Li > > --- > > drivers/rtc/rtc-fsl-ftm-alarm.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/rt

RE: [EXT] Re: [1/3] rtc/fsl: support flextimer for lx2160a

2019-08-25 Thread Biwen Li
> > On Fri, 2019-08-23 at 17:57 +0800, Biwen Li wrote: > > The patch supports flextimer for lx2160a > > > > Signed-off-by: Biwen Li > > --- > > drivers/rtc/rtc-fsl-ftm-alarm.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a

RE: [EXT] Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-25 Thread Biwen Li
> > On 8/16/19 10:40 PM, Li Yang wrote: > > On Fri, Aug 16, 2019 at 11:30 AM Alexandre Belloni > > wrote: > >> > >> On 16/08/2019 10:50:49-0500, Li Yang wrote: > >>> On Fri, Aug 16, 2019 at 3:05 AM Alexandre Belloni > >>> wrot

[v3] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-25 Thread Biwen Li
, CTRL_STOP_EN is 0x2e, but DT_100THS is 0, max_regiter is 0x2f, then reg will be equal to 0x30, 0x30 < 0x2f is false,so regmap_writeable will return false. How: - increase max_register to skip failed when checking max_register. Signed-off-by: Biwen Li --- Change in

RE: [EXT] Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-26 Thread Biwen Li
> > On 8/26/19 7:29 AM, Biwen Li wrote: > >> > >> On 8/16/19 10:40 PM, Li Yang wrote: > >>> On Fri, Aug 16, 2019 at 11:30 AM Alexandre Belloni > >>> wrote: > >>>> > >>>> On 16/08/2019 10:50:49-0500, Li Yang w

RE: [EXT] Re: [1/3] rtc/fsl: support flextimer for lx2160a

2019-08-26 Thread Biwen Li
> > On 26/08/2019 03:37:43+, Biwen Li wrote: > > > > > > On Fri, 2019-08-23 at 17:57 +0800, Biwen Li wrote: > > > > The patch supports flextimer for lx2160a > > > > > > > > Signed-off-by: Biwen Li > > > > --- > > &

RE: [EXT] Re: [v2] rtc: pcf85363/pcf85263: fix error that failed to run hwclock -w

2019-08-26 Thread Biwen Li
> > Hi, > > On 26/08/2019 09:49:49+0000, Biwen Li wrote: > > > > > > On 8/26/19 7:29 AM, Biwen Li wrote: > > > >> > > > >> On 8/16/19 10:40 PM, Li Yang wrote: > > > >>> On Fri, Aug 16, 2019 at 11:30 AM Alexandre Bellon

RE: [PATCH] ACPI: support for NXP i2c controller

2019-09-04 Thread Biwen Li
> Hi, > > On 02.09.19 23:16, Andy Shevchenko wrote: > > On Mon, Sep 2, 2019 at 11:58 PM Rafael J. Wysocki > wrote: > >> > >> On Thu, Jul 11, 2019 at 12:35 PM Chuanhua Han > wrote: > >>> > >>> Enable NXP i2c controller to boot with ACPI > >>> > >>> Signed-off-by: Meenakshi Aggarwal > >>> Signed-

RE: [PATCH] ACPI: support for NXP i2c controller

2019-09-05 Thread Biwen Li
> > > Hi, > > > > On 02.09.19 23:16, Andy Shevchenko wrote: > > > On Mon, Sep 2, 2019 at 11:58 PM Rafael J. Wysocki > > > > > wrote: > > >> > > >> On Thu, Jul 11, 2019 at 12:35 PM Chuanhua Han > > >> > > wrote: > > >>> > > >>> Enable NXP i2c controller to boot with ACPI > > >>> > > >>> Signed-of

[v2] ACPI: support for NXP i2c controller

2019-09-06 Thread Biwen Li
From: Chuanhua Han Enable NXP i2c controller to boot with ACPI Signed-off-by: Meenakshi Aggarwal Signed-off-by: Udit Kumar Signed-off-by: Chuanhua Han Signed-off-by: Biwen Li --- Change in v2: - Simplify code - Adjust header file order - Not use ACPI_PTR() drivers

RE: [EXT] Re: [v2] ACPI: support for NXP i2c controller

2019-09-10 Thread Biwen Li
、> > Caution: EXT Email > > On Fri, Sep 6, 2019 at 11:03 AM Biwen Li wrote: > > > > From: Chuanhua Han > > > > Enable NXP i2c controller to boot with ACPI > > > > Thanks, the code looks good to me, > Reviewed-by: Andy Shevchenko >

RE: [v2] ACPI: support for NXP i2c controller

2019-09-10 Thread Biwen Li
Hi rafael, wolfram Any comments about this? > > Enable NXP i2c controller to boot with ACPI > > Signed-off-by: Meenakshi Aggarwal > Signed-off-by: Udit Kumar > Signed-off-by: Chuanhua Han > Signed-off-by: Biwen Li > --- > Change in v2: > - Simplif

[2/3] arm: dts: ls1021a: fix that FlexTimer cannot wakeup system in deep sleep

2019-09-16 Thread Biwen Li
The patch fix a bug that FlexTimer cannot wakeup system in deep sleep. Signed-off-by: Biwen Li --- arch/arm/boot/dts/ls1021a.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index e3973b611c3a

[1/3] soc: fsl: fix that flextimer cannot wakeup system in deep sleep on LS1021A

2019-09-16 Thread Biwen Li
G_SPARECR8.(uboot's psci also need reading value from the register SCFG_SPARECR8 to set register RCPM_IPPDEXPCR1) Signed-off-by: Biwen Li --- drivers/soc/fsl/rcpm.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/soc/fsl/rcpm.c b/drivers/soc/f

[3/3] Documentation: dt: binding: fsl: Add 'fsl,rcpm-scfg' property

2019-09-16 Thread Biwen Li
The 'fsl,rcpm-scfg' property is used to fix a bug that FlexTimer cannot wakeup system in deep sleep on LS1021A Signed-off-by: Biwen Li --- .../devicetree/bindings/soc/fsl/rcpm.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bi

RE: [1/3] soc: fsl: fix that flextimer cannot wakeup system in deep sleep on LS1021A

2019-09-16 Thread Biwen Li
ng value from the register SCFG_SPARECR8 > to set register RCPM_IPPDEXPCR1) > > Signed-off-by: Biwen Li > --- > drivers/soc/fsl/rcpm.c | 29 + > 1 file changed, 29 insertions(+) > > diff --git a/drivers/soc/fsl/rcpm.c b/drivers/soc/fsl/rcpm.c i

[v2,3/3] Documentation: dt: binding: fsl: Add 'fsl,rcpm-scfg' property

2019-09-16 Thread Biwen Li
The 'fsl,rcpm-scfg' property is used to fix a bug that FlexTimer cannot wakeup system in deep sleep on LS1021A Signed-off-by: Biwen Li --- Change in v2: - update desc of the property 'fsl,rcpm-scfg' Documentation/devicetree/bindings/soc/fsl/rcpm.txt | 13 +

[v2,1/3] soc: fsl: fix that flextimer cannot wakeup system in deep sleep on LS1021A

2019-09-16 Thread Biwen Li
G_SPARECR8.(uboot's psci also need reading value from the register SCFG_SPARECR8 to set register RCPM_IPPDEXPCR1) Signed-off-by: Biwen Li --- Change in v2: - fix stype problems drivers/soc/fsl/rcpm.c | 27 +++ 1 file changed, 27 insertions(+) diff --gi

[v2,2/3] arm: dts: ls1021a: fix that FlexTimer cannot wakeup system in deep sleep

2019-09-16 Thread Biwen Li
The patch fix a bug that FlexTimer cannot wakeup system in deep sleep. Signed-off-by: Biwen Li --- Change in v2: - None arch/arm/boot/dts/ls1021a.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi

RE: [v2,1/3] soc: fsl: fix that flextimer cannot wakeup system in deep sleep on LS1021A

2019-09-16 Thread Biwen Li
8.(uboot's psci also > need reading value from the register SCFG_SPARECR8 > to set register RCPM_IPPDEXPCR1) > > Signed-off-by: Biwen Li > --- > Change in v2: > - fix stype problems > > drivers/soc/fsl/rcpm.c | 27 +++ > 1

[PATCH] devicetree: property-units: Add kohms unit

2019-09-17 Thread Biwen Li
The patch adds kohms unit Signed-off-by: Biwen Li --- Documentation/devicetree/bindings/property-units.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/property-units.txt b/Documentation/devicetree/bindings/property-units.txt index e9b8360b3288

RE: [EXT] Re: [v4,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-17 Thread Biwen Li
> > Caution: EXT Email > > On Tue, Sep 10, 2019 at 5:53 AM Biwen Li wrote: > > > > Add some properties for pcf85263/pcf85363 as follows: > > - nxp,rtc-interrupt-type: integer type > > - nxp,rtc-interrupt-output-pin: string type > > - quartz-

RE: [EXT] Re: [PATCH] devicetree: property-units: Add kohms unit

2019-09-17 Thread Biwen Li
> > Caution: EXT Email > > Hi Biwen, > > On Tue, Sep 17, 2019 at 10:09 AM Biwen Li wrote: > > The patch adds kohms unit > > > > Signed-off-by: Biwen Li > > Thanks for your patch! > > > --- a/Documentation/devicetree/bindings/property-un

RE: [EXT] Re: [v4,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-17 Thread Biwen Li
> > Caution: EXT Email > > On 10/09/2019 18:42:46+0800, Biwen Li wrote: > > Add some properties for pcf85263/pcf85363 as follows: > > - nxp,rtc-interrupt-type: integer type > > - nxp,rtc-interrupt-output-pin: string type > > - quartz-load-femtofarads: i

[PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
. Add property to skip disabling PCA954x MUX device if device tree contains "i2c-mux-never-disable" for PCA954x device node. Errata ID: E-00013 on board LS2085ARDB and LS2088ARDB (Board revision found on Rev.B, Rev.C and Rev.D) Signed-off-by: Biwen Li --- drivers/i2c/muxes/i2c-mux-pca9

RE: [EXT] Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
> > On 2019-09-29 12:36, Biwen Li wrote: > > On some Layerscape boards like LS2085ARDB and LS2088ARDB, input > > pull-up resistors on PCA954x MUX device are missing on board, So, if > > MUX are disabled after powered-on, input lines will float leading to > > in

RE: [EXT] Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
> > Hello Biwen, > > > + /* Errata ID E-00013 on board LS2088ARDB and LS2088ARDB: > > +* The point here is that you must not disable a mux if there > > +* are no pullups on the input or you mess up the I2C. This > > +* needs to be put into the DTS really as the kerne

[v2,2/2] dt-bindings: i2c-mux-pca954x: Add optional property i2c-mux-never-disable

2019-09-29 Thread Biwen Li
The patch adds an optional property i2c-mux-never-disable Signed-off-by: Biwen Li --- Change in v2: - update documentation Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-mux

[v2,1/2] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
. Add property to skip disabling PCA954x MUX device if device tree contains "i2c-mux-never-disable" for PCA954x device node. Errata ID: E-00013 on board LS2085ARDB and LS2088ARDB (The hardware bug found on board revision Rev.B, Rev.C and Rev.D) Signed-off-by: Biwen Li --- Ch

RE: [EXT] Re: [v4,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr1-alt-addr' property

2019-10-09 Thread Biwen Li
> > On Thu, Sep 26, 2019 at 10:41:18AM +0800, Biwen Li wrote: > > The 'fsl,ippdexpcr1-alt-addr' property is used to handle an errata > > A-008646 on LS1021A > > > > Signed-off-by: Biwen Li > > --- > > Change in v4: > > - rena

[v2] i2c: imx: support slave mode for imx I2C driver

2019-10-09 Thread Biwen Li
The patch supports slave mode for imx I2C driver Signed-off-by: Biwen Li --- Change in v2: - remove MACRO CONFIG_I2C_SLAVE drivers/i2c/busses/i2c-imx.c | 180 --- 1 file changed, 166 insertions(+), 14 deletions(-) diff --git a/drivers/i2c/busses/i2c

[RESEND v2] i2c: imx: support slave mode for imx I2C driver

2019-10-09 Thread Biwen Li
The patch supports slave mode for imx I2C driver Signed-off-by: Biwen Li --- Change in v2: - remove MACRO CONFIG_I2C_SLAVE drivers/i2c/busses/i2c-imx.c | 180 --- 1 file changed, 166 insertions(+), 14 deletions(-) diff --git a/drivers/i2c/busses/i2c

[v5,1/2] dt-bindings: rtc: pcf85263/pcf85363: add some properties

2019-09-18 Thread Biwen Li
Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li --- Change in v5: - Replace nxp,quartz-drive-strength with quartz-drive-strength-ohms - Select ohm unit for quartz drive strength Change in v4: - Drop robust defines in include/dt-bindings/rtc/pcf85363.h

[v5,2/2] rtc: pcf85263/pcf85363: support PM, wakeup device, improve performance

2019-09-18 Thread Biwen Li
: - https://www.nxp.com/docs/en/data-sheet/PCF85263A.pdf - https://www.nxp.com/docs/en/data-sheet/PCF85363A.pdf Signed-off-by: Martin Fuzzey Signed-off-by: Biwen Li --- Change in v5: - Replace nxp,quartz-drive-strength with quartz-drive-strength-ohms - Select ohm unit for

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Biwen Li
> > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle an errata > > A-008646 on LS1021A > > > > Signed-off-by: Biwen Li > > --- > > Change in v3: > > - rename property name > > fsl,rcpm-scfg -> fsl,ippdexpcr-a

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Biwen Li
> > > > > > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle an errata > > > > A-008646 on LS1021A > > > > > > > > Signed-off-by: Biwen Li > > > > --- > > > > Change in v3: &g

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Biwen Li
> > > > > > > > > > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle an > > > > > > errata > > > > > > A-008646 on LS1021A > > > > > > > > > > > > Signed-off-by: Biwe

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Biwen Li
> > > > > > > > > > > > > > > > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle an > > > > > > > > errata > > > > > > > > A-008646 on LS1021A > > > > > &g

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Biwen Li
> > > > > > > > > > > > > > > > > > > > > The 'fsl,ippdexpcr-alt-addr' property is used to handle > > > > > > > > > an errata > > > > > > > > > A-0086

RE: [EXT] Re: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-25 Thread Biwen Li
> Caution: EXT Email > > On Tue, Sep 24, 2019 at 11:27 PM Biwen Li wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The 'fsl,ippdexpcr-alt-addr&

[v4,2/3] arm: dts: ls1021a: fix that FlexTimer cannot wakeup system in deep sleep

2019-09-25 Thread Biwen Li
The patch fixes a bug that FlexTimer cannot wakeup system in deep sleep. Signed-off-by: Biwen Li --- Change in v4: - update property name fsl,ippdexpcr-alt-addr -> fsl,ippdexpcr1-alt-addr Change in v3: - update property name fsl,rcpm-scfg -> fsl,ippdexp

[v4,1/3] soc: fsl: handle RCPM errata A-008646 on SoC LS1021A

2019-09-25 Thread Biwen Li
to set register RCPM_IPPDEXPCR1) Impact: - FlexTimer module will cannot wakeup system in deep sleep on SoC LS1021A Signed-off-by: Biwen Li --- Change in v4: - rename property name fsl,ippdexpcr-alt-addr -> fsl,ippdexpcr1-alt-addr Change in v3: -

[v4,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr1-alt-addr' property

2019-09-25 Thread Biwen Li
The 'fsl,ippdexpcr1-alt-addr' property is used to handle an errata A-008646 on LS1021A Signed-off-by: Biwen Li --- Change in v4: - rename property name fsl,ippdexpcr-alt-addr -> fsl,ippdexpcr1-alt-addr Change in v3: - rename property name fsl,rcp

  1   2   3   >