[PATCH v3 3/5] thermal: rockchip: fixes invalid temperature case

2016-11-28 Thread Caesar Wang
igned-off-by: Caesar Wang --- Changes in v3: - fix trivial thing for error message nd return value. Changes in v2: - As Brian commnets that restructure this to pass error codes back to the upper layers. - Improve the commit message. Changes in v1: None drivers/thermal/rockchip_thermal.c

[PATCH v3 1/5] thermal: rockchip: improve conversion error messages

2016-11-28 Thread Caesar Wang
e're at it, fix the grammar too. Signed-off-by: Brian Norris Signed-off-by: Caesar Wang --- Changes in v3: None Changes in v2: None Changes in v1: - The original Brian posted on https://patchwork.kernel.org/patch/9437686 Note: it'd probably be even nicer to know which sensor th

[PATCH v3 0/5] thermal: fixes the rockchip thermal

2016-11-28 Thread Caesar Wang
thermal: rockchip: improve conversion error messages thermal: rockchip: don't pass table structs by value Caesar Wang (3): thermal: rockchip: fixes invalid temperature case thermal: rockchip: optimize the conversion table thermal: rockchip: handle set_trips without the trip

[PATCH v3 4/5] thermal: rockchip: optimize the conversion table

2016-11-28 Thread Caesar Wang
* $echo 68000 > trip_point_0_temp That will return the max analogic value indicates the invalid before posting this patch. So, this patch will optimize the conversion table to support the other cases. Signed-off-by: Caesar Wang Reviewed-by: Brian Norris --- Changes in v3: None Changes in

[PATCH v3 2/5] thermal: rockchip: don't pass table structs by value

2016-11-28 Thread Caesar Wang
From: Brian Norris This driver passes struct chip_tsadc_table by value throughout; this is inefficient, and AFAICT, there is no reason for it. Let's pass pointers instead. Signed-off-by: Brian Norris Reviewed-by: Caesar Wang --- Changes in v3: None Changes in v2: None Changes in v1:

[PATCH v3 5/5] thermal: rockchip: handle set_trips without the trip points

2016-11-28 Thread Caesar Wang
In some cases, some sensors didn't need the trip points, the set_trips will pass {-INT_MAX, INT_MAX} to trigger tsadc alarm in the end, ignore this case and disable the high temperature interrupt. Signed-off-by: Caesar Wang Reviewed-by: Brian Norris --- Changes in v3: - change the c

Re: [PATCH v4 0/5] thermal: fixes the rockchip thermal

2017-01-02 Thread Caesar Wang
ow patches for your linux kernel? http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/380446.html -Caesar On 12/12/2016 07:05 PM, Caesar Wang wrote: There are five patches posted for upstream. 89267b5 thermal: rockchip: improve conversion error messages a0b5649 thermal: rockc

Re: [PATCH v4 0/5] thermal: fixes the rockchip thermal

2017-01-02 Thread Caesar Wang
在 2017年01月03日 07:57, Randy Li 写道: On 01/02/2017 09:16 PM, Caesar Wang wrote: 在 2016年12月31日 00:11, ayaka 写道: BTW, Caesar have you ever met this at RK3288 at booting time? [8.430582] thermal thermal_zone1: critical temperature reached(125 C),shutting down [8.439038] thermal

Re: [PATCH v2 2/2] drm/panel: simple: Add support BOE nv101wxmn51

2016-12-13 Thread Caesar Wang
在 2016年12月13日 04:22, Stéphane Marchesin 写道: On Wed, Dec 7, 2016 at 11:26 PM, Caesar Wang wrote: 10.1WXGA is a color active matrix TFT LCD module using amorphous silicon TFT's as an active switching devices. It can be supported by the simple-panel driver. Read the panel edid information;

[PATCH v3 1/2] dt-bindings: display: Add BOE nv101wxmn51 panel binding

2016-12-13 Thread Caesar Wang
The BOE 10.1" NV101WXMN51 panel is an WXGA TFT LCD panel. Signed-off-by: Caesar Wang --- Changes in v3: None Changes in v2: None .../devicetree/bindings/display/panel/boe,nv101wxmn51.txt | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 Documentation/devic

[PATCH v3 2/2] drm/panel: simple: Add support BOE nv101wxmn51

2016-12-13 Thread Caesar Wang
vsync Detailed mode2: Clock 57.500 MHz, 216 mm x 135 mm 1280 1328 1360 1440 hborder 0 800 803 808 832 vborder 0 +hsync -vsync Add the both edid to support more modes for BOE nv101wxmn51. Signed-off-by: Caesar Wang --- Changes in v3: - As Stéphane comment

Re: [PATCH] spi: rockchip: support "sleep" pin configuration

2016-12-17 Thread Caesar Wang
在 2016年12月17日 08:59, Brian Norris 写道: In the pattern of many other devices, support a system-sleep pin configuration. Signed-off-by: Brian Norris Tested-by: Caesar Wang --- Documentation/devicetree/bindings/spi/spi-rockchip.txt | 7 +++ drivers/spi/spi-rockchip.c

Re: [PATCH 1/3] thermal: handle get_temp() errors properly

2016-11-18 Thread Caesar Wang
n Norris Tested-by: Caesar Wang [8.111296] thermal thermal_zone4: power_allocator: sustainable_power will be estimated [8.119420] thermal_zone_get_temp:537 the ret=-19, no such device, look like the A/D value had no ready yet. .. Anyway, this patch is useful for improving thermal. -C

Re: [PATCH 2/3] thermal: rockchip: improve conversion error messages

2016-11-18 Thread Caesar Wang
在 2016年11月19日 11:31, Caesar Wang 写道: Brian, 在 2016年11月19日 07:52, Brian Norris 写道: These error messages don't give much information about what went wrong. It would be nice, for one, to see what invalid temperature was being requested when conversion fails. It's also good to return an

Re: [PATCH 2/3] thermal: rockchip: improve conversion error messages

2016-11-18 Thread Caesar Wang
Brian, 在 2016年11月19日 07:52, Brian Norris 写道: These error messages don't give much information about what went wrong. It would be nice, for one, to see what invalid temperature was being requested when conversion fails. It's also good to return an error when we can't handle a conversion properly.

Re: [PATCH 3/3] thermal: rockchip: don't pass table structs by value

2016-11-18 Thread Caesar Wang
在 2016年11月19日 07:52, Brian Norris 写道: This driver passes struct chip_tsadc_table by value throughout; this is inefficient, and AFAICT, there is no reason for it. Let's pass pointers instead. Signed-off-by: Brian Norris Reviewed-by: Caesar Wang Tested-by: Caesar Wang Yup, that make sen

[PATCH v2.1 7/9] arm64: dts: rockchip: add pd_edp node for rk3399

2016-11-20 Thread Caesar Wang
From: zhangqing This patch adds the below pd_edp information for rk3399. 1. add pd_edp node for RK3399 SoC 2. add the pd support for edp Signed-off-by: Elaine Zhang Signed-off-by: Caesar Wang Reviewed-by: Doug Anderson --- Changes in v2.1: (Hope the v3 will fix the display stuff with

Re: [PATCH v2 3/9] arm64: dts: rockchip: add VOP and VOP iommu node for rk3399

2016-11-20 Thread Caesar Wang
在 2016年11月15日 00:05, Heiko Stuebner 写道: Am Mittwoch, 9. November 2016, 21:21:55 CET schrieb Caesar Wang: From: Mark Yao Add the core display-subsystem node and the two display controllers available on the rk3399. Signed-off-by: Mark Yao Signed-off-by: Yakir Yang Signed-off-by: Caesar Wang

[PATCH] drm/bridge: analogix_dp: set the DPCD600 during disabling the psr

2016-12-09 Thread Caesar Wang
Look likes, the BOE panel FW didn't ack the DPCD600 signal from the host device, that will cause the panel hang on the startup display. The root cause we use the fast link mode during enter and exit the psr, this issue is gone if switching the fast link to main link mode. Signed-off-by: C

Re: [PATCH v3 3/5] thermal: rockchip: fixes invalid temperature case

2016-12-12 Thread Caesar Wang
Hi 在 2016年11月30日 14:26, Eduardo Valentin 写道: Hello, On Tue, Nov 29, 2016 at 09:59:28PM -0800, Brian Norris wrote: On Tue, Nov 29, 2016 at 09:02:42PM -0800, Eduardo Valentin wrote: On Tue, Nov 29, 2016 at 01:57:45PM -0800, Brian Norris wrote: I was thinking while reviewing that the binary sea

Re: [PATCH v3 1/5] thermal: rockchip: improve conversion error messages

2016-12-12 Thread Caesar Wang
在 2016年11月30日 13:04, Eduardo Valentin 写道: Hey, On Mon, Nov 28, 2016 at 09:47:29PM -0800, Brian Norris wrote: Hi, + __func__, table.mode); Given that we are improving messages, would it be more informative to say that you have an invalid table mode? I considered the m

Re: [PATCH v3 4/5] thermal: rockchip: optimize the conversion table

2016-12-12 Thread Caesar Wang
在 2016年11月30日 14:29, Eduardo Valentin 写道: Hey, On Mon, Nov 28, 2016 at 07:12:03PM +0800, Caesar Wang wrote: + num = abs(table->id[mid].code - table->id[mid + 1].code); + num *= temp - table->id[mid].temp; + denom = table->id[mid + 1].temp - table->id[mid].te

[PATCH v4 2/5] thermal: rockchip: don't pass table structs by value

2016-12-12 Thread Caesar Wang
From: Brian Norris This driver passes struct chip_tsadc_table by value throughout; this is inefficient, and AFAICT, there is no reason for it. Let's pass pointers instead. Signed-off-by: Brian Norris Reviewed-by: Caesar Wang Signed-off-by: Caesar Wang --- Changes in v4: None Changes

[PATCH v4 1/5] thermal: rockchip: improve conversion error messages

2016-12-12 Thread Caesar Wang
e're at it, fix the grammar too. Signed-off-by: Brian Norris Signed-off-by: Caesar Wang --- Changes in v4: - As Eduardo and Brian commnets on https://patchwork.kernel.org/patch/9449301 Changes in v3: None Changes in v2: None Changes in v1: - The original Brian posted on https://patchw

[PATCH v4 0/5] thermal: fixes the rockchip thermal

2016-12-12 Thread Caesar Wang
nal Brian posted on https://patchwork.kernel.org/patch/9437687 Brian Norris (2): thermal: rockchip: improve conversion error messages thermal: rockchip: don't pass table structs by value Caesar Wang (3): thermal: rockchip: fixes invalid temperature case thermal: rockchip: optimize the conversion tab

[PATCH v4 5/5] thermal: rockchip: handle set_trips without the trip points

2016-12-12 Thread Caesar Wang
In some cases, some sensors didn't need the trip points, the set_trips will pass {-INT_MAX, INT_MAX} to trigger tsadc alarm in the end, ignore this case and disable the high temperature interrupt. Signed-off-by: Caesar Wang Reviewed-by: Brian Norris --- Changes in v4: None Changes

[PATCH v4 4/5] thermal: rockchip: optimize the conversion table

2016-12-12 Thread Caesar Wang
* $echo 68000 > trip_point_0_temp That will return the max analogic value indicates the invalid before posting this patch. So, this patch will optimize the conversion table to support the other cases. Signed-off-by: Caesar Wang --- Changes in v4: - Print a better name. - As Eduardo commented on ht

[PATCH v4 3/5] thermal: rockchip: fixes invalid temperature case

2016-12-12 Thread Caesar Wang
igned-off-by: Caesar Wang --- Changes in v4: None Changes in v3: - fix trivial thing for error message nd return value. Changes in v2: - As Brian commnets that restructure this to pass error codes back to the upper layers. - Improve the commit message. Changes in v1: None drivers/th

Re: iommu/rockchip: Fix bugs and enable on ARM64

2017-03-07 Thread Caesar Wang
Shunqian, something is depending on these patches, can you resend these patches to solve the compile errors? -Caesar 在 2016年07月16日 00:16, Joerg Roedel 写道: On Fri, Jul 15, 2016 at 05:32:02PM +0200, Matthias Brugger wrote: The drm rockchip patches are dependent on iommu/rockchip patches, can yo

Re: [PATCH v2 0/4] clocksource: rockchip/timer: Support rktimer for rk3399

2016-06-16 Thread Caesar Wang
On 2016年06月16日 22:26, Daniel Lezcano wrote: On 06/07/2016 06:54 AM, Caesar Wang wrote: This series patches had been tested on rockchip inside kernel. In order to support the rk3399 SoC timer and turn off interrupts and IPIs to save power in idle. Okay, it still works bootup on rk3288/other

[PATCH 3/4] arm64: dts: rockchip: support gmac for rk3399

2016-08-30 Thread Caesar Wang
This patch adds needed gamc information for rk3399, also support the gmac pd. Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 90 1 file changed, 90 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip

[PATCH 1/4] net: stmmac: dwmac-rk: fixes the gmac resume after PD on/off

2016-08-30 Thread Caesar Wang
From: Roger Chen GMAC Power Domain(PD) will be disabled during suspend. That will causes GRF registers reset. So corresponding GRF registers for GMAC must be setup again. Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 20

[PATCH 0/4] Support the rk3399 gmac pd function

2016-08-30 Thread Caesar Wang
This patch add to handle the gmac pd issue, and support the rk3399 gmac for devicetree. Caesar Wang (2): arm64: dts: rockchip: support gmac for rk3399 arm64: dts: rockchip: enable the gmac for rk3399 evb board David Wu (1): net: stmmac: dwmac-rk: add pd_gmac support for rk3399 Roger

[PATCH 4/4] arm64: dts: rockchip: enable the gmac for rk3399 evb board

2016-08-30 Thread Caesar Wang
We add the required and optional properties for evb board. See the [0] to get the detail information. [0]: Documentation/devicetree/bindings/net/rockchip-dwmac.txt Signed-off-by: Roger Chen Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399-evb.dts | 31

[PATCH 2/4] net: stmmac: dwmac-rk: add pd_gmac support for rk3399

2016-08-30 Thread Caesar Wang
From: David Wu Add the gmac power domain support for rk3399, in order to save more power consumption. Signed-off-by: David Wu Signed-off-by: Caesar Wang --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ethernet/stmicro

[PATCH v2 3/4] clocksource: rockchip: add support for rk3399 SoC

2016-06-06 Thread Caesar Wang
Jianqun Xu Signed-off-by: Caesar Wang --- Changes in v2: - As the Daniel suggests on https://patchwork.kernel.org/patch/9135061/, That will be better for the rockchip timer driver. drivers/clocksource/rockchip_timer.c | 31 ++- 1 file changed, 26 insertions(+), 5

[PATCH v2 1/4] dt-bindings: document rk3399 rk-timer bindings

2016-06-06 Thread Caesar Wang
Lezcano Cc: Thomas Gleixner Cc: Heiko Stuebner Signed-off-by: Caesar Wang Acked-by: Rob Herring --- Changes in v2: - Add the Rob' Ack. .../timer/{rockchip,rk3288-timer.txt => rockchip,rk-timer.txt} | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) rename Documentation/de

[PATCH v2 0/4] clocksource: rockchip/timer: Support rktimer for rk3399

2016-06-06 Thread Caesar Wang
This series patches had been tested on rockchip inside kernel. In order to support the rk3399 SoC timer and turn off interrupts and IPIs to save power in idle. Okay, it still works bootup on rk3288/other SoCs, even though many socs hasn't used the broadcast timer. History version: v1: https://lkm

[PATCH v2 2/4] clocksource: rockchip: add dynamic irq flag to the timer

2016-06-06 Thread Caesar Wang
Xu Signed-off-by: Caesar Wang --- Changes in v2: - s/cpu_all_mask/cpu_possible_mask/, As Daniel comments on https://patchwork.kernel.org/patch/9135053/. drivers/clocksource/rockchip_timer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/clocksource/rockchip_

[PATCH v2 4/4] arm64: dts: rockchip: add rktimer device node for rk3399

2016-06-06 Thread Caesar Wang
From: Huang Tao Select rktimer0 as broadcast timer. Signed-off-by: Huang Tao Cc: Daniel Lezcano Cc: Thomas Gleixner Cc: Heiko Stuebner Tested-by: Jianqun Xu Signed-off-by: Caesar Wang --- Changes in v2: - %s/ARM64/arm64. arch/arm64/boot/dts/rockchip/rk3399.dtsi | 8 1 file

Re: [PATCH v5 3/5] thermal: streamline get_trend callbacks

2016-06-07 Thread Caesar Wang
On 2016年06月07日 14:14, Keerthy wrote: On Monday 06 June 2016 05:14 PM, Caesar Wang wrote: From: Sascha Hauer The .get_trend callback in struct thermal_zone_device_ops has the prototype: int (*get_trend) (struct thermal_zone_device *, int, enum thermal_trend *); whereas the .get_trend

Re: [RESEND PATCH v4 1/5] thermal: Add support for hardware-tracked trip points

2016-06-03 Thread Caesar Wang
Javi, Thanks your comments. On 2016年06月03日 01:30, Javi Merino wrote: Hi Caesar, On Fri, May 27, 2016 at 04:36:44PM +0800, Caesar Wang wrote: From: Sascha Hauer This adds support for hardware-tracked trip points to the device tree thermal sensor framework. The framework supports an

[PATCH v5 5/5] thermal: rockchip: add the set_trips function

2016-06-06 Thread Caesar Wang
leing rate and throttle frequency to limit the temperature rising When performing passive cooling. Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: linux...@vger.kernel.org Tested-by: Stephen Barber --- Changes in v5: - add the tested by Steve. Changes in v4: None Changes

[PATCH v5 2/5] thermal: of: implement .set_trips for device tree thermal zones

2016-06-06 Thread Caesar Wang
From: Sascha Hauer This patch implements .set_trips for device tree thermal zones. As the hardware-tracked trip points is supported by thermal core patch[0]. patch[0] "thermal: Add support for hardware-tracked trip points". Signed-off-by: Sascha Hauer Signed-off-by: Caesar Wang Cc:

[PATCH v5 3/5] thermal: streamline get_trend callbacks

2016-06-06 Thread Caesar Wang
Hauer Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: linux...@vger.kernel.org --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/thermal/of-thermal.c | 11 +- drivers/thermal/ti-soc-thermal/ti-thermal

[PATCH v5 4/5] thermal: bang-bang governor: act on lower trip boundary

2016-06-06 Thread Caesar Wang
governor does not react since The polling driven zones have to be one step cooler before the governor reacts. Signed-off-by: Sascha Hauer Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: linux...@vger.kernel.org Acked-by: Peter Feuerer --- Changes in v5: None Changes in v4: None

[PATCH v5 0/5] Thermal: Support for hardware-tracked trip points

2016-06-06 Thread Caesar Wang
he Javi comments on https://patchwork.kernel.org/patch/9001311/. - add the select if they set the option for devicetree. - Add the peter's ACK. Changes in v2: - update the sysfs-api.txt for set_trips. - add the commit in patch[v2 2/5]. - Update the commit for patch[v2 4/5]. Caesar Wang (1): th

[PATCH v5 1/5] thermal: Add support for hardware-tracked trip points

2016-06-06 Thread Caesar Wang
on an earlier version from Mikko Perttunen Signed-off-by: Sascha Hauer Signed-off-by: Caesar Wang Cc: Zhang Rui Cc: Eduardo Valentin Cc: linux...@vger.kernel.org --- Changes in v5: - add the lock for thermal_zone_set_trips function. - change based on next kernel. Changes in v4: - Missing the lock

Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode

2016-06-28 Thread Caesar Wang
and for small jumps the total delays are in the tens of uS. 1000 is way too much. We'll try to be dynamic and use 10% I'm agree with the dynamic and use 10%. Signed-off-by: Douglas Anderson Tested-by: Caesar Wang Tested for my rk3399 board. That's still happy

[PATCH] arm64: dts: rockchip: add the power domain node for rk3399

2016-06-29 Thread Caesar Wang
off ... pd_iep off pd_vcodec off pd_vdu off QOS: localhost / # cat sys/kernel/debug/pm_qos/ cpu_dma_latency network_latency memory_bandwidthnetwork_throughput Signed-off-by: Elaine Zhang Signed-off-by: Caesar W

Re: [PATCH v1 3/3] ARM64: dts: rk3368: Add mailbox device nodes

2016-03-10 Thread Caesar Wang
于 2015年10月27日 15:31, Caesar Wang 写道: This adds mailbox device nodes in dts. Mailbox is used by the Rockchip CPU cores to communicate requests to MCU processor. Signed-off-by: Caesar Wang --- Changes in v1: - PATCH[3/3] dts: - fix "processormZ"--> "processor",the mis

[PATCH 0/6] arc_emac: fixes the emac issues oand cleanup emac drivers

2016-03-11 Thread Caesar Wang
: dts: rockchip: add support emac for RK3036 Add the emac node info for rk3036 dts/dtsi. --- Thanks your reviewing! :) Caesar Wang (4): net: arc_emac: make the rockchip emac document more compatible net: arc_emac: add phy-reset-* are optional for device tree net: arc_emac: support the phy

[PATCH 1/6] net: arc_emac: make the rockchip emac document more compatible

2016-03-11 Thread Caesar Wang
This patch adds the all kings of SoCs to compatible. The rk3036 emac has been landed in mainline, so we should add rk3036 emac for document. Signed-off-by: Caesar Wang --- Documentation/devicetree/bindings/net/emac_rockchip.txt | 8 +--- 1 file changed, 5 insertions(+), 3 deletions

[PATCH 5/6] clk: rockchip: rk3036: fix and add node id for emac clock

2016-03-11 Thread Caesar Wang
the freq which integer multiples of 50MHz, so we add these emac node for reference. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang --- drivers/clk/rockchip/clk-rk3036.c | 9 ++--- include/dt-bindings/clock/rk3036-cru.h | 2 ++ 2 files changed, 8 insertions(+), 3 deletions

[PATCH 4/6] net: arc: trivial: cleanup the emac driver

2016-03-11 Thread Caesar Wang
This patch will make the driver more readability The emac has the error and warnings if you run 'scripts/checkpatch.pl -f --subjective xxx' to check. Let's clean up such trivial details. Signed-off-by: Caesar Wang --- drivers/net/ethernet/arc/emac.

[PATCH 3/6] net: arc_emac: support the phy reset for emac driver

2016-03-11 Thread Caesar Wang
://patchwork.kernel.org/patch/8186801/. In some cases, the emac couldn't work if you don't have reset the phy. Let's add it to happy work. Signed-off-by: Caesar Wang --- drivers/net/ethernet/arc/emac_main.c | 41 1 file changed, 41 insertions(+) diff --git a/drive

[PATCH 6/6] ARM: dts: rockchip: add support emac for RK3036

2016-03-11 Thread Caesar Wang
From: zhengxing This patch adds the emac device node for rk3036. We need to let mac clock under the DPLL which is able to provide the accurate 50MHz what mac_ref need, since that will cause some unstable things if the cpufreq is working. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang

[PATCH 2/6] net: arc_emac: add phy-reset-* are optional for device tree

2016-03-11 Thread Caesar Wang
-by: Caesar Wang --- Documentation/devicetree/bindings/net/arc_emac.txt | 10 ++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/net/arc_emac.txt b/Documentation/devicetree/bindings/net/arc_emac.txt index a1d71eb..6389b00 100644 --- a/Documentation

Re: [PATCH 5/6] clk: rockchip: rk3036: fix and add node id for emac clock

2016-03-11 Thread Caesar Wang
build error, I will check and resend with your emac changing. 在 2016年03月11日 19:15, Heiko Stübner 写道: Hi Caesar, Am Freitag, 11. März 2016, 18:55:30 schrieb Caesar Wang: From: zhengxing In the emac driver, we need to refer HCLK_MAC since there are only 3PLLs (APLL/GPLL/DPLL) on the rk3036

Re: [PATCH 0/6] arc_emac: fixes the emac issues oand cleanup emac drivers

2016-03-11 Thread Caesar Wang
Hi Sergei, 在 2016年03月11日 21:46, Sergei Shtylyov 写道: Hello. On 3/11/2016 1:55 PM, Caesar Wang wrote: This series patches are based on kernel 4.5-rc7+ version. Linux version 4.5.0-rc7-next-20160310+ (wxt@nb) (...) #23 SMP Fri Mar 11 15:55:53 [...] 1) This series has 6 patches: (1---&g

Re: [PATCH 3/6] net: arc_emac: support the phy reset for emac driver

2016-03-12 Thread Caesar Wang
Hi Sergei, 在 2016年03月12日 02:35, Sergei Shtylyov 写道: On 03/11/2016 01:55 PM, Caesar Wang wrote: This patch adds to support the emac phy reset. 1) phy-reset-gpios: The phy-reset-gpios is an optional property for arc emac device tree boot. Change the binding document to match the driver code

Re: [PATCH 0/6] arc_emac: fixes the emac issues oand cleanup emac drivers

2016-03-12 Thread Caesar Wang
在 2016年03月12日 02:46, Sergei Shtylyov 写道: Hello. On 03/11/2016 05:48 PM, Caesar Wang wrote: [...] Hi Rob, David: PATCH[1/6-2/6]: > net: arc_emac: make the rockchip emac document more compatible net: arc_emac: add phy-reset-* are optional for device tree The patches change the rockc

[PATCH v2 0/9] arc_emac: fixes the emac issues and cleanup emac drivers

2016-03-13 Thread Caesar Wang
otice the build error since overflow in implicit constant conversion. Caesar Wang (4): net: arc_emac: make the rockchip emac document more compatible net: arc_emac: add phy reset is optional for device tree net: arc_emac: support the phy reset for emac driver net: arc: trivial: cleanup the

[PATCH v2 2/9] net: arc_emac: add phy reset is optional for device tree

2016-03-13 Thread Caesar Wang
-reset-duration for device tree probe, so that the boards that need a longer reset duration can specify it in their device tree. Anyway, we can add the above property for arc emac. Signed-off-by: Caesar Wang --- Changes in v2: None Documentation/devicetree/bindings/net/arc_emac.txt | 7

[PATCH v2 1/9] net: arc_emac: make the rockchip emac document more compatible

2016-03-13 Thread Caesar Wang
Add the rk3036 SoCs to match driver for document since he emac driver has supported the rk3036 SoCs. This patch adds the rk3036/rk3066/rk3188 SoCS to compatible for rockchip emac ducument. Also, that will suit for other SoCs in the future. Signed-off-by: Caesar Wang --- Changes in v2

[PATCH v2 7/9] clk: rockchip: add clock-id for rk3036 emac pll source clock

2016-03-13 Thread Caesar Wang
From: Xing Zheng Suitable PLLs for the emac on the rk3036 are difficult to find and one of them is the (continuously changing) APLL. So in most cases it will be necessary to select a PLL manually. So add a clock-id for it. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang --- Changes in

[PATCH v2 5/9] clk: rockchip: add node-id for rk3036 emac hclk

2016-03-13 Thread Caesar Wang
From: Xing Zheng Add the node-id for the emac hclk to the binding header. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang --- Changes in v2: None include/dt-bindings/clock/rk3036-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/rk3036-cru.h b

[PATCH v2 6/9] clk: rockchip: associate the rk3036 HCLK_EMAC clock-id

2016-03-13 Thread Caesar Wang
From: Xing Zheng Associate the new clock id the clock. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang --- Changes in v2: None drivers/clk/rockchip/clk-rk3036.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3036.c b/drivers/clk

[PATCH v2 9/9] ARM: dts: rockchip: add support emac for RK3036

2016-03-13 Thread Caesar Wang
From: zhengxing This patch adds the emac device node for rk3036. We need to let mac clock under the DPLL which is able to provide the accurate 50MHz what mac_ref need, since that will cause some unstable things if the cpufreq is working. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang

[PATCH v2 4/9] net: arc: trivial: cleanup the emac driver

2016-03-13 Thread Caesar Wang
This patch will make the driver more readability The emac has the error and warnings if you run 'scripts/checkpatch.pl -f --subjective xxx' to check. Let's clean up such trivial details. Signed-off-by: Caesar Wang --- Changes in v2: - As the robot notice the build error si

[PATCH v2 3/9] net: arc_emac: support the phy reset for emac driver

2016-03-13 Thread Caesar Wang
: Caesar Wang --- Changes in v2: - As the pervious version, Sergei and Heiko comments on https://patchwork.kernel.org/patch/8564571/. - Nevermind, add signed-off since Heiko the original patch, refer the Heiko's test patch on https://github.com/mmind/linux-rockchip/c

[PATCH v2 8/9] clk: rockchip: associate SCLK_MAC_PLL and disable reparenting on rk3036

2016-03-13 Thread Caesar Wang
ng on set_rate calls. Signed-off-by: Heiko Stuebner Signed-off-by: Caesar Wang --- Changes in v2: None drivers/clk/rockchip/clk-rk3036.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/rockchip/clk-rk3036.c b/drivers/clk/rockchip/clk-rk3036.c index cc66e5f..7c

[PATCH v2.1 3/9] net: arc_emac: support the phy reset for emac driver

2016-03-13 Thread Caesar Wang
: Caesar Wang --- Changes in v2.1: - missing the include head file. Changes in v2: - As the pervious version, Sergei and Heiko comments on https://patchwork.kernel.org/patch/8564571/. - Nevermind, add signed-off since Heiko the original patch, refer the Heiko's test patch on https://githu

Re: [PATCH v2.1 3/9] net: arc_emac: support the phy reset for emac driver

2016-03-13 Thread Caesar Wang
在 2016年03月14日 02:02, David Miller 写道: When you submit a new version of a patch that's part of a series, you must submit the entire series anew, not just the patch which is changing. Thanks for reminding me. I think it's not good to respin-respin since the build error. So that just send a bit

[PATCH] pinctrl: rockchip: add support the get_direction

2016-03-13 Thread Caesar Wang
the gpio53 should be out value, but the direction is the default value 'in', since the get_direction didn't supported in rockchip pinctrl. So, we should add this patch to support it. Change-Id: I237c2e85ac7680b3d0de15923985b4827def Reported-by: Jeffy Chen Signed-off-by: Caesar Wang

Re: [PATCH] pinctrl: rockchip: add support the get_direction

2016-03-13 Thread Caesar Wang
在 2016年03月14日 13:44, Caesar Wang 写道: This patch adds the get_direction to support the gpio interface. the gpio direction is not used on rockchip platform when use the gpio debugfs. Tested on kylin board. (RK3036 SoCs) The repro steps: $/sys/class/gpio/ echo 53 > export $/sys/class/g

[RESEND PATCH] pinctrl: rockchip: add support the get_direction

2016-03-13 Thread Caesar Wang
the gpio53 should be out value, but the direction is the default value 'in', since the get_direction didn't supported in rockchip pinctrl. So, we should add this patch to support it. Reported-by: Jeffy Chen Signed-off-by: Caesar Wang Cc: Linus Walleij Cc: Heiko Stuebner Cc: linux-g.

[PATCH v3 1/9] net: arc_emac: make the rockchip emac document more compatible

2016-03-14 Thread Caesar Wang
Add the rk3036 SoCs to match driver for document since the emac driver has supported the rk3036 SoCs. This patch adds the rk3036/rk3066/rk3188 SoCS to compatible for rockchip emac ducument. Also, that will suit for other SoCs in the future. Signed-off-by: Caesar Wang Cc: Rob Herring Cc

[PATCH v3 0/9] arc_emac: fixes the emac issues and cleanup emac drivers

2016-03-14 Thread Caesar Wang
1c508dfa8c79f1709aa5775e :) - As the robot notice the build error since overflow in implicit constant conversion. - rename phy-reset-gpio to reset-gpios. Caesar Wang (4): net: arc_emac: make the rockchip emac document more compatible net: arc_emac: add phy reset is optional for devi

[PATCH v3 2/9] net: arc_emac: add phy reset is optional for device tree

2016-03-14 Thread Caesar Wang
phy-reset-duration for device tree probe, so that the boards that need a longer reset duration can specify it in their device tree. Anyway, we can add the above property for arc emac. Signed-off-by: Caesar Wang Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: net...@vger.kernel.org Cc: "

[PATCH v3 4/9] net: arc: trivial: cleanup the emac driver

2016-03-14 Thread Caesar Wang
This patch will make the driver more readability The emac has the error and warnings if you run 'scripts/checkpatch.pl -f --subjective xxx' to check. Let's clean up such trivial details. Signed-off-by: Caesar Wang Cc: Jiri Kosina Cc: "David S. Miller" Cc: Ale

[PATCH v3 8/9] clk: rockchip: associate SCLK_MAC_PLL and disable reparenting on rk3036

2016-03-14 Thread Caesar Wang
ng on set_rate calls. Signed-off-by: Heiko Stuebner Cc: Michael Turquette Cc: Heiko Stuebner Cc: Stephen Boyd Cc: linux-...@vger.kernel.org Signed-off-by: Caesar Wang --- Changes in v3: - Add the Cc people. Changes in v2: None drivers/clk/rockchip/clk-rk3036.c | 2 +- 1 file changed, 1 inse

[PATCH v3 9/9] ARM: dts: rockchip: add to support emac for rk3036 SoCs

2016-03-14 Thread Caesar Wang
From: Xing Zheng This patch adds the emac device node for rk3036 SoCs. We need to let mac clock under the DPLL which is able to provide the accurate 50MHz what mac_ref need, since that will cause some unstable things if the cpufreq is working. Signed-off-by: Xing Zheng Signed-off-by: Caesar

[PATCH v3 6/9] clk: rockchip: associate the rk3036 HCLK_EMAC clock-id

2016-03-14 Thread Caesar Wang
From: Xing Zheng Associate the new clock id the clock. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang Cc: Xing Zheng Cc: Michael Turquette Cc: Heiko Stuebner Cc: Stephen Boyd Cc: linux-...@vger.kernel.org Cc: linux-rockc...@lists.infradead.org --- Changes in v3: - Add the Cc

[PATCH v3 5/9] clk: rockchip: add node-id for rk3036 emac hclk

2016-03-14 Thread Caesar Wang
From: Xing Zheng Add the node-id for the emac hclk to the binding header. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang Cc: Xing Zheng Cc: Michael Turquette Cc: Heiko Stuebner Cc: Stephen Boyd Cc: linux-...@vger.kernel.org Cc: linux-rockc...@lists.infradead.org --- Changes in v3

[PATCH v3 3/9] net: arc_emac: support the phy reset for emac driver

2016-03-14 Thread Caesar Wang
: Caesar Wang Cc: "David S. Miller" Cc: net...@vger.kernel.org Cc: Alexander Kochetkov Cc: Sergei Shtylyov --- Changes in v3: - Caused the build error since the missing include head file. - %s/reset/phy-reset to match the device tree. - Add the Cc people Changes in v2: - As the pervio

[PATCH v3 7/9] clk: rockchip: add clock-id for rk3036 emac pll source clock

2016-03-14 Thread Caesar Wang
From: Xing Zheng Suitable PLLs for the emac on the rk3036 are difficult to find and one of them is the (continuously changing) APLL. So in most cases it will be necessary to select a PLL manually. So add a clock-id for it. Signed-off-by: Xing Zheng Signed-off-by: Caesar Wang Cc: Xing Zheng

Re: [PATCH v4 0/4] add reboot mode driver

2016-03-02 Thread Caesar Wang
- use macro defined in rockchip_boot-mode.h for reboot-mode DT node Andy Yan (4): dt-bindings: power: reset: add document for reboot-mode driver power: reset: add reboot mode driver ARM: dts: rockchip: add syscon-reboot-mode DT node ARM64: dts: rockchip: add syscon-reboot-mode DT node

Re: [PATCH] thermal: rockchip: disable thermal->clk in err case

2016-03-02 Thread Caesar Wang
Hi , Sorry for the missing it. 在 2016年02月15日 10:27, Shawn Lin 写道: Disable thermal->clk when enabling pclk fails in resume routine. Signed-off-by: Shawn Lin Reviewed-by: Caesar Wang --- drivers/thermal/rockchip_thermal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) d

[PATCH] ASoC: rt5616: allow to build with CONFIG_SND_SOC_RT5616

2016-03-03 Thread Caesar Wang
This patch fixes that hasn't built the rt5616 driver with 'CONFIG_SND_SOC_RT5616=y' in .config. The tristate is the prompt on the 'make menuconfig', in other words, that can't show the prompt and select it if we don't say what's the tristate. Signed-off

Re: [PATCH v2] serial: core: remove baud_rates when serial console setup

2016-03-05 Thread Caesar Wang
ified on RK3228/RK3229 SoCs. Tested-by: Caesar Wang --- Changes in v2: remove baud_rates as Alan's suggestion. drivers/tty/serial/serial_core.c | 33 ++--- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/drivers/tty/serial/serial_core.c b/d

Re: [PATCH v5 3/6] rockchip: power-domain: add support for sub-power domains

2016-03-08 Thread Caesar Wang
在 2016年03月03日 16:03, Elaine Zhang 写道: This patch adds support for making one power domain a sub-domain of other domain. This is useful for modeling power dependences, which needs to have more than one power domain enabled to be operational. Signed-off-by: Elaine Zhang --- drivers/soc/rockch

Re: [PATCH v5 4/6] dt/bindings: power: add RK3399 SoCs header for power-domain

2016-03-08 Thread Caesar Wang
在 2016年03月03日 16:03, Elaine Zhang 写道: According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang --- include/dt-bindings/power/rk3399-power.h | 53 1 file changed, 53 insertions(+) create mode 100644 include/dt-bindings/pow

Re: [PATCH v5 6/6] rockchip: power-domain: Modify power domain driver for rk3399

2016-03-08 Thread Caesar Wang
在 2016年03月03日 16:09, Elaine Zhang 写道: This driver is modified to support RK3399 SoC. Signed-off-by: Elaine Zhang Reviewed-by: Caesar Wang --- drivers/soc/rockchip/pm_domains.c | 55 +++ 1 file changed, 55 insertions(+) diff --git a/drivers/soc

Re: [PATCH v5 5/6] dt/bindings: rockchip: modify document of Rockchip power domains

2016-03-08 Thread Caesar Wang
在 2016年03月03日 16:09, Elaine Zhang 写道: Add binding documentation for the power domains found on Rockchip RK3399 SoCs. RK3399 pd on/off not need to enable clk which in this pd. So remove the clocks in the rk3399 pd example. Signed-off-by: Elaine Zhang --- .../bindings/soc/rockchip/power_domai

Re: [PATCH v3 2/9] net: arc_emac: add phy reset is optional for device tree

2016-03-19 Thread Caesar Wang
Hi Sergei, 在 2016年03月16日 21:57, Sergei Shtylyov 写道: Hello. On 3/14/2016 11:01 AM, Caesar Wang wrote: This patch adds the following property for arc_emac. 1) phy-reset-gpios: The phy-reset-gpio is an optional property for arc emac device tree boot. Change the binding document to match the

Re: [PATCH v14 0/17] Add Analogix Core Display Port Driver

2016-03-19 Thread Caesar Wang
Hi all, I pick this series up and test on C101PA chromebook, after Heiko update the 3 patches. [v14.1,09/17] drm: rockchip: dp: add rockchip platform dp driver [v14.1,04/17] drm: bridge: analogix/dp: fix some obvious code style [v14.1,01/17] drm: bridge: analogix/dp: split exynos dp driver to

Re: [PATCH v14.1 09/17] drm: rockchip: dp: add rockchip platform dp driver

2016-03-19 Thread Caesar Wang
在 2016年03月18日 05:51, Heiko Stübner 写道: Rockchip have three clocks for dp controller, we leave pclk_edp to analogix_dp driver control, and keep the sclk_edp_24m and sclk_edp in platform driver. Signed-off-by: Yakir Yang Tested-by: Javier Martinez Canillas Tested-by: Caesar Wang As the

Re: [PATCH v5 1/8] ARM: dts: rockchip: add hdmi/vop device node for rk3036

2016-02-20 Thread Caesar Wang
在 2016年02月21日 08:03, Heiko Stuebner 写道: Am Dienstag, 2. Februar 2016, 11:40:50 schrieb Caesar Wang: This patch adds the needed display info for rk3036 SOCs. The rk3036 support two overlay plane and one hwc plane, it supports IOMMU, and its IOMMU same as rk3288's. Meanwhile, add the inno

Re: [PATCH v5 2/8] clk: rockchip: rk3036: fix and add node id for emac clock

2016-02-20 Thread Caesar Wang
Heiko, 在 2016年02月21日 10:26, Heiko Stuebner 写道: Hi Caesar, Xing, Am Dienstag, 2. Februar 2016, 11:48:19 schrieb Caesar Wang: From: zhengxing In the emac driver, we need to refer HCLK_MAC since there are only 3PLLs (APLL/GPLL/DPLL) on the rk3036, most clock are under the GPLL, and it is

<    3   4   5   6   7   8   9   10   >