[PATCH v1] drivers: spi: spi-sunxi: Add Kconfig option for sun4i_spi_parse_pins

2022-04-24 Thread qianfanguijin
From: qianfan Zhao spi-sunxi driver will init pins based on "pinctrl-0", but the implementation is very limited. Adding an Kconfig option if you really need this feature, or disable it and config pinmux at board's board_init. Signed-off-by: qianfan Zhao --- drivers/spi/Kconfig | 10 ++

Re: [PATCH] net: marvell: mvgbe: Set PHY page 0 before phy_connect

2022-04-24 Thread Stefan Roese
Hi Tony, On 4/23/22 04:15, Tony Dinh wrote: Hi Stefan, Please see my various comments below. And my thoughts at the end. On Thu, Apr 21, 2022 at 11:15 PM Stefan Roese wrote: Hi Tony, On 4/21/22 23:21, Tony Dinh wrote: What really puzzles me is, why the page address is set to a non-zero

Re: [PATCH v3 08/13] misc: Add support for nvmem cells

2022-04-24 Thread Simon Glass
Hi Sean, On Mon, 18 Apr 2022 at 13:37, Sean Anderson wrote: > > This adds support for "nvmem cells" as seen in Linux. The nvmem device > class in Linux is used for various assorted ROMs and EEPROMs. In this > sense, it is similar to UCLASS_MISC, but also includes > UCLASS_I2C_EEPROM, UCLASS_RTC,

[PATCH v5 21/34] bootstd: mmc: Add a bootdev driver

2022-04-24 Thread Simon Glass
Add a bootdev driver for MMC. It mostly just calls the bootdev helper function. Add a function to obtain the block device for an MMC controller. Fix up the comment for mmc_get_blk_desc() while we are here. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Use new Return st

[PATCH v5 10/34] dm: blk: Add a function to return the device type

2022-04-24 Thread Simon Glass
Use the uclass name to get the device type for a block device. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Use new sphynx Return style drivers/block/blk-uclass.c | 7 +++ include/blk.h | 8 2 files changed, 15 insertions(+) diff --git a/dri

[PATCH v5 14/34] bootstd: Add the bootdev uclass

2022-04-24 Thread Simon Glass
A 'bootdev' is a device which can be used to boot an operating system. It is a child of the media device (e.g. MMC) which handles reading files from that device, such as a bootflow file. Add a uclass for bootdev and the various helpers needed to make it work. Also add a binding file, empty for now

[PATCH v5 11/34] fs: Add a function to set the filesystem type

2022-04-24 Thread Simon Glass
When sandbox is used with hostfs we won't have a block device, but still must set up the filesystem type before any filesystem operation, such as loading a file. Add a function to handle this. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Add new patch with a function to

[PATCH v5 33/34] bootstd: doc: Add documentation

2022-04-24 Thread Simon Glass
Add documentation for this feature, including the commands and full devicetree bindings. Signed-off-by: Simon Glass --- Changes in v5: - Add a Kconfig to select bootstd by default - Rebase to master Changes in v4: - Update docs for typos that have been fixed Changes in v3: - Update docs for "b

[PATCH v5 34/34] bootstd: Provide a default command

2022-04-24 Thread Simon Glass
We would like to use bootstd by default when EFI boot manager is not enabled. But so far bootstd does not support all the of distro-boot fetures. So for now, add an option to select this. Signed-off-by: Simon Glass --- (no changes since v1) boot/Kconfig | 17 - 1 file changed,

[PATCH v5 31/34] bootstd: Add tests for bootstd including all uclasses

2022-04-24 Thread Simon Glass
Add a set of combined tests for the bootdev, bootflow and bootmeth commands, along with associated functionality. Expand the sandbox console-recording limit so that these can work. These tests rely on a filesystem script which is not yet added to the Python tests. It is included here as a shell s

[PATCH v5 32/34] bootstd: Add setup for the bootflow tests

2022-04-24 Thread Simon Glass
We need to create a disk image with a partition table and a DOS-format filesystem containing a few files. Provide a fallback binary for CI since it does not seem able to detect the loopback partitions. Add this to a dm_init test so that it happens when needed. Signed-off-by: Simon Glass --- (no

[PATCH v5 26/34] bootstd: Add an implementation of EFI bootmgr

2022-04-24 Thread Simon Glass
Add a bootmeth driver which handles EFI boot manager, using EFI_LOADER. In effect, this provides the same functionality as the 'bootefi bootmgr' command and shares the same code. But the interface into it is via a bootmeth, so it does not require any special scripts, etc. For now this requires th

[PATCH v5 23/34] bootstd: Add an implementation of distro PXE boot

2022-04-24 Thread Simon Glass
Add a bootmeth driver which handles distro boot from a network device, so we can boot a bootflow using this commonly used mechanism. In effect, this provides the same functionality as the 'pxe' command and shares the same code. But the interface into it is via a bootmeth. For now this requires th

[PATCH v5 29/34] bootstd: Add an implementation of script boot

2022-04-24 Thread Simon Glass
Add a bootmeth driver which handles distro boot from a disk via a U-Boot script, so we can boot a bootflow using this commonly used mechanism. This is required by Armbian, for example. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Allow use without a block device Change

[PATCH v5 30/34] bootstd: usb: Add a bootdev driver

2022-04-24 Thread Simon Glass
Add a bootdev driver for USB host. It can use the distro boot mechanism to locate a file, or any other available bootmeth. Signed-off-by: Simon Glass --- (no changes since v1) common/usb_storage.c | 11 ++ drivers/usb/host/Makefile | 4 +++ drivers/usb/host/usb_bootdev.c |

[PATCH v5 27/34] bootstd: Add a sandbox bootmeth driver

2022-04-24 Thread Simon Glass
Add a bootmeth driver for sandbox, used for testing. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add a log category boot/Kconfig| 7 + boot/Makefile | 1 + boot/bootmeth_sandbox.c | 69 + 3 files cha

[PATCH v5 24/34] bootstd: Add an implementation of EFI boot

2022-04-24 Thread Simon Glass
Add a bootmeth driver which handles EFI boot, using EFI_LOADER. In effect, this provides the same functionality as the 'bootefi' command and shares the same code. But the interface into it is via a bootmeth, so it does not require any special scripts, etc. For now this requires the 'bootefi' comm

[PATCH v5 22/34] bootstd: ethernet: Add a bootdev driver

2022-04-24 Thread Simon Glass
Add a bootdev driver for Ethernet. It can use the PXE boot mechanism to locate a file, added later. Signed-off-by: Simon Glass --- (no changes since v1) MAINTAINERS | 1 + net/Kconfig | 9 + net/Makefile | 1 + net/eth-uclass.c | 8 net/eth_bootdev.c | 101 ++

[PATCH v5 18/34] bootstd: Add a bootflow command

2022-04-24 Thread Simon Glass
Add a 'bootflow' command to handle listing and selection of bootflow. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Make CMD_BOOTSTD_FULL depend on BOOTSTD_FULL - Warn when trying to use the full bootflow command but it is not enabled Changes in v3: - Put some features

[PATCH v5 16/34] bootstd: Add support for bootflows

2022-04-24 Thread Simon Glass
Add support for bootflows, including maintaining a list of them and iterating to find them. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Show the bootmeth name when booting - Use new Return style in function comments Changes in v3: - Explain why it is OK to use "?" as

[PATCH v5 13/34] bootstd: Add the bootstd uclass and core implementation

2022-04-24 Thread Simon Glass
The 'bootstd' device provides the central information about U-Boot standard boot. Add a uclass for bootstd and the various helpers needed to make it work. Also add a binding file. Signed-off-by: Simon Glass --- Changes in v5: - Disable bootstd for EFI app builds, since they use dm_scan_other()

[PATCH v5 12/34] bootstd: Add the concept of a bootflow

2022-04-24 Thread Simon Glass
A bootflow encapsulates the process used to boot an operating system. It typically has a control file (such as extlinux.conf) and information about which 'bootdev' it came from. Add the header file for this first, since it is needed by all other files. Signed-off-by: Simon Glass --- (no changes

[PATCH v5 19/34] bootstd: Add a bootmeth command

2022-04-24 Thread Simon Glass
Add a 'bootmeth' command to handle listing and ordering of boot methods. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Move bootmeth ordering into the uclass cmd/Kconfig| 11 + cmd/Makefile | 1 + cmd/bootmeth.c | 113 ++

[PATCH v5 17/34] bootstd: Add a bootdev command

2022-04-24 Thread Simon Glass
Add a 'bootdev' command to handle listing and selection of bootdevs. Disable standard boot for a few boards which otherwise run out of space. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Use separate Kconfig options for each command MAINTAINERS

[PATCH v5 15/34] bootstd: Add the bootmeth uclass and helpers

2022-04-24 Thread Simon Glass
A bootmeth is a method of locating an operating system. For now, just add the uclass itself. Drivers for particular bootmeths are added later. If no bootmeths devices are included in the devicetree, create them automatically. This avoids the need for boilerplate in the devicetree files. Signed-of

[PATCH v5 09/34] test: dm: Restart USB before assuming it is stopped

2022-04-24 Thread Simon Glass
Update the blk test to stop USB first, in case another test has started it. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/blk.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/test/dm/blk.c b/test/dm/blk.c index 8556cc7159c..85c3a3bd45c 100644 --- a/test/dm/blk.c +++ b

[PATCH v5 03/34] lib: Correct comment formatting to avoid sphinx problems

2022-04-24 Thread Simon Glass
Tweak a few comments to kep sphinx happy, in case we want to include this file one day. Also fix the 'exxamine' typo. Patch-notes: This uses: sed -i 's/@param \(\S*\)\s*/@\1: /' include/vsprintf.h to convert the @param to the new format. Signed-off-by: Simon Glass --- (no changes since v4

[PATCH v5 04/34] lib: Fix a few bugs in trailing_strtoln()

2022-04-24 Thread Simon Glass
At present this has a minor bug in that it reads the byte before the start of the string, if it is empty. Also it doesn't handle a non-numeric prefix which is only one character long. Fix these bugs with a reworked implementation. Add a test for the second case. The first one is hard to test. Sig

[PATCH v5 08/34] test: fastboot: Avoid using mmc1

2022-04-24 Thread Simon Glass
The bootflow tests need to use an MMC with an associated backing file containing a filesystem. Update the fastboot tests to cope with this. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/fastboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dm/fa

[PATCH v5 07/34] dm: core: Allow finding a uclass device by partial name

2022-04-24 Thread Simon Glass
In some cases two devices are related and the only way to tell is to check that the names partially patch. Add a way to check this without needing to create a new string for the comparison. Fix the comment for device_find_child_by_namelen() while we are here. Signed-off-by: Simon Glass --- (no

[PATCH v5 06/34] dm: core: Rename and fix uclass_get_by_name_len()

2022-04-24 Thread Simon Glass
It seems that namelen is more common in U-Boot. Rename this function to fit in better. Also fix a bug where it breaks the operation of uclass_get_by_name() and add a test. Signed-off-by: Simon Glass Reported-by: Patrick Delaunay Reported-by: Tim Harvey --- (no changes since v4) Changes in v4:

[PATCH v5 02/34] test: Add tests for trailing_strtol()

2022-04-24 Thread Simon Glass
This function currently has no tests. Add some. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Use new Return style in function comments include/vsprintf.h | 4 ++-- test/str_ut.c | 19 +++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --

[PATCH v5 05/34] lib: Add a way to find the postiion of a trailing number

2022-04-24 Thread Simon Glass
At present it is not possible to find out which part of the string is the number part and which is before it. Add a new variant which provides this feature, so we can separate the two in the caller. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Use new Return style in fu

[PATCH v5 01/34] lib: Move string tests to the string module

2022-04-24 Thread Simon Glass
A few string tests were added to the print module by mistake. Move them. Signed-off-by: Simon Glass --- (no changes since v4) Changes in v4: - Correct the commit tag test/print_ut.c | 40 test/str_ut.c | 40 2

[PATCH v5 00/34] Initial implementation of standard boot

2022-04-24 Thread Simon Glass
The bootflow feature provide a built-in way for U-Boot to automatically boot an Operating System without custom scripting and other customisation. This is called 'standard boot' since it provides a standard way for U-Boot to boot a distro, without scripting. It introduces the following concepts:

RE: [PATCH 1/2] powerpc: mpc85xx: Add support for generating QorIQ pre-PBL eSDHC boot sector

2022-04-24 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Pali Rohár >Sent: Tuesday, April 5, 2022 7:11 PM >To: Priyanka Jain ; Qiang Zhao ; >Shengzhou Liu ; Alexander Graf ; >Bin Meng ; Wolfgang Denk ; Sinan >Akman >Cc: u-boot@lists.denx.de >Subject: [PATCH 1/2] powerpc: mpc85xx: Add support for

Re: [PATCH][RESEND] mtd: spi-nor-ids: Add Winbond W25Q128JW ID

2022-04-24 Thread Stefan Roese
On 4/24/22 23:39, Marek Vasut wrote: Add ID for Winbond W25Q128JW device. This is a 128 Mbit QSPI NOR. Tested on W25Q128JWPIM part. Signed-off-by: Marek Vasut Cc: Horatiu Vultur Cc: Jagan Teki Cc: Simon Goldschmidt Cc: Stefan Roese Cc: Vignesh R Reviewed-by: Stefan Roese Thanks, Stefan

RE: [PATCH 7/8] powerpc: mpc85xx: Set TEXT_BASE addresses to real base values

2022-04-24 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Pali Rohár >Sent: Tuesday, April 5, 2022 6:43 PM >To: Priyanka Jain ; Qiang Zhao ; >Shengzhou Liu ; Alexander Graf ; >Bin Meng ; Wolfgang Denk ; Sinan >Akman >Cc: u-boot@lists.denx.de >Subject: [PATCH 7/8] powerpc: mpc85xx: Set TEXT_BASE ad

Regression? [PATCH 1/2] mtd: call of_platform_populate() for MTD partitions

2022-04-24 Thread Daniel Golle
Hi Rafal, Hi Miguel, On Mon, Apr 11, 2022 at 11:00:32AM +0200, Miquel Raynal wrote: > On Wed, 2022-04-06 at 14:32:24 UTC, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= wrote: > > From: Rafał Miłecki > > > > Until this change MTD subsystem supported handling partitions only with > > MTD partitions parsers. T

Re: [PATCH] nds32: Remove the architecture

2022-04-24 Thread Rick Chen
> On Fri, Apr 22, 2022 at 04:45:28PM +0800, Rick Chen wrote: > > Hi, Tom, > > > > > From: Tom Rini > > > Sent: Wednesday, April 20, 2022 2:43 AM > > > To: u-boot@lists.denx.de; Rick Jian-Zhi Chen(陳建志) > > > Subject: Re: [PATCH] nds32: Remove the architecture > > > > > > On Wed, Apr 06, 2022 at 09

[RFC PATCH 8/8] board: rockpro64: Enable building SPI image

2022-04-24 Thread Andrew Abbott
Signed-off-by: Andrew Abbott --- arch/arm/mach-rockchip/rk3399/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/rk3399/Kconfig b/arch/arm/mach-rockchip/rk3399/Kconfig index c1f251316c..4a049935df 100644 --- a/arch/arm/mach-rockchip/rk3399/Kconfig +++ b/arch/arm/

[RFC PATCH 6/8] rockchip: Enable binman for ARM64

2022-04-24 Thread Andrew Abbott
Binman is now being used to build the final flashable images for Rockchip devices, thus enabling it for all Rockchip targets here. But it is not yet being used to generate the FIT image (u-boot.itb), thus we need to force it to be built. Signed-off-by: Andrew Abbott --- Question: Will this cause

[RFC PATCH 7/8] doc: rockchip: Update for new binman image generation

2022-04-24 Thread Andrew Abbott
Signed-off-by: Andrew Abbott --- doc/board/rockchip/rockchip.rst | 34 +++-- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/doc/board/rockchip/rockchip.rst b/doc/board/rockchip/rockchip.rst index 4ca7b00b1f..1639ce4f72 100644 --- a/doc/board/rockchip/r

[RFC PATCH 5/8] rockchip: Remove obsolete Makefile targets

2022-04-24 Thread Andrew Abbott
These are obsoleted by a previous patch which added binman image definitions for Rockchip SD/MMC and SPI images. Signed-off-by: Andrew Abbott --- Makefile | 31 +++ 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/Makefile b/Makefile index 7937a4cfd3..cf

[RFC PATCH 4/8] board: rockchip: Move SPI U-Boot offset to config

2022-04-24 Thread Andrew Abbott
This needs to be accessible to binman (via CONFIG_ preprocessor macros) so it can build SPI images using the correct offset. The documentation at 'doc/device-tree-bindings/config.txt' says that the 'u-boot,spl-payload-offset' device tree option simply overrides 'CONFIG_SYS_SPI_U_BOOT_OFFS', so thi

[RFC PATCH 3/8] soc: rockchip: Include common U-Boot dtsi file

2022-04-24 Thread Andrew Abbott
This pulls in binman definitions so images can be built for all Rockchip platforms. Signed-off-by: Andrew Abbott --- arch/arm/dts/rk3308-u-boot.dtsi | 2 ++ arch/arm/dts/rk3328-u-boot.dtsi | 2 ++ arch/arm/dts/rk3368-u-boot.dtsi | 1 + arch/arm/dts/rk3568-u-boot.dtsi | 2 ++ 4 files changed, 7 i

[RFC PATCH 2/8] rockchip: Add binman definitions for final images

2022-04-24 Thread Andrew Abbott
Currently, building for Rockchip targets produces: - idbloader.img - rksd-formatted TPL with SPL appended; or - rksd-formatted SPL - u-boot.itb - U-Boot Proper FIT image - u-boot-rockchip.bin - idbloader.img + u-boot.itb, padded the correct amount for SD/MMC usage. For RK339

[RFC PATCH 1/8] binman: mkimage: Support ':'-separated inputs

2022-04-24 Thread Andrew Abbott
mkimage supports combining multiple input binaries separating them with colons (':'). This is used at least for Rockchip platforms to encode payload offsets and sizes in the image header. It is required for Rockchip SPI boot since for the rkspi format, after the input binary combining, the entire i

[RFC PATCH 0/8] Build Rockchip final images using binman

2022-04-24 Thread Andrew Abbott
My original goal was to produce SPI images for Rockchip platforms (specifically for me, ROCKPro64, and in the future ROCK64). Looking into it, it seemed nicer to just switch the SD/MMC image generation over to binman as well in the process. This is my attempt to move Rockchip final full image gene

[PATCH 4/4] ARM: imx: imx5: Introduce and use UART_BASE_ADDR(n)

2022-04-24 Thread Marek Vasut
Introduce helper macro UART_BASE_ADDR(n), which returns Nth UART base address. Convert all board configurations to this new macro. This is the first step toward switching CONFIG_MXC_UART_BASE to Kconfig. This is a clean up, no functional change. The new macro contains compile-time test to verify N

[PATCH 3/4] ARM: imx: imx31: Introduce and use UART_BASE_ADDR(n)

2022-04-24 Thread Marek Vasut
Introduce helper macro UART_BASE_ADDR(n), which returns Nth UART base address. Convert all board configurations to this new macro. This is the first step toward switching CONFIG_MXC_UART_BASE to Kconfig. This is a clean up, no functional change. The new macro contains compile-time test to verify N

[PATCH 2/4] ARM: imx: imx27: Introduce and use UART_BASE_ADDR(n)

2022-04-24 Thread Marek Vasut
Introduce helper macro UART_BASE_ADDR(n), which returns Nth UART base address. Convert all board configurations to this new macro. This is the first step toward switching CONFIG_MXC_UART_BASE to Kconfig. This is a clean up, no functional change. The new macro contains compile-time test to verify N

[PATCH 1/4] ARM: imx: imx8m: Introduce and use UART_BASE_ADDR(n)

2022-04-24 Thread Marek Vasut
Introduce helper macro UART_BASE_ADDR(n), which returns Nth UART base address. Convert all board configurations to this new macro. This is the first step toward switching CONFIG_MXC_UART_BASE to Kconfig. This is a clean up, no functional change. The new macro contains compile-time test to verify N

[PATCH] ARM: imx: imx8q: Use LPUART_BASE macro in config files

2022-04-24 Thread Marek Vasut
Replace ad-hoc value with LPUART_BASE macro, no functional change. Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic Cc: Tom Rini --- include/configs/cgtqmx8.h | 2 +- include/configs/imx8qm_mek.h | 4 ++-- include/configs/imx8qxp_mek.h | 2 +- 3 files changed,

[PATCH v2 2/2] pmic: pca9450: Add regulator driver

2022-04-24 Thread Marek Vasut
Add PCA9450 regulator driver. This is complementary driver for the BUCKn and LDOn regulators provided by the PCA9450 PMIC driver. Currently the driver permits reading the settngs and configuring the BUCKn and LDOn regulators. Reviewed-by: Fabio Estevam Signed-off-by: Marek Vasut Cc: Fabio Esteva

[PATCH v2 1/2] pmic: pca9450: Add upstream regulators subnode match

2022-04-24 Thread Marek Vasut
The upstream DT regulators node subnodes are named BUCKn and LDOn, the downstream DT regulators node subnodes are named buckn and ldon, add the upstream match. Reviewed-by: Fabio Estevam Signed-off-by: Marek Vasut Cc: Fabio Estevam Cc: Peng Fan Cc: Stefano Babic --- V2: Add RB by Fabio --- d

[PATCH][RESEND] mtd: spi-nor-ids: Add Winbond W25Q128JW ID

2022-04-24 Thread Marek Vasut
Add ID for Winbond W25Q128JW device. This is a 128 Mbit QSPI NOR. Tested on W25Q128JWPIM part. Signed-off-by: Marek Vasut Cc: Horatiu Vultur Cc: Jagan Teki Cc: Simon Goldschmidt Cc: Stefan Roese Cc: Vignesh R --- NOTE: This has been incorrectly marked in PW as Changes Requested --- drivers/

[PATCH v2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-04-24 Thread Angus Ainslie
Suppress warnings when building the SPL without USB_DWC3_GENERIC Signed-off-by: Angus Ainslie --- Changes since v1: Updated Kconfig depends drivers/usb/dwc3/Kconfig | 7 +++ drivers/usb/dwc3/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/

[PATCH] lib/date: Make rtc_mktime and mktime64 Y2038-ready

2022-04-24 Thread Jan Kiszka
From: Jan Kiszka We currently overflow due to wrong types used internally in rtc_mktime, on all platforms, and we return a too small type on 32-bit. One consumer that directly benefits from this is mktime64. Many others may still store the result in a wrong type. While at it, drop the redundant

[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/mes

[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 --- a/confi

[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-ao.c b/dr

[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-ao.c index 0148529e04..17b11eb5

[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 fi

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

2022-04-24 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 - move clk->id c