[PATCH 1/1] socfpga: defconfig: Enable Altera GPIO driver as module

2016-07-25 Thread thloh
From: Tien Hock Loh This patch enables Altera GPIO driver as module in socfpga_defconfig Signed-off-by: Tien Hock Loh --- arch/arm/configs/socfpga_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/socfpga_defconfig b/arch/arm/configs/socfpga_defconfig index 753f1a

[PATCH v7 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

2016-07-07 Thread thloh
From: Tien Hock Loh This adds support for TSE PCS that uses SGMII adapter when the phy-mode of the dwmac is set to sgmii. Signed-off-by: Tien Hock Loh Acked-by: Rob Herring --- v2: - Refactored the TSE PCS out from the dwmac-socfpga.c file - Added binding documentation for TSE PCS sgmii adapt

[PATCH V6 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

2016-06-29 Thread thloh
From: Tien Hock Loh This adds support for TSE PCS that uses SGMII adapter when the phy-mode of the dwmac is set to sgmii. Signed-off-by: Tien Hock Loh --- v2: - Refactored the TSE PCS out from the dwmac-socfpga.c file - Added binding documentation for TSE PCS sgmii adapter v3: - Added missing

[PATCH V5 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

2016-06-24 Thread thloh
From: Tien Hock Loh This adds support for TSE PCS that uses SGMII adapter when the phy-mode of the dwmac is set to sgmii. Signed-off-by: Tien Hock Loh Acked-by: Giuseppe Cavallaro Acked-by: Rob Herring --- v2: - Refactored the TSE PCS out from the dwmac-socfpga.c file - Added binding documen

[PATCH V4 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

2016-06-21 Thread thloh
From: Tien Hock Loh This adds support for TSE PCS that uses SGMII adapter when the phy-mode of the dwmac is set to sgmii Signed-off-by: Tien Hock Loh --- v2: - Refactored the TSE PCS out from the dwmac-socfpga.c file - Added binding documentation for TSE PCS sgmii adapter v3: - Added missing l

[PATCH v3 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

2016-06-06 Thread thloh
From: Tien Hock Loh This adds support for TSE PCS that uses SGMII adapter when the phy-mode of the dwmac is set to sgmii Signed-off-by: Tien Hock Loh --- v2: - Refactored the TSE PCS out from the dwmac-socfpga.c file - Added binding documentation for TSE PCS sgmii adapter v3: - Added missing l

[PATCH 1/1] net: ethernet: Add TSE PCS support to dwmac-socfpga

2016-06-03 Thread thloh
From: Tien Hock Loh This adds support for TSE PCS that uses SGMII adapter when the phy-mode of the dwmac is set to sgmii Signed-off-by: Tien Hock Loh --- v2: - Refactored the TSE PCS out from the dwmac-socfpga.c file - Added binding documentation for TSE PCS sgmii adapter --- .../devicetree/b

[PATCH 1/1] net: ethernet: Add SGMII support to dwmac-socfpga

2016-05-13 Thread thloh
From: Tien Hock Loh Adds SGMII support for dwmac-socfpga to enable the SGMII PHY when phy-mode of the dwmac is set to sgmii. Signed-off-by: Tien Hock Loh --- .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c| 339 - 1 file changed, 329 insertions(+), 10 deletions(-) diff

[PATCH 1/1] net: ethernet: Add SGMII support to dwmac-socfpga

2016-05-12 Thread thloh
SGMII_ADAPTER_ENABLE 0x +#define LINK_TIMER 20 +#define AUTONEGO_TIMER 20 + +thloh struct socfpga_dwmac { int interface; u32 reg_offset; @@ -49,18 +87,17 @@ struct socfpga_dwmac

[PATCH v10 2/2] drivers/gpio: Altera soft IP GPIO driver

2015-02-24 Thread thloh
From: Tien Hock Loh Adds a new driver for Altera soft GPIO IP. The driver is able to do read/write and allows GPIO to be a interrupt controller. Tested on Altera GHRD on interrupt handling and IO. Signed-off-by: Tien Hock Loh --- MAINTAINERS| 6 + drivers/gpio/Kconfig

[PATCH v10 0/2] drivers/gpio: Altera soft IP GPIO driver

2015-02-24 Thread thloh
From: Tien Hock Loh Adds a new device tree binding and driver for Altera soft GPIO IP. The driver is able to do read/write and allows GPIO to be a interrupt controller. Tested on Altera GHRD on interrupt handling and IO. v10: Updated conflicting device tree parameters Removed unused headers Us

[PATCH v10 1/2] drivers/gpio: Altera soft IP GPIO driver device tree binding

2015-02-24 Thread thloh
From: Tien Hock Loh Adds a new driver device tree binding for Altera soft GPIO IP Signed-off-by: Tien Hock Loh --- .../devicetree/bindings/gpio/gpio-altera.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-al

[PATCH v9 0/2] Altera soft IP GPIO driver

2015-01-05 Thread thloh
From: Tien Hock Loh Adds a new device tree binding and driver for Altera soft GPIO IP. The driver is able to do read/write and allows GPIO to be a interrupt controller. Tested on Altera GHRD on interrupt handling and IO. v9: Removed duplicated initialization on set_type using temporals to impro

[PATCH v9 1/2] drivers/gpio: Altera soft IP GPIO driver device tree binding

2015-01-05 Thread thloh
From: Tien Hock Loh Adds a new driver device tree binding for Altera soft GPIO IP Signed-off-by: Tien Hock Loh --- .../devicetree/bindings/gpio/gpio-altera.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-al

[PATCH v9 2/2] drivers/gpio: Altera soft IP GPIO driver

2015-01-05 Thread thloh
From: Tien Hock Loh Adds a new driver for Altera soft GPIO IP. The driver is able to do read/write and allows GPIO to be a interrupt controller. Tested on Altera GHRD on interrupt handling and IO. Signed-off-by: Tien Hock Loh --- MAINTAINERS| 6 + drivers/gpio/Kconfig

[PATCH v8 1/2] drivers/gpio: Altera soft IP GPIO driver device tree binding

2014-12-24 Thread thloh
From: Tien Hock Loh Adds a new driver device tree binding for Altera soft GPIO IP Signed-off-by: Tien Hock Loh --- .../devicetree/bindings/gpio/gpio-altera.txt | 43 1 files changed, 43 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bind

[PATCH v8 0/2] drivers/gpio: Altera soft IP GPIO driver

2014-12-24 Thread thloh
From: Tien Hock Loh Adds a new device tree binding and driver for Altera soft GPIO IP. The driver is able to do read/write and allows GPIO to be a interrupt controller. Tested on Altera GHRD on interrupt handling and IO. v8: Using for_each_set_bit added const for struct definition removed naggy

[PATCH v8 2/2] drivers/gpio: Altera soft IP GPIO driver

2014-12-24 Thread thloh
From: Tien Hock Loh Adds a new driver for Altera soft GPIO IP. The driver is able to do read/write and allows GPIO to be a interrupt controller. Tested on Altera GHRD on interrupt handling and IO. Signed-off-by: Tien Hock Loh --- MAINTAINERS|6 + drivers/gpio/Kconfig

[PATCH V7 1/1] drivers/gpio: Altera soft IP GPIO driver and devicetree binding

2014-03-03 Thread thloh
From: Tien Hock Loh Add driver support for Altera GPIO soft IP, including interrupts and I/O. Tested on Altera CV SoC board using dipsw and LED using LED framework. Signed-off-by: Tien Hock Loh --- .../devicetree/bindings/gpio/gpio-altera.txt | 44 +++ drivers/gpio/Kconfig

[PATCH 1/1] drivers/gpio: Altera soft IP GPIO driver

2013-03-11 Thread thloh
From: Tien Hock Loh Adds a new driver for Altera soft GPIO IP. The driver is able to do read/write and allows GPIO to be a interrupt controller. Tested on Altera GHRD on interrupt handling and IO. Signed-off-by: Tien Hock Loh --- .../devicetree/bindings/gpio/gpio-altera.txt | 37 +++ d