[PATCH v3 0/6] meson: add clk and adc support for JetHub D1 (j100)
Vyacheslav Bocharov
adeep at lexina.in
Sun Apr 24 10:21:53 CEST 2022
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 check to .request function for g12a-clk-ao driver
- remove unnecessary check (gate->reg == 0) in g12a-clk-ao driver
- enable saradc in dts/board config for JetHub D1 (j100)
>From v2:
- remove unnecessary check (gate->reg == 0) in axg/g12a clk-ao drivers
- move j100 dts changes to -u-boot.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
board: amlogic: jethub j100: enable saradc in dts
board: amlogic: jethub j100: enable saradc in config
.../meson-axg-jethome-jethub-j100-u-boot.dtsi | 10 +++
configs/jethub_j100_defconfig | 5 ++
drivers/adc/meson-saradc.c | 2 +
drivers/clk/meson/Makefile | 1 +
drivers/clk/meson/axg-ao.c | 86 +++++++++++++++++++
drivers/clk/meson/g12a-ao.c | 17 ++--
6 files changed, 114 insertions(+), 7 deletions(-)
create mode 100644 arch/arm/dts/meson-axg-jethome-jethub-j100-u-boot.dtsi
create mode 100644 drivers/clk/meson/axg-ao.c
--
2.30.2
More information about the U-Boot
mailing list