Re: [PATCH] Fix neighbor discovery ethernet address saving

2024-05-13 Thread Vyacheslav V. Mitrofanov
rver_ethaddr (and it's > checking > to make sure that net_nd_packet_mac isn't NULL before copying). > > Also, the current code serves no purpose.  The current code is, "if > net_nd_packet_mac is NULL, set it to stack variable neigh_eth_addr, > then > set net_nd_p

Re: [PATCH] Fix neighbor discovery ethernet address saving

2024-05-05 Thread Vyacheslav V. Mitrofanov
On Mon, 2024-04-29 at 11:51 -0700, seanedm...@linux.microsoft.com wrote: > s...@yadro.com > > From: Sean Edmond > > When a successful neighbor advertisement is received, the ethernet > address should be saved for later use to avoid having to redo the > neighbor discovery

Re: [PATCH 2/2] net: ipv6: network protocol structures should be packed

2023-05-19 Thread Vyacheslav V. Mitrofanov
On Thu, 2023-05-18 at 11:24 -0700, emohand...@linux.microsoft.com wrote: > From: Ehsan Mohandesi > > The structure icmp6_ra_prefix_info needs to be packed because it is > read > from a network stream. > > Signed-off-by: Ehsan Mohandesi > --- > include/net6.h | 2 +- > 1 file changed, 1

Re: [PATCH 1/2] net: ipv6: router advertisement message length should be within limits

2023-05-19 Thread Vyacheslav V. Mitrofanov
On Thu, 2023-05-18 at 11:24 -0700, emohand...@linux.microsoft.com wrote: > > From: Ehsan Mohandesi > > The argument len passed to function process_ra is the length of the > IPv6 > router advertisement message and needs to be between 0 and MTU > because > it is assigned to remaining_option_len

Re: [PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-05-10 Thread Vyacheslav V. Mitrofanov
On Wed, 2023-05-10 at 13:05 +0300, Sergei Antonov wrote: > > Hey! It was added without "__packed", see > https://lists.denx.de/pipermail/u-boot/2023-May/517370.html > Hello, Sergei. I see Ehsan hadn't sent v5 before v4 was applied. I would make a patch with __packed attribute and post it.

Re: [PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-04-24 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-04-21 at 17:08 -0700, emohand...@linux.microsoft.com wrote: > > From: Ehsan Mohandesi > > In IPv6, the default gateway and prefix length are determined by > receiving > a router advertisement as defined in - > https://www.rfc-editor.org/rfc/rfc4861. > > Add support for sending

Re: [PATCH v4 3/3] test: eth: IPv6 network discovery unit test

2023-04-24 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-04-21 at 17:08 -0700, emohand...@linux.microsoft.com wrote: > «Внимание! Данное письмо от внешнего адресата!» > > From: Ehsan Mohandesi > > Test router advertisement validation and processing functions. > > Signed-off-by: Ehsan Mohandesi > --- > test/dm/eth.c | 88 >

Re: [PATCH v4 2/3] test/py: IPv6 network discovery test

2023-04-24 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-04-21 at 17:08 -0700, emohand...@linux.microsoft.com wrote: > «Внимание! Данное письмо от внешнего адресата!» > > From: Ehsan Mohandesi > > Test the IPv6 network discovery feature if indicated by boardenv > file. > > Signed-off-by: Ehsan Mohandesi > --- >

Re: [PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-04-24 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-04-21 at 17:08 -0700, emohand...@linux.microsoft.com wrote: > > From: Ehsan Mohandesi > > In IPv6, the default gateway and prefix length are determined by > receiving > a router advertisement as defined in - > https://www.rfc-editor.org/rfc/rfc4861. > > Add support for sending

Re: [PATCH v3 1/3] net: ipv6: Add support for default gateway discovery.

2023-04-20 Thread Vyacheslav V. Mitrofanov
Hello Ehsan! I tried to apply your patches and found out that there are some conflicts. I think you use your custom version. Check it please. Thanks! On Wed, 2023-04-12 at 09:10 -0700, emohand...@linux.microsoft.co wrote: From: Ehsan Mohandesi > > > #endif /* __NDISC_H__ */ > diff --git

Re: [PATCH v2 1/4] Revert "net: ipv6: Add support for default gateway discovery."

2023-04-11 Thread Vyacheslav V. Mitrofanov
On Mon, 2023-04-10 at 12:34 -0700, emohand...@linux.microsoft.com wrote: > > From: Ehsan Mohandesi > > This reverts commit 0af1035a55d9c1486b2db43ee70ff0a63affd4f4. > > Signed-off-by: Ehsan Mohandesi > > Conflicts: > cmd/Kconfig > include/net.h > include/net6.h >

Re: [PATCH] net: ipv6: Add support for default gateway discovery.

2023-03-23 Thread Vyacheslav V. Mitrofanov
On Thu, 2023-03-23 at 16:44 +, Ehsan Mohandesi wrote: > > Hi Viacheslav, > > > -Original Message- > > From: Vyacheslav V. Mitrofanov > > Sent: Thursday, March 16, 2023 3:47 AM > > To: u-boot@lists.denx.de; emohand...@linux.microsoft.com > &g

Re: [PATCH] net: ipv6: Add support for default gateway discovery.

2023-03-16 Thread Vyacheslav V. Mitrofanov
On Thu, 2023-03-02 at 08:58 -0800, emohand...@linux.microsoft.com wrote: > > From: Ehsan Mohandesi > > In IPv6, the default gateway and prefix length are determined by > receiving > a router advertisement as defined in - > https://www.rfc-editor.org/rfc/rfc4861. > > Add support for sending

Re: [PATCH 2/2] net: dhcp6: pxe: Add DHCP/PXE commands for IPv6

2023-03-05 Thread Vyacheslav V. Mitrofanov
> From: Sean Edmond > > Adds commands to support DHCP and PXE with IPv6. > > New commands added (when IPv6 is enabled): > - dhcp6 > - pxe get -ipv6 > - pxe boot -ipv6 > > Signed-off-by: Sean Edmond > --- > boot/bootmeth_distro.c | 2 +- > boot/bootmeth_pxe.c| 4 +- > boot/pxe_utils.c

Re: [PATCH 1/2] net: dhcp6: Add DHCPv6 (DHCP for IPv6)

2023-03-05 Thread Vyacheslav V. Mitrofanov
> From: Sean Edmond > > Adds DHCPv6 protocol to u-boot. > > Allows for address assignement with DHCPv6 4-message exchange > (SOLICIT->ADVERTISE->REQUEST->REPLY). Includes DHCPv6 options > required by RFC 8415. Also adds DHCPv6 options required > for PXE boot. > > New configs added: > -

Re: [PATCH 0/2] net: DHCPv6 protocol and commands

2023-03-05 Thread Vyacheslav V. Mitrofanov
> From: Sean Edmond > > The recently integrated IPv6 patch series relies on the link-local > address, > or a statically assigned IPv6 address for network operations. This > patch > series adds IPv6 address assignment through DHCPv6. > > The implementation meets the requirements in RFC 8415 for

Re: [PATCH] net: ipv6: fix alignment errors on ARM

2023-01-19 Thread Vyacheslav V. Mitrofanov
On Thu, 2023-01-19 at 14:05 +0300, Sergei Antonov wrote: > > On Thu, 19 Jan 2023 at 11:18, Vyacheslav V. Mitrofanov > wrote: > > On Wed, 2023-01-18 at 20:52 +0300, Sergei Antonov wrote: > > > Commands "ping6" and "tftpboot ... -ipv6" did not work on AR

Re: [PATCH] net: ipv6: fix alignment errors on ARM

2023-01-19 Thread Vyacheslav V. Mitrofanov
On Wed, 2023-01-18 at 20:52 +0300, Sergei Antonov wrote: > Commands "ping6" and "tftpboot ... -ipv6" did not work on ARM because > machine code expects 4-byte alignment and some structures from net6.h > are not aligned in memory. > > Fix by adding __packed, since it is already used in this file.

Re: [PATCH] net: ipv6: Fixed IPv6 string to address conversion off-by-one error

2023-01-16 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-01-13 at 09:27 -0800, emohand...@linux.microsoft.com wrote: > From: Ehsan Mohandesi > > One extra character was being checked in the IPv6 string which caused > the > last character of the address to be neither '\0' nor ':'. This raises > an > error condition and causes the function

Re: [PATCH] net: ipv6: Fix IPv6 netmask parsing

2023-01-08 Thread Vyacheslav V. Mitrofanov
On Fri, 2023-01-06 at 14:22 -0800, seanedm...@linux.microsoft.com wrote: > From: Sean Edmond > > It should be possible to specify a netmask when > setting a static IPv6 address. For example: > setenv ip6addr 2001:cafe:cafe:cafe::100/64 > > The net_prefix_length and net_ip6 should be updated >

[PATCH] board: amlogic: jethub j100: add rescue boot from microSD

2022-12-22 Thread Vyacheslav Bocharov
From: Viacheslav Bocharov The new JetHub D1+ has a microSD slot. Add rescue boot from microSD Signed-off-by: Viacheslav Bocharov --- include/configs/jethub.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/jethub.h b/include/configs/jethub.h index 35f85095ac..e22db4991d

Re: [PATCH 1/1] net: missing break after net_ip6_handler()

2022-12-21 Thread Mitrofanov Vyacheslav V .
On Mon, 2022-12-12 at 06:19 -0800, Heinrich Schuchardt wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On 12/7/22 06:52, Vyacheslav Mitrofanov V wrote: > > On Wed, 2022-12-07 at 09:42 -0500, Tom Rini wrote: > > > On Wed, Dec 07, 2022 at 03:29:37PM +0

Re: [PATCH 1/1] net: missing break after net_ip6_handler()

2022-12-21 Thread Mitrofanov Vyacheslav V .
On Wed, 2022-12-07 at 15:29 +0100, Heinrich Schuchardt wrote: > > Don't fall through to handling an IPv6 header as IPv4. > > Fixes: ffdbf3bad5f3 ("net: ipv6: Incorporate IPv6 support into u-boot > net subsystem") > Addresses-Coverity-ID: 430975 ("Missing break in switch") > Signed-off-by:

Re: [PATCH 1/1] net: missing break after net_ip6_handler()

2022-12-07 Thread Vyacheslav Mitrofanov V
On Wed, 2022-12-07 at 09:42 -0500, Tom Rini wrote: > On Wed, Dec 07, 2022 at 03:29:37PM +0100, Heinrich Schuchardt wrote: > > > Don't fall through to handling an IPv6 header as IPv4. > > > > Fixes: ffdbf3bad5f3 ("net: ipv6: Incorporate IPv6 support into u- > > boot net subsystem") > >

Re: [PATCH] net: ipv6: Fix link-partner MAC address assignment

2022-12-07 Thread Vyacheslav Mitrofanov V
On Tue, 2022-12-06 at 13:22 +0100, Daniel Schwierzeck wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On 12/6/22 08:08, Viacheslav Mitrofanov wrote: > > MAC address of a link-partner is not saved for future use because > > of > > bad condition of if statement. Moreover it can

Re: [PATCH 1/1] net: don't memcpy to NULL

2022-12-07 Thread Vyacheslav Mitrofanov V
On Wed, 2022-12-07 at 11:53 +0100, Heinrich Schuchardt wrote: > «Внимание! Данное письмо от внешнего адресата!» > > In ndisc_receive() 7 bytes are copied from a buffer of size 6 to > NULL. > > net_nd_packet_mac is a pointer. If it is NULL, we should set it to > the > address of the buffer with

Re: [PATCH v5 04/19] net: ipv6: Add Neighbor Discovery Protocol (NDP)

2022-12-05 Thread Vyacheslav Mitrofanov V
On Tue, 2022-12-06 at 03:14 +0100, Daniel Schwierzeck wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On 12/2/22 10:18, Viacheslav Mitrofanov wrote: > > Implement basic of NDP. It doesn't include such things as Router > > Solicitation, Router Advertisement and Redirect. It just has >

Re: [PATCH v5 09/19] net: ipv6: Incorporate IPv6 support into u-boot net subsystem

2022-12-05 Thread Vyacheslav Mitrofanov V
On Tue, 2022-12-06 at 03:13 +0100, Daniel Schwierzeck wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On 12/2/22 10:18, Viacheslav Mitrofanov wrote: > > Add net_ip6_handler (an IPv6 packet handler) into net_loop. Add > > neighbor discovery mechanism into network init process. That is

Re: [PATCH v4 00/17] IPv6 support

2022-12-01 Thread Vyacheslav Mitrofanov V
someone do that work and port other stack. But I think it is better to give people IPv6 right now than wait it again. От: Peter Robinson Отправлено: 1 декабря 2022 г. 16:03:46 Кому: Tom Rini Копия: Vyacheslav Mitrofanov V; rfried@gmail.com; joe.hershber...@ni.com

Re: [PATCH v4 00/17] IPv6 support

2022-11-29 Thread Vyacheslav Mitrofanov V
I'll fix it soon and send new patchset! Thanks! От: Tom Rini Отправлено: 29 ноября 2022 г. 16:49:48 Кому: Vyacheslav Mitrofanov V Копия: rfried@gmail.com; joe.hershber...@ni.com; w...@denx.de; u-boot@lists.denx.de; judge.pack...@gmail.com; li...@yadro.com

Re: [PATCH v4 00/17] IPv6 support

2022-11-29 Thread Vyacheslav Mitrofanov V
Tom, maybe it is better to change configs add ifdefs or do sth else to exclude them from the build if IPV6 is not configured? Thanks! От: Vyacheslav Mitrofanov V Отправлено: 29 ноября 2022 г. 11:35:13 Кому: Tom Rini Копия: rfried@gmail.com; joe.hershber

Re: [PATCH v4 00/17] IPv6 support

2022-11-29 Thread Vyacheslav Mitrofanov V
Hello Tom! I tested this problem and I think it is necessary to set CONFIG_IPV6. Without that option tests fail. Thanks! От: Tom Rini Отправлено: 28 ноября 2022 г. 18:34:58 Кому: Vyacheslav Mitrofanov V Копия: rfried@gmail.com; joe.hershber...@ni.com; w

Re: [PATCH 01/17] net: ipv6: Add IPv6 basic primitives

2022-09-12 Thread Vyacheslav Mitrofanov V
On Mon, 2022-09-12 at 10:23 +0300, Ramon Fried wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On Tue, Sep 6, 2022 at 6:10 PM Viacheslav Mitrofanov > wrote: > > This patch is a collection of basic primitives that are > > prerequisite for > > further IPv6 implementation. > > > >

Re: [PATCH 04/17] net: ipv6: Add Neighbor Discovery Protocol (NDP)

2022-09-11 Thread Vyacheslav Mitrofanov V
On Fri, 2022-09-09 at 08:44 -0600, Simon Glass wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On Thu, 8 Sept 2022 at 05:59, Viacheslav Mitrofanov > wrote: > > Implement basic of NDP. It doesn't include such things as Router > > Solicitation, Router Advertisement and Redirect. It

Re: [PATCH v4 00/17] IPv6 support

2022-09-11 Thread Vyacheslav Mitrofanov V
On Thu, 2022-09-08 at 14:58 +0300, Viacheslav Mitrofanov wrote: > This patch set adds basic IPv6 support to U-boot. > It is based on Chris's Packham patches > (https://lists.denx.de/pipermail/u-boot/2017-January/279366.html) > Chris's patches were taken as base. There were efforts to launch it >

Re: [PATCH v2 00/17] IPv6 support

2022-09-03 Thread Vyacheslav Mitrofanov V
On Wed, 2022-08-31 at 20:27 -0600, Simon Glass wrote: > «Внимание! Данное письмо от внешнего адресата!» > > Hi Viacheslav, > > On Tue, 30 Aug 2022 at 07:00, Viacheslav Mitrofanov > wrote: > > This patch set adds basic IPv6 support to U-boot. > > It is based on Chris's Packham patches > >

Re: [PATCH 3/5] net: tftp: add IPv6 support for tftpboot

2022-09-02 Thread Vyacheslav Mitrofanov V
On Fri, 2022-09-02 at 17:48 +0300, Ramon Fried wrote: > «Внимание! Данное письмо от внешнего адресата!» > > On Mon, Aug 22, 2022 at 9:36 AM Vyacheslav Mitrofanov V > wrote: > > On Fri, 2022-08-19 at 21:01 +0300, Ramon Fried wrote: > > > On Fri, Aug 19, 2022 at 2:30

Re: [PATCH v5 07/12] efi_loader: disk: a helper function to create efi_disk objects from udevice

2022-08-24 Thread Vyacheslav
CONFIG_EFI_LOAD_FILE2_INITRD=y If I set it all to "n" bug dissapears and board boots normally. 24.08.2022 12:00, Vyacheslav wrote: I has similar problem on axg meson64. Seems problem exists at least on 1Gb RAM devices, my device with 2 GB RAM did not hit this error. -- Vyacheslav Bocharov

Re: [PATCH v5 07/12] efi_loader: disk: a helper function to create efi_disk objects from udevice

2022-08-24 Thread Vyacheslav
// b.any 105ff40: 5280mov w0, #0x0 // #0 105ff44: 1406b 105ff5c *105ff48: 386468a3ldrbw3, [x5, x4] 105ff4c: 38646820ldrbw0, [x1, x4] I don't know how to get the call stack from this information. What else

Re: [PATCH 3/5] net: tftp: add IPv6 support for tftpboot

2022-08-22 Thread Vyacheslav Mitrofanov V
On Fri, 2022-08-19 at 21:01 +0300, Ramon Fried wrote: > > On Fri, Aug 19, 2022 at 2:30 PM Vyacheslav Mitrofanov V > wrote: > > On Fri, 2022-08-19 at 14:00 +0300, Ramon Fried wrote: > > > On Fri, Aug 19, 2022 at 11:10 AM Viacheslav Mitrofanov > > > wrote: >

Re: [PATCH 3/5] net: tftp: add IPv6 support for tftpboot

2022-08-19 Thread Vyacheslav Mitrofanov V
On Fri, 2022-08-19 at 14:00 +0300, Ramon Fried wrote: > On Fri, Aug 19, 2022 at 11:10 AM Viacheslav Mitrofanov > wrote: > > The command tftpboot uses IPv4 by default, to use IPv6 instead add > > -ipv6 > > as the last argument. All other tftpboot features and parameters > > are left > > the same.

[PATCH] cmd: fix do_adc_single()

2022-07-03 Thread Vyacheslav Bocharov
The source code contains an error: - argv[2] contains arg, variable for env_set is in argv[3] - number of args is 4 Revert 54d24d72601321f4470c4edf31c6b29adae424a7 cmd: simplify do_adc_single() Fixes 9de612ae4ded53f742f5f99929c06d0839471ced cmd: adc: Add support for storing ADC result in

[PATCH 2/2] doc: boards: amlogic: update jethub d1 specifications

2022-04-25 Thread Vyacheslav Bocharov
Signed-off-by: Vyacheslav Bocharov --- doc/board/amlogic/jethub-j100.rst | 24 ++-- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/doc/board/amlogic/jethub-j100.rst b/doc/board/amlogic/jethub-j100.rst index d54519aaef..8081569bba 100644 --- a/doc/board

[PATCH 1/2] doc: boards: amlogic: update documentation for ADC support for AXG

2022-04-25 Thread Vyacheslav Bocharov
Signed-off-by: Vyacheslav Bocharov --- doc/board/amlogic/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/board/amlogic/index.rst b/doc/board/amlogic/index.rst index 9ef1440433..9c7fadf2c0 100644 --- a/doc/board/amlogic/index.rst +++ b/doc/board/amlogic/index.rst

[PATCH v3 5/6] board: amlogic: jethub j100: enable saradc in dts

2022-04-24 Thread Vyacheslav Bocharov
Prepare to use ADC channel 1 to check the hardware revision of the board: - add u-boot dts include with saradc node Signed-off-by: Vyacheslav Bocharov --- arch/arm/dts/meson-axg-jethome-jethub-j100-u-boot.dtsi | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 arch/arm/dts

[PATCH v3 6/6] board: amlogic: jethub j100: enable saradc in config

2022-04-24 Thread Vyacheslav Bocharov
Enable ADC in board config file Signed-off-by: Vyacheslav Bocharov Reviewed-by: Neil Armstrong --- configs/jethub_j100_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/jethub_j100_defconfig b/configs/jethub_j100_defconfig index 1c6db9f6a0..a30940bf1c 100644

[PATCH v3 4/6] adc: meson-saradc: add AXG variant

2022-04-24 Thread Vyacheslav Bocharov
Add support for the SARADC variant found on the AXG SoCs family. Signed-off-by: Vyacheslav Bocharov Acked-by: Neil Armstrong --- drivers/adc/meson-saradc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index 1a45a3a265..37023512f0

[PATCH v3 3/6] clk: meson: update driver for g12a-ao clocks

2022-04-24 Thread Vyacheslav Bocharov
Update g12a-ao clk driver: - move clk->id check to .request function - remove unnecessary check (gate->reg == 0) Signed-off-by: Vyacheslav Bocharov --- drivers/clk/meson/g12a-ao.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/clk/meson/g12a-

[PATCH v3 2/6] clk: meson: fix driver name for g12a-ao clocks

2022-04-24 Thread Vyacheslav Bocharov
Update the clk-g12a-ao driver from "axg" to "g12a" Signed-off-by: Vyacheslav Bocharov Acked-by: Neil Armstrong --- drivers/clk/meson/g12a-ao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-a

[PATCH v3 1/6] clk: meson: add minimal driver for axg-ao clocks

2022-04-24 Thread Vyacheslav Bocharov
Add minimal driver AO clocks on meson AXG family. Only ADC related clocks are supported. Signed-off-by: Vyacheslav Bocharov Reviewed-by: Sean Anderson Reviewed-by: Neil Armstrong --- drivers/clk/meson/Makefile | 1 + drivers/clk/meson/axg-ao.c | 86 ++ 2

[PATCH v3 0/6] meson: add clk and adc support for JetHub D1 (j100)

2022-04-24 Thread Vyacheslav Bocharov
t.dtsi >From v1: - move clk-id check to .request function for axg/g12a-ao clk driver Vyacheslav Bocharov (6): clk: meson: add minimal driver for axg-ao clocks clk: meson: fix driver name for g12a-ao clocks clk: meson: update driver for g12a-ao clocks adc: meson-saradc: add AXG variant

Re: [PATCH v2 5/6] board: amlogic: jethub j100: enable saradc in dts

2022-04-23 Thread Vyacheslav
22.04.2022 16:26, Neil Armstrong wrote: On 22/04/2022 07:29, Vyacheslav Bocharov wrote: Prepare to use ADC channel 1 to check the hardware revision of the board. Signed-off-by: Vyacheslav Bocharov ---   arch/arm/dts/meson-axg-jethome-jethub-j100.dts | 5 +   1 file changed, 5 insertions

Re: [PATCH v2 1/6] clk: meson: add minimal driver for axg-ao clocks

2022-04-23 Thread Vyacheslav
23.04.2022 1:55, Sean Anderson wrote: On 4/22/22 1:29 AM, Vyacheslav Bocharov wrote: Add minimal driver AO clocks on meson AXG family. Only ADC related clocks are supported. Signed-off-by: Vyacheslav Bocharov ---   drivers/clk/meson/Makefile |  1 +   drivers/clk/meson/axg-ao.c | 89

[PATCH v2 6/6] board: amlogic: jethub j100: enable saradc in config

2022-04-21 Thread Vyacheslav Bocharov
Enable ADC in board config file Signed-off-by: Vyacheslav Bocharov --- configs/jethub_j100_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/jethub_j100_defconfig b/configs/jethub_j100_defconfig index 1c6db9f6a0..a30940bf1c 100644 --- a/configs/jethub_j100_defconfig

[PATCH v2 5/6] board: amlogic: jethub j100: enable saradc in dts

2022-04-21 Thread Vyacheslav Bocharov
Prepare to use ADC channel 1 to check the hardware revision of the board. Signed-off-by: Vyacheslav Bocharov --- arch/arm/dts/meson-axg-jethome-jethub-j100.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/meson-axg-jethome-jethub-j100.dts b/arch/arm/dts/meson-axg

[PATCH v2 4/6] adc: meson-saradc: add AXG variant

2022-04-21 Thread Vyacheslav Bocharov
Add support for the SARADC variant found on the AXG SoCs family. Signed-off-by: Vyacheslav Bocharov --- drivers/adc/meson-saradc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index 1a45a3a265..37023512f0 100644 --- a/drivers/adc

[PATCH v2 2/6] clk: meson: fix driver name for g12a-ao clocks

2022-04-21 Thread Vyacheslav Bocharov
Update the clk-g12a-ao driver from "axg" to "g12a" Signed-off-by: Vyacheslav Bocharov --- drivers/clk/meson/g12a-ao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-ao.c index 0148529e04..17b11eb52a

[PATCH v2 3/6] clk: meson: update driver for g12a-ao clocks

2022-04-21 Thread Vyacheslav Bocharov
Move clk->id check to .request function Signed-off-by: Vyacheslav Bocharov --- drivers/clk/meson/g12a-ao.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-ao.c index 17b11eb52a..22c85cff1d 100644 --- a/driv

[PATCH v2 1/6] clk: meson: add minimal driver for axg-ao clocks

2022-04-21 Thread Vyacheslav Bocharov
Add minimal driver AO clocks on meson AXG family. Only ADC related clocks are supported. Signed-off-by: Vyacheslav Bocharov --- drivers/clk/meson/Makefile | 1 + drivers/clk/meson/axg-ao.c | 89 ++ 2 files changed, 90 insertions(+) create mode 100644

[PATCH v2 0/6] meson: add clk and adc support for JetHub D1 (j100)

2022-04-21 Thread Vyacheslav Bocharov
;id check to .request function for g12a-clk-ao driver - enable saradc in dts/board config for JetHub D1 (j100) >From v1: - move clk-id check to .request function for axg/g12a-ao clk driver Vyacheslav Bocharov (6): clk: meson: add minimal driver for axg-ao clocks clk: meson: fix drive

[PATCH 5/5] board: amlogic: jethub j100: enable saradc in config

2022-04-20 Thread Vyacheslav Bocharov
Enable ADC in board config file Signed-off-by: Vyacheslav Bocharov --- configs/jethub_j100_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/jethub_j100_defconfig b/configs/jethub_j100_defconfig index 1c6db9f6a0..a30940bf1c 100644 --- a/configs/jethub_j100_defconfig

[PATCH 4/5] board: amlogic: jethub j100: enable saradc in dts

2022-04-20 Thread Vyacheslav Bocharov
Prepare to use ADC channel 1 to check the hardware revision of the board. Signed-off-by: Vyacheslav Bocharov --- arch/arm/dts/meson-axg-jethome-jethub-j100.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/meson-axg-jethome-jethub-j100.dts b/arch/arm/dts/meson-axg

[PATCH 3/5] adc: meson-saradc: add AXG variant

2022-04-20 Thread Vyacheslav Bocharov
Add support for the SARADC variant found on the AXG SoCs family. Signed-off-by: Vyacheslav Bocharov --- drivers/adc/meson-saradc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index 1a45a3a265..37023512f0 100644 --- a/drivers/adc

[PATCH 1/5] clk: meson: add minimal driver for axg-ao clocks

2022-04-20 Thread Vyacheslav Bocharov
Add minimal driver AO clocks on meson AXG family. Only ADC related clocks are supported. Signed-off-by: Vyacheslav Bocharov --- drivers/clk/meson/Makefile | 1 + drivers/clk/meson/axg-ao.c | 83 ++ 2 files changed, 84 insertions(+) create mode 100644

[PATCH 2/5] clk: meson: fix driver name for g12a-ao clocks

2022-04-20 Thread Vyacheslav Bocharov
Update the clk-g12a-ao driver from "axg" to "g12a" Signed-off-by: Vyacheslav Bocharov --- drivers/clk/meson/g12a-ao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-ao.c index 0148529e04..17b11eb52a

[PATCH 0/5] meson: add clk and adc support for JetHub D1 (j100)

2022-04-20 Thread Vyacheslav Bocharov
Prepare to use ADC channel 1 in JetHub D1 (j100) to check the hardware revision of the board. - add support for AXG in saradc driver - add simple clk-ao driver for AXG (base is taken from g12a) - enable saradc in dts and board config file - fix typo in the g12a-clk-ao driver name Vyacheslav

Re: [PATCH] configs: amlogic: Disable CONFIG_NET_RANDOM_ETHADDR when unnecessary

2021-11-22 Thread Vyacheslav
Sounds right for jethub boards. Signed-off-by: Vyacheslav Bocharov 22.11.2021 14:07, Neil Armstrong пишет: On Meson GXL, GXM, AXG, G12A, G12B & SM1 SoCs, we can generate an unique MAC address if none valid found in the eFuses storage. Only the GXBB based boards doesn't have a fallback

Re: [PATCH] ARM: amlogic: add JetHub D1 eth mac generation with manufacturer OUI

2021-10-29 Thread Vyacheslav
Fix build warning in misc_init_r jethub-j100.c Signed-off-by: Vyacheslav Bocharov --- board/amlogic/jethub-j100/jethub-j100.c | 1 + 1 file changed, 1 insertion(+) diff --git a/board/amlogic/jethub-j100/jethub-j100.c b/board/amlogic/jethub-j100/jethub-j100.c index 575bb31573..6a2c4ad4c3

Re: [PATCH] ARM: amlogic: add JetHub D1 eth mac generation with manufacturer OUI

2021-10-29 Thread Vyacheslav
Thanks. 29.10.2021 15:08, Neil Armstrong пишет: On 29/10/2021 09:08, Vyacheslav Bocharov wrote: JetHome has own MAC OUI. Add jethub-j100 board file. Update config. Signed-off-by: Vyacheslav Bocharov --- board/amlogic/jethub-j100/MAINTAINERS | 8 + board/amlogic/jethub-j100/Makefile

[PATCH] ARM: amlogic: add JetHub D1 eth mac generation with manufacturer OUI

2021-10-29 Thread Vyacheslav Bocharov
JetHome has own MAC OUI. Add jethub-j100 board file. Update config. Signed-off-by: Vyacheslav Bocharov --- board/amlogic/jethub-j100/MAINTAINERS | 8 + board/amlogic/jethub-j100/Makefile | 6 board/amlogic/jethub-j100/jethub-j100.c | 41 + board/amlogic

[PATCH v2] ARM: amlogic: update JetHub D1/H1 configs (was: add SYS_LOAD_ADDR to JetHub D1/H1 configs)

2021-10-06 Thread Vyacheslav Bocharov
- late fix for 49c8ef0e45a91ec894ef15e7d043dafe8f1c5efd commit by Tom Rini. - enable i2c, rtc, eeprom Changes: - add i2c, rtc, eeprom Signed-off-by: Vyacheslav Bocharov --- configs/jethub_j100_defconfig | 8 configs/jethub_j80_defconfig | 8 2 files changed, 16 insertions

[PATCH] ARM: amlogic: add sm efuse write support and cmd for read/write efuse

2021-10-05 Thread Vyacheslav Bocharov
This adds support for amlogic efuse write and provides two subcommands of "sm" command: "efuseread" and "efusewrite" to read/write bytes between memory and efuse. Signed-off-by: Vyacheslav Bocharov --- arch/arm/mach-meson/sm.c | 68 ++

[PATCH] ARM: amlogic: add SYS_LOAD_ADDR to JetHub D1/H1 configs

2021-10-05 Thread Vyacheslav Bocharov
Late fix for 49c8ef0e45a91ec894ef15e7d043dafe8f1c5efd commit by Tom Rini. Signed-off-by: Vyacheslav Bocharov --- configs/jethub_j100_defconfig | 1 + configs/jethub_j80_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/jethub_j100_defconfig b/configs/jethub_j100_defconfig

Re: [PATCH v2 2/3] ARM: amlogic: add JetHub D1/H1 device support

2021-09-20 Thread Vyacheslav
20.09.2021 09:43, Neil Armstrong wrote: Hi, On 19/09/2021 17:52, Vyacheslav Bocharov wrote: Add support for new home automation devices. While applying I had a few warnings: + if (!env_get("serial")) { + len = meson_sm_read_efuse(EFUSE_SN_OFFSET, seria

[PATCH v3 2/3] ARM: amlogic: add JetHub D1/H1 device support

2021-09-20 Thread Vyacheslav Bocharov
...@lexina.in https://git.kernel.org/amlogic/c/8e279fb2903990cc6296ec56b3b80b2f854b6c79 Signed-off-by: Vyacheslav Bocharov Reviewed-by: Neil Armstrong --- arch/arm/dts/Makefile | 2 + .../arm/dts/meson-axg-jethome-jethub-j100.dts | 361 ++ .../meson-gxl-s905w

[PATCH v3 3/3] ARM: amlogic: add JetHub D1/H1 docs

2021-09-20 Thread Vyacheslav Bocharov
Fix doc/board/amlogic/index.rst: - Add S905W to S905X column. - Add JetHub devices to the corresponding columns. - Fix tabs to spaces for table alignment Add doc/board/amlogic files: - jethub-j100.rst - jethub-j80.rst Signed-off-by: Vyacheslav Bocharov Reviewed-by: Neil Armstrong --- doc

[PATCH v3 0/3] ARM: meson: add support for JetHub D1/H1

2021-09-20 Thread Vyacheslav Bocharov
hub-j80/jethub-j80.c - add missing files to board/amlogic/jethub-j80/MAINTAINERS - fix unexpected unindent in doc files Changes from v1: - fix BOOT_TARGET_DEVICES in jethub.h (patch 1/3) - add lore URLs to description (patch 2/3) Signed-off-by: Vyacheslav Bocharov Vyacheslav Bocharov (3): ARM:

[PATCH v3 1/3] ARM: amlogic: add JetHub common config header

2021-09-20 Thread Vyacheslav Bocharov
JetHub devices uses its own boot sequence with "rescue" button Signed-off-by: Vyacheslav Bocharov --- include/configs/jethub.h | 40 1 file changed, 40 insertions(+) create mode 100644 include/configs/jethub.h diff --git a/include/configs/

[PATCH v2 3/3] ARM: amlogic: add JetHub D1/H1 docs

2021-09-19 Thread Vyacheslav Bocharov
Fix doc/board/amlogic/index.rst: - Add S905W to S905X column. - Add JetHub devices to the corresponding columns. - Fix tabs to spaces for table alignment Add doc/board/amlogic files: - jethub-j100.rst - jethub-j80.rst Signed-off-by: Vyacheslav Bocharov Reviewed-by: Neil Armstrong --- doc

[PATCH v2 2/3] ARM: amlogic: add JetHub D1/H1 device support

2021-09-19 Thread Vyacheslav Bocharov
...@lexina.in https://git.kernel.org/amlogic/c/8e279fb2903990cc6296ec56b3b80b2f854b6c79 Signed-off-by: Vyacheslav Bocharov Reviewed-by: Neil Armstrong --- arch/arm/dts/Makefile | 2 + .../arm/dts/meson-axg-jethome-jethub-j100.dts | 361 ++ .../meson-gxl-s905w

[PATCH v2 0/3] ARM: meson: add support for JetHub D1/H1

2021-09-19 Thread Vyacheslav Bocharov
(patch 2/3) Signed-off-by: Vyacheslav Bocharov Vyacheslav Bocharov (3): ARM: amlogic: add JetHub common config header ARM: amlogic: add JetHub D1/H1 device support ARM: amlogic: add JetHub D1/H1 docs arch/arm/dts/Makefile | 2 + .../arm/dts/meson-axg-jethome-jethu

[PATCH v2 1/3] ARM: amlogic: add JetHub common config header

2021-09-19 Thread Vyacheslav Bocharov
JetHub devices uses its own boot sequence with "rescue" button Signed-off-by: Vyacheslav Bocharov --- include/configs/jethub.h | 40 1 file changed, 40 insertions(+) create mode 100644 include/configs/jethub.h diff --git a/include/configs/

[PATCH 2/3] ARM: amlogic: add JetHub D1/H1 device support

2021-09-19 Thread Vyacheslav Bocharov
Button - DC source 5V microUSB with serial console Patches from: - JetHub H1 https://git.kernel.org/amlogic/c/abfaae24ecf3e7f00508b60fa05e2b6789b8f607 - JetHub D1 https://git.kernel.org/amlogic/c/8e279fb2903990cc6296ec56b3b80b2f854b6c79 Signed-off-by: Vyacheslav Bocharov --- arch/arm/dts

[PATCH 3/3] ARM: amlogic: add JetHub D1/H1 docs

2021-09-19 Thread Vyacheslav Bocharov
Fix doc/board/amlogic/index.rst: - Add S905W to S905X column. - Add JetHub devices to the corresponding columns. - Fix tabs to spaces for table alignment Add doc/board/amlogic files: - jethub-j100.rst - jethub-j80.rst Signed-off-by: Vyacheslav Bocharov --- doc/board/amlogic/index.rst

[PATCH 0/3] ARM: meson: add support for JetHub D1/H1

2021-09-19 Thread Vyacheslav Bocharov
8 + CC2592 Zigbee Wireless Module with up to 20dBm output power and Zigbee 3.0 support. - MicroSD 2.x/3.x/4.x DS/HS cards. - 1 x gpio LED - ADC user Button - DC source 5V microUSB with serial console Signed-off-by: Vyacheslav Bocharov Vyacheslav Bocharov (3): ARM: amlogic: add JetHub common con

[PATCH 1/3] ARM: amlogic: add JetHub common config header

2021-09-19 Thread Vyacheslav Bocharov
JetHub devices uses its own boot sequence with "rescue" button. Add custom config header file that corrects boot order. Signed-off-by: Vyacheslav Bocharov --- include/configs/jethub.h | 40 1 file changed, 40 insertions(+) create mode 1006

Re: [PATCH v3 02/10] usb: dwc3: meson-gxl: add AXG compatible

2021-09-18 Thread Vyacheslav
Tested-by: Vyacheslav Bocharov 17.09.2021 10:37, Neil Armstrong пишет: Upstream Linux uses the "amlogic,meson-axg-usb-ctrl" for AXG SoCs. This adds it to the compatible list for this driver. Reported-by: Vyacheslav Bocharov Signed-off-by: Neil Armstrong --- drivers/usb/dwc3/

Re: [PATCH v2 1/9] ARM: meson: Sync Amlogic DT from Linux 5.14

2021-09-15 Thread Vyacheslav
08.09.2021 17:17, Neil Armstrong via groups.io wrote: diff --git a/arch/arm/dts/meson-axg.dtsi b/arch/arm/dts/meson-axg.dtsi index b9efc84692..3f5254eeb4 100644 --- a/arch/arm/dts/meson-axg.dtsi +++ b/arch/arm/dts/meson-axg.dtsi ... + + usb: usb@ffe09080 { +