/linux/drivers/mfd/ |
A D | as3722.c | 198 static int as3722_check_device_id(struct as3722 *as3722) in as3722_check_device_id() argument 225 static int as3722_configure_pullups(struct as3722 *as3722) in as3722_configure_pullups() argument 309 struct as3722 *as3722) in as3722_i2c_of_probe() argument 339 struct as3722 *as3722; in as3722_i2c_probe() local 344 as3722 = devm_kzalloc(&i2c->dev, sizeof(struct as3722), GFP_KERNEL); in as3722_i2c_probe() 345 if (!as3722) in as3722_i2c_probe() 348 as3722->dev = &i2c->dev; in as3722_i2c_probe() 368 ret = devm_regmap_add_irq_chip(as3722->dev, as3722->regmap, in as3722_i2c_probe() 369 as3722->chip_irq, in as3722_i2c_probe() 406 struct as3722 *as3722 = dev_get_drvdata(dev); in as3722_i2c_suspend() local [all …]
|
A D | Makefile | 227 obj-$(CONFIG_MFD_AS3722) += as3722.o
|
/linux/drivers/rtc/ |
A D | rtc-as3722.c | 28 struct as3722 *as3722; member 57 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_read_time() local 61 ret = as3722_block_read(as3722, AS3722_RTC_SECOND_REG, in as3722_rtc_read_time() 74 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_set_time() local 82 ret = as3722_block_write(as3722, AS3722_RTC_SECOND_REG, 6, in as3722_rtc_set_time() 107 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_read_alarm() local 111 ret = as3722_block_read(as3722, AS3722_RTC_ALARM_SECOND_REG, 6, in as3722_rtc_read_alarm() 125 struct as3722 *as3722 = as3722_rtc->as3722; in as3722_rtc_set_alarm() local 169 struct as3722 *as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_rtc_probe() local 177 as3722_rtc->as3722 = as3722; in as3722_rtc_probe() [all …]
|
A D | Makefile | 30 obj-$(CONFIG_RTC_DRV_AS3722) += rtc-as3722.o
|
A D | Kconfig | 245 will be called rtc-as3722.
|
/linux/include/linux/mfd/ |
A D | as3722.h | 375 struct as3722 { struct 386 static inline int as3722_read(struct as3722 *as3722, u32 reg, u32 *dest) in as3722_read() argument 388 return regmap_read(as3722->regmap, reg, dest); in as3722_read() 391 static inline int as3722_write(struct as3722 *as3722, u32 reg, u32 value) in as3722_write() argument 393 return regmap_write(as3722->regmap, reg, value); in as3722_write() 396 static inline int as3722_block_read(struct as3722 *as3722, u32 reg, in as3722_block_read() argument 399 return regmap_bulk_read(as3722->regmap, reg, buf, count); in as3722_block_read() 402 static inline int as3722_block_write(struct as3722 *as3722, u32 reg, in as3722_block_write() argument 408 static inline int as3722_update_bits(struct as3722 *as3722, u32 reg, in as3722_update_bits() argument 414 static inline int as3722_irq_get_virq(struct as3722 *as3722, int irq) in as3722_irq_get_virq() argument [all …]
|
/linux/drivers/pinctrl/ |
A 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 442 struct as3722 *as3722 = as_pci->as3722; in as3722_gpio_get() local 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() 508 ret = as3722_update_bits(as3722, AS3722_GPIO_SIGNAL_OUT_REG, in as3722_gpio_set() 531 return as3722_irq_get_virq(as_pci->as3722, offset); in as3722_gpio_to_irq() [all …]
|
A D | Makefile | 13 obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o
|
/linux/drivers/regulator/ |
A D | as3722-regulator.c | 69 struct as3722 *as3722; member 329 struct as3722 *as3722 = as3722_reg->as3722; in as3722_ldo3_set_tracking_mode() local 336 return as3722_update_bits(as3722, in as3722_ldo3_set_tracking_mode() 422 struct as3722 *as3722 = as3722_regs->as3722; in as3722_sd_get_mode() local 430 ret = as3722_read(as3722, as3722_reg_lookup[id].control_reg, &val); in as3722_sd_get_mode() 447 struct as3722 *as3722 = as3722_regs->as3722; in as3722_sd_set_mode() local 480 err = as3722_read(as3722_regs->as3722, AS3722_FUSE7_REG, &val); in as3722_sd0_is_low_voltage() 555 ret = as3722_update_bits(as3722_regs->as3722, in as3722_extreg_init() 637 struct as3722 *as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_regulator_probe() local 652 as3722_regs->as3722 = as3722; in as3722_regulator_probe() [all …]
|
A D | Makefile | 28 obj-$(CONFIG_REGULATOR_AS3722) += as3722-regulator.o
|
/linux/drivers/power/reset/ |
A D | as3722-poweroff.c | 19 struct as3722 *as3722; member 33 ret = as3722_update_bits(as3722_pm_poweroff->as3722, in as3722_pm_power_off() 56 as3722_poweroff->as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_poweroff_probe()
|
A D | Makefile | 2 obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o
|
/linux/Documentation/devicetree/bindings/mfd/ |
A 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/arch/arm64/boot/dts/nvidia/ |
A D | tegra132-norrin.dts | 12 rtc0 = "/i2c@7000d000/as3722@40"; 551 as3722: pmic@40 { label 552 compatible = "ams,as3722"; 1096 gpio = <&as3722 1 GPIO_ACTIVE_HIGH>; 1146 gpio = <&as3722 4 GPIO_ACTIVE_HIGH>; 1191 gpio = <&as3722 2 GPIO_ACTIVE_HIGH>;
|
/linux/Documentation/devicetree/bindings/regulator/ |
A D | as3722-regulator.txt | 45 compatible = "ams,as3722";
|
/linux/arch/arm/boot/dts/ |
A D | tegra124-nyan.dtsi | 133 compatible = "ams,as3722";
|
A D | tegra124-venice2.dts | 651 compatible = "ams,as3722";
|
A D | tegra124-apalis.dtsi | 1566 compatible = "ams,as3722";
|
A D | tegra124-jetson-tk1.dts | 1464 compatible = "ams,as3722";
|
A D | tegra124-apalis-v1.2.dtsi | 1573 compatible = "ams,as3722";
|