Home
last modified time | relevance | path

Searched refs:cpcap (Results 1 – 25 of 25) sorted by relevance

/kernel/linux/linux-5.10/drivers/mfd/
Dmotorola-cpcap.c61 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()
122 static void cpcap_init_one_regmap_irq(struct cpcap_ddata *cpcap, in cpcap_init_one_regmap_irq() argument
130 reg_offset /= cpcap->regmap_conf->val_bits; in cpcap_init_one_regmap_irq()
131 reg_offset *= cpcap->regmap_conf->reg_stride; in cpcap_init_one_regmap_irq()
133 bit = irq % cpcap->regmap_conf->val_bits; in cpcap_init_one_regmap_irq()
140 static int cpcap_init_irq_chip(struct cpcap_ddata *cpcap, int irq_chip, in cpcap_init_irq_chip() argument
[all …]
DMakefile126 obj-$(CONFIG_MFD_CPCAP) += motorola-cpcap.o
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dmotorola-cpcap-mapphone.dtsi7 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
46 compatible = "motorola,mapphone-cpcap-charger";
48 &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0
49 &cpcap 22 0 &cpcap 21 0 &cpcap 20 0 &cpcap 19 0
[all …]
Dmotorola-mapphone-common.dtsi6 #include "motorola-cpcap-mapphone.dtsi"
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/leds/
Dleds-cpcap.txt5 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)
16 * "motorola,cpcap-led-bt" (Bluetooth)
17 * "motorola,cpcap-led-cp" (Camera Privacy LED)
[all …]
/kernel/linux/linux-5.10/sound/soc/codecs/
Dcpcap.c260 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_st_workaround() local
264 if (cpcap->vendor != CPCAP_VENDOR_ST) in cpcap_st_workaround()
269 err = regmap_write(cpcap->regmap, CPCAP_REG_TEST, in cpcap_st_workaround()
273 err = regmap_write(cpcap->regmap, CPCAP_REG_ST_TEST1, in cpcap_st_workaround()
279 err = regmap_write(cpcap->regmap, CPCAP_REG_ST_TEST1, in cpcap_st_workaround()
283 err = regmap_write(cpcap->regmap, CPCAP_REG_TEST, in cpcap_st_workaround()
361 struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); in cpcap_output_mux_get_enum() local
367 err = regmap_read(cpcap->regmap, CPCAP_REG_RXCOA, &reg_voice); in cpcap_output_mux_get_enum()
370 err = regmap_read(cpcap->regmap, CPCAP_REG_RXSDOA, &reg_hifi); in cpcap_output_mux_get_enum()
373 err = regmap_read(cpcap->regmap, CPCAP_REG_RXEPOA, &reg_ext); in cpcap_output_mux_get_enum()
[all …]
DMakefile46 snd-soc-cpcap-objs := cpcap.o
356 obj-$(CONFIG_SND_SOC_CPCAP) += snd-soc-cpcap.o
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/phy/
Dphy-cpcap-usb.txt4 compatible: Shall be either "motorola,cpcap-usb-phy" or
5 "motorola,mapphone-cpcap-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
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/supply/
Dcpcap-charger.txt4 - compatible: Shall be "motorola,mapphone-cpcap-charger"
22 compatible = "motorola,mapphone-cpcap-charger";
24 &cpcap 13 0 &cpcap 12 0 &cpcap 29 0 &cpcap 28 0
25 &cpcap 22 0 &cpcap 21 0 &cpcap 20 0 &cpcap 19 0
26 &cpcap 54 0
Dcpcap-battery.txt4 - compatible: Shall be "motorola,cpcap-battery"
18 compatible = "motorola,cpcap-battery";
20 &cpcap 5 0 &cpcap 3 0
21 &cpcap 20 0 &cpcap 54 0
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/mfd/
Dmotorola-cpcap.txt4 - compatible : One or both of "motorola,cpcap" or "ste,6556002"
19 - ../power/supply/cpcap-battery.txt
20 - ../power/supply/cpcap-charger.txt
21 - ../regulator/cpcap-regulator.txt
22 - ../phy/phy-cpcap-usb.txt
23 - ../input/cpcap-pwrbutton.txt
24 - ../rtc/cpcap-rtc.txt
25 - ../leds/leds-cpcap.txt
26 - ../iio/adc/cpcap-adc.txt
41 cpcap: pmic@0 {
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/rtc/
Dcpcap-rtc.txt5 chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt.
8 - compatible: should contain "motorola,cpcap-rtc"
13 &cpcap {
15 compatible = "motorola,cpcap-rtc";
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/
Dcpcap-pwrbutton.txt4 chip see Documentation/devicetree/bindings/mfd/motorola-cpcap.txt.
10 - "motorola,cpcap-pwrbutton"
15 &cpcap {
17 compatible = "motorola,cpcap-pwrbutton";
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/regulator/
Dcpcap-regulator.txt6 "motorola,cpcap-regulator"
7 "motorola,mapphone-cpcap-regulator"
8 "motorola,xoom-cpcap-regulator"
25 compatible = "motorola,cpcap-regulator";
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-cpcap.c51 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()
DMakefile43 obj-$(CONFIG_RTC_DRV_CPCAP) += rtc-cpcap.o
/kernel/linux/linux-5.10/drivers/phy/motorola/
DMakefile6 obj-$(CONFIG_PHY_CPCAP_USB) += phy-cpcap-usb.o
/kernel/linux/linux-5.10/drivers/power/supply/
DMakefile26 obj-$(CONFIG_BATTERY_CPCAP) += cpcap-battery.o
64 obj-$(CONFIG_CHARGER_CPCAP) += cpcap-charger.o
/kernel/linux/linux-5.10/drivers/input/misc/
DMakefile27 obj-$(CONFIG_INPUT_CPCAP_PWRBUTTON) += cpcap-pwrbutton.o
DKconfig319 be called cpcap-pwrbutton.
/kernel/linux/linux-5.10/drivers/iio/adc/
DMakefile39 obj-$(CONFIG_CPCAP_ADC) += cpcap-adc.o
DKconfig382 called cpcap-adc.
/kernel/linux/linux-5.10/drivers/leds/
DMakefile28 obj-$(CONFIG_LEDS_CPCAP) += leds-cpcap.o
/kernel/linux/linux-5.10/drivers/regulator/
DMakefile17 obj-$(CONFIG_REGULATOR_CPCAP) += cpcap-regulator.o
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
DMakefile34 obj-y += pmic-cpcap.o