/linux-6.1.9/drivers/mfd/ |
D | palmas.c | 324 int palmas_ext_control_req_config(struct palmas *palmas, in palmas_ext_control_req_config() argument 327 struct palmas_pmic_driver_data *pmic_ddata = palmas->pmic_ddata; in palmas_ext_control_req_config() 352 ret = palmas_update_bits(palmas, PALMAS_RESOURCE_BASE, in palmas_ext_control_req_config() 355 ret = palmas_update_bits(palmas, PALMAS_RESOURCE_BASE, in palmas_ext_control_req_config() 358 dev_err(palmas->dev, "Resource reg 0x%02x update failed %d\n", in palmas_ext_control_req_config() 364 ret = palmas_update_bits(palmas, PALMAS_PMU_CONTROL_BASE, in palmas_ext_control_req_config() 367 dev_err(palmas->dev, "POWER_CTRL register update failed %d\n", in palmas_ext_control_req_config() 423 static struct palmas *palmas_dev; 508 struct palmas *palmas; in palmas_i2c_probe() local 531 palmas = devm_kzalloc(&i2c->dev, sizeof(struct palmas), GFP_KERNEL); in palmas_i2c_probe() [all …]
|
/linux-6.1.9/drivers/gpio/ |
D | gpio-palmas.c | 20 struct palmas *palmas; member 30 struct palmas *palmas = pg->palmas; in palmas_gpio_get() local 39 ret = palmas_read(palmas, PALMAS_GPIO_BASE, reg, &val); in palmas_gpio_get() 50 ret = palmas_read(palmas, PALMAS_GPIO_BASE, reg, &val); in palmas_gpio_get() 62 struct palmas *palmas = pg->palmas; in palmas_gpio_set() local 75 ret = palmas_write(palmas, PALMAS_GPIO_BASE, reg, BIT(offset)); in palmas_gpio_set() 84 struct palmas *palmas = pg->palmas; in palmas_gpio_output() local 95 ret = palmas_update_bits(palmas, PALMAS_GPIO_BASE, reg, in palmas_gpio_output() 106 struct palmas *palmas = pg->palmas; in palmas_gpio_input() local 114 ret = palmas_update_bits(palmas, PALMAS_GPIO_BASE, reg, BIT(offset), 0); in palmas_gpio_input() [all …]
|
/linux-6.1.9/drivers/rtc/ |
D | rtc-palmas.c | 38 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_read_time() local 42 ret = palmas_update_bits(palmas, PALMAS_RTC_BASE, PALMAS_RTC_CTRL_REG, in palmas_rtc_read_time() 49 ret = palmas_bulk_read(palmas, PALMAS_RTC_BASE, PALMAS_SECONDS_REG, in palmas_rtc_read_time() 69 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_set_time() local 80 ret = palmas_update_bits(palmas, PALMAS_RTC_BASE, PALMAS_RTC_CTRL_REG, in palmas_rtc_set_time() 87 ret = palmas_bulk_write(palmas, PALMAS_RTC_BASE, PALMAS_SECONDS_REG, in palmas_rtc_set_time() 95 ret = palmas_update_bits(palmas, PALMAS_RTC_BASE, PALMAS_RTC_CTRL_REG, in palmas_rtc_set_time() 104 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_alarm_irq_enable() local 108 return palmas_write(palmas, PALMAS_RTC_BASE, in palmas_rtc_alarm_irq_enable() 116 struct palmas *palmas = dev_get_drvdata(dev->parent); in palmas_rtc_read_alarm() local [all …]
|
/linux-6.1.9/drivers/regulator/ |
D | palmas-regulator.c | 398 static int palmas_smps_read(struct palmas *palmas, unsigned int reg, in palmas_smps_read() argument 405 return regmap_read(palmas->regmap[REGULATOR_SLAVE], addr, dest); in palmas_smps_read() 408 static int palmas_smps_write(struct palmas *palmas, unsigned int reg, in palmas_smps_write() argument 415 return regmap_write(palmas->regmap[REGULATOR_SLAVE], addr, value); in palmas_smps_write() 418 static int palmas_ldo_read(struct palmas *palmas, unsigned int reg, in palmas_ldo_read() argument 425 return regmap_read(palmas->regmap[REGULATOR_SLAVE], addr, dest); in palmas_ldo_read() 428 static int palmas_ldo_write(struct palmas *palmas, unsigned int reg, in palmas_ldo_write() argument 435 return regmap_write(palmas->regmap[REGULATOR_SLAVE], addr, value); in palmas_ldo_write() 443 struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata; in palmas_set_mode_smps() 448 ret = palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, ®); in palmas_set_mode_smps() [all …]
|
/linux-6.1.9/Documentation/devicetree/bindings/mfd/ |
D | palmas.txt | 1 * palmas device tree bindings 3 The TI palmas family current members :- 4 twl6035 (palmas) 5 twl6037 (palmas) 6 tps65913 (palmas) 7 tps65914 (palmas) 22 ti,palmas 23 - interrupt-controller : palmas has its own internal IRQs 35 palmas { 36 compatible = "ti,twl6035", "ti,palmas"; [all …]
|
/linux-6.1.9/drivers/extcon/ |
D | extcon-palmas.c | 33 static void palmas_usb_wakeup(struct palmas *palmas, int enable) in palmas_usb_wakeup() argument 36 palmas_write(palmas, PALMAS_USB_OTG_BASE, PALMAS_USB_WAKEUP, in palmas_usb_wakeup() 39 palmas_write(palmas, PALMAS_USB_OTG_BASE, PALMAS_USB_WAKEUP, 0); in palmas_usb_wakeup() 48 palmas_read(palmas_usb->palmas, PALMAS_INTERRUPT_BASE, in palmas_vbus_irq_handler() 80 palmas_read(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler() 82 palmas_read(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler() 87 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler() 95 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler() 150 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_enable_irq() 155 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_enable_irq() [all …]
|
/linux-6.1.9/Documentation/devicetree/bindings/input/ |
D | ti,palmas-pwrbutton.txt | 5 Documentation/devicetree/bindings/mfd/palmas.txt. 11 - "ti,palmas-pwrbutton": For Palmas compatible power on button 16 - ti,palmas-long-press-seconds: Duration in seconds which the power 20 - ti,palmas-pwron-debounce-milli-seconds: Duration in milliseconds 27 &palmas { 29 compatible = "ti,palmas-pwrbutton"; 32 ti,palmas-long-press-seconds = <12>; 33 ti,palmas-pwron-debounce-milli-seconds = <15>;
|
/linux-6.1.9/drivers/clk/ |
D | clk-palmas.c | 37 struct palmas *palmas; member 58 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_prepare() 83 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_unprepare() 100 ret = palmas_read(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_is_prepared() 202 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_init_configure() 218 ret = palmas_ext_control_req_config(cinfo->palmas, in palmas_clks_init_configure() 233 struct palmas *palmas = dev_get_drvdata(pdev->dev.parent); in palmas_clks_probe() local 251 cinfo->palmas = palmas; in palmas_clks_probe()
|
/linux-6.1.9/drivers/iio/adc/ |
D | palmas_gpadc.c | 105 struct palmas *palmas; member 150 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_disable_auto_conversion() 159 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_disable_auto_conversion() 171 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_disable_auto_conversion() 205 ret = palmas_update_bits(adc->palmas, PALMAS_INTERRUPT_BASE, in palmas_gpadc_start_mask_interrupt() 209 ret = palmas_update_bits(adc->palmas, PALMAS_INTERRUPT_BASE, in palmas_gpadc_start_mask_interrupt() 228 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable() 244 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable() 255 ret = palmas_update_bits(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable() 262 ret = palmas_write(adc->palmas, PALMAS_GPADC_BASE, in palmas_gpadc_enable() [all …]
|
/linux-6.1.9/Documentation/devicetree/bindings/clock/ |
D | clk-palmas-clk32kg-clocks.txt | 8 - compatible : "ti,palmas-clk32kg" for clk32kg clock 9 "ti,palmas-clk32kgaudio" for clk32kgaudio clock 22 dt-bindings/mfd/palmas.h 25 #include <dt-bindings/mfd/palmas.h> 27 palmas: tps65913@58 { 30 compatible = "ti,palmas-clk32kg";
|
/linux-6.1.9/Documentation/devicetree/bindings/extcon/ |
D | extcon-palmas.txt | 6 * "ti,palmas-usb-vid". 8 * "ti,palmas-usb" (DEPRECATED - use "ti,palmas-usb-vid"). 19 palmas-usb { 20 compatible = "ti,twl6035-usb", "ti,palmas-usb";
|
/linux-6.1.9/drivers/input/misc/ |
D | palmas-pwrbutton.c | 33 struct palmas *palmas; member 62 error = palmas_read(pwron->palmas, PALMAS_INTERRUPT_BASE, in palmas_power_button_work() 157 struct palmas *palmas = dev_get_drvdata(pdev->dev.parent); in palmas_pwron_probe() local 190 error = palmas_update_bits(palmas, PALMAS_PMU_CONTROL_BASE, in palmas_pwron_probe() 200 pwron->palmas = palmas; in palmas_pwron_probe()
|
/linux-6.1.9/Documentation/devicetree/bindings/rtc/ |
D | rtc-palmas.txt | 5 - "ti,palmas-rtc" for palma series of the RTC controller 22 palmas: tps65913@58 { 25 compatible = "ti,palmas-rtc"; 26 interrupt-parent = <&palmas>;
|
/linux-6.1.9/Documentation/devicetree/bindings/regulator/ |
D | palmas-pmic.txt | 1 * palmas regulator IP block devicetree bindings 5 is not a need to add the OTP spins to the palmas driver. The 20 ti,palmas-pmic 35 For ti,palmas-pmic - smps12, smps123, smps3 depending on OTP, 61 compatible = "ti,twl6035-pmic", "ti,palmas-pmic"; 62 interrupt-parent = <&palmas>;
|
/linux-6.1.9/Documentation/devicetree/bindings/iio/adc/ |
D | ti,palmas-gpadc.yaml | 4 $id: http://devicetree.org/schemas/iio/adc/ti,palmas-gpadc.yaml# 35 const: ti,palmas-gpadc 74 compatible = "ti,twl6035-pmic", "ti,palmas-pmic"; 76 compatible = "ti,palmas-gpadc";
|
/linux-6.1.9/Documentation/devicetree/bindings/gpio/ |
D | gpio-palmas.txt | 16 Note: This gpio node will be sub node of palmas node. 19 palmas: tps65913@58 { 22 compatible = "ti,palmas-gpio";
|
/linux-6.1.9/Documentation/devicetree/bindings/pinctrl/ |
D | pinctrl-palmas.txt | 8 - "ti,palmas-pinctrl" for Palma series of the pincontrol. 32 - ti,palmas-enable-dvfs1: Enable DVFS1. Configure pins for DVFS1 mode. 35 - ti,palmas-enable-dvfs2: Enable DVFS2. Configure pins for DVFS2 mode. 38 - ti,palmas-override-powerhold: This is applicable for PMICs for which 43 scenarios. So for GPIO7 if ti,palmas-override-powerhold is set 76 palmas: tps65913 { 80 ti,palmas-enable-dvfs1;
|
/linux-6.1.9/include/linux/mfd/ |
D | palmas.h | 61 struct palmas { struct 548 struct palmas *palmas; member 563 struct palmas *palmas; member 568 struct palmas *palmas; member 3751 static inline int palmas_read(struct palmas *palmas, unsigned int base, in palmas_read() argument 3757 return regmap_read(palmas->regmap[slave_id], addr, val); in palmas_read() 3760 static inline int palmas_write(struct palmas *palmas, unsigned int base, in palmas_write() argument 3766 return regmap_write(palmas->regmap[slave_id], addr, value); in palmas_write() 3769 static inline int palmas_bulk_write(struct palmas *palmas, unsigned int base, in palmas_bulk_write() argument 3775 return regmap_bulk_write(palmas->regmap[slave_id], addr, in palmas_bulk_write() [all …]
|
/linux-6.1.9/arch/arm/boot/dts/ |
D | omap5-board-common.dtsi | 376 palmas: palmas@48 { label 377 compatible = "ti,palmas"; 390 compatible = "ti,palmas-gpio"; 396 compatible = "ti,palmas-usb-vid"; 404 compatible = "ti,palmas-clk32kgaudio"; 409 compatible = "ti,palmas-rtc"; 410 interrupt-parent = <&palmas>; 417 compatible = "ti,palmas-gpadc"; 427 compatible = "ti,palmas-pmic"; 428 interrupt-parent = <&palmas>; [all …]
|
D | tegra114-tn7.dts | 64 palmas: pmic@58 { label 65 compatible = "ti,tps65913", "ti,palmas"; 75 compatible = "ti,palmas-gpio"; 81 compatible = "ti,tps65913-pmic", "ti,palmas-pmic"; 232 compatible = "ti,palmas-rtc"; 233 interrupt-parent = <&palmas>;
|
D | tegra114-asus-tf701t.dts | 20 rtc0 = &palmas; 355 palmas: pmic@58 { label 356 compatible = "ti,tps65913", "ti,palmas"; 366 compatible = "ti,palmas-gpio"; 372 compatible = "ti,tps65913-pmic", "ti,palmas-pmic"; 527 compatible = "ti,palmas-rtc"; 528 interrupt-parent = <&palmas>; 534 ti,palmas-enable-dvfs1;
|
D | omap5-cm-t54.dts | 422 palmas: palmas@48 { label 423 compatible = "ti,palmas"; 434 compatible = "ti,palmas-usb-vid"; 441 compatible = "ti,palmas-rtc"; 442 interrupt-parent = <&palmas>; 447 compatible = "ti,palmas-pmic"; 448 interrupt-parent = <&palmas>;
|
D | am57xx-idk-common.dtsi | 188 ti,palmas-override-powerhold; 363 compatible = "ti,palmas-rtc"; 370 compatible = "ti,palmas-pwrbutton"; 374 ti,palmas-long-press-seconds = <12>; 378 compatible = "ti,palmas-gpio"; 384 compatible = "ti,palmas-usb-vid";
|
D | am57xx-beagle-x15-common.dtsi | 237 ti,palmas-override-powerhold; 364 compatible = "ti,palmas-rtc"; 371 compatible = "ti,palmas-pwrbutton"; 375 ti,palmas-long-press-seconds = <12>; 379 compatible = "ti,palmas-gpio"; 385 compatible = "ti,palmas-usb-vid";
|
/linux-6.1.9/drivers/pinctrl/ |
D | pinctrl-palmas.c | 65 struct palmas *palmas; member 573 ret = palmas_read(pci->palmas, g->mux_reg_base, in palmas_pinctrl_get_pin_mux() 593 ret = palmas_update_bits(pci->palmas, PALMAS_PU_PD_OD_BASE, in palmas_pinctrl_set_dvfs1() 608 ret = palmas_update_bits(pci->palmas, PALMAS_PU_PD_OD_BASE, in palmas_pinctrl_set_dvfs2() 718 ret = palmas_update_bits(pci->palmas, g->mux_reg_base, g->mux_reg_add, in palmas_pinctrl_set_mux() 781 ret = palmas_read(pci->palmas, base, add, &val); in palmas_pinconf_get() 813 ret = palmas_read(pci->palmas, base, add, &val); in palmas_pinconf_get() 939 ret = palmas_update_bits(pci->palmas, base, add, mask, rval); in palmas_pinconf_set() 1006 pci->palmas = dev_get_drvdata(pdev->dev.parent); in palmas_pinctrl_probe()
|