[U-Boot] [PATCH v3 00/14] Add rockchip SARADC support

David Wu david.wu at rock-chips.com
Wed Sep 20 06:28:15 UTC 2017


The SARADC is used for adc keys and charging detect at uboot
loader. Except for the rk3036 and rk3228 Socs, the others
support the SARADC IP.

Changes in v3:
- Add commit message
- Add commit message
- Add commit message
- Add commit message
- Add commit message
- Add commit message

Changes in v2:
- Order the the include file
- Use structures for I/O access
- Use dev_read_add
- Add the ROCKCHIP_SARADC config at other rockchip defconfigs like evb-px5...
- Use bitfield_extract
- Use GENMASK
- Use bitfield_extract
- Use GENMASK
- Use bitfield_extract
- Use GENMASK
- Use GENMASK
- Use GENMASK

David Wu (14):
  dm: adc: Add driver for Rockchip SARADC
  rockchip: configs: Enable the ROCKCHIP_SARADC config
  rockchip: clk: Add rv1108 SARADC clock support
  rockchip: clk: Add SARADC clock support for rk3288
  rockchip: clk: Add rk3328 SARADC clock support
  rockchip: clk: Add rk3368 SARADC clock support
  rockchip: clk: Add rk3399 SARADC clock support
  rockchip: dts: rv1108: Add SARADC node at dtsi level
  rockchip: dts: Enable SARADC for rv1108-evb
  rockchip: dts: Enable SARADC for rk3288-popmetal
  rockchip: dts: Enable SARADC for rk3328-evb
  rockchip: dts: Enable SARADC for rk3368-px5-evb
  rockchip: dts: Enable SARADC for rk3368-sheep
  rockchip: dts: Enable SARADC for rk3399-evb

 arch/arm/dts/rk3288-popmetal.dtsi               |   4 +
 arch/arm/dts/rk3328-evb.dts                     |   4 +
 arch/arm/dts/rk3368-px5-evb.dts                 |   4 +
 arch/arm/dts/rk3368-sheep.dts                   |   4 +
 arch/arm/dts/rk3399-evb.dts                     |   4 +
 arch/arm/dts/rv1108-evb.dts                     |   4 +
 arch/arm/dts/rv1108.dtsi                        |  11 ++
 arch/arm/include/asm/arch-rockchip/cru_rk3368.h |   5 +
 arch/arm/include/asm/arch-rockchip/cru_rv1108.h |   5 +
 configs/chromebit_mickey_defconfig              |   2 +
 configs/chromebook_jerry_defconfig              |   2 +
 configs/chromebook_minnie_defconfig             |   2 +
 configs/evb-px5_defconfig                       |   2 +
 configs/evb-rk3288_defconfig                    |   2 +
 configs/evb-rk3328_defconfig                    |   2 +
 configs/evb-rk3399_defconfig                    |   2 +
 configs/evb-rv1108_defconfig                    |   2 +
 configs/fennec-rk3288_defconfig                 |   2 +
 configs/firefly-rk3288_defconfig                |   2 +
 configs/firefly-rk3399_defconfig                |   2 +
 configs/geekbox_defconfig                       |   2 +
 configs/lion-rk3368_defconfig                   |   2 +
 configs/miqi-rk3288_defconfig                   |   2 +
 configs/phycore-rk3288_defconfig                |   2 +
 configs/popmetal-rk3288_defconfig               |   2 +
 configs/puma-rk3399_defconfig                   |   2 +
 configs/rock2_defconfig                         |   2 +
 configs/rock_defconfig                          |   2 +
 configs/sheep-rk3368_defconfig                  |   2 +
 configs/tinker-rk3288_defconfig                 |   2 +
 drivers/adc/Kconfig                             |   9 ++
 drivers/adc/Makefile                            |   1 +
 drivers/adc/rockchip-saradc.c                   | 183 ++++++++++++++++++++++++
 drivers/clk/rockchip/clk_rk3288.c               |  41 ++++++
 drivers/clk/rockchip/clk_rk3328.c               |  35 ++++-
 drivers/clk/rockchip/clk_rk3368.c               |  32 +++++
 drivers/clk/rockchip/clk_rk3399.c               |  36 ++++-
 drivers/clk/rockchip/clk_rv1108.c               |  33 ++++-
 include/dt-bindings/clock/rv1108-cru.h          |   2 +
 39 files changed, 456 insertions(+), 3 deletions(-)
 create mode 100644 drivers/adc/rockchip-saradc.c

-- 
2.7.4




More information about the U-Boot mailing list