/Linux-v4.19/drivers/mfd/ |
D | as3722.c | 221 static int as3722_check_device_id(struct as3722 *as3722) in as3722_check_device_id() argument 227 ret = as3722_read(as3722, AS3722_ASIC_ID1_REG, &val); in as3722_check_device_id() 229 dev_err(as3722->dev, "ASIC_ID1 read failed: %d\n", ret); in as3722_check_device_id() 234 dev_err(as3722->dev, "Device is not AS3722, ID is 0x%x\n", val); in as3722_check_device_id() 238 ret = as3722_read(as3722, AS3722_ASIC_ID2_REG, &val); in as3722_check_device_id() 240 dev_err(as3722->dev, "ASIC_ID2 read failed: %d\n", ret); in as3722_check_device_id() 244 dev_info(as3722->dev, "AS3722 with revision 0x%x found\n", val); in as3722_check_device_id() 248 static int as3722_configure_pullups(struct as3722 *as3722) in as3722_configure_pullups() argument 253 if (as3722->en_intern_int_pullup) in as3722_configure_pullups() 255 if (as3722->en_intern_i2c_pullup) in as3722_configure_pullups() [all …]
|
D | Makefile | 217 obj-$(CONFIG_MFD_AS3722) += as3722.o
|
/Linux-v4.19/drivers/rtc/ |
D | rtc-as3722.c | 37 struct as3722 *as3722; member 66 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_read_time() local 70 ret = as3722_block_read(as3722, AS3722_RTC_SECOND_REG, in as3722_rtc_read_time() 83 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_set_time() local 91 ret = as3722_block_write(as3722, AS3722_RTC_SECOND_REG, 6, in as3722_rtc_set_time() 116 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_read_alarm() local 120 ret = as3722_block_read(as3722, AS3722_RTC_ALARM_SECOND_REG, 6, in as3722_rtc_read_alarm() 134 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_set_alarm() local 148 ret = as3722_block_write(as3722, AS3722_RTC_ALARM_SECOND_REG, 6, in as3722_rtc_set_alarm() 178 struct as3722 *as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_rtc_probe() local [all …]
|
D | Makefile | 34 obj-$(CONFIG_RTC_DRV_AS3722) += rtc-as3722.o
|
D | Kconfig | 227 will be called rtc-as3722.
|
/Linux-v4.19/include/linux/mfd/ |
D | as3722.h | 389 struct as3722 { struct 400 static inline int as3722_read(struct as3722 *as3722, u32 reg, u32 *dest) in as3722_read() argument 402 return regmap_read(as3722->regmap, reg, dest); in as3722_read() 405 static inline int as3722_write(struct as3722 *as3722, u32 reg, u32 value) in as3722_write() argument 407 return regmap_write(as3722->regmap, reg, value); in as3722_write() 410 static inline int as3722_block_read(struct as3722 *as3722, u32 reg, in as3722_block_read() argument 413 return regmap_bulk_read(as3722->regmap, reg, buf, count); in as3722_block_read() 416 static inline int as3722_block_write(struct as3722 *as3722, u32 reg, in as3722_block_write() argument 419 return regmap_bulk_write(as3722->regmap, reg, data, count); in as3722_block_write() 422 static inline int as3722_update_bits(struct as3722 *as3722, u32 reg, in as3722_update_bits() argument [all …]
|
/Linux-v4.19/drivers/regulator/ |
D | as3722-regulator.c | 83 struct as3722 *as3722; member 336 struct as3722 *as3722 = as3722_regs->as3722; in as3722_ldo_get_current_limit() local 341 ret = as3722_read(as3722, as3722_reg_lookup[id].vsel_reg, &val); in as3722_ldo_get_current_limit() 356 struct as3722 *as3722 = as3722_regs->as3722; in as3722_ldo_set_current_limit() local 371 return as3722_update_bits(as3722, as3722_reg_lookup[id].vsel_reg, in as3722_ldo_set_current_limit() 397 struct as3722 *as3722 = as3722_reg->as3722; in as3722_ldo3_set_tracking_mode() local 404 return as3722_update_bits(as3722, in as3722_ldo3_set_tracking_mode() 490 struct as3722 *as3722 = as3722_regs->as3722; in as3722_sd_get_mode() local 498 ret = as3722_read(as3722, as3722_reg_lookup[id].control_reg, &val); in as3722_sd_get_mode() 515 struct as3722 *as3722 = as3722_regs->as3722; in as3722_sd_set_mode() local [all …]
|
D | Makefile | 27 obj-$(CONFIG_REGULATOR_AS3722) += as3722-regulator.o
|
/Linux-v4.19/drivers/pinctrl/ |
D | pinctrl-as3722.c | 80 struct as3722 *as3722; member 244 ret = as3722_update_bits(as_pci->as3722, gpio_cntr_reg, in as3722_pinctrl_set() 259 ret = as3722_update_bits(as_pci->as3722, gpio_cntr_reg, in as3722_pinctrl_set() 311 struct as3722 *as3722 = as_pci->as3722; in as3722_pinctrl_gpio_set_direction() local 322 return as3722_update_bits(as3722, AS3722_GPIOn_CONTROL_REG(offset), in as3722_pinctrl_gpio_set_direction() 442 struct as3722 *as3722 = as_pci->as3722; in as3722_gpio_get() local 450 ret = as3722_read(as3722, AS3722_GPIOn_CONTROL_REG(offset), &control); in as3722_gpio_get() 475 ret = as3722_read(as3722, reg, &val); in as3722_gpio_get() 490 struct as3722 *as3722 = as_pci->as3722; in as3722_gpio_set() local 495 ret = as3722_read(as3722, AS3722_GPIOn_CONTROL_REG(offset), &val); in as3722_gpio_set() [all …]
|
D | Makefile | 12 obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o
|
/Linux-v4.19/drivers/power/reset/ |
D | as3722-poweroff.c | 27 struct as3722 *as3722; member 41 ret = as3722_update_bits(as3722_pm_poweroff->as3722, in as3722_pm_power_off() 64 as3722_poweroff->as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_poweroff_probe()
|
D | Makefile | 2 obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o
|
/Linux-v4.19/Documentation/devicetree/bindings/mfd/ |
D | as3722.txt | 5 - compatible: Must be "ams,as3722". 12 of AS3722 are defined at dt-bindings/mfd/as3722.h 120 are defined @dt-bindings/mfd/as3722.h 135 #include <dt-bindings/mfd/as3722.h> 138 compatible = "ams,as3722";
|
/Linux-v4.19/arch/arm64/boot/dts/nvidia/ |
D | tegra132-norrin.dts | 12 rtc0 = "/i2c@7000d000/as3722@40"; 548 as3722: pmic@40 { label 549 compatible = "ams,as3722"; 1043 gpio = <&as3722 1 GPIO_ACTIVE_HIGH>; 1098 gpio = <&as3722 4 GPIO_ACTIVE_HIGH>;
|
/Linux-v4.19/Documentation/devicetree/bindings/regulator/ |
D | as3722-regulator.txt | 45 compatible = "ams,as3722";
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | tegra124-nyan.dtsi | 115 compatible = "ams,as3722";
|
D | tegra124-venice2.dts | 648 compatible = "ams,as3722";
|
D | tegra124-apalis-v1.2.dtsi | 1569 compatible = "ams,as3722";
|
D | tegra124-apalis.dtsi | 1598 compatible = "ams,as3722";
|
D | tegra124-jetson-tk1.dts | 1464 compatible = "ams,as3722";
|