/openbmc/linux/drivers/mfd/ |
H 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 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 D | Makefile | 234 obj-$(CONFIG_MFD_AS3722) += as3722.o
|
/openbmc/linux/drivers/rtc/ |
H 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 …]
|
H A D | Makefile | 30 obj-$(CONFIG_RTC_DRV_AS3722) += rtc-as3722.o
|
H A D | Kconfig | 245 will be called rtc-as3722.
|
/openbmc/linux/include/linux/mfd/ |
H 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 …]
|
/openbmc/linux/drivers/pinctrl/ |
H A D | pinctrl-as3722.c | 68 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 D | Makefile | 15 obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o
|
/openbmc/linux/drivers/power/reset/ |
H A D | as3722-poweroff.c | 18 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 D | Makefile | 2 obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o
|
/openbmc/linux/drivers/regulator/ |
H 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 …]
|
H A D | Makefile | 28 obj-$(CONFIG_REGULATOR_AS3722) += as3722-regulator.o
|
/openbmc/linux/Documentation/devicetree/bindings/mfd/ |
H 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";
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | Makefile | 15 obj-$(CONFIG_PMIC_AS3722) += as3722.o as3722_gpio.o
|
/openbmc/linux/arch/arm64/boot/dts/nvidia/ |
H A D | tegra132-norrin.dts | 12 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 D | as3722-regulator.txt | 45 compatible = "ams,as3722";
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | tegra124-jetson-tk1.dts | 78 compatible = "ams,as3722";
|
H A D | tegra124-cei-tk1-som.dts | 79 compatible = "ams,as3722";
|
H A D | tegra124-nyan.dtsi | 104 compatible = "ams,as3722";
|
H A D | tegra124-apalis.dts | 1667 compatible = "ams,as3722";
|
/openbmc/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra124-nyan.dtsi | 136 compatible = "ams,as3722";
|
H A D | tegra124-venice2.dts | 661 compatible = "ams,as3722";
|
H A D | tegra124-jetson-tk1.dts | 1466 compatible = "ams,as3722";
|
H A D | tegra124-apalis-v1.2.dtsi | 1597 compatible = "ams,as3722";
|
H A D | tegra124-apalis.dtsi | 1590 compatible = "ams,as3722";
|