| /kernel/linux/linux-5.10/drivers/clk/ |
| D | clk-rk808.c | 3 * Clkout driver for Rockchip RK808 14 #include <linux/mfd/rk808.h> 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 [all …]
|
| /kernel/linux/linux-5.10/drivers/mfd/ |
| D | rk808.c | 3 * MFD core driver for Rockchip RK808/RK818 17 #include <linux/mfd/rk808.h> 129 { .name = "rk808-clkout", }, 130 { .name = "rk808-regulator", }, 133 .name = "rk808-rtc", 144 { .name = "rk808-clkout", }, 145 { .name = "rk808-regulator", }, 147 .name = "rk808-rtc", 154 { .name = "rk808-clkout",}, 155 { .name = "rk808-regulator",}, [all …]
|
| /kernel/linux/linux-5.10/drivers/rtc/ |
| D | rtc-rk808.c | 3 * RTC driver for Rockchip RK808 15 #include <linux/mfd/rk808.h> 22 /* RK808 has a shadowed register for saving a "frozen" RTC time. 54 struct rk808 *rk808; member 61 * The Rockchip calendar used by the RK808 counts November with 31 days. We use 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 [all …]
|
| /kernel/linux/linux-6.6/drivers/mfd/ |
| D | rk8xx-core.c | 14 #include <linux/mfd/rk808.h> 56 { .name = "rk808-clkout", }, 57 { .name = "rk808-regulator", }, 60 .name = "rk808-rtc", 72 { .name = "rk808-regulator", }, 81 { .name = "rk808-clkout", }, 82 { .name = "rk808-regulator", }, 84 .name = "rk808-rtc", 91 { .name = "rk808-clkout", }, 92 { .name = "rk808-regulator", }, [all …]
|
| D | rk8xx-i2c.c | 3 * Rockchip RK808/RK818 Core (I2C) driver 14 #include <linux/mfd/rk808.h> 162 { .compatible = "rockchip,rk808", .data = &rk808_data },
|
| /kernel/linux/linux-6.6/drivers/power/supply/ |
| D | rk817_charger.c | 13 #include <linux/mfd/rk808.h> 50 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 [all …]
|
| /kernel/linux/linux-6.6/drivers/clk/ |
| D | clk-rk808.c | 3 * Clkout driver for Rockchip RK808 14 #include <linux/mfd/rk808.h> 150 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk808_clkout_probe() local 169 init.name = "rk808-clkout1"; in rk808_clkout_probe() 181 init.name = "rk808-clkout2"; in rk808_clkout_probe() 182 init.ops = rkpmic_get_ops(rk808->variant); in rk808_clkout_probe() 200 .name = "rk808-clkout", 206 MODULE_DESCRIPTION("Clkout driver for the rk808 series PMICs"); 209 MODULE_ALIAS("platform:rk808-clkout");
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/mfd/ |
| D | rockchip,rk808.yaml | 4 $id: http://devicetree.org/schemas/mfd/rockchip,rk808.yaml# 7 title: RK808 Power Management Integrated Circuit 14 Rockchip RK808 series PMIC. This device consists of an i2c controlled MFD 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";
|
| D | rockchip,rk809.yaml | 30 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";
|
| /kernel/linux/linux-5.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. 35 Optional RK808 properties: 99 Following regulators of the RK808 PMIC block are supported. Note that 101 number as described in RK808 datasheet. 150 rk808: pmic@1b { 151 compatible = "rockchip,rk808"; 152 clock-output-names = "xin32k", "rk808-clkout2";
|
| /kernel/linux/linux-5.10/drivers/pinctrl/ |
| D | pinctrl-rk805.c | 15 #include <linux/mfd/rk808.h> 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()
|
| /kernel/linux/linux-6.6/drivers/pinctrl/ |
| D | pinctrl-rk805.c | 17 #include <linux/mfd/rk808.h> 69 struct rk808 *rk808; member 264 ret = regmap_read(pci->rk808->regmap, pci->pin_cfg[offset].reg, &val); in rk805_gpio_get() 280 ret = regmap_update_bits(pci->rk808->regmap, in rk805_gpio_set() 312 ret = regmap_read(pci->rk808->regmap, in rk805_gpio_get_direction() 416 ret = regmap_update_bits(pci->rk808->regmap, in _rk805_pinctrl_set_mux() 443 switch (pci->rk808->variant) { in rk805_pinctrl_gpio_request_enable() 464 ret = regmap_update_bits(pci->rk808->regmap, in rk805_pmx_gpio_set_direction() 525 if (pci->rk808->variant != RK805_ID && arg) { in rk805_pinconf_set() 564 pci->rk808 = dev_get_drvdata(pdev->dev.parent); in rk805_pinctrl_probe() [all …]
|
| /kernel/linux/linux-6.6/drivers/rtc/ |
| D | rtc-rk808.c | 3 * RTC driver for Rockchip RK808 15 #include <linux/mfd/rk808.h> 21 /* RK808 has a shadowed register for saving a "frozen" RTC time. 60 * The Rockchip calendar used by the RK808 counts November with 31 days. We use 380 struct rk808 *rk808 = dev_get_drvdata(pdev->dev.parent); in rk808_rtc_probe() local 388 switch (rk808->variant) { in rk808_rtc_probe() 433 /* request alarm irq of rk808 */ in rk808_rtc_probe() 449 .name = "rk808-rtc", 456 MODULE_DESCRIPTION("RTC driver for the rk808 series PMICs"); 460 MODULE_ALIAS("platform:rk808-rtc");
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | rk3288-evb-rk808.dts | 7 model = "Rockchip RK3288 EVB RK808"; 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";
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/rockchip/ |
| D | rk3288-evb-rk808.dts | 7 model = "Rockchip RK3288 EVB RK808"; 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> 65 clocks = <&rk808 RK808_CLKOUT1>; 155 rk808: pmic@1b { label 156 compatible = "rockchip,rk808"; 161 clock-output-names = "xin32k", "rk808-clkout2";
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | rk817_codec.c | 10 #include <linux/mfd/rk808.h> 23 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()
|
| /kernel/linux/linux-5.10/drivers/regulator/ |
| D | rk808-regulator.c | 3 * Regulator driver for Rockchip RK805/RK808/RK818 21 #include <linux/mfd/rk808.h> 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() 1369 .name = "rk808-regulator" 1375 MODULE_DESCRIPTION("regulator driver for the RK805/RK808/RK818 series PMICs"); [all …]
|
| /kernel/linux/linux-5.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-px5-evb.dts | 64 rk808: pmic@1b { label 65 compatible = "rockchip,rk808"; 83 clock-output-names = "xin32k", "rk808-clkout2";
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/rockchip/ |
| D | rk3368-geekbox.dts | 108 rk808: pmic@1b { label 109 compatible = "rockchip,rk808"; 127 clock-output-names = "xin32k", "rk808-clkout2";
|
| D | rk3368-px5-evb.dts | 69 rk808: pmic@1b { label 70 compatible = "rockchip,rk808"; 88 clock-output-names = "xin32k", "rk808-clkout2";
|