Re: [PATCH v2 2/2] dts: r40: add second ethernet support

2021-03-08 Thread Evgeny Boger
3/9/21 4:21 AM, Evgeny Boger пишет: R40 (aka V40, A40i, T3) has two different Ethernet IP called EMAC and GMAC. EMAC only support 10/100 Mbit in MII mode, while GMAC support both 10/100 (MII) and 10/100/1000 (RGMII). In contrast to A10/A20 where GMAC and EMAC share the same pins making EMAC

[PATCH v2 2/2] dts: r40: add second ethernet support

2021-03-08 Thread Evgeny Boger
routed to port H. Both EMAC (on port H) and GMAC (on port A) can be then enabled at the same time, allowing for two ethernet ports. Signed-off-by: Evgeny Boger --- arch/arm/boot/dts/sun8i-r40.dtsi | 59 1 file changed, 59 insertions(+) diff --git a/arch/arm/boot

[PATCH v2 0/2] sun8i: r40: second ethernet support

2021-03-08 Thread Evgeny Boger
no longer optional on R40 - Add a new DT compatible string for R40 EMAC - Deassert reset line before enabling the clock - minor fixes: formatting, DT node order, leftover pinctrl props Evgeny Boger (2): net: allwinner: reset control support dts: r40: add second ethernet support .../net

[PATCH v2 1/2] net: allwinner: reset control support

2021-03-08 Thread Evgeny Boger
R40 (aka V40/A40i/T3) and A10/A20 share the same EMAC IP. However, on R40 the EMAC is gated by default. Signed-off-by: Evgeny Boger --- .../net/allwinner,sun4i-a10-emac.yaml | 11 +++- drivers/net/ethernet/allwinner/sun4i-emac.c | 65 +-- 2 files changed, 70 insertions

Re: [PATCH 1/2] net: allwinner: reset control support

2021-03-08 Thread Evgeny Boger
Hi, thank you for your review! 3/8/21 4:36 PM, Maxime Ripard пишет: Hi, On Sun, Mar 07, 2021 at 06:13:51AM +0300, Evgeny Boger wrote: R40 (aka V40/A40i/T3) and A10/A20 share the same EMAC IP. However, on R40 the EMAC is gated by default. Signed-off-by: Evgeny Boger On which device was it

[PATCH 1/2] net: allwinner: reset control support

2021-03-06 Thread Evgeny Boger
R40 (aka V40/A40i/T3) and A10/A20 share the same EMAC IP. However, on R40 the EMAC is gated by default. Signed-off-by: Evgeny Boger --- drivers/net/ethernet/allwinner/sun4i-emac.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet

[PATCH 2/2] dts: r40: add second ethernet support

2021-03-06 Thread Evgeny Boger
routed to port H. Both EMAC (on port H) and GMAC (on port A) can be then enabled at the same time, allowing for two ethernet ports. Signed-off-by: Evgeny Boger --- arch/arm/boot/dts/sun8i-r40.dtsi | 53 1 file changed, 53 insertions(+) diff --git a/arch/arm/boot

[PATCH 0/2] sun8i: r40: second ethernet support

2021-03-06 Thread Evgeny Boger
share the same pins making EMAC somewhat pointless, on R40 EMAC can be routed to port H. Both EMAC (on port H) and GMAC (on port A) can be then enabled at the same time, allowing for two ethernet ports. Evgeny Boger (2): net: allwinner: reset control support dts: r40: add second ethernet

[PATCH] iio: adc: axp20x_adc: fix charging current reporting on AXP22x

2021-03-06 Thread Evgeny Boger
here to compensate for erroneous additional bit in register width. Tested on custom A40i+AXP221s board with external ammeter as a reference. Signed-off-by: Evgeny Boger --- drivers/iio/adc/axp20x_adc.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/ii

Re: [PATCH] Add support for always enabled watchdog timers

2014-09-06 Thread Evgeny Boger
On 08/23/2014 09:33 PM, Guenter Roeck wrote: On 08/23/2014 10:25 AM, Alexander Shiyan wrote: Sat, 23 Aug 2014 10:16:08 -0700 от Guenter Roeck : On 08/16/2014 05:45 PM, Evgeny Boger wrote: From: Evgeny Boger Add option to use with watchdog timers which are always enabled in hardware, i.e

[PATCH v2] Add support for always enabled watchdog timers to gpio_wdt driver

2014-09-06 Thread Evgeny Boger
From: Evgeny Boger Add option to use with watchdog timers which are always enabled in hardware, i.e. there is no way to enable/disable it via GPIO pin. The driver will start pinging WDT immediately upon loading and will continue to do so even after stopping the watchdog. Signed-off-by: Evgeny

[PATCH] Add support for always enabled watchdog timers

2014-08-16 Thread Evgeny Boger
From: Evgeny Boger Add option to use with watchdog timers which are always enabled in hardware, i.e. there is no way to enable/disable it via GPIO pin. The driver will start pinging WDT immediately upon loading and will continue to do so even after stopping the watchdog. Signed-off-by: Evgeny

Re: [PATCH 1/1] Add strong pullup emulation to w1-gpio master driver.

2013-11-12 Thread Evgeny Boger
11/12/2013 12:01 PM, David Fries: On Tue, Nov 12, 2013 at 05:07:14AM +0400, Evgeny Boger wrote: +David Fries Hi David, Would you please comment on this? On Mon, Nov 11, 2013 at 06:36:54PM +0400, Evgeny Boger wrote: Strong pullup is emulated by driving pin logic high after write

[PATCH 1/1] Add strong pullup emulation to w1-gpio master driver.

2013-11-12 Thread Evgeny Boger
Strong pullup is emulated by driving pin logic high after write command when using tri-state push-pull GPIO. Signed-off-by: Evgeny Boger --- drivers/w1/masters/w1-gpio.c | 22 ++ drivers/w1/w1_int.c | 12 include/linux/w1-gpio.h | 1 + 3 files

Re: [PATCH 1/1] Add strong pullup emulation to w1-gpio master driver.

2013-11-11 Thread Evgeny Boger
+David Fries Hi David, Would you please comment on this? 11/12/2013 05:03 AM, Evgeniy Polyakov: Hi 12.11.2013, 03:32, "Evgeny Boger" : Why did you drop this check? It has nothing with w1-gpio driver This check prevents master from implementing "set_pullup" provided

[PATCH 1/1] Add strong pullup emulation to w1-gpio master driver.

2013-11-11 Thread Evgeny Boger
Strong pullup is emulated by driving pin logic high after write command when using tri-state push-pull GPIO. Signed-off-by: Evgeny Boger --- drivers/w1/masters/w1-gpio.c | 22 ++ drivers/w1/w1_int.c | 12 include/linux/w1-gpio.h | 1 + 3 files