Home
last modified time | relevance | path

Searched refs:rk808 (Results 1 – 25 of 73) sorted by relevance

123

/linux-6.1.9/drivers/clk/
Dclk-rk808.c18 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-6.1.9/drivers/rtc/
Drtc-rk808.c54 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-6.1.9/drivers/power/supply/
Drk817_charger.c50 struct rk808 *rk808; member
177 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_VCALIB0_H, in rk817_bat_calib_vol()
181 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_VCALIB1_H, in rk817_bat_calib_vol()
196 regmap_bulk_read(charger->rk808->regmap, RK817_GAS_GAUGE_IOFFSET_H, in rk817_bat_calib_cur()
198 regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_CAL_OFFSET_H, in rk817_bat_calib_cur()
216 ret = regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_BAT_R1, in rk817_record_battery_nvram_values()
226 ret = regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_DATA0, in rk817_record_battery_nvram_values()
232 ret = regmap_bulk_write(charger->rk808->regmap, RK817_GAS_GAUGE_DATA3, in rk817_record_battery_nvram_values()
242 struct rk808 *rk808 = charger->rk808; in rk817_bat_calib_cap() local
264 regmap_bulk_write(rk808->regmap, RK817_GAS_GAUGE_Q_INIT_H3, in rk817_bat_calib_cap()
[all …]
/linux-6.1.9/drivers/mfd/
Drk808.c550 struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); in rk808_pm_power_off() local
552 switch (rk808->variant) { in rk808_pm_power_off()
573 ret = regmap_update_bits(rk808->regmap, reg, bit, bit); in rk808_pm_power_off()
580 struct rk808 *rk808 = i2c_get_clientdata(rk808_i2c_client); in rk808_restart_notify() local
584 switch (rk808->variant) { in rk808_restart_notify()
594 ret = regmap_update_bits(rk808->regmap, reg, bit, bit); in rk808_restart_notify()
608 struct rk808 *rk808 = i2c_get_clientdata(client); in rk8xx_shutdown() local
611 switch (rk808->variant) { in rk8xx_shutdown()
613 ret = regmap_update_bits(rk808->regmap, in rk8xx_shutdown()
620 ret = regmap_update_bits(rk808->regmap, in rk8xx_shutdown()
[all …]
/linux-6.1.9/drivers/pinctrl/
Dpinctrl-rk805.c65 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()
430 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-6.1.9/sound/soc/codecs/
Drk817_codec.c23 struct rk808 *rk808; member
418 struct rk808 *rk808 = dev_get_drvdata(component->dev->parent); in rk817_probe() local
420 snd_soc_component_init_regmap(component, rk808->regmap); in rk817_probe()
475 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk817_platform_probe() local
487 rk817_codec_data->rk808 = rk808; in rk817_platform_probe()
/linux-6.1.9/Documentation/devicetree/bindings/mfd/
Drockchip,rk808.yaml4 $id: http://devicetree.org/schemas/mfd/rockchip,rk808.yaml#
20 - rockchip,rk808
30 See <dt-bindings/clock/rockchip,rk808.h> for clock IDs.
129 rk808: pmic@1b {
130 compatible = "rockchip,rk808";
131 clock-output-names = "xin32k", "rk808-clkout2";
Drockchip,rk809.yaml30 See <dt-bindings/clock/rockchip,rk808.h> for clock IDs.
125 rk808: pmic@1b {
126 compatible = "rockchip,rk808";
129 clock-output-names = "xin32k", "rk808-clkout2";
/linux-6.1.9/arch/arm/boot/dts/
Drk3288-evb-rk808.dts8 compatible = "rockchip,rk3288-evb-rk808", "rockchip,rk3288";
14 rk808: pmic@1b { label
15 compatible = "rockchip,rk808";
24 clock-output-names = "xin32k", "rk808-clkout2";
Drk3288-vmarc-som.dtsi51 rk808: pmic@1b { label
52 compatible = "rockchip,rk808";
61 clock-output-names = "rk808-clkout1", "rk808-clkout2";
Drk3288-tinker.dtsi8 #include <dt-bindings/clock/rockchip,rk808.h>
65 clocks = <&rk808 RK808_CLKOUT1>;
155 rk808: pmic@1b { label
156 compatible = "rockchip,rk808";
161 clock-output-names = "xin32k", "rk808-clkout2";
Drk3288-veyron-chromebook.dtsi9 #include <dt-bindings/clock/rockchip,rk808.h>
86 &rk808 {
Drk3036-kylin.dts118 rk808: pmic@1b { label
119 compatible = "rockchip,rk808";
128 clock-output-names = "xin32k", "rk808-clkout2";
Drk3288-veyron.dtsi8 #include <dt-bindings/clock/rockchip,rk808.h>
58 clocks = <&rk808 RK808_CLKOUT1>;
187 rk808: pmic@1b { label
188 compatible = "rockchip,rk808";
/linux-6.1.9/arch/arm64/boot/dts/rockchip/
Drk3368-geekbox.dts108 rk808: pmic@1b { label
109 compatible = "rockchip,rk808";
127 clock-output-names = "xin32k", "rk808-clkout2";
Drk3368-px5-evb.dts69 rk808: pmic@1b { label
70 compatible = "rockchip,rk808";
88 clock-output-names = "xin32k", "rk808-clkout2";
Drk3399-evb.dts173 rk808: pmic@1b { label
174 compatible = "rockchip,rk808";
183 clock-output-names = "rk808-clkout1", "rk808-clkout2";
Drk3368-lion.dtsi172 rk808: pmic@1b { label
173 compatible = "rockchip,rk808";
177 clock-output-names = "xin32k", "rk808-clkout2";
Drk3399-leez-p710.dts36 clocks = <&rk808 1>;
181 rk808: pmic@1b { label
182 compatible = "rockchip,rk808";
187 clock-output-names = "xin32k", "rk808-clkout2";
590 clocks = <&rk808 1>;
Drk3399-rock960.dtsi21 clocks = <&rk808 1>;
181 rk808: pmic@1b { label
182 compatible = "rockchip,rk808";
191 clock-output-names = "xin32k", "rk808-clkout2";
577 clocks = <&rk808 1>;
Drk3399-rock-pi-4b.dts38 clocks = <&rk808 1>;
Dpx30-engicam-px30-core.dtsi56 clock-output-names = "rk808-clkout1", "rk808-clkout2";
Drk3399-khadas-edge.dtsi34 clocks = <&rk808 1>;
310 rk808: pmic@1b { label
311 compatible = "rockchip,rk808";
316 clock-output-names = "xin32k", "rk808-clkout2";
772 clocks = <&rk808 1>;
Drk3399-rock-pi-4b-plus.dts50 clocks = <&rk808 1>;
/linux-6.1.9/drivers/regulator/
Drk808-regulator.c1288 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk808_regulator_probe() local
1289 struct i2c_client *client = rk808->i2c; in rk808_regulator_probe()
1301 rk808->regmap, pdata); in rk808_regulator_probe()
1307 switch (rk808->variant) { in rk808_regulator_probe()
1330 rk808->variant); in rk808_regulator_probe()
1336 config.regmap = rk808->regmap; in rk808_regulator_probe()

123