RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-26 Thread Yuantian Tang
the driver usable on all QorIQ platforms On 21 October 2014 14:29, Yuantian Tang yuantian.t...@freescale.com wrote: If I do so, menuconfig will display like this(on PPC): PowerPC CPU frequency scaling drivers QorIQ CPU Frequency scaling --- * CPU frequency

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-19 Thread Yuantian Tang
Thanks for your comments. Will address them in next version. Also some explanations inline for your comments. Thanks, Yuantian -Original Message- From: Kumar Gala [mailto:ga...@kernel.crashing.org] Sent: Friday, October 17, 2014 4:04 PM To: Tang Yuantian-B29983 Cc:

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-20 Thread Yuantian Tang
Thanks for your comments. Your comments will be addressed in next version. Some explanations inline. Thanks, Yuantian -Original Message- From: Viresh Kumar [mailto:viresh.ku...@linaro.org] Sent: Friday, October 17, 2014 4:09 PM To: Tang Yuantian-B29983 Cc: Rafael J. Wysocki; Linux

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-21 Thread Yuantian Tang
#ifndef CONFIG_SMP static inline const struct cpumask *cpu_core_mask(int cpu) { @@ -79,6 +75,79 @@ static inline const struct cpumask *cpu_core_mask(int cpu) } #endif +#if defined(CONFIG_PPC_E500MC) Probably should just be CONFIG_PPC, but do we need this at all. Can't we just use

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-21 Thread Yuantian Tang
-config PPC_CORENET_CPUFREQ - tristate CPU frequency scaling driver for Freescale E500MC SoCs - depends on PPC_E500MC OF COMMON_CLK +config QORIQ_CPUFREQ + tristate CPU frequency scaling driver for Freescale QorIQ SoCs + depends on OF COMMON_CLK

RE: [PATCHv4] clk: ppc-corenet: rename to ppc-qoriq and add CLK_OF_DECLARE support

2014-10-07 Thread Yuantian Tang
-Original Message- From: Wood Scott-B07421 Sent: Tuesday, September 30, 2014 7:58 AM To: Tang Yuantian-B29983 Cc: Mike Turquette; linuxppc-...@lists.ozlabs.org; linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; Lu Jingchang-B35083 Subject: Re: [PATCHv4] clk:

RE: [PATCH 2/2] cpufreq: qoriq: rename the driver

2014-11-21 Thread Yuantian Tang
Hello Viresh, When I use -C -M options, checkpatch reports error: [tangyt@titan linux-pm]$ ./scripts/checkpatch.pl 0002-cpufreq-qoriq-rename-the-driver.patch WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #15: drivers/cpufreq/{ppc-corenet-cpufreq.c =

RE: [PATCHv4] clk: ppc-corenet: rename to ppc-qoriq and add CLK_OF_DECLARE support

2014-09-27 Thread Yuantian Tang
-Original Message- From: Linuxppc-dev [mailto:linuxppc-dev-bounces+b29983=freescale@lists.ozlabs.org] On Behalf Of Mike Turquette Sent: Saturday, September 27, 2014 7:29 AM To: Wood Scott-B07421 Cc: linuxppc-...@lists.ozlabs.org; linux-kernel@vger.kernel.org;

[PATCH v5] powerpc/rcpm: add RCPM driver

2015-06-26 Thread Yuantian . Tang
From: Tang Yuantian yuantian.t...@freescale.com There is a RCPM (Run Control/Power Management) in Freescale QorIQ series processors. The device performs tasks associated with device run control and power management. The driver implements some features: mask/unmask irq, enter/exit low power

RE: [PATCH] ahci: qoriq: Fix a compiling warning

2015-10-15 Thread Yuantian Tang
Thanks Tejun. Regards, Yuantian > -Original Message- > From: Tejun Heo [mailto:hte...@gmail.com] On Behalf Of Tejun Heo > Sent: Friday, October 16, 2015 12:04 AM > To: Arnd Bergmann > Cc: linux-arm-ker...@lists.infradead.org; Tang Yuantian-B29983 >

RE: [PATCH] ahci: added a new driver for supporting Freescale AHCI sata

2015-09-05 Thread Yuantian Tang
escale QorIQ series sata, like ls1021a ls2085a ls1043a, is > > compatible with serial ATA 3.0 and AHCI 1.3 specification. > > > > Signed-off-by: Yuantian Tang <yuantian.t...@freescale.com> > > Thanks for the patch looks good overall. > > You need to add a

RE: [PATCH] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-10 Thread Yuantian Tang
Hi Tejun, Could you please take the version 1 patch? The version 2 patch can't address these warnings, and the version 1 can definitely remove them. In this case, that would cause any hidden bugs, so no worries. Regards, Yuantian > -Original Message- > From: Tejun Heo

RE: [PATCH 2/3] devicetree:bindings: add devicetree bindings for Freescale AHCI

2015-09-09 Thread Yuantian Tang
> -Original Message- > From: pku@gmail.com [mailto:pku@gmail.com] On Behalf Of Li Yang > Sent: Thursday, September 10, 2015 7:19 AM > To: Tang Yuantian-B29983 > Cc: Hans de Goede ; t...@kernel.org; linux- > i...@vger.kernel.org;

RE: [PATCH] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-10 Thread Yuantian Tang
> -Original Message- > From: Tejun Heo [mailto:hte...@gmail.com] On Behalf Of Tejun Heo > Sent: Wednesday, September 09, 2015 10:02 PM > To: Tang Yuantian-B29983 > Cc: hdego...@redhat.com; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org;

RE: [PATCH v3] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-14 Thread Yuantian Tang
Hi Tejun, Fengguang, Please help to verify if this patch can remove the warnings. Thanks, Yuantian > -Original Message- > From: yuantian.t...@freescale.com [mailto:yuantian.t...@freescale.com] > Sent: Monday, September 14, 2015 3:13 PM > To: hdego...@redhat.com > Cc: t...@kernel.org;

RE: [PATCH] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-14 Thread Yuantian Tang
uantian, > > It's cross compiling on ARCH=openrisc. > > Thanks, > Fengguang > > On Mon, Sep 14, 2015 at 03:02:27AM +, Yuantian Tang wrote: > > Hello Tejun, > > > > The toolchain I used is: > > gcc version 4.8.3 20140401 (prerelease) (Linaro GCC 4.8-20

RE: [PATCH] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-13 Thread Yuantian Tang
ject: Re: [PATCH] ahci: qoriq: fixed using uninitialized variable warnings > > Hello, Yuantian. > > On Fri, Sep 11, 2015 at 05:27:25AM +, Yuantian Tang wrote: > > Hi Tejun, > > > > Could you please take the version 1 patch? > > The version 2 patch can'

[PATCH 1/2 v2] dt-bindings: qoriq-clock: Add coreclk

2017-03-19 Thread Yuantian Tang
From: Scott Wood ls1012a has separate input root clocks for core PLLs versus the platform PLL, with the latter described as sysclk in the hw docs. Update the qoriq-clock binding to allow a second input clock, named "coreclk". If present, this clock will be used for the core

[PATCH 2/2 v2] clk: qoriq: Separate root input clock for core PLLs on ls1012a

2017-03-19 Thread Yuantian Tang
From: Scott Wood ls1012a has separate input root clocks for core PLLs versus the platform PLL, with the latter described as sysclk in the hw docs. If a second input clock, named "coreclk", is present, this clock will be used for the core PLLs. Signed-off-by: Scott Wood

[PATCH 1/2] clk: qoriq: add clock configuration for ls1088a soc

2017-04-05 Thread Yuantian Tang
Clock on ls1088a chip takes primary clocking input from the external SYSCLK signal. The SYSCLK input (frequency) is multiplied using multiple phase locked loops (PLL) to create a variety of frequencies which can then be passed to a variety of internal logic, including cores and peripheral IP

[PATCH 2/2] clk: qoriq: add pll clock to clock lookup table

2017-04-05 Thread Yuantian Tang
Register each PLL and its division clocks to clock lookup table to facilitate the clock look up for clock consumer. Signed-off-by: Tang Yuantian --- drivers/clk/clk-qoriq.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/clk-qoriq.c

[PATCH v2] cpufreq: qoriq: enhance bus frequency calculation

2017-03-09 Thread Yuantian Tang
On some platforms, property device-type may be missed in soc node in dts which caused the bus-frequency can not be obtained correctly. This patch enhanced the bus-frequency calculation. When property device-type is missed in dts, bus-frequency will be obtained by looking up clock table to get

[PATCH] cpufreq: qoriq: enhance bus frequency calculation

2017-03-09 Thread YuanTian Tang
From: Tang Yuantian On some platforms, property device-type may be missed in soc node in dts which caused the bus-frequency can not be obtained correctly. This patch enhanced the bus-frequency calculation. When property device-type is missed in dts, bus-frequency will be

[PATCH] ahci: qoriq: correct the sata ecc setting error

2017-03-09 Thread Yuantian Tang
Sata ecc is controlled by only 1 bit which is 24bit in big-endian in ecc register. So only setting 24bit to disable sata ecc prevents other bits from being overwritten in ecc register. Signed-off-by: Tang Yuantian --- drivers/ata/ahci_qoriq.c | 6 -- 1 file changed, 4

[PATCH] ARM: dts: ls1021a: update the clockgen node

2017-06-09 Thread Yuantian Tang
qoriq clock driver has been updated to parse the clock configuration information defined in driver itself not in dts. Since the new implementation and the bindings have been merged, it is time to update the clock related node and remove redundent clock configuration information from the dts.

[PATCH] ahci: qoriq: add ls1088a platforms support

2017-06-02 Thread Yuantian Tang
Ls1088a is new introduced arm-based soc with sata support with following features: * Complies with the serial ATA 3.0 specification and the AHCI 1.3.1 specification * Contains a high-speed descriptor-based DMA controller * Supports the following: * Speeds of 1.5 Gb/s (first-generation SATA),

[PATCH 2/2 v2] arm64: dts: ls1088a: update sata node

2017-06-07 Thread Yuantian Tang
1. Remove ls1043a compatible string from node 2. Fix the sata ecc register address error Signed-off-by: Tang Yuantian --- v2: - no change, resend it with binding update arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 1/2] dt-bindings: ahci-fsl-qoriq: add ls1088a chip name to the list

2017-06-07 Thread Yuantian Tang
Signed-off-by: Tang Yuantian --- Documentation/devicetree/bindings/ata/ahci-fsl-qoriq.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/ata/ahci-fsl-qoriq.txt b/Documentation/devicetree/bindings/ata/ahci-fsl-qoriq.txt

[PATCH v3] clk: qoriq: add more chips support

2018-10-31 Thread Yuantian Tang
Add more chip-specific compatible strings to support more Socs. Signed-off-by: Yuantian Tang --- v3: - undo deleting old bindings - split dts and driver code to different patchset v2: - remove all legacy code drivers/clk/clk-qoriq.c | 11 +++ 1 files changed, 11 insertions

[PATCH] arm64: dts: nxp: ls208xa: add more thermal zone support

2018-10-30 Thread Yuantian Tang
Ls208xa has several thermal sensors. Add all the sensor id to dts to enable them. To make the dts cleaner, re-organize the nodes to split out the common part so that it can be shared with other SoCs. Signed-off-by: Yuantian Tang --- arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi |8

[PATCH] arm64: dts: nxp: add more thermal zone support

2018-11-01 Thread Yuantian Tang
To enable all the supported thermal sensors, add sensor id information to thermal zone node. Dts for ls1012a, ls1046a, ls1043a, ls1088a are updated. Signed-off-by: Yuantian Tang --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 39 +++ arch/arm64/boot/dts/freescale/fsl

[PATCH] ahci: qoriq: add ls1088a platforms support

2017-06-02 Thread Yuantian Tang
Ls1088a is new introduced arm-based soc with sata support with following features: * Complies with the serial ATA 3.0 specification and the AHCI 1.3.1 specification * Contains a high-speed descriptor-based DMA controller * Supports the following: * Speeds of 1.5 Gb/s (first-generation SATA),

[PATCH] arm64: dts: lx2160a: add tmu device node

2019-09-02 Thread Yuantian Tang
Add the TMU (Thermal Monitoring Unit) device node to enable TMU feature. Signed-off-by: Yuantian Tang --- .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 108 +++--- 1 file changed, 92 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b

[PATCH v3] thermal: qoriq: Update the settings for TMUv2

2020-05-25 Thread Yuantian Tang
For TMU v2, TMSAR registers need to be set properly to get the accurate temperature values. Also the temperature read needs to be converted to degree Celsius since it is in degrees Kelvin. Signed-off-by: Yuantian Tang --- v3: - use kelvin_to_millicelsius() to convert the degree Kelvin

[PATCH] arm64: dts: ls1028a: add one more thermal zone support

2020-05-25 Thread Yuantian Tang
There are 2 thermal zones in ls1028a soc. Current dts only includes one. This patch adds the other thermal zone node in dts to enable it. Signed-off-by: Yuantian Tang --- .../arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 22 ++- 1 file changed, 21 insertions(+), 1 deletion

[PATCH v4] thermal: qoriq: Update the settings for TMUv2

2020-05-26 Thread Yuantian Tang
For TMU v2, TMSAR registers need to be set properly to get the accurate temperature values. Also the temperature read needs to be converted to degree Celsius since it is in degrees Kelvin. Signed-off-by: Yuantian Tang --- v4: - replace the hard-coded number with constant variables

[PATCH] arm64: dts: ls1028a: Add temperature sensor node

2019-05-23 Thread Yuantian Tang
Add nxp sa56004 chip node for temperature monitor. Signed-off-by: Yuantian Tang --- arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 5 + arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 5 + 2 files changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a

[PATCH v3] arm64: dts: ls1028a: Add temperature sensor node

2019-06-10 Thread Yuantian Tang
Add nxp sa56004 chip node for temperature monitor. Signed-off-by: Yuantian Tang --- v3: - sort the node in i2c address v2: - change the node name and add vcc-supply arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 15 +++ arch/arm64/boot/dts/freescale/fsl

[PATCH v3] arm64: dts: ls1028a: Add temperature sensor node

2019-08-05 Thread Yuantian Tang
Add nxp sa56004 chip node for temperature monitor. Signed-off-by: Yuantian Tang --- v3: - sort the node in i2c address v2: - change the node name and add vcc-supply arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 15 +++ arch/arm64/boot/dts/freescale/fsl

[PATCH v2] arm64: dts: ls1028a: Add Thermal Monitor Unit node

2019-08-05 Thread Yuantian Tang
The Thermal Monitoring Unit (TMU) monitors and reports the temperature from 2 remote temperature measurement sites located on ls1028a chip. Add TMU dts node to enable this feature. Signed-off-by: Yuantian Tang Acked-by: Eduardo Valentin --- v2: - remove multiple sensors support

[PATCH v2] arm64: dts: lx2160a: add tmu device node

2019-10-10 Thread Yuantian Tang
Add the TMU (Thermal Monitoring Unit) device node to enable TMU feature. Signed-off-by: Yuantian Tang --- v2: - sort the node and use micro to replace hardcoded number .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 108 +++--- 1 file changed, 92 insertions(+), 16 deletions

[PATCH v2] arm64: dts: ls1028a: fix a compatible issue

2019-10-10 Thread Yuantian Tang
The I2C multiplexer used on ls1028aqds is PCA9547, not PCA9847. If the wrong compatible was used, this chip will not be able to be probed correctly and hence fail to work. Signed-off-by: Yuantian Tang --- v2: - refine the description arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 2

[PATCH v3] thermal: qoriq: add thermal monitor unit version 2 support

2019-10-10 Thread Yuantian Tang
Thermal Monitor Unit v2 is introduced on new Layscape SoC. Compared to v1, TMUv2 has a little different register layout and digital output is fairly linear. Signed-off-by: Yuantian Tang Reviewed-by: Anson Huang --- v3: - rebase to v5.4-rc1 drivers/thermal/qoriq_thermal.c | 120

[PATCH v2] thermal: qoriq: add thermal monitor unit version 2 support

2019-09-23 Thread Yuantian Tang
Thermal Monitor Unit v2 is introduced on new Layscape SoC. Compared to v1, TMUv2 has a little different register layout and digital output is fairly linear. Signed-off-by: Yuantian Tang --- v2: - refine the code: remove redundant variable, rename variable etc. drivers/thermal

[PATCH v2] arm64: dts: ls1028a: Add temperature sensor node

2019-05-27 Thread Yuantian Tang
Add nxp sa56004 chip node for temperature monitor. Signed-off-by: Yuantian Tang --- v2: - change the node name and add vcc-supply arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 15 +++ arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 15 +++ 2 files

[PATCH] thermal: qoriq: add thermal monitor unit version 2 support

2019-06-03 Thread Yuantian Tang
Thermal Monitor Unit v2 is introduced on new Layscape SoC. Compared to v1, TMUv2 has a little different register layout and digital output is fairly linear. Signed-off-by: Yuantian Tang --- drivers/thermal/qoriq_thermal.c | 122 +--- 1 file changed, 98 insertions

[PATCH] arm64: dts: nxp: ls208xa: add more thermal zone support

2018-10-30 Thread Yuantian Tang
Ls208xa has several thermal sensors. Add all the sensor id to dts to enable them. To make the dts cleaner, re-organize the nodes to split out the common part so that it can be shared with other SoCs. Signed-off-by: Yuantian Tang --- arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi |8

[PATCH v3] clk: qoriq: add more chips support

2018-10-31 Thread Yuantian Tang
Add more chip-specific compatible strings to support more Socs. Signed-off-by: Yuantian Tang --- v3: - undo deleting old bindings - split dts and driver code to different patchset v2: - remove all legacy code drivers/clk/clk-qoriq.c | 11 +++ 1 files changed, 11 insertions

[PATCH] arm64: dts: ls1028a: Add Thermal Monitor Unit node

2019-04-25 Thread Yuantian Tang
The Thermal Monitoring Unit (TMU) monitors and reports the temperature from 2 remote temperature measurement sites located on ls1028a chip. Add TMU dts node to enable this feature. Signed-off-by: Yuantian Tang --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 114 1

[PATCH v6] arm64: dts: ls1088a: add one more thermal zone node

2019-04-22 Thread Yuantian Tang
Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster sensor is used to monitor the temperature of core and SoC platform is for platform. The current dts only support the first sensor. This patch adds the second sensor node to dts to enable it. Signed-off-by: Yuantian Tang

[PATCH] dt-bindings: thermal: Make cooling-maps property optional

2019-05-15 Thread Yuantian Tang
There may be no cooling device on system, or there are no enough cooling devices for each thermal zone in multiple thermal zone cases since cooling devices can't be shared. So make this property optional to remove such limitations. Signed-off-by: Yuantian Tang --- .../devicetree/bindings

[PATCH v5] arm64: dts: ls1088a: add one more thermal zone node

2019-04-11 Thread Yuantian Tang
Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster sensor is used to monitor the temperature of core and SoC platform is for platform. The current dts only support the first sensor. This patch adds the second sensor node to dts to enable it. Signed-off-by: Yuantian Tang

[PATCH v4] arm64: dts: ls1088a: add one more thermal zone node

2019-03-31 Thread Yuantian Tang
Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster sensor is used to monitor the temperature of core and SoC platform is for platform. The current dts only support the first sensor. This patch adds the second sensor node to dts to enable it. Signed-off-by: Yuantian Tang

[PATCH v2] arm64: dts: ls1088a: add one more thermal zone node

2019-03-03 Thread Yuantian Tang
Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster sensor is used to monitor the temperature of core and SoC platform is for platform. The current dts only support the first sensor. This patch adds the second sensor node to dts to enable it. Signed-off-by: Yuantian Tang

[PATCH v3] arm64: dts: ls1088a: add one more thermal zone node

2019-03-03 Thread Yuantian Tang
Ls1088a has 2 thermal sensors, core cluster and SoC platform. Core cluster sensor is used to monitor the temperature of core and SoC platform is for platform. The current dts only support the first sensor. This patch adds the second sensor node to dts to enable it. Signed-off-by: Yuantian Tang

[PATCH] arm64: dts: ls1088a: add one more thermal zone node

2019-02-24 Thread Yuantian Tang
Ls1088a has 2 thermal sensors. This patch adds the second node to dts to enable it. Signed-off-by: Yuantian Tang --- arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 43 +-- 1 files changed, 39 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl

[PATCH] arm64: dts: nxp: add more thermal zone support

2018-11-01 Thread Yuantian Tang
To enable all the supported thermal sensors, add sensor id information to thermal zone node. Dts for ls1012a, ls1046a, ls1043a, ls1088a are updated. Signed-off-by: Yuantian Tang --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 39 +++ arch/arm64/boot/dts/freescale/fsl

RE: [PATCH 2/2] cpufreq: qoriq: rename the driver

2014-11-21 Thread Yuantian Tang
Hello Viresh, When I use -C -M options, checkpatch reports error: [tangyt@titan linux-pm]$ ./scripts/checkpatch.pl 0002-cpufreq-qoriq-rename-the-driver.patch WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #15: drivers/cpufreq/{ppc-corenet-cpufreq.c =>

RE: [PATCHv4] clk: ppc-corenet: rename to ppc-qoriq and add CLK_OF_DECLARE support

2014-09-27 Thread Yuantian Tang
> -Original Message- > From: Linuxppc-dev > [mailto:linuxppc-dev-bounces+b29983=freescale@lists.ozlabs.org] On > Behalf Of Mike Turquette > Sent: Saturday, September 27, 2014 7:29 AM > To: Wood Scott-B07421 > Cc: linuxppc-...@lists.ozlabs.org; linux-kernel@vger.kernel.org; >

RE: [PATCH] ahci: added a new driver for supporting Freescale AHCI sata

2015-09-05 Thread Yuantian Tang
en put in uboot. So whether > > SATA works or not heavily depends on uboot. > > This patch will add a new driver to support QorIQ sata which removes > > the dependency on any other boot loader. > > Freescale QorIQ series sata, like ls1021a ls2085a ls1043a, is > > compatib

RE: [PATCH 2/3] devicetree:bindings: add devicetree bindings for Freescale AHCI

2015-09-09 Thread Yuantian Tang
> -Original Message- > From: pku@gmail.com [mailto:pku@gmail.com] On Behalf Of Li Yang > Sent: Thursday, September 10, 2015 7:19 AM > To: Tang Yuantian-B29983 > Cc: Hans de Goede ; t...@kernel.org; linux- > i...@vger.kernel.org; lkml ; > devicet...@vger.kernel.org > Subject: Re:

RE: [PATCH] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-10 Thread Yuantian Tang
> -Original Message- > From: Tejun Heo [mailto:hte...@gmail.com] On Behalf Of Tejun Heo > Sent: Wednesday, September 09, 2015 10:02 PM > To: Tang Yuantian-B29983 > Cc: hdego...@redhat.com; linux-...@vger.kernel.org; linux- > ker...@vger.kernel.org; devicet...@vger.kernel.org > Subject:

RE: [PATCH] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-10 Thread Yuantian Tang
Hi Tejun, Could you please take the version 1 patch? The version 2 patch can't address these warnings, and the version 1 can definitely remove them. In this case, that would cause any hidden bugs, so no worries. Regards, Yuantian > -Original Message- > From: Tejun Heo

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-19 Thread Yuantian Tang
Thanks for your comments. Will address them in next version. Also some explanations inline for your comments. Thanks, Yuantian > -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Friday, October 17, 2014 4:04 PM > To: Tang Yuantian-B29983 > Cc:

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-20 Thread Yuantian Tang
Thanks for your comments. Your comments will be addressed in next version. Some explanations inline. Thanks, Yuantian > -Original Message- > From: Viresh Kumar [mailto:viresh.ku...@linaro.org] > Sent: Friday, October 17, 2014 4:09 PM > To: Tang Yuantian-B29983 > Cc: Rafael J. Wysocki;

RE: [PATCHv4] clk: ppc-corenet: rename to ppc-qoriq and add CLK_OF_DECLARE support

2014-10-07 Thread Yuantian Tang
> -Original Message- > From: Wood Scott-B07421 > Sent: Tuesday, September 30, 2014 7:58 AM > To: Tang Yuantian-B29983 > Cc: Mike Turquette; linuxppc-...@lists.ozlabs.org; > linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org; Lu Jingchang-B35083 > Subject: Re: [PATCHv4]

[PATCH v5] powerpc/rcpm: add RCPM driver

2015-06-26 Thread Yuantian . Tang
From: Tang Yuantian There is a RCPM (Run Control/Power Management) in Freescale QorIQ series processors. The device performs tasks associated with device run control and power management. The driver implements some features: mask/unmask irq, enter/exit low power states, freeze time base, etc.

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-26 Thread Yuantian Tang
PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ > platforms > > On 21 October 2014 14:29, Yuantian Tang > wrote: > > If I do so, menuconfig will display like this(on PPC): > > PowerPC CPU frequency scaling drivers > > QorIQ CPU Frequency

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-21 Thread Yuantian Tang
> > #ifndef CONFIG_SMP > > static inline const struct cpumask *cpu_core_mask(int cpu) { @@ -79,6 > > +75,79 @@ static inline const struct cpumask *cpu_core_mask(int cpu) } > > #endif > > > > +#if defined(CONFIG_PPC_E500MC) > > Probably should just be CONFIG_PPC, but do we need this at all. Can't

RE: [PATCH] cpufreq: qoriq: Make the driver usable on all QorIQ platforms

2014-10-21 Thread Yuantian Tang
> > -config PPC_CORENET_CPUFREQ > > - tristate "CPU frequency scaling driver for Freescale E500MC SoCs" > > - depends on PPC_E500MC && OF && COMMON_CLK > > +config QORIQ_CPUFREQ > > + tristate "CPU frequency scaling driver for Freescale QorIQ SoCs" > > + depends on OF &&

[PATCH 1/2 v2] dt-bindings: qoriq-clock: Add coreclk

2017-03-19 Thread Yuantian Tang
From: Scott Wood ls1012a has separate input root clocks for core PLLs versus the platform PLL, with the latter described as sysclk in the hw docs. Update the qoriq-clock binding to allow a second input clock, named "coreclk". If present, this clock will be used for the core PLLs.

[PATCH 2/2 v2] clk: qoriq: Separate root input clock for core PLLs on ls1012a

2017-03-19 Thread Yuantian Tang
From: Scott Wood ls1012a has separate input root clocks for core PLLs versus the platform PLL, with the latter described as sysclk in the hw docs. If a second input clock, named "coreclk", is present, this clock will be used for the core PLLs. Signed-off-by: Scott Wood Signed-off-by: Tang

[PATCH] cpufreq: qoriq: enhance bus frequency calculation

2017-03-09 Thread YuanTian Tang
From: Tang Yuantian On some platforms, property device-type may be missed in soc node in dts which caused the bus-frequency can not be obtained correctly. This patch enhanced the bus-frequency calculation. When property device-type is missed in dts, bus-frequency will be obtained by looking up

[PATCH] ahci: qoriq: correct the sata ecc setting error

2017-03-09 Thread Yuantian Tang
Sata ecc is controlled by only 1 bit which is 24bit in big-endian in ecc register. So only setting 24bit to disable sata ecc prevents other bits from being overwritten in ecc register. Signed-off-by: Tang Yuantian --- drivers/ata/ahci_qoriq.c | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH 2/2 v2] arm64: dts: ls1088a: update sata node

2017-06-07 Thread Yuantian Tang
1. Remove ls1043a compatible string from node 2. Fix the sata ecc register address error Signed-off-by: Tang Yuantian --- v2: - no change, resend it with binding update arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 1/2] dt-bindings: ahci-fsl-qoriq: add ls1088a chip name to the list

2017-06-07 Thread Yuantian Tang
Signed-off-by: Tang Yuantian --- Documentation/devicetree/bindings/ata/ahci-fsl-qoriq.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/ata/ahci-fsl-qoriq.txt b/Documentation/devicetree/bindings/ata/ahci-fsl-qoriq.txt index

[PATCH] ARM: dts: ls1021a: update the clockgen node

2017-06-09 Thread Yuantian Tang
qoriq clock driver has been updated to parse the clock configuration information defined in driver itself not in dts. Since the new implementation and the bindings have been merged, it is time to update the clock related node and remove redundent clock configuration information from the dts.

[PATCH 1/2] clk: qoriq: add clock configuration for ls1088a soc

2017-04-05 Thread Yuantian Tang
Clock on ls1088a chip takes primary clocking input from the external SYSCLK signal. The SYSCLK input (frequency) is multiplied using multiple phase locked loops (PLL) to create a variety of frequencies which can then be passed to a variety of internal logic, including cores and peripheral IP

[PATCH 2/2] clk: qoriq: add pll clock to clock lookup table

2017-04-05 Thread Yuantian Tang
Register each PLL and its division clocks to clock lookup table to facilitate the clock look up for clock consumer. Signed-off-by: Tang Yuantian --- drivers/clk/clk-qoriq.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/clk-qoriq.c b/drivers/clk/clk-qoriq.c index

[PATCH v2] cpufreq: qoriq: enhance bus frequency calculation

2017-03-09 Thread Yuantian Tang
On some platforms, property device-type may be missed in soc node in dts which caused the bus-frequency can not be obtained correctly. This patch enhanced the bus-frequency calculation. When property device-type is missed in dts, bus-frequency will be obtained by looking up clock table to get

RE: [PATCH] ahci: qoriq: Fix a compiling warning

2015-10-15 Thread Yuantian Tang
Thanks Tejun. Regards, Yuantian > -Original Message- > From: Tejun Heo [mailto:hte...@gmail.com] On Behalf Of Tejun Heo > Sent: Friday, October 16, 2015 12:04 AM > To: Arnd Bergmann > Cc: linux-arm-ker...@lists.infradead.org; Tang Yuantian-B29983 > ; linux-...@vger.kernel.org; linux- >

RE: [PATCH] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-13 Thread Yuantian Tang
able warnings > > Hello, Yuantian. > > On Fri, Sep 11, 2015 at 05:27:25AM +, Yuantian Tang wrote: > > Hi Tejun, > > > > Could you please take the version 1 patch? > > The version 2 patch can't address these warnings, and the version 1 can > definitely remo

RE: [PATCH] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-14 Thread Yuantian Tang
> > Thanks, > Fengguang > > On Mon, Sep 14, 2015 at 03:02:27AM +, Yuantian Tang wrote: > > Hello Tejun, > > > > The toolchain I used is: > > gcc version 4.8.3 20140401 (prerelease) (Linaro GCC 4.8-2014.04) > > > > I have not found this warn

RE: [PATCH v3] ahci: qoriq: fixed using uninitialized variable warnings

2015-09-14 Thread Yuantian Tang
Hi Tejun, Fengguang, Please help to verify if this patch can remove the warnings. Thanks, Yuantian > -Original Message- > From: yuantian.t...@freescale.com [mailto:yuantian.t...@freescale.com] > Sent: Monday, September 14, 2015 3:13 PM > To: hdego...@redhat.com > Cc: t...@kernel.org;