Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/mfd/
Das3722.c221 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 …]
DMakefile217 obj-$(CONFIG_MFD_AS3722) += as3722.o
/Linux-v4.19/drivers/rtc/
Drtc-as3722.c37 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 …]
DMakefile34 obj-$(CONFIG_RTC_DRV_AS3722) += rtc-as3722.o
DKconfig227 will be called rtc-as3722.
/Linux-v4.19/include/linux/mfd/
Das3722.h389 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/
Das3722-regulator.c83 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 …]
DMakefile27 obj-$(CONFIG_REGULATOR_AS3722) += as3722-regulator.o
/Linux-v4.19/drivers/pinctrl/
Dpinctrl-as3722.c80 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 …]
DMakefile12 obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o
/Linux-v4.19/drivers/power/reset/
Das3722-poweroff.c27 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()
DMakefile2 obj-$(CONFIG_POWER_RESET_AS3722) += as3722-poweroff.o
/Linux-v4.19/Documentation/devicetree/bindings/mfd/
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";
/Linux-v4.19/arch/arm64/boot/dts/nvidia/
Dtegra132-norrin.dts12 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/
Das3722-regulator.txt45 compatible = "ams,as3722";
/Linux-v4.19/arch/arm/boot/dts/
Dtegra124-nyan.dtsi115 compatible = "ams,as3722";
Dtegra124-venice2.dts648 compatible = "ams,as3722";
Dtegra124-apalis-v1.2.dtsi1569 compatible = "ams,as3722";
Dtegra124-apalis.dtsi1598 compatible = "ams,as3722";
Dtegra124-jetson-tk1.dts1464 compatible = "ams,as3722";