[PATCH] arm64: dts: rockchip: corrected uart1 clock-names for rk3328

2018-07-06 Thread Huibin Hong
Corrected the uart clock-names or the uart driver might fail. Signed-off-by: Huibin Hong --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index

[PATCH] arm64: dts: rockchip: corrected uart1 clock-names for rk3328

2018-07-06 Thread Huibin Hong
Corrected the uart clock-names or the uart driver might fail. Signed-off-by: Huibin Hong --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi index

[PATCH] spi: rockchip: configure CTRLR1 according to size and data frame

2017-08-15 Thread Huibin Hong
CTRLR1 is number of data frames, when rx only. When data frame is 8 bit, CTRLR1 is len-1. When data frame is 16 bit, CTRLR1 is (len/2)-1. Signed-off-by: Huibin Hong <huibin.h...@rock-chips.com> --- drivers/spi/spi-rockchip.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-)

[PATCH] spi: rockchip: configure CTRLR1 according to size and data frame

2017-08-15 Thread Huibin Hong
CTRLR1 is number of data frames, when rx only. When data frame is 8 bit, CTRLR1 is len-1. When data frame is 16 bit, CTRLR1 is (len/2)-1. Signed-off-by: Huibin Hong --- drivers/spi/spi-rockchip.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi

[PATCH v2] watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

2017-08-14 Thread Huibin Hong
If top is 15, (1 << (16 + top)) may be negative. Signed-off-by: Huibin Hong <huibin.h...@rock-chips.com> --- Changes in v2: - Rebase mainline Linux 4.13-rc5 drivers/watchdog/dw_wdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/dw_wdt

[PATCH v2] watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

2017-08-14 Thread Huibin Hong
If top is 15, (1 << (16 + top)) may be negative. Signed-off-by: Huibin Hong --- Changes in v2: - Rebase mainline Linux 4.13-rc5 drivers/watchdog/dw_wdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c

[PATCH] RM: dts: rockchip: rk322x: add spi node and spi pinctrl

2017-08-06 Thread Huibin Hong
Add spi node and spi pinctrl for rk322x Signed-off-by: Huibin Hong <huibin.h...@rock-chips.com> --- arch/arm/boot/dts/rk322x.dtsi | 50 +++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi

[PATCH] RM: dts: rockchip: rk322x: add spi node and spi pinctrl

2017-08-06 Thread Huibin Hong
Add spi node and spi pinctrl for rk322x Signed-off-by: Huibin Hong --- arch/arm/boot/dts/rk322x.dtsi | 50 +++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index f3e4ffd..1a7afef 100644

[PATCH v2] ARM: dts: rockchip: rk322x: add spi node and spi pinctrl

2017-08-02 Thread Huibin Hong
Add spi node and spi pinctrl for rk322x Signed-off-by: Huibin Hong <huibin.h...@rock-chips.com> --- Changes in v2: - Remove the changeid, and add commit for this patch arch/arm/boot/dts/rk322x.dtsi | 50 +++ 1 file changed, 50 insertions(+) diff

[PATCH v2] ARM: dts: rockchip: rk322x: add spi node and spi pinctrl

2017-08-02 Thread Huibin Hong
Add spi node and spi pinctrl for rk322x Signed-off-by: Huibin Hong --- Changes in v2: - Remove the changeid, and add commit for this patch arch/arm/boot/dts/rk322x.dtsi | 50 +++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH] ARM: dts: rockchip: rk322x: add spi node and spi pinctrl

2017-08-02 Thread Huibin Hong
Change-Id: I5bf28e2319ceb90bdc52d732cce2f646b29cae36 Signed-off-by: Huibin Hong <huibin.h...@rock-chips.com> --- arch/arm/boot/dts/rk322x.dtsi | 50 +++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/bo

[PATCH] ARM: dts: rockchip: rk322x: add spi node and spi pinctrl

2017-08-02 Thread Huibin Hong
Change-Id: I5bf28e2319ceb90bdc52d732cce2f646b29cae36 Signed-off-by: Huibin Hong --- arch/arm/boot/dts/rk322x.dtsi | 50 +++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index 678daf7..b47f58e

[PATCH] watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

2017-07-27 Thread Huibin Hong
If top is 15, (1 << (16 + top)) may be negative. Change-Id: I76e4a603a54f093e64a4b266008570e3afcdb35a Signed-off-by: Huibin Hong <huibin.h...@rock-chips.com> --- drivers/watchdog/dw_wdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/dw_wdt

[PATCH] watchdog: dw_wdt: fix overflow issue in dw_wdt_top_in_seconds

2017-07-27 Thread Huibin Hong
If top is 15, (1 << (16 + top)) may be negative. Change-Id: I76e4a603a54f093e64a4b266008570e3afcdb35a Signed-off-by: Huibin Hong --- drivers/watchdog/dw_wdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/dw_wdt.c b/drivers/watchdog/dw_wdt.c

[PATCH] arm64: dts: rockchip: add dmac nodes for rk3368 SoCs

2017-03-22 Thread Huibin Hong
Add dmac bus and dmac peri dts nodes for peripherals, such as I2S, SPI, UART and so on. Signed-off-by: Huibin Hong <huibin.h...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3368.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm64/bo

[PATCH] arm64: dts: rockchip: add dmac nodes for rk3368 SoCs

2017-03-22 Thread Huibin Hong
Add dmac bus and dmac peri dts nodes for peripherals, such as I2S, SPI, UART and so on. Signed-off-by: Huibin Hong --- arch/arm64/boot/dts/rockchip/rk3368.dtsi | 29 + 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch

[PATCH] arm64: dts: rockchip: add dmac nodes for rk3368 SoCs

2017-03-03 Thread Huibin Hong
Addd dmac bus and dmac peri dts nodes for peripherals, such as I2S, SPI, UART and so on. Signed-off-by: Huibin Hong <huibin.h...@rock-chips.com> --- arch/arm64/boot/dts/rockchip/rk3368.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/bo

[PATCH] arm64: dts: rockchip: add dmac nodes for rk3368 SoCs

2017-03-03 Thread Huibin Hong
Addd dmac bus and dmac peri dts nodes for peripherals, such as I2S, SPI, UART and so on. Signed-off-by: Huibin Hong --- arch/arm64/boot/dts/rockchip/rk3368.dtsi | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch

[PATCH] spi/rockchip: Make sure spi clk is on in rockchip_spi_set_cs

2016-02-24 Thread Huibin Hong
kchip RK3xxx") Cc: Addy Ke <addy...@rockchip.com> Cc: shawn.lin <shawn@kernel-upstream.org> Signed-off-by: Huibin Hong <huibin.h...@rock-chips.com> --- drivers/spi/spi-rockchip.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-

[PATCH] spi/rockchip: Make sure spi clk is on in rockchip_spi_set_cs

2016-02-24 Thread Huibin Hong
kchip RK3xxx") Cc: Addy Ke Cc: shawn.lin Signed-off-by: Huibin Hong --- drivers/spi/spi-rockchip.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 79a8bc4..035767c 100644 --- a/drivers/spi/spi-rockch