/Linux-v5.10/drivers/clk/ |
D | clk-rk808.c | 18 struct rk808 *rk808; member 34 struct rk808 *rk808 = rk808_clkout->rk808; in rk808_clkout2_enable() local 36 return regmap_update_bits(rk808->regmap, RK808_CLK32OUT_REG, in rk808_clkout2_enable() 55 struct rk808 *rk808 = rk808_clkout->rk808; in rk808_clkout2_is_prepared() local 58 int ret = regmap_read(rk808->regmap, RK808_CLK32OUT_REG, &val); in rk808_clkout2_is_prepared() 96 struct rk808 *rk808 = rk808_clkout->rk808; in rk817_clkout2_enable() local 98 return regmap_update_bits(rk808->regmap, RK817_SYS_CFG(1), in rk817_clkout2_enable() 118 struct rk808 *rk808 = rk808_clkout->rk808; in rk817_clkout2_is_prepared() local 121 int ret = regmap_read(rk808->regmap, RK817_SYS_CFG(1), &val); in rk817_clkout2_is_prepared() 155 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk808_clkout_probe() local [all …]
|
/Linux-v5.10/drivers/mfd/ |
D | rk808.c | 454 struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); in rk808_pm_power_off() local 456 switch (rk808->variant) { in rk808_pm_power_off() 472 ret = regmap_update_bits(rk808->regmap, reg, bit, bit); in rk808_pm_power_off() 479 struct rk808 *rk808 = i2c_get_clientdata(client); in rk8xx_shutdown() local 482 switch (rk808->variant) { in rk8xx_shutdown() 484 ret = regmap_update_bits(rk808->regmap, in rk8xx_shutdown() 491 ret = regmap_update_bits(rk808->regmap, in rk8xx_shutdown() 518 struct rk808 *rk808; in rk808_probe() local 528 rk808 = devm_kzalloc(&client->dev, sizeof(*rk808), GFP_KERNEL); in rk808_probe() 529 if (!rk808) in rk808_probe() [all …]
|
/Linux-v5.10/drivers/rtc/ |
D | rtc-rk808.c | 54 struct rk808 *rk808; member 100 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_readtime() local 105 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_readtime() 119 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_readtime() 127 ret = regmap_bulk_read(rk808->regmap, rk808_rtc->creg->seconds_reg, in rk808_rtc_readtime() 151 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_set_time() local 166 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_set_time() 174 ret = regmap_bulk_write(rk808->regmap, rk808_rtc->creg->seconds_reg, in rk808_rtc_set_time() 181 ret = regmap_update_bits(rk808->regmap, rk808_rtc->creg->ctrl_reg, in rk808_rtc_set_time() 194 struct rk808 *rk808 = rk808_rtc->rk808; in rk808_rtc_readalarm() local [all …]
|
/Linux-v5.10/drivers/pinctrl/ |
D | pinctrl-rk805.c | 65 struct rk808 *rk808; member 141 ret = regmap_read(pci->rk808->regmap, pci->pin_cfg[offset].reg, &val); in rk805_gpio_get() 157 ret = regmap_update_bits(pci->rk808->regmap, in rk805_gpio_set() 189 ret = regmap_read(pci->rk808->regmap, in rk805_gpio_get_direction() 293 ret = regmap_update_bits(pci->rk808->regmap, in _rk805_pinctrl_set_mux() 338 ret = regmap_update_bits(pci->rk808->regmap, in rk805_pmx_gpio_set_direction() 429 pci->rk808 = dev_get_drvdata(pdev->dev.parent); in rk805_pinctrl_probe() 438 switch (pci->rk808->variant) { in rk805_pinctrl_probe() 453 pci->rk808->variant); in rk805_pinctrl_probe()
|
/Linux-v5.10/arch/arm/boot/dts/ |
D | rk3288-evb-rk808.dts | 8 compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288"; 14 rk808: pmic@1b { label 15 compatible = "rockchip,rk808"; 24 clock-output-names = "xin32k", "rk808-clkout2";
|
D | rk3288-vmarc-som.dtsi | 51 rk808: pmic@1b { label 52 compatible = "rockchip,rk808"; 61 clock-output-names = "rk808-clkout1", "rk808-clkout2";
|
D | rk3288-tinker.dtsi | 8 #include <dt-bindings/clock/rockchip,rk808.h> 67 clocks = <&rk808 RK808_CLKOUT1>; 157 rk808: pmic@1b { label 158 compatible = "rockchip,rk808"; 163 clock-output-names = "xin32k", "rk808-clkout2";
|
D | rk3288-veyron-chromebook.dtsi | 9 #include <dt-bindings/clock/rockchip,rk808.h> 86 &rk808 {
|
D | rk3036-kylin.dts | 114 rk808: pmic@1b { label 115 compatible = "rockchip,rk808"; 124 clock-output-names = "xin32k", "rk808-clkout2";
|
D | rk3288-veyron.dtsi | 8 #include <dt-bindings/clock/rockchip,rk808.h> 58 clocks = <&rk808 RK808_CLKOUT1>; 187 rk808: pmic@1b { label 188 compatible = "rockchip,rk808";
|
D | rk3188-px3-evb.dts | 86 rk808: pmic@1c { label 94 clock-output-names = "xin32k", "rk808-clkout2";
|
/Linux-v5.10/Documentation/devicetree/bindings/mfd/ |
D | rk808.txt | 5 rk808 12 - compatible: "rockchip,rk808" 19 outputs). See <dt-bindings/clock/rockchip,rk808.h> for clock IDs. 150 rk808: pmic@1b { 151 compatible = "rockchip,rk808"; 152 clock-output-names = "xin32k", "rk808-clkout2";
|
/Linux-v5.10/arch/arm64/boot/dts/rockchip/ |
D | rk3368-geekbox.dts | 104 rk808: pmic@1b { label 105 compatible = "rockchip,rk808"; 123 clock-output-names = "xin32k", "rk808-clkout2";
|
D | rk3368-lion.dtsi | 168 rk808: pmic@1b { label 169 compatible = "rockchip,rk808"; 173 clock-output-names = "xin32k", "rk808-clkout2";
|
D | rk3368-px5-evb.dts | 64 rk808: pmic@1b { label 65 compatible = "rockchip,rk808"; 83 clock-output-names = "xin32k", "rk808-clkout2";
|
D | rk3399-evb.dts | 169 rk808: pmic@1b { label 170 compatible = "rockchip,rk808"; 179 clock-output-names = "rk808-clkout1", "rk808-clkout2";
|
D | rk3399-leez-p710.dts | 29 clocks = <&rk808 1>; 174 rk808: pmic@1b { label 175 compatible = "rockchip,rk808"; 180 clock-output-names = "xin32k", "rk808-clkout2"; 583 clocks = <&rk808 1>;
|
D | rk3399-rock960.dtsi | 14 clocks = <&rk808 1>; 174 rk808: pmic@1b { label 175 compatible = "rockchip,rk808"; 184 clock-output-names = "xin32k", "rk808-clkout2"; 570 clocks = <&rk808 1>;
|
D | rk3399-rock-pi-4b.dts | 34 clocks = <&rk808 1>;
|
D | rk3399-rock-pi-4c.dts | 35 clocks = <&rk808 1>;
|
D | rk3399-khadas-edge.dtsi | 27 clocks = <&rk808 1>; 303 rk808: pmic@1b { label 304 compatible = "rockchip,rk808"; 309 clock-output-names = "xin32k", "rk808-clkout2"; 766 clocks = <&rk808 1>;
|
D | rk3399-rockpro64.dtsi | 66 clocks = <&rk808 1>; 260 rk808: pmic@1b { label 261 compatible = "rockchip,rk808"; 266 clock-output-names = "xin32k", "rk808-clkout2"; 760 clocks = <&rk808 1>;
|
D | rk3399-rock-pi-4.dtsi | 27 clocks = <&rk808 1>; 198 rk808: pmic@1b { label 199 compatible = "rockchip,rk808"; 204 clock-output-names = "xin32k", "rk808-clkout2";
|
D | rk3399-puma.dtsi | 179 rk808: pmic@1b { label 180 compatible = "rockchip,rk808"; 185 clock-output-names = "xin32k", "rk808-clkout2";
|
/Linux-v5.10/drivers/regulator/ |
D | rk808-regulator.c | 1302 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk808_regulator_probe() local 1303 struct i2c_client *client = rk808->i2c; in rk808_regulator_probe() 1315 rk808->regmap, pdata); in rk808_regulator_probe() 1321 switch (rk808->variant) { in rk808_regulator_probe() 1344 rk808->variant); in rk808_regulator_probe() 1350 config.regmap = rk808->regmap; in rk808_regulator_probe()
|