Home
last modified time | relevance | path

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

/openbmc/linux/drivers/mfd/
H A Das3722.c198 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
338 struct as3722 *as3722; in as3722_i2c_probe() local
343 as3722 = devm_kzalloc(&i2c->dev, sizeof(struct as3722), GFP_KERNEL); in as3722_i2c_probe()
344 if (!as3722) in as3722_i2c_probe()
347 as3722->dev = &i2c->dev; in as3722_i2c_probe()
367 ret = devm_regmap_add_irq_chip(as3722->dev, as3722->regmap, in as3722_i2c_probe()
368 as3722->chip_irq, in as3722_i2c_probe()
405 struct as3722 *as3722 = dev_get_drvdata(dev); in as3722_i2c_suspend() local
[all …]
H A DMakefile234 obj-$(CONFIG_MFD_AS3722) += as3722.o
/openbmc/linux/drivers/rtc/
H A Drtc-as3722.c28 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 …]
H A DMakefile30 obj-$(CONFIG_RTC_DRV_AS3722) += rtc-as3722.o
H A DKconfig245 will be called rtc-as3722.
/openbmc/linux/include/linux/mfd/
H A Das3722.h375 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 …]
/openbmc/linux/drivers/pinctrl/
H A Dpinctrl-as3722.c68 struct as3722 *as3722; member
232 ret = as3722_update_bits(as_pci->as3722, gpio_cntr_reg, in as3722_pinctrl_set()
247 ret = as3722_update_bits(as_pci->as3722, gpio_cntr_reg, in as3722_pinctrl_set()
299 struct as3722 *as3722 = as_pci->as3722; in as3722_pinctrl_gpio_set_direction() local
430 struct as3722 *as3722 = as_pci->as3722; in as3722_gpio_get() local
463 ret = as3722_read(as3722, reg, &val); in as3722_gpio_get()
478 struct as3722 *as3722 = as_pci->as3722; in as3722_gpio_set() local
483 ret = as3722_read(as3722, AS3722_GPIOn_CONTROL_REG(offset), &val); in as3722_gpio_set()
496 ret = as3722_update_bits(as3722, AS3722_GPIO_SIGNAL_OUT_REG, in as3722_gpio_set()
519 return as3722_irq_get_virq(as_pci->as3722, offset); in as3722_gpio_to_irq()
[all …]
H A DMakefile15 obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o
/openbmc/linux/drivers/power/reset/
H A Das3722-poweroff.c18 struct as3722 *as3722; member
32 ret = as3722_update_bits(as3722_pm_poweroff->as3722, in as3722_pm_power_off()
55 as3722_poweroff->as3722 = dev_get_drvdata(pdev->dev.parent); in as3722_poweroff_probe()
H A DMakefile2 obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o
/openbmc/linux/drivers/regulator/
H A Das3722-regulator.c69 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 …]
H A DMakefile28 obj-$(CONFIG_REGULATOR_AS3722) += as3722-regulator.o
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Das3722.txt5 - 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";
/openbmc/u-boot/drivers/power/pmic/
H A DMakefile15 obj-$(CONFIG_PMIC_AS3722) += as3722.o as3722_gpio.o
/openbmc/linux/arch/arm64/boot/dts/nvidia/
H A Dtegra132-norrin.dts12 rtc0 = &as3722;
553 as3722: pmic@40 { label
554 compatible = "ams,as3722";
1096 gpio = <&as3722 1 GPIO_ACTIVE_HIGH>;
1146 gpio = <&as3722 4 GPIO_ACTIVE_HIGH>;
1191 gpio = <&as3722 2 GPIO_ACTIVE_HIGH>;
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Das3722-regulator.txt45 compatible = "ams,as3722";
/openbmc/u-boot/arch/arm/dts/
H A Dtegra124-jetson-tk1.dts78 compatible = "ams,as3722";
H A Dtegra124-cei-tk1-som.dts79 compatible = "ams,as3722";
H A Dtegra124-nyan.dtsi104 compatible = "ams,as3722";
H A Dtegra124-apalis.dts1667 compatible = "ams,as3722";
/openbmc/linux/arch/arm/boot/dts/nvidia/
H A Dtegra124-nyan.dtsi136 compatible = "ams,as3722";
H A Dtegra124-venice2.dts661 compatible = "ams,as3722";
H A Dtegra124-jetson-tk1.dts1466 compatible = "ams,as3722";
H A Dtegra124-apalis-v1.2.dtsi1597 compatible = "ams,as3722";
H A Dtegra124-apalis.dtsi1590 compatible = "ams,as3722";