/linux/drivers/mfd/ |
H A D | palmas.c | 325 int palmas_ext_control_req_config(struct palmas *palmas, in palmas_ext_control_req_config() argument 328 struct palmas_pmic_driver_data *pmic_ddata = palmas->pmic_ddata; in palmas_ext_control_req_config() 353 ret = palmas_update_bits(palmas, PALMAS_RESOURCE_BASE, in palmas_ext_control_req_config() 356 ret = palmas_update_bits(palmas, PALMAS_RESOURCE_BASE, in palmas_ext_control_req_config() 359 dev_err(palmas->dev, "Resource reg 0x%02x update failed %d\n", in palmas_ext_control_req_config() 365 ret = palmas_update_bits(palmas, PALMAS_PMU_CONTROL_BASE, in palmas_ext_control_req_config() 368 dev_err(palmas->dev, "POWER_CTRL register update failed %d\n", in palmas_ext_control_req_config() 424 static struct palmas *palmas_dev; 486 struct palmas *palmas; in palmas_i2c_probe() local 508 palmas = devm_kzalloc(&i2c->dev, sizeof(struct palmas), GFP_KERNEL); in palmas_i2c_probe() [all …]
|
/linux/drivers/gpio/ |
H A D | gpio-palmas.c | 19 struct palmas *palmas; member 29 struct palmas *palmas = pg->palmas; in palmas_gpio_get() local 38 ret = palmas_read(palmas, PALMAS_GPIO_BASE, reg, &val); in palmas_gpio_get() 49 ret = palmas_read(palmas, PALMAS_GPIO_BASE, reg, &val); in palmas_gpio_get() 61 struct palmas *palmas = pg->palmas; in palmas_gpio_set() local 74 ret = palmas_write(palmas, PALMAS_GPIO_BASE, reg, BIT(offset)); in palmas_gpio_set() 83 struct palmas *palmas = pg->palmas; in palmas_gpio_output() local 94 ret = palmas_update_bits(palmas, PALMAS_GPIO_BASE, reg, in palmas_gpio_output() 105 struct palmas *palmas = pg->palmas; in palmas_gpio_input() local 113 ret = palmas_update_bits(palmas, PALMAS_GPIO_BASE, reg, BIT(offset), 0); in palmas_gpio_input() [all …]
|
/linux/drivers/rtc/ |
H A 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/drivers/regulator/ |
H A D | palmas-regulator.c | 397 static int palmas_smps_read(struct palmas *palmas, unsigned int reg, in palmas_smps_read() argument 404 return regmap_read(palmas->regmap[REGULATOR_SLAVE], addr, dest); in palmas_smps_read() 407 static int palmas_smps_write(struct palmas *palmas, unsigned int reg, in palmas_smps_write() argument 414 return regmap_write(palmas->regmap[REGULATOR_SLAVE], addr, value); in palmas_smps_write() 417 static int palmas_ldo_read(struct palmas *palmas, unsigned int reg, in palmas_ldo_read() argument 424 return regmap_read(palmas->regmap[REGULATOR_SLAVE], addr, dest); in palmas_ldo_read() 427 static int palmas_ldo_write(struct palmas *palmas, unsigned int reg, in palmas_ldo_write() argument 434 return regmap_write(palmas->regmap[REGULATOR_SLAVE], addr, value); in palmas_ldo_write() 442 struct palmas_pmic_driver_data *ddata = pmic->palmas->pmic_ddata; in palmas_set_mode_smps() 447 ret = palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, ®); in palmas_set_mode_smps() [all …]
|
/linux/drivers/extcon/ |
H A D | extcon-palmas.c | 32 static void palmas_usb_wakeup(struct palmas *palmas, int enable) in palmas_usb_wakeup() argument 35 palmas_write(palmas, PALMAS_USB_OTG_BASE, PALMAS_USB_WAKEUP, in palmas_usb_wakeup() 38 palmas_write(palmas, PALMAS_USB_OTG_BASE, PALMAS_USB_WAKEUP, 0); in palmas_usb_wakeup() 47 palmas_read(palmas_usb->palmas, PALMAS_INTERRUPT_BASE, in palmas_vbus_irq_handler() 79 palmas_read(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler() 81 palmas_read(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler() 86 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler() 94 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_id_irq_handler() 149 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_enable_irq() 154 palmas_write(palmas_usb->palmas, PALMAS_USB_OTG_BASE, in palmas_enable_irq() [all …]
|
H A D | Makefile | 21 obj-$(CONFIG_EXTCON_PALMAS) += extcon-palmas.o
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A 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/Documentation/devicetree/bindings/input/ |
H A 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/drivers/clk/ |
H A D | clk-palmas.c | 36 struct palmas *palmas; member 57 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_prepare() 82 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_unprepare() 99 ret = palmas_read(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_is_prepared() 201 ret = palmas_update_bits(cinfo->palmas, PALMAS_RESOURCE_BASE, in palmas_clks_init_configure() 217 ret = palmas_ext_control_req_config(cinfo->palmas, in palmas_clks_init_configure() 232 struct palmas *palmas = dev_get_drvdata(pdev->dev.parent); in palmas_clks_probe() local 250 cinfo->palmas = palmas; in palmas_clks_probe()
|
/linux/Documentation/devicetree/bindings/clock/ |
H A 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/Documentation/devicetree/bindings/extcon/ |
H A 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/drivers/input/misc/ |
H A 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/Documentation/devicetree/bindings/rtc/ |
H A 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/Documentation/devicetree/bindings/regulator/ |
H A 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/Documentation/devicetree/bindings/pinctrl/ |
H A 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/Documentation/devicetree/bindings/gpio/ |
H A 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/arch/arm/boot/dts/ti/omap/ |
H A D | omap5-board-common.dtsi | 236 palmas_msecure_pins: palmas-msecure-pins { 307 palmas_sys_nirq_pins: palmas-sys-nirq-pins { 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"; [all …]
|
H A 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";
|
H A 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";
|
H A D | dra72-evm-tps65917.dtsi | 125 compatible = "ti,palmas-pwrbutton"; 129 ti,palmas-long-press-seconds = <6>;
|
H A D | am5729-beagleboneai.dts | 217 ti,palmas-override-powerhold; 390 compatible = "ti,palmas-rtc"; 397 compatible = "ti,palmas-pwrbutton"; 401 ti,palmas-long-press-seconds = <12>; 405 compatible = "ti,palmas-gpio";
|
/linux/include/linux/mfd/ |
H A D | palmas.h | 60 struct palmas { struct 539 struct palmas *palmas; member 554 struct palmas *palmas; member 559 struct palmas *palmas; member 3742 static inline int palmas_read(struct palmas *palmas, unsigned int base, in palmas_read() argument 3748 return regmap_read(palmas->regmap[slave_id], addr, val); in palmas_read() 3751 static inline int palmas_write(struct palmas *palmas, unsigned int base, in palmas_write() argument 3757 return regmap_write(palmas->regmap[slave_id], addr, value); in palmas_write() 3760 static inline int palmas_bulk_write(struct palmas *palmas, unsigned int base, in palmas_bulk_write() argument 3766 return regmap_bulk_write(palmas->regmap[slave_id], addr, in palmas_bulk_write() [all …]
|
/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra114-tn7.dts | 66 palmas: pmic@58 { label 67 compatible = "ti,tps65913", "ti,palmas"; 77 compatible = "ti,palmas-gpio"; 83 compatible = "ti,tps65913-pmic", "ti,palmas-pmic"; 234 compatible = "ti,palmas-rtc"; 235 interrupt-parent = <&palmas>;
|
H A D | tegra114-asus-tf701t.dts | 20 rtc0 = &palmas; 1334 palmas: pmic@58 { label 1335 compatible = "ti,tps65913", "ti,palmas"; 1345 compatible = "ti,palmas-gpadc"; 1358 compatible = "ti,palmas-usb-vid"; 1364 compatible = "ti,palmas-gpio"; 1370 compatible = "ti,palmas-clk32kg"; 1376 ti,palmas-enable-dvfs1; 1435 compatible = "ti,tps65913-pmic", "ti,palmas-pmic"; 1586 compatible = "ti,palmas-rtc"; [all …]
|
/linux/drivers/pinctrl/ |
H A D | pinctrl-palmas.c | 64 struct palmas *palmas; member 572 ret = palmas_read(pci->palmas, g->mux_reg_base, in palmas_pinctrl_get_pin_mux() 592 ret = palmas_update_bits(pci->palmas, PALMAS_PU_PD_OD_BASE, in palmas_pinctrl_set_dvfs1() 607 ret = palmas_update_bits(pci->palmas, PALMAS_PU_PD_OD_BASE, in palmas_pinctrl_set_dvfs2() 717 ret = palmas_update_bits(pci->palmas, g->mux_reg_base, g->mux_reg_add, in palmas_pinctrl_set_mux() 780 ret = palmas_read(pci->palmas, base, add, &val); in palmas_pinconf_get() 812 ret = palmas_read(pci->palmas, base, add, &val); in palmas_pinconf_get() 938 ret = palmas_update_bits(pci->palmas, base, add, mask, rval); in palmas_pinconf_set() 1005 pci->palmas = dev_get_drvdata(pdev->dev.parent); in palmas_pinctrl_probe()
|