[PATCH] dsa: vsc73xx: add support for vlan filtering

2021-01-19 Thread Pawel Dembicki
This patch adds support for vlan filtering in vsc73xx driver. After vlan filtering enable, CPU_PORT is configured as trunk, without non-tagged frames. This allows to avoid problems with transmit untagged frames because vsc73xx is DSA_TAG_PROTO_NONE. Signed-off-by: Pawel Dembicki --- drivers

[PATCH v2 1/2] arm64: dts: fsl-ls1012a-rdb: add i2c devices

2021-01-19 Thread Pawel Dembicki
LS1012A-RDB equipped in some i2c devices: - 3x GPIO Expander: PCAL9555A (NXP) - Gyro: FXAS21002 (NXP) - Accelerometer: FXOS8700 (NXP) - Current & Power Monitor: INA220 (TI) This patch add listed devices to dts. Signed-off-by: Pawel Dembicki --- Changes in v2: - resend only .../

[PATCH v2 2/2] arm64: dts: fsl-ls1012a-frdm: add spi-uart device

2021-01-19 Thread Pawel Dembicki
This patch adds spi-uart controller to LS1012A-FRDM board dts. Device is equipped in SC16IS740 from NXP. Signed-off-by: Pawel Dembicki --- Changes in v2: - reordered property list - change clock name to "clock-sc16is7xx" .../boot/dts/freescale/fsl-ls1012a-frdm.

[PATCH 2/2] arm64: dts: fsl-ls1012a-frdm: add spi-uart device

2021-01-15 Thread Pawel Dembicki
This patch adds spi-uart controller to LS1012A-FRDM board dts. Device is equipped in SC16IS740 from NXP. Signed-off-by: Pawel Dembicki --- .../boot/dts/freescale/fsl-ls1012a-frdm.dts | 21 +++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl

[PATCH 1/2] arm64: dts: fsl-ls1012a-rdb: add i2c devices

2021-01-15 Thread Pawel Dembicki
LS1012A-RDB equipped in some i2c devices: - 3x GPIO Expander: PCAL9555A (NXP) - Gyro: FXAS21002 (NXP) - Accelerometer: FXOS8700 (NXP) - Current & Power Monitor: INA220 (TI) This patch add listed devices to dts. Signed-off-by: Pawel Dembicki --- .../boot/dts/freescale/fsl-ls1

[PATCH] powerpc: dts: p2020rdb: add missing peripherials

2021-01-14 Thread Pawel Dembicki
act different without 8081 sterring. Signed-off-by: Pawel Dembicki --- arch/powerpc/boot/dts/fsl/p2020rdb.dts | 73 -- 1 file changed, 70 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/boot/dts/fsl/p2020rdb.dts b/arch/powerpc/boot/dts/fsl/p2020rdb.dts index

[PATCH v3 4/4] net: dsa: vsc73xx: Assert reset if iCPU is enabled

2019-07-04 Thread Pawel Dembicki
Driver allow to use devices with disabled iCPU only. Some devices have pre-initialised iCPU by bootloader. That state make switch unmanaged. This patch force reset if device is in unmanaged state. In the result chip lost internal firmware from RAM and it can be managed. Signed-off-by: Pawel

[PATCH v3 0/4] net: dsa: Add Vitesse VSC73xx parallel mode

2019-07-04 Thread Pawel Dembicki
in compatible strings - make changes less invasive - drop mutex in platform part and move mutex from core to spi part - fix indentation - fix devm_ioremap_resource result check - add cover letter Pawel Dembicki (4): net: dsa: Change DT bindings for Vitesse VSC73xx switches net: dsa: vsc73xx

[PATCH v3 1/4] net: dsa: Change DT bindings for Vitesse VSC73xx switches

2019-07-04 Thread Pawel Dembicki
This commit introduce how to use vsc73xx platform driver. Signed-off-by: Pawel Dembicki Reviewed-by: Linus Walleij Reviewed-by: Florian Fainelli --- .../bindings/net/dsa/vitesse,vsc73xx.txt | 58 +-- 1 file changed, 54 insertions(+), 4 deletions(-) diff --git

[PATCH v3 2/4] net: dsa: vsc73xx: Split vsc73xx driver

2019-07-04 Thread Pawel Dembicki
managing interface. Tested-by: Linus Walleij Signed-off-by: Pawel Dembicki Reviewed-by: Linus Walleij Reviewed-by: Florian Fainelli --- drivers/net/dsa/Kconfig | 11 +- drivers/net/dsa/Makefile | 3 +- ...tesse-vsc73xx.c => vitesse-vsc73xx-core.c} |

[PATCH v3 3/4] net: dsa: vsc73xx: add support for parallel mode

2019-07-04 Thread Pawel Dembicki
This patch add platform part of vsc73xx driver. It allows to use chip connected to a parallel memory bus and work in memory-mapped I/O mode. (aka PI bus in chip manual) By default device is working in big endian mode. Signed-off-by: Pawel Dembicki Reviewed-by: Linus Walleij --- drivers/net

[PATCH v2 4/4] net: dsa: vsc73xx: Assert reset if iCPU is enabled

2019-07-03 Thread Pawel Dembicki
Driver allow to use devices with disabled iCPU only. Some devices have pre-initialised iCPU by bootloader. That state make switch unmanaged. This patch force reset if device is in unmanaged state. In the result chip lost internal firmware from RAM and it can be managed. Signed-off-by: Pawel

[PATCH v2 3/4] net: dsa: vsc73xx: add support for parallel mode

2019-07-03 Thread Pawel Dembicki
This patch add platform part of vsc73xx driver. It allows to use chip connected by parallel interface. Signed-off-by: Pawel Dembicki --- drivers/net/dsa/Kconfig| 8 ++ drivers/net/dsa/Makefile | 1 + drivers/net/dsa/vitesse-vsc73xx-platform.c | 160

[PATCH v2 1/4] net: dsa: Change DT bindings for Vitesse VSC73xx switches

2019-07-03 Thread Pawel Dembicki
This commit introduce how to use vsc73xx platform driver. Signed-off-by: Pawel Dembicki --- .../bindings/net/dsa/vitesse,vsc73xx.txt | 57 +-- 1 file changed, 53 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/vitesse,vsc73xx.txt b

[PATCH v2 0/4] net: dsa: Add Vitesse VSC73xx parallel mode

2019-07-03 Thread Pawel Dembicki
and move mutex from core to spi part - fix indentation - fix devm_ioremap_resource result check - add cover letter Pawel Dembicki (4): net: dsa: Change DT bindings for Vitesse VSC73xx switches net: dsa: vsc73xx: Split vsc73xx driver net: dsa: vsc73xx: add support for parallel mode net: dsa

[PATCH v2 2/4] net: dsa: vsc73xx: Split vsc73xx driver

2019-07-03 Thread Pawel Dembicki
managing interface. Tested-by: Linus Walleij Signed-off-by: Pawel Dembicki --- drivers/net/dsa/Kconfig | 11 +- drivers/net/dsa/Makefile | 3 +- ...tesse-vsc73xx.c => vitesse-vsc73xx-core.c} | 170 +-- drivers/net/dsa/vitesse-vsc73xx-sp

[PATCH v2 4/4] net: dsa: vsc73xx: Assert reset if iCPU is enabled

2019-07-03 Thread Pawel Dembicki
Driver allow to use devices with disabled iCPU only. Some devices have pre-initialised iCPU by bootloader. That state make switch unmanaged. This patch force reset if device is in unmanaged state. In the result chip lost internal firmware from RAM and it can be managed. Signed-off-by: Pawel

[PATCH v2 3/4] net: dsa: vsc73xx: add support for parallel mode

2019-07-03 Thread Pawel Dembicki
This patch add platform part of vsc73xx driver. It allows to use chip connected by parallel interface. Signed-off-by: Pawel Dembicki --- Changes in v2: - drop mutex - fix indentation drivers/net/dsa/Kconfig| 8 ++ drivers/net/dsa/Makefile | 1

[PATCH v2 2/4] net: dsa: vsc73xx: Split vsc73xx driver

2019-07-03 Thread Pawel Dembicki
managing interface. Tested-by: Linus Walleij Signed-off-by: Pawel Dembicki --- Changes in v2: - Make patch less invasive - Move mutex to SPI part of driver - v2 also tested by Linus drivers/net/dsa/Kconfig | 11 +- drivers/net/dsa/Makefile | 3 +- ...tesse

[PATCH v2 1/4] net: dsa: Change DT bindings for Vitesse VSC73xx switches

2019-07-03 Thread Pawel Dembicki
This commit introduce how to use vsc73xx platform driver. Signed-off-by: Pawel Dembicki --- Changes in v2: - Drop -spi and -platform suffix - Change commit message .../bindings/net/dsa/vitesse,vsc73xx.txt | 57 +-- 1 file changed, 53 insertions(+), 4 deletions(-) diff

[PATCH 1/4] net: dsa: Change DT bindings for Vitesse VSC73xx switches

2019-07-01 Thread Pawel Dembicki
This commit document changes after split vsc73xx driver into core and spi part. The change of DT bindings is required for support the same vsc73xx chip, which need PI bus to communicate with CPU. It also introduce how to use vsc73xx platform driver. Signed-off-by: Pawel Dembicki

[PATCH 4/4] net: dsa: vsc73xx: Assert reset if iCPU is enabled

2019-07-01 Thread Pawel Dembicki
Driver allow to use devices with disabled iCPU only. Some devices have pre-initialised iCPU by bootloader. That state make switch unmanaged. This patch force reset if device is in unmanaged state. In the result chip lost internal firmware from RAM and it can be managed. Signed-off-by: Pawel

[PATCH 2/4] net: dsa: vsc73xx: Split vsc73xx driver

2019-07-01 Thread Pawel Dembicki
managing interface. Tested-by: Linus Walleij Signed-off-by: Pawel Dembicki --- arch/arm/boot/dts/gemini-sl93512r.dts | 2 +- arch/arm/boot/dts/gemini-sq201.dts| 2 +- drivers/net/dsa/Kconfig | 11 +- drivers/net/dsa/Makefile | 3

[PATCH 3/4] net: dsa: vsc73xx: add support for parallel mode

2019-07-01 Thread Pawel Dembicki
This patch add platform part of vsc73xx driver. It allows to use chip connected by PI interface. Signed-off-by: Pawel Dembicki --- drivers/net/dsa/Kconfig| 8 + drivers/net/dsa/Makefile | 1 + drivers/net/dsa/vitesse-vsc73xx-platform.c | 166

[PATCH] powerpc: Enable kernel XZ compression option on PPC_85xx

2019-06-03 Thread Pawel Dembicki
Enable kernel XZ compression option on PPC_85xx. Tested with simpleImage on TP-Link TL-WDR4900 (Freescale P1014 processor). Suggested-by: Christian Lamparter Signed-off-by: Pawel Dembicki --- arch/powerpc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc

[PATCH] net: qmi_wwan: add Wistron Neweb D19Q1

2018-04-18 Thread Pawel Dembicki
ulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none) E: Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=125us Tested on openwrt distribution Signed-off-by: Pawel Dembicki <pawe

[PATCH] net: qmi_wwan: add Wistron Neweb D19Q1

2018-04-18 Thread Pawel Dembicki
ulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none) E: Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=125us Tested on openwrt distribution Signed-off-by: Pawel Dembicki --- drivers/

[PATCH] net: qmi_wwan: add BroadMobi BM806U 2020:2033

2018-03-24 Thread Pawel Dembicki
BroadMobi BM806U is an Qualcomm MDM9225 based 3G/4G modem. Tested hardware BM806U is mounted on D-Link DWR-921-C3 router. The USB id is added to qmi_wwan.c to allow QMI communication with the BM806U. Tested on 4.14 kernel and OpenWRT. Signed-off-by: Pawel Dembicki <paweldembi...@gmail.

[PATCH] net: qmi_wwan: add BroadMobi BM806U 2020:2033

2018-03-24 Thread Pawel Dembicki
BroadMobi BM806U is an Qualcomm MDM9225 based 3G/4G modem. Tested hardware BM806U is mounted on D-Link DWR-921-C3 router. The USB id is added to qmi_wwan.c to allow QMI communication with the BM806U. Tested on 4.14 kernel and OpenWRT. Signed-off-by: Pawel Dembicki --- drivers/net/usb

[PATCH] w1: gpio: fix problem with platfom data in w1-gpio

2018-02-18 Thread Pawel Dembicki
In devices, where fdt is used, is impossible to apply platform data without proper fdt node. This patch allow to use platform data in devices with fdt. Signed-off-by: Pawel Dembicki <paweldembi...@gmail.com> --- drivers/w1/masters/w1-gpio.c | 7 +++ 1 file changed, 3 insertions

[PATCH] w1: gpio: fix problem with platfom data in w1-gpio

2018-02-18 Thread Pawel Dembicki
In devices, where fdt is used, is impossible to apply platform data without proper fdt node. This patch allow to use platform data in devices with fdt. Signed-off-by: Pawel Dembicki --- drivers/w1/masters/w1-gpio.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git