/linux-6.12.1/drivers/mfd/ |
D | motorola-cpcap.c | 3 * Motorola CPCAP PMIC core driver 19 #include <linux/mfd/motorola-cpcap.h> 61 static int cpcap_check_revision(struct cpcap_ddata *cpcap) in cpcap_check_revision() argument 66 ret = cpcap_get_vendor(&cpcap->spi->dev, cpcap->regmap, &vendor); in cpcap_check_revision() 70 ret = cpcap_get_revision(&cpcap->spi->dev, cpcap->regmap, &rev); in cpcap_check_revision() 74 dev_info(&cpcap->spi->dev, "CPCAP vendor: %s rev: %i.%i (%x)\n", in cpcap_check_revision() 80 dev_info(&cpcap->spi->dev, in cpcap_check_revision() 81 "Please add old CPCAP revision support as needed\n"); in cpcap_check_revision() 94 .name = "cpcap-m2", 103 .name = "cpcap-m2", [all …]
|
/linux-6.12.1/arch/arm/boot/dts/ti/omap/ |
D | motorola-cpcap-mapphone.dtsi | 3 * Common CPCAP configuration used on Motorola phones 7 cpcap: pmic@0 { label 8 compatible = "motorola,cpcap", "st,6556002"; 22 compatible = "motorola,mapphone-cpcap-adc"; 23 interrupts-extended = <&cpcap 8 0>; 29 compatible = "motorola,cpcap-battery"; 31 <&cpcap 6 0>, <&cpcap 5 0>, <&cpcap 3 0>, 32 <&cpcap 20 0>, <&cpcap 54 0>, <&cpcap 57 0>; 44 compatible = "motorola,mapphone-cpcap-charger"; 46 <&cpcap 13 0>, <&cpcap 12 0>, <&cpcap 29 0>, [all …]
|
D | motorola-mapphone-common.dtsi | 6 #include "motorola-cpcap-mapphone.dtsi" 18 /* Poweroff GPIO probably connected to CPCAP */ 408 /* Internal UTMI+ PHY used for OTG, CPCAP ULPI PHY for detection and charger */
|
/linux-6.12.1/Documentation/devicetree/bindings/leds/ |
D | leds-cpcap.txt | 1 Motorola CPCAP PMIC LEDs 4 This module is part of the CPCAP. For more details about the whole 5 chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt. 9 * "motorola,cpcap-led-mdl" (Main Display Lighting) 10 * "motorola,cpcap-led-kl" (Keyboard Lighting) 11 * "motorola,cpcap-led-adl" (Aux Display Lighting) 12 * "motorola,cpcap-led-red" (Red Triode) 13 * "motorola,cpcap-led-green" (Green Triode) 14 * "motorola,cpcap-led-blue" (Blue Triode) 15 * "motorola,cpcap-led-cf" (Camera Flash) [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/phy/ |
D | phy-cpcap-usb.txt | 1 Motorola CPCAP PMIC USB PHY binding 4 compatible: Shall be either "motorola,cpcap-usb-phy" or 5 "motorola,mapphone-cpcap-usb-phy" 7 interrupts: CPCAP PMIC interrupts used by the USB PHY 20 compatible = "motorola,mapphone-cpcap-usb-phy"; 28 &cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0 29 &cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0 30 &cpcap 48 1
|
/linux-6.12.1/Documentation/devicetree/bindings/power/supply/ |
D | cpcap-charger.yaml | 5 $id: http://devicetree.org/schemas/power/supply/cpcap-charger.yaml# 8 title: Motorola CPCAP PMIC charger 15 Motorola CPCAP is a PMIC found in some mobile phones, e.g. 24 const: motorola,mapphone-cpcap-charger 68 Optionally CPCAP charger can have a companion wireless 86 cpcap { 88 compatible = "motorola,mapphone-cpcap-charger"; 90 <&cpcap 13 0>, <&cpcap 12 0>, <&cpcap 29 0>, <&cpcap 28 0>, 91 <&cpcap 22 0>, <&cpcap 21 0>, <&cpcap 20 0>, <&cpcap 19 0>, 92 <&cpcap 54 0>;
|
D | cpcap-battery.yaml | 5 $id: http://devicetree.org/schemas/power/supply/cpcap-battery.yaml# 8 title: Motorola CPCAP PMIC battery 15 Motorola CPCAP is a PMIC found in some mobile phones, e.g. 24 const: motorola,cpcap-battery 72 cpcap { 74 compatible = "motorola,cpcap-battery"; 76 <&cpcap 6 0>, <&cpcap 5 0>, <&cpcap 3 0>, 77 <&cpcap 20 0>, <&cpcap 54 0>, <&cpcap 57 0>;
|
/linux-6.12.1/sound/soc/codecs/ |
D | cpcap.c | 3 * ALSA SoC CPCAP codec driver 14 #include <linux/mfd/motorola-cpcap.h> 269 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_st_workaround() local 272 /* Only CPCAP from ST requires workaround */ in cpcap_st_workaround() 273 if (cpcap->vendor != CPCAP_VENDOR_ST) in cpcap_st_workaround() 278 err = regmap_write(cpcap->regmap, CPCAP_REG_TEST, in cpcap_st_workaround() 282 err = regmap_write(cpcap->regmap, CPCAP_REG_ST_TEST1, in cpcap_st_workaround() 288 err = regmap_write(cpcap->regmap, CPCAP_REG_ST_TEST1, in cpcap_st_workaround() 292 err = regmap_write(cpcap->regmap, CPCAP_REG_TEST, in cpcap_st_workaround() 370 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_output_mux_get_enum() local [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/mfd/ |
D | motorola-cpcap.txt | 1 Motorola CPCAP PMIC device tree binding 4 - compatible : One or both of "motorola,cpcap" or "ste,6556002" 16 The sub-functions of CPCAP get their own node with their own compatible values, 19 - Documentation/devicetree/bindings/power/supply/cpcap-battery.yaml 20 - Documentation/devicetree/bindings/power/supply/cpcap-charger.yaml 21 - Documentation/devicetree/bindings/regulator/cpcap-regulator.txt 22 - Documentation/devicetree/bindings/phy/phy-cpcap-usb.txt 23 - Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt 24 - Documentation/devicetree/bindings/rtc/cpcap-rtc.txt 25 - Documentation/devicetree/bindings/leds/leds-cpcap.txt [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/input/ |
D | cpcap-pwrbutton.txt | 1 Motorola CPCAP on key 3 This module is part of the CPCAP. For more details about the whole 4 chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt. 10 - "motorola,cpcap-pwrbutton" 11 - interrupts: irq specifier for CPCAP's ON IRQ 15 &cpcap { 17 compatible = "motorola,cpcap-pwrbutton";
|
/linux-6.12.1/Documentation/devicetree/bindings/iio/adc/ |
D | motorola,cpcap-adc.yaml | 4 $id: http://devicetree.org/schemas/iio/adc/motorola,cpcap-adc.yaml# 7 title: Motorola CPCAP PMIC ADC 13 On Motorola phones like droid 4 there is a custom CPCAP PMIC. This PMIC 20 - motorola,cpcap-adc 21 - motorola,mapphone-cpcap-adc 46 compatible = "motorola,mapphone-cpcap-adc"; 47 interrupt-parent = <&cpcap>;
|
/linux-6.12.1/Documentation/devicetree/bindings/rtc/ |
D | cpcap-rtc.txt | 1 Motorola CPCAP PMIC RTC 4 This module is part of the CPCAP. For more details about the whole 5 chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt. 8 - compatible: should contain "motorola,cpcap-rtc" 13 &cpcap { 15 compatible = "motorola,cpcap-rtc";
|
/linux-6.12.1/drivers/rtc/ |
D | rtc-cpcap.c | 3 * Motorola CPCAP PMIC RTC driver 5 * Based on cpcap-regulator.c from Motorola Linux kernel tree 26 #include <linux/mfd/motorola-cpcap.h> 51 static void cpcap2rtc_time(struct rtc_time *rtc, struct cpcap_time *cpcap) in cpcap2rtc_time() argument 56 tod = (cpcap->tod1 & TOD1_MASK) | ((cpcap->tod2 & TOD2_MASK) << 8); in cpcap2rtc_time() 57 time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); in cpcap2rtc_time() 62 static void rtc2cpcap_time(struct cpcap_time *cpcap, struct rtc_time *rtc) in rtc2cpcap_time() argument 68 cpcap->day = time / SECS_PER_DAY; in rtc2cpcap_time() 70 cpcap->tod2 = (time >> 8) & TOD2_MASK; in rtc2cpcap_time() 71 cpcap->tod1 = time & TOD1_MASK; in rtc2cpcap_time() [all …]
|
/linux-6.12.1/drivers/input/misc/ |
D | cpcap-pwrbutton.c | 3 * CPCAP Power Button Input Driver 17 #include <linux/mfd/motorola-cpcap.h> 70 button->idev->name = "cpcap-pwrbutton"; in cpcap_power_button_probe() 71 button->idev->phys = "cpcap-pwrbutton/input0"; in cpcap_power_button_probe() 94 { .compatible = "motorola,cpcap-pwrbutton" }, 103 .name = "cpcap-pwrbutton", 109 MODULE_ALIAS("platform:cpcap-pwrbutton"); 110 MODULE_DESCRIPTION("CPCAP Power Button");
|
/linux-6.12.1/Documentation/devicetree/bindings/regulator/ |
D | cpcap-regulator.txt | 1 Motorola CPCAP PMIC voltage regulators 6 "motorola,cpcap-regulator" 7 "motorola,mapphone-cpcap-regulator" 8 "motorola,xoom-cpcap-regulator" 25 compatible = "motorola,cpcap-regulator";
|
/linux-6.12.1/drivers/leds/ |
D | leds-cpcap.c | 7 #include <linux/mfd/motorola-cpcap.h> 150 { .compatible = "motorola,cpcap-led-red", .data = &cpcap_led_red }, 151 { .compatible = "motorola,cpcap-led-green", .data = &cpcap_led_green }, 152 { .compatible = "motorola,cpcap-led-blue", .data = &cpcap_led_blue }, 153 { .compatible = "motorola,cpcap-led-adl", .data = &cpcap_led_adl }, 154 { .compatible = "motorola,cpcap-led-cp", .data = &cpcap_led_cp }, 218 .name = "cpcap-led", 224 MODULE_DESCRIPTION("CPCAP LED driver");
|
/linux-6.12.1/arch/arm/mach-omap2/ |
D | pmic-cpcap.c | 3 * pmic-cpcap.c - CPCAP-specific functions for the OPP code 21 * omap_cpcap_vsel_to_uv - convert CPCAP VSEL value to microvolts DC 22 * @vsel: CPCAP VSEL value to convert 24 * Returns: the microvolts DC that the CPCAP PMIC should generate when 35 * omap_cpcap_uv_to_vsel - convert microvolts DC to CPCAP VSEL value 38 * Returns: the VSEL value necessary for the CPCAP PMIC to 242 if (!of_find_compatible_node(NULL, NULL, "motorola,cpcap")) in omap4_cpcap_init()
|
/linux-6.12.1/drivers/iio/adc/ |
D | cpcap-adc.c | 27 #include <linux/mfd/motorola-cpcap.h> 86 * struct cpcap_adc_ato - timing settings for cpcap adc 88 * Unfortunately no cpcap documentation available, please document when 103 * struct cpcap_adc - cpcap adc device driver data 104 * @reg: cpcap regmap 106 * @vendor: cpcap vendor 125 * enum cpcap_adc_channel - cpcap adc channels 156 * enum cpcap_adc_timing - cpcap adc timing options 168 * struct cpcap_adc_phasing_tbl - cpcap phasing table 184 * struct cpcap_adc_conversion_tbl - cpcap conversion table [all …]
|
/linux-6.12.1/drivers/regulator/ |
D | cpcap-regulator.c | 3 * Motorola CPCAP PMIC regulator driver 5 * Based on cpcap-regulator.c from Motorola Linux kernel tree 20 #include <linux/mfd/motorola-cpcap.h> 85 * SoC specific configuration for CPCAP regulator. There are at least three 483 .compatible = "motorola,cpcap-regulator", 486 .compatible = "motorola,mapphone-cpcap-regulator", 490 .compatible = "motorola,xoom-cpcap-regulator", 555 .name = "cpcap-regulator", 563 MODULE_ALIAS("platform:cpcap-regulator"); 565 MODULE_DESCRIPTION("CPCAP regulator driver");
|
/linux-6.12.1/drivers/phy/motorola/ |
D | phy-cpcap-usb.c | 3 * Motorola CPCAP PMIC USB PHY driver 7 * board-mapphone-usb.c and cpcap-usb-det.c: 25 #include <linux/mfd/motorola-cpcap.h> 598 .compatible = "motorola,cpcap-usb-phy", 601 .compatible = "motorola,mapphone-cpcap-usb-phy", 709 .name = "cpcap-usb-phy", 718 MODULE_DESCRIPTION("CPCAP usb phy driver");
|
D | Makefile | 6 obj-$(CONFIG_PHY_CPCAP_USB) += phy-cpcap-usb.o
|
D | Kconfig | 6 tristate "CPCAP PMIC USB PHY driver"
|
/linux-6.12.1/drivers/power/supply/ |
D | cpcap-charger.c | 3 * Motorola CPCAP PMIC battery charger driver 30 #include <linux/mfd/motorola-cpcap.h> 36 * and values for CPCAP are different, but some of the internal components seem 37 * similar. Also see the Motorola Linux kernel cpcap-regbits.h. CPCAP_REG_CHRGR_1 869 .compatible = "motorola,mapphone-cpcap-charger", 968 .name = "cpcap-charger", 977 MODULE_DESCRIPTION("CPCAP Battery Charger Interface driver"); 979 MODULE_ALIAS("platform:cpcap-charger");
|
D | cpcap-battery.c | 3 * Battery driver for CPCAP PMIC 28 #include <linux/mfd/motorola-cpcap.h> 52 * the coulomb counter like cpcap does. So for now, we use the twl6030 style 293 * cpcap_battery_read_accumulated - reads cpcap coulomb counter 437 * cpcap_battery_cc_get_avg_current - read cpcap coulumb counter 438 * @ddata: cpcap battery driver device data 602 * Update battery status when cpcap-charger calls power_supply_changed(). 1070 .compatible = "motorola,cpcap-battery", 1178 MODULE_DESCRIPTION("CPCAP PMIC Battery Driver");
|
D | Makefile | 26 obj-$(CONFIG_BATTERY_CPCAP) += cpcap-battery.o 68 obj-$(CONFIG_CHARGER_CPCAP) += cpcap-charger.o
|