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. David Wu (8): adc: Add driver for Rockchip saradc configs: rockchip: Enable the ROCKCHIP_SARADC config clk: rockchip: Add rv1108 SARADC clock support clk: rockchip: Add SARADC clock support for rk3288 clk: rockchip: Add rk3328 SRAADC clock support clk: rockchip: Add rk3368 SARADC clock support clk: rockchip: Add rk3399 SARADC clock support arm: dts: rv1108: Add saradc node at dtsi level 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/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/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/sheep-rk3368_defconfig | 2 + configs/tinker-rk3288_defconfig | 2 + drivers/adc/Kconfig | 9 ++ drivers/adc/Makefile | 1 + drivers/adc/rockchip-saradc.c | 188 ++++++++++++++++++++++++ drivers/clk/rockchip/clk_rk3288.c | 45 ++++++ drivers/clk/rockchip/clk_rk3328.c | 37 +++++ drivers/clk/rockchip/clk_rk3368.c | 31 ++++ drivers/clk/rockchip/clk_rk3399.c | 33 +++++ drivers/clk/rockchip/clk_rv1108.c | 35 +++++ include/dt-bindings/clock/rv1108-cru.h | 2 + 26 files changed, 430 insertions(+) create mode 100644 drivers/adc/rockchip-saradc.c -- 2.7.4