[PATCH] powerpc/corenet: enable eSDHC

2015-05-06 Thread Yangbo Lu
Signed-off-by: Yangbo Lu --- arch/powerpc/configs/corenet32_smp_defconfig | 2 ++ arch/powerpc/configs/corenet64_smp_defconfig | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/configs/corenet32_smp_defconfig b/arch/powerpc/configs/corenet32_smp_defconfig index ca7957b

[PATCH] powerpc/dts: Add 1588 timer node for eTSEC

2015-05-06 Thread Yangbo Lu
/powerpc/boot/dts/p2020rdb-pc.dtsi Signed-off-by: Yangbo Lu --- arch/powerpc/boot/dts/bsc9131rdb.dtsi | 12 arch/powerpc/boot/dts/bsc9132qds.dtsi | 12 arch/powerpc/boot/dts/p1010rdb.dtsi| 12 arch/powerpc/boot/dts/p1020rdb-pd.dts | 12 arch

[PATCH v2] powerpc/dts: Add and fix 1588 timer node for eTSEC

2015-05-06 Thread Yangbo Lu
timer node in file: arch/powerpc/boot/dts/p2020rdb-pc.dtsi Signed-off-by: Yangbo Lu --- Changes for v2: - Changed hex value to decimal value in dts - Modified commit message - Modified 1588 node in p2020rdb-pc.dtsi --- arch/powerpc/boot/dts/bsc9131rdb.dtsi | 12

[PATCH 1/2] powerpc/dts: add eSDHC compatible list

2015-05-13 Thread Yangbo Lu
Add eSDHC compatible list for P2041/P3041/P4080/P5020/P5040. Signed-off-by: Yangbo Lu --- arch/powerpc/boot/dts/fsl/p2041si-post.dtsi | 1 + arch/powerpc/boot/dts/fsl/p3041si-post.dtsi | 1 + arch/powerpc/boot/dts/fsl/p4080si-post.dtsi | 1 + arch/powerpc/boot/dts/fsl/p5020si-post.dtsi | 1

[PATCH 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card

2015-05-13 Thread Yangbo Lu
Enable interrupt mode to detect card instead of polling mode for P1020/P4080/P5020/P5040/T1040 by removing the quirk SDHCI_QUIRK_BROKEN_CARD_DETECTION. This could improve data transferring performance and avoid the call trace caused by polling card status sometime. Signed-off-by: Yangbo Lu

[PATCH v2, 1/2] powerpc/dts: add eSDHC compatible list

2015-05-13 Thread Yangbo Lu
Add eSDHC compatible list for P2041/P3041/P4080/P5020/P5040. Signed-off-by: Yangbo Lu --- arch/powerpc/boot/dts/fsl/p2041si-post.dtsi | 1 + arch/powerpc/boot/dts/fsl/p3041si-post.dtsi | 1 + arch/powerpc/boot/dts/fsl/p4080si-post.dtsi | 1 + arch/powerpc/boot/dts/fsl/p5020si-post.dtsi | 1

[PATCH v2, 2/2] mmc: sdhci-pltfm: enable interrupt mode to detect card

2015-05-13 Thread Yangbo Lu
Enable interrupt mode to detect card instead of polling mode for P1020/P4080/P5020/P5040/T1040 by removing the quirk SDHCI_QUIRK_BROKEN_CARD_DETECTION. This could improve data transferring performance and avoid the call trace caused by polling card status sometime. Signed-off-by: Yangbo Lu

[PATCH 1/3] mmc: sdhci-of-esdhc: convert to use esdhc_get_property()

2015-07-21 Thread Yangbo Lu
Move sdhci_get_of_property and other getting property code from sdhci_esdhc_probe into esdhc_get_property. Signed-off-by: Yangbo Lu --- drivers/mmc/host/sdhci-of-esdhc.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/drivers/mmc/host/sdhci

[PATCH 3/3] mmc: sdhci-of-esdhc: add workaround for T4240 incorrect HOSTVER value

2015-07-21 Thread Yangbo Lu
For T4240-R1.0-R2.0, the HOSTVER register has incorrcet vender version value and sdhc spec version value. This will break down the ADMA data transfer. So add workaround to get right value VVN=0x13, SVN = 0x1. Signed-off-by: Yangbo Lu --- drivers/mmc/host/sdhci-esdhc.h| 5 + drivers/mmc

[PATCH 2/3] powerpc/85xx: add 'cpu-rev' property for cpus node

2015-07-21 Thread Yangbo Lu
Add 'cpu-rev' property for cpus node to support getting cpu revision from dts, since it's not good to get cpu revision using powerpc specific function(like SVR_REV()) in common drivers. Signed-off-by: Yangbo Lu --- arch/powerpc/platforms/85xx/common.

[PATCH v3] powerpc/dts: Add and fix 1588 timer node for eTSEC

2015-07-29 Thread Yangbo Lu
P2020RDB-PC, registers' values should be calculated based on default 1588 reference clock(300MHz) not 250MHz, and fix this in file: arch/powerpc/boot/dts/p2020rdb-pc.dtsi Signed-off-by: Yangbo Lu --- Changes for v3: - Changed 'tmr-add' to hex value - Modified commit mess

[v6, 3/5] dt: move guts devicetree doc out of powerpc directory

2016-03-09 Thread Yangbo Lu
Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property. Signed-off-by: Yangbo Lu --- Changes for v2: - None Changes for v3: - None

[v6, 0/5] Fix eSDHC host version register bug

2016-03-09 Thread Yangbo Lu
s are to enable GUTS driver support to get SVR in eSDHC driver and fix host version for T4240. Yangbo Lu (5): ARM64: dts: ls2080a: add device configuration node soc: fsl: add GUTS driver for QorIQ platforms dt: move guts devicetree doc out of powerpc directory powerpc/fsl: move mpc85xx

[v6, 2/5] soc: fsl: add GUTS driver for QorIQ platforms

2016-03-09 Thread Yangbo Lu
The global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control. This patch adds GUTS driver to manage and access global utilities block. Signed-off-by: Yangbo Lu

[v6, 5/5] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-03-09 Thread Yangbo Lu
numbers break down the ADMA data transfer. Signed-off-by: Yangbo Lu Acked-by: Ulf Hansson --- Changes for v2: - Got SVR through iomap instead of dts Changes for v3: - Managed GUTS through syscon instead of iomap in eSDHC driver Changes for v4: - Got SVR by GUTS driver instead

[v6, 1/5] ARM64: dts: ls2080a: add device configuration node

2016-03-09 Thread Yangbo Lu
Add the dts node for device configuration unit that provides general purpose configuration and status for the device. Signed-off-by: Yangbo Lu --- Changes for v2: - None Changes for v3: - None Changes for v4: - None Changes for v5: - Added this patch Changes for

[v6, 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-03-09 Thread Yangbo Lu
Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. It has been used for mpc85xx and it will be used for ARM-based SoC as well. Signed-off-by: Yangbo Lu --- Changes for v2: - None Changes for v3: - None Changes for v4: - None Changes for v5

RE: [v6, 5/5] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-03-14 Thread Yangbo Lu
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Monday, March 14, 2016 6:26 AM > To: linuxppc-dev@lists.ozlabs.org > Cc: Yangbo Lu; devicet...@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; linux-ker...@vger.kernel.org; linux- >

RE: [v6, 5/5] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-03-24 Thread Yangbo Lu
> -Original Message- > From: Scott Wood > Sent: Saturday, March 19, 2016 2:28 AM > To: Arnd Bergmann; Rob Herring > Cc: Yangbo Lu; linuxppc-dev@lists.ozlabs.org; devicet...@vger.kernel.org; > ulf.hans...@linaro.org; Zhao Qiang; Russell King; Bhupesh Sharma; > net...@v

RE: [v6, 3/5] dt: move guts devicetree doc out of powerpc directory

2016-03-24 Thread Yangbo Lu
> -Original Message- > From: Scott Wood > Sent: Saturday, March 19, 2016 2:16 AM > To: Rob Herring; Yangbo Lu > Cc: devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-ker...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; linux- > c...@v

RE: [v6, 2/5] soc: fsl: add GUTS driver for QorIQ platforms

2016-03-25 Thread Yangbo Lu
> -Original Message- > From: Scott Wood > Sent: Saturday, March 19, 2016 6:55 AM > To: Yangbo Lu; devicet...@vger.kernel.org; linux-arm- > ker...@lists.infradead.org; linux-ker...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; linux-...@vger.kernel.org; linux- >

[v7, 3/5] dt: move guts devicetree doc out of powerpc directory

2016-03-31 Thread Yangbo Lu
Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property. Signed-off-by: Yangbo Lu --- Changes for v2: - None Changes for v3: - None

[v7, 4/5] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-03-31 Thread Yangbo Lu
Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. It has been used for mpc85xx and it will be used for ARM-based SoC as well. Signed-off-by: Yangbo Lu Acked-by: Wolfram Sang --- Changes for v2: - None Changes for v3: - None Changes for v4

[v7, 0/5] Fix eSDHC host version register bug

2016-03-31 Thread Yangbo Lu
s are to enable GUTS driver support to get SVR in eSDHC driver and fix host version for T4240. Yangbo Lu (5): ARM64: dts: ls2080a: add device configuration node soc: fsl: add GUTS driver for QorIQ platforms dt: move guts devicetree doc out of powerpc directory powerpc/fsl: move mpc85xx

[v7, 1/5] ARM64: dts: ls2080a: add device configuration node

2016-03-31 Thread Yangbo Lu
Add the dts node for device configuration unit that provides general purpose configuration and status for the device. Signed-off-by: Yangbo Lu --- Changes for v2: - None Changes for v3: - None Changes for v4: - None Changes for v5: - Added this patch Changes for

[v7, 2/5] soc: fsl: add GUTS driver for QorIQ platforms

2016-03-31 Thread Yangbo Lu
The global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control. This patch adds GUTS driver to manage and access global utilities block. Signed-off-by: Yangbo Lu

[v7, 5/5] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-03-31 Thread Yangbo Lu
numbers break down the ADMA data transfer. Signed-off-by: Yangbo Lu Acked-by: Ulf Hansson --- Changes for v2: - Got SVR through iomap instead of dts Changes for v3: - Managed GUTS through syscon instead of iomap in eSDHC driver Changes for v4: - Got SVR by GUTS driver instead

RE: [v7, 0/5] Fix eSDHC host version register bug

2016-04-05 Thread Yangbo Lu
> -Original Message- > From: Ulf Hansson [mailto:ulf.hans...@linaro.org] > Sent: Tuesday, April 05, 2016 7:28 PM > To: Yangbo Lu > Cc: devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-ker...@vger.kernel.org; linuxppc-dev@lists.ozla

RE: [v7, 0/5] Fix eSDHC host version register bug

2016-04-10 Thread Yangbo Lu
Hi Leo and Scott, > -Original Message- > From: Ulf Hansson [mailto:ulf.hans...@linaro.org] > Sent: Wednesday, April 06, 2016 4:15 PM > To: Yangbo Lu; Scott Wood > Cc: devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-ker...@vger.kernel

[PATCH 2/2] mmc: sdhci-pltfm: get clock through the common clk APIs

2016-04-20 Thread Yangbo Lu
Get the sdhc clock through the common clk APIs. If the APIs fail, try to get the clock through 'clock-frequency' property. We could remove the clock fixup in u-boot by adding the common clk APIs support. Signed-off-by: Yangbo Lu --- drivers/mmc/host/sdhci-pltfm.c | 8 +++- 1 file

[PATCH 1/2] powerpc/85xx: adapt QorIQ eSDHC to the new clocking model

2016-04-20 Thread Yangbo Lu
Provide clocks property instead of clock-frequency for QorIQ eSDHC dts node to adapt to the new clocking model, so that the driver could get clock value by the common clk API and the u-boot could remove the clock fixup. Signed-off-by: Yangbo Lu --- arch/powerpc/boot/dts/fsl/qoriq-esdhc-0.dtsi

[v8, 0/7] Fix eSDHC host version register bug

2016-04-21 Thread Yangbo Lu
xcept the updating MAINTAINERS patch are to enable GUTS driver support to get SVR in eSDHC driver and fix host version for T4240. Yangbo Lu (7): Documentation: DT: update Freescale DCFG compatible ARM64: dts: ls2080a: add device configuration node soc: fsl: add GUTS driver for QorIQ platforms

[v8, 1/7] Documentation: DT: update Freescale DCFG compatible

2016-04-21 Thread Yangbo Lu
Update Freescale DCFG compatible with 'fsl,-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips. Signed-off-by: Yangbo Lu --- Changes for v8: - Added this patch --- Documentation/devicetree/bindings/arm/fsl.txt | 2 +- 1 file changed, 1 insertion(+), 1 delet

[v8, 2/7] ARM64: dts: ls2080a: add device configuration node

2016-04-21 Thread Yangbo Lu
Add the dts node for device configuration unit that provides general purpose configuration and status for the device. Signed-off-by: Yangbo Lu Acked-by: Scott Wood --- Changes for v5: - Added this patch Changes for v6: - None Changes for v7: - None Changes for v8

[v8, 3/7] soc: fsl: add GUTS driver for QorIQ platforms

2016-04-21 Thread Yangbo Lu
The global utilities block controls power management, I/O device enabling, power-onreset(POR) configuration monitoring, alternate function selection for multiplexed signals,and clock control. This patch adds GUTS driver to manage and access global utilities block. Signed-off-by: Yangbo Lu Acked

[v8, 4/7] dt: move guts devicetree doc out of powerpc directory

2016-04-21 Thread Yangbo Lu
Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property. Signed-off-by: Yangbo Lu Acked-by: Scott Wood Acked-by: Rob Herring --- Changes for v4: - A

[v8, 5/7] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-04-21 Thread Yangbo Lu
Move mpc85xx.h to include/linux/fsl and rename it to svr.h as a common header file. It has been used for mpc85xx and it will be used for ARM-based SoC as well. Signed-off-by: Yangbo Lu Acked-by: Wolfram Sang Acked-by: Stephen Boyd Acked-by: Scott Wood Acked-by: Joerg Roedel --- Changes for

[v8, 6/7] MAINTAINERS: add entry for Freescale SoC specific driver

2016-04-21 Thread Yangbo Lu
Add maintainer entry for Freescale SoC specific driver including the QE library and the GUTS driver. Also add entry for GUTS driver and add maintainer for QE library. Signed-off-by: Yangbo Lu --- Changes for v8: - Added this patch --- MAINTAINERS | 16 +++- 1 file changed

[v8, 7/7] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-04-21 Thread Yangbo Lu
numbers break down the ADMA data transfer. Signed-off-by: Yangbo Lu Acked-by: Ulf Hansson Acked-by: Scott Wood --- Changes for v2: - Got SVR through iomap instead of dts Changes for v3: - Managed GUTS through syscon instead of iomap in eSDHC driver Changes for v4: - Got SVR by

RE: [v8, 1/7] Documentation: DT: update Freescale DCFG compatible

2016-04-25 Thread Yangbo Lu
Hi Mark, > -Original Message- > From: Mark Rutland [mailto:mark.rutl...@arm.com] > Sent: Friday, April 22, 2016 9:12 PM > To: Yangbo Lu > Cc: linux-...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; > devicet...@vger.kernel.org; linux-arm-ker...@lists.infradead

RE: [v8, 6/7] MAINTAINERS: add entry for Freescale SoC specific driver

2016-04-25 Thread Yangbo Lu
Hi Scott and Leo, > -Original Message- > From: linux-mmc-ow...@vger.kernel.org [mailto:linux-mmc- > ow...@vger.kernel.org] On Behalf Of Scott Wood > Sent: Saturday, April 23, 2016 7:23 AM > To: Yangbo Lu; linux-...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org;

RE: [PATCH 1/2] powerpc/85xx: adapt QorIQ eSDHC to the new clocking model

2016-04-25 Thread Yangbo Lu
> -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Friday, April 22, 2016 7:08 AM > To: Yangbo Lu; linux-...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; > devicet...@vger.kernel.org > Cc: ulf.hans...@linaro.org; Rob Herring; Scott Wood > Su

RE: [PATCH 1/2] powerpc/85xx: adapt QorIQ eSDHC to the new clocking model

2016-04-25 Thread Yangbo Lu
> -Original Message- > From: Yangbo Lu > Sent: Tuesday, April 26, 2016 2:19 PM > To: 'Scott Wood'; linux-...@vger.kernel.org; linuxppc- > d...@lists.ozlabs.org; devicet...@vger.kernel.org > Cc: ulf.hans...@linaro.org; Rob Herring; Scott Wood > Subject: RE:

[PATCH 01/10] fsl/fman: share the event interrupt

2018-06-04 Thread Yangbo Lu
This patch is to share fman event interrupt because the 1588 timer driver will also use this interrupt. Signed-off-by: Yangbo Lu --- drivers/net/ethernet/freescale/fman/fman.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/fman.c

[PATCH 00/10] Support DPAA PTP clock and timestamping

2018-06-04 Thread Yangbo Lu
This patchset is to support DPAA FMAN PTP clock and HW timestamping. - The patch #1 to patch #5 are to support DPAA FMAN 1588 timer in ptp_qoriq driver. - The patch #6 to patch #10 are to add HW timestamping support in DPAA ethernet driver. Yangbo Lu (10): fsl/fman: share the event

[PATCH 04/10] powerpc/mpc85xx: move ptp timer out of fman in dts

2018-06-04 Thread Yangbo Lu
This patch is to move ptp timer node out of fman. Because ptp timer will be probed by ptp_qoriq driver, it should be an independent device in case of conflict memory mapping. Signed-off-by: Yangbo Lu --- arch/powerpc/boot/dts/fsl/qoriq-fman-0.dtsi | 14 -- arch/powerpc/boot/dts

[PATCH 06/10] fsl/fman: add set_tstamp interface

2018-06-04 Thread Yangbo Lu
This patch is to add set_tstamp interface for memac, dtsec, and 10GEC controllers to configure HW timestamping. Signed-off-by: Yangbo Lu --- drivers/net/ethernet/freescale/fman/fman_dtsec.c | 27 ++ drivers/net/ethernet/freescale/fman/fman_dtsec.h |1 + drivers/net

[PATCH 03/10] dt-binding: ptp_qoriq: add DPAA FMan support

2018-06-04 Thread Yangbo Lu
This patch is to add bindings description for DPAA FMan 1588 timer, and also remove its description in fsl-fman dt-bindings document. Signed-off-by: Yangbo Lu --- Documentation/devicetree/bindings/net/fsl-fman.txt | 25 +--- .../devicetree/bindings/ptp/ptp-qoriq.txt

[PATCH 08/10] fsl/fman: define frame description command UPD

2018-06-04 Thread Yangbo Lu
Defined frame description command FM_FD_CMD_UPD for prepended data updating. Signed-off-by: Yangbo Lu --- drivers/net/ethernet/freescale/fman/fman.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/fman.h b/drivers/net/ethernet

[PATCH 07/10] fsl/fman_port: support getting timestamp field

2018-06-04 Thread Yangbo Lu
This patch is to add fman_port_get_tstamp_field() interface to get timestamp field data. Signed-off-by: Yangbo Lu --- drivers/net/ethernet/freescale/fman/fman_port.c | 12 drivers/net/ethernet/freescale/fman/fman_port.h |3 +++ 2 files changed, 15 insertions(+), 0 deletions

[PATCH 10/10] dpaa_eth: add the get_ts_info interface for ethtool

2018-06-04 Thread Yangbo Lu
Added the get_ts_info interface for ethtool to check the timestamping capability. Signed-off-by: Yangbo Lu --- drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 44 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa

[PATCH 05/10] arm64: dts: fsl: move ptp timer out of fman

2018-06-04 Thread Yangbo Lu
This patch is to move ptp timer node out of fman. Because ptp timer will be probed by ptp_qoriq driver, it should be an independent device in case of conflict memory mapping. Signed-off-by: Yangbo Lu --- arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi | 14 -- 1 files changed, 8

[PATCH 09/10] dpaa_eth: add support for hardware timestamping

2018-06-04 Thread Yangbo Lu
This patch is to add hardware timestamping support for dpaa_eth. On Rx, timestamping is enabled for all frames. On Tx, we only instruct the hardware to timestamp the frames marked accordingly by the stack. Signed-off-by: Yangbo Lu --- drivers/net/ethernet/freescale/dpaa/Kconfig| 12

[PATCH 02/10] ptp: support DPAA FMan 1588 timer in ptp_qoriq

2018-06-04 Thread Yangbo Lu
This patch is to support DPAA (Data Path Acceleration Architecture) 1588 timer by adding "fsl,fman-ptp-timer" compatible, sharing interrupt with FMan, adding FSL_DPAA_ETH dependency, and fixing up register offset. Signed-off-by: Yangbo Lu --- drivers/ptp/Kconfig |2 +- d

[v2, 00/10] Support DPAA PTP clock and timestamping

2018-06-06 Thread Yangbo Lu
This patchset is to support DPAA FMAN PTP clock and HW timestamping. - The patch #1 to patch #5 are to support DPAA FMAN 1588 timer in ptp_qoriq driver. - The patch #6 to patch #10 are to add HW timestamping support in DPAA ethernet driver. Yangbo Lu (10): fsl/fman: share the event

[v2, 01/10] fsl/fman: share the event interrupt

2018-06-06 Thread Yangbo Lu
This patch is to share fman event interrupt because the 1588 timer driver will also use this interrupt. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- drivers/net/ethernet/freescale/fman/fman.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers

[v2, 02/10] ptp: support DPAA FMan 1588 timer in ptp_qoriq

2018-06-06 Thread Yangbo Lu
This patch is to support DPAA (Data Path Acceleration Architecture) 1588 timer by adding "fsl,fman-ptp-timer" compatible, sharing interrupt with FMan, adding FSL_DPAA_ETH dependency, and fixing up register offset. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- d

[v2, 03/10] dt-binding: ptp_qoriq: add DPAA FMan support

2018-06-06 Thread Yangbo Lu
This patch is to add bindings description for DPAA FMan 1588 timer, and also remove its description in fsl-fman dt-bindings document. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- Documentation/devicetree/bindings/net/fsl-fman.txt | 25 +--- .../devicetree

[v2, 04/10] powerpc/mpc85xx: move ptp timer out of fman in dts

2018-06-06 Thread Yangbo Lu
This patch is to move ptp timer node out of fman. Because ptp timer will be probed by ptp_qoriq driver, it should be an independent device in case of conflict memory mapping. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- arch/powerpc/boot/dts/fsl/qoriq-fman-0.dtsi | 14

[v2, 05/10] arm64: dts: fsl: move ptp timer out of fman

2018-06-06 Thread Yangbo Lu
This patch is to move ptp timer node out of fman. Because ptp timer will be probed by ptp_qoriq driver, it should be an independent device in case of conflict memory mapping. Signed-off-by: Yangbo Lu --- Changes for v2: - Fixed address-cells for ptp-timer. --- arch/arm64/boot/dts

[v2, 06/10] fsl/fman: add set_tstamp interface

2018-06-06 Thread Yangbo Lu
This patch is to add set_tstamp interface for memac, dtsec, and 10GEC controllers to configure HW timestamping. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- drivers/net/ethernet/freescale/fman/fman_dtsec.c | 27 ++ drivers/net/ethernet/freescale/fman

[v2, 07/10] fsl/fman_port: support getting timestamp field

2018-06-06 Thread Yangbo Lu
This patch is to add fman_port_get_tstamp_field() interface to get timestamp field data. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- drivers/net/ethernet/freescale/fman/fman_port.c | 12 drivers/net/ethernet/freescale/fman/fman_port.h |3 +++ 2 files

[v2, 08/10] fsl/fman: define frame description command UPD

2018-06-06 Thread Yangbo Lu
Defined frame description command FM_FD_CMD_UPD for prepended data updating. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- drivers/net/ethernet/freescale/fman/fman.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman

[v2, 09/10] dpaa_eth: add support for hardware timestamping

2018-06-06 Thread Yangbo Lu
This patch is to add hardware timestamping support for dpaa_eth. On Rx, timestamping is enabled for all frames. On Tx, we only instruct the hardware to timestamp the frames marked accordingly by the stack. Signed-off-by: Yangbo Lu --- Changes for v2: - Removed ifdef for timestamp code

[v2, 10/10] dpaa_eth: add the get_ts_info interface for ethtool

2018-06-06 Thread Yangbo Lu
Added the get_ts_info interface for ethtool to check the timestamping capability. Signed-off-by: Yangbo Lu --- Changes for v2: - Removed ifdef for hw timestamp. --- drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 39 1 files changed, 39 insertions(+), 0

[v3, 00/10] Support DPAA PTP clock and timestamping

2018-06-07 Thread Yangbo Lu
driver. Yangbo Lu (10): fsl/fman: share the event interrupt ptp: support DPAA FMan 1588 timer in ptp_qoriq dt-binding: ptp_qoriq: add DPAA FMan support powerpc/mpc85xx: move ptp timer out of fman in dts arm64: dts: fsl: move ptp timer out of fman fsl/fman: add set_tstamp interface fsl

[v3, 01/10] fsl/fman: share the event interrupt

2018-06-07 Thread Yangbo Lu
This patch is to share fman event interrupt because the 1588 timer driver will also use this interrupt. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - None. --- drivers/net/ethernet/freescale/fman/fman.c |3 ++- 1 files changed, 2 insertions(+), 1

[v3, 02/10] ptp: support DPAA FMan 1588 timer in ptp_qoriq

2018-06-07 Thread Yangbo Lu
This patch is to support DPAA (Data Path Acceleration Architecture) 1588 timer by adding "fsl,fman-ptp-timer" compatible, sharing interrupt with FMan, adding FSL_DPAA_ETH dependency, and fixing up register offset. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Chan

[v3, 03/10] dt-binding: ptp_qoriq: add DPAA FMan support

2018-06-07 Thread Yangbo Lu
This patch is to add bindings description for DPAA FMan 1588 timer, and also remove its description in fsl-fman dt-bindings document. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - None. --- Documentation/devicetree/bindings/net/fsl-fman.txt | 25

[v3, 04/10] powerpc/mpc85xx: move ptp timer out of fman in dts

2018-06-07 Thread Yangbo Lu
This patch is to move ptp timer node out of fman. Because ptp timer will be probed by ptp_qoriq driver, it should be an independent device in case of conflict memory mapping. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - None. --- arch/powerpc/boot/dts

[v3, 05/10] arm64: dts: fsl: move ptp timer out of fman

2018-06-07 Thread Yangbo Lu
This patch is to move ptp timer node out of fman. Because ptp timer will be probed by ptp_qoriq driver, it should be an independent device in case of conflict memory mapping. Signed-off-by: Yangbo Lu --- Changes for v2: - Fixed address-cells for ptp-timer. Changes for v3: - None

[v3, 06/10] fsl/fman: add set_tstamp interface

2018-06-07 Thread Yangbo Lu
This patch is to add set_tstamp interface for memac, dtsec, and 10GEC controllers to configure HW timestamping. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - None. --- drivers/net/ethernet/freescale/fman/fman_dtsec.c | 27

[v3, 07/10] fsl/fman_port: support getting timestamp

2018-06-07 Thread Yangbo Lu
This patch is to add fman_port_get_tstamp() interface to get timestamp. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - Moved endianness conversion from dpaa to fman API. --- drivers/net/ethernet/freescale/fman/fman_port.c | 12 drivers/net

[v3, 08/10] fsl/fman: define frame description command UPD

2018-06-07 Thread Yangbo Lu
Defined frame description command FM_FD_CMD_UPD for prepended data updating. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - None. --- drivers/net/ethernet/freescale/fman/fman.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a

[v3, 09/10] dpaa_eth: add support for hardware timestamping

2018-06-07 Thread Yangbo Lu
This patch is to add hardware timestamping support for dpaa_eth. On Rx, timestamping is enabled for all frames. On Tx, we only instruct the hardware to timestamp the frames marked accordingly by the stack. Signed-off-by: Yangbo Lu --- Changes for v2: - Removed ifdef for timestamp code

[v3, 10/10] dpaa_eth: add the get_ts_info interface for ethtool

2018-06-07 Thread Yangbo Lu
Added the get_ts_info interface for ethtool to check the timestamping capability. Signed-off-by: Yangbo Lu --- Changes for v2: - Removed ifdef for hw timestamp. Changes for v3: - None. --- drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c | 39 1 files

[v4, 00/10] Support DPAA PTP clock and timestamping

2018-06-25 Thread Yangbo Lu
driver. Yangbo Lu (10): fsl/fman: share the event interrupt ptp: support DPAA FMan 1588 timer in ptp_qoriq dt-binding: ptp_qoriq: add DPAA FMan support powerpc/mpc85xx: move ptp timer out of fman in dts arm64: dts: fsl: move ptp timer out of fman fsl/fman: add set_tstamp interface fsl

[v4, 01/10] fsl/fman: share the event interrupt

2018-06-25 Thread Yangbo Lu
This patch is to share fman event interrupt because the 1588 timer driver will also use this interrupt. Signed-off-by: Yangbo Lu Acked-by: Richard Cochran Acked-by: Madalin Bucur --- Changes for v2: - None. Changes for v3: - None. Changes for v4: - Added ACKs

[v4, 02/10] ptp: support DPAA FMan 1588 timer in ptp_qoriq

2018-06-25 Thread Yangbo Lu
This patch is to support DPAA (Data Path Acceleration Architecture) 1588 timer by adding "fsl,fman-ptp-timer" compatible, sharing interrupt with FMan, adding FSL_DPAA_ETH dependency, and fixing up register offset. Signed-off-by: Yangbo Lu Acked-by: Richard Cochran Acked-by: Mad

[v4, 03/10] dt-binding: ptp_qoriq: add DPAA FMan support

2018-06-25 Thread Yangbo Lu
This patch is to add bindings description for DPAA FMan 1588 timer, and also remove its description in fsl-fman dt-bindings document. Signed-off-by: Yangbo Lu Reviewed-by: Rob Herring Acked-by: Richard Cochran Acked-by: Madalin Bucur --- Changes for v2: - None. Changes for v3

[v4, 04/10] powerpc/mpc85xx: move ptp timer out of fman in dts

2018-06-25 Thread Yangbo Lu
This patch is to move ptp timer node out of fman. Because ptp timer will be probed by ptp_qoriq driver, it should be an independent device in case of conflict memory mapping. Signed-off-by: Yangbo Lu Acked-by: Richard Cochran Acked-by: Madalin Bucur --- Changes for v2: - None. Changes

[v4, 05/10] arm64: dts: fsl: move ptp timer out of fman

2018-06-25 Thread Yangbo Lu
This patch is to move ptp timer node out of fman. Because ptp timer will be probed by ptp_qoriq driver, it should be an independent device in case of conflict memory mapping. Signed-off-by: Yangbo Lu Acked-by: Richard Cochran Acked-by: Madalin Bucur --- Changes for v2: - Fixed address

[v4, 06/10] fsl/fman: add set_tstamp interface

2018-06-25 Thread Yangbo Lu
This patch is to add set_tstamp interface for memac, dtsec, and 10GEC controllers to configure HW timestamping. Signed-off-by: Yangbo Lu Acked-by: Richard Cochran Acked-by: Madalin Bucur --- Changes for v2: - None. Changes for v3: - None. Changes for v4: - Added ACKs

[v4, 07/10] fsl/fman_port: support getting timestamp

2018-06-25 Thread Yangbo Lu
This patch is to add fman_port_get_tstamp() interface to get timestamp. Signed-off-by: Yangbo Lu Acked-by: Richard Cochran Acked-by: Madalin Bucur --- Changes for v2: - None. Changes for v3: - Moved endianness conversion from dpaa to fman API. Changes for v4: - Fixed

[v4, 08/10] fsl/fman: define frame description command UPD

2018-06-25 Thread Yangbo Lu
Defined frame description command FM_FD_CMD_UPD for prepended data updating. Signed-off-by: Yangbo Lu Acked-by: Richard Cochran Acked-by: Madalin Bucur --- Changes for v2: - None. Changes for v3: - None. Changes for v4: - Added ACKs. --- drivers/net/ethernet/freescale

[v4, 09/10] dpaa_eth: add support for hardware timestamping

2018-06-25 Thread Yangbo Lu
This patch is to add hardware timestamping support for dpaa_eth. On Rx, timestamping is enabled for all frames. On Tx, we only instruct the hardware to timestamp the frames marked accordingly by the stack. Signed-off-by: Yangbo Lu Acked-by: Richard Cochran Acked-by: Madalin Bucur --- Changes

[v4, 10/10] dpaa_eth: add the get_ts_info interface for ethtool

2018-06-25 Thread Yangbo Lu
Added the get_ts_info interface for ethtool to check the timestamping capability. Signed-off-by: Yangbo Lu Acked-by: Richard Cochran Acked-by: Madalin Bucur --- Changes for v2: - Removed ifdef for hw timestamp. Changes for v3: - None. Changes for v4: - Added ACKs

[PATCH 3/3] ptp_qoriq: convert to use module parameters for initialization

2018-07-30 Thread Yangbo Lu
em to the new method gradually in case of breaking any function. Signed-off-by: Yangbo Lu --- drivers/ptp/ptp_qoriq.c | 117 +++- include/linux/fsl/ptp_qoriq.h |1 + 2 files changed, 115 insertions(+), 3 deletions(-) diff --git a/drivers/ptp/ptp_qoriq.

[PATCH 2/3] powerpc/mpc85xx: add clocks property for fman ptp timer node

2018-07-30 Thread Yangbo Lu
This patch is to add clocks property for fman ptp timer node. Signed-off-by: Yangbo Lu --- arch/powerpc/boot/dts/fsl/qoriq-fman-0.dtsi |1 + arch/powerpc/boot/dts/fsl/qoriq-fman-1.dtsi |1 + arch/powerpc/boot/dts/fsl/qoriq-fman3-0.dtsi |1 + arch/powerpc/boot/dts/fsl/qoriq

[PATCH 1/3] arm64: dts: fsl: add clocks property for fman ptp timer node

2018-07-30 Thread Yangbo Lu
This patch is to add clocks property for fman ptp timer node. Signed-off-by: Yangbo Lu --- arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi b/arch/arm64/boot/dts/freescale

[v2, 2/3] powerpc/mpc85xx: add clocks property for fman ptp timer node

2018-08-01 Thread Yangbo Lu
This patch is to add clocks property for fman ptp timer node. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- arch/powerpc/boot/dts/fsl/qoriq-fman-0.dtsi |1 + arch/powerpc/boot/dts/fsl/qoriq-fman-1.dtsi |1 + arch/powerpc/boot/dts/fsl/qoriq-fman3-0.dtsi |1

[v2, 1/3] arm64: dts: fsl: add clocks property for fman ptp timer node

2018-08-01 Thread Yangbo Lu
This patch is to add clocks property for fman ptp timer node. Signed-off-by: Yangbo Lu --- Changes for v2: - None. --- arch/arm64/boot/dts/freescale/qoriq-fman3-0.dtsi |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/qoriq-fman3-0

[v2, 3/3] ptp_qoriq: support automatic configuration for ptp timer

2018-08-01 Thread Yangbo Lu
es in current kernel. Also the users could set dts properties by themselves according to their requirement. Signed-off-by: Yangbo Lu --- Changes for v2: - Dropped module_param. --- drivers/ptp/ptp_qoriq.c | 111 +++- include/linux/fsl/ptp_qo

[v12, 0/8] Fix eSDHC host version register bug

2016-09-21 Thread Yangbo Lu
. This is used to register a soc device which contain soc version and revision information. The other two patches introduce the soc_device_match method in soc driver and apply it on esdhc driver to fix this bug. Arnd Bergmann (1): base: soc: introduce soc_device_match() interface Yangbo Lu (7

[v12, 1/8] dt: bindings: update Freescale DCFG compatible

2016-09-21 Thread Yangbo Lu
Update Freescale DCFG compatible with 'fsl,-dcfg' instead of 'fsl,ls1021a-dcfg' to include more chips such as ls1021a, ls1043a, and ls2080a. Signed-off-by: Yangbo Lu Acked-by: Rob Herring Signed-off-by: Scott Wood --- Changes for v8: - Added this patch Changes for v

[v12, 2/8] ARM64: dts: ls2080a: add device configuration node

2016-09-21 Thread Yangbo Lu
Add the dts node for device configuration unit that provides general purpose configuration and status for the device. Signed-off-by: Yangbo Lu Acked-by: Scott Wood --- Changes for v5: - Added this patch Changes for v6: - None Changes for v7: - None Changes for v8

[v12, 3/8] dt: bindings: move guts devicetree doc out of powerpc directory

2016-09-21 Thread Yangbo Lu
Move guts devicetree doc to Documentation/devicetree/bindings/soc/fsl/ since it's used by not only PowerPC but also ARM. And add a specification for 'little-endian' property. Signed-off-by: Yangbo Lu Acked-by: Rob Herring Acked-by: Scott Wood --- Changes for v4: - A

[v12, 4/8] powerpc/fsl: move mpc85xx.h to include/linux/fsl

2016-09-21 Thread Yangbo Lu
-off-by: Yangbo Lu Acked-by: Wolfram Sang Acked-by: Stephen Boyd Acked-by: Joerg Roedel [scottwood: update description] Signed-off-by: Scott Wood --- Changes for v2: - None Changes for v3: - None Changes for v4: - None Changes for v5: - Changed to Move mpc85xx.h to

[v12, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-09-21 Thread Yangbo Lu
registering soc device are supported. Other guts accesses, such as reading RCW, should eventually be moved into this driver as well. Signed-off-by: Yangbo Lu --- Changes for v4: - Added this patch Changes for v5: - Modified copyright info - Changed MODULE_LICENSE to GPL

[v12, 6/8] MAINTAINERS: add entry for Freescale SoC drivers

2016-09-21 Thread Yangbo Lu
Add maintainer entry for Freescale SoC drivers including the QE library and the GUTS driver now. Also add maintainer for QE library. Signed-off-by: Yangbo Lu Acked-by: Scott Wood Acked-by: Qiang Zhao --- Changes for v8: - Added this patch Changes for v9: - Added linux-arm mail

  1   2   >