Home
last modified time | relevance | path

Searched full:pwrc (Results 1 – 25 of 37) sorted by relevance

12

/linux/drivers/power/reset/
H A Datc260x-poweroff.c19 int (*do_poweroff)(const struct atc260x_pwrc *pwrc, bool restart);
22 static int atc2603c_do_poweroff(const struct atc260x_pwrc *pwrc, bool restart) in atc2603c_do_poweroff() argument
30 dev_info(pwrc->dev, "Enabling S4-Deep Sleep Mode"); in atc2603c_do_poweroff()
38 ret = regmap_update_bits(pwrc->regmap, ATC2603C_PMU_SYS_CTL0, in atc2603c_do_poweroff()
41 dev_warn(pwrc->dev, "failed to write SYS_CTL0: %d\n", ret); in atc2603c_do_poweroff()
46 ret = regmap_update_bits(pwrc->regmap, ATC2603C_PMU_SYS_CTL3, reg_mask, in atc2603c_do_poweroff()
49 dev_err(pwrc->dev, "failed to write SYS_CTL3: %d\n", ret); in atc2603c_do_poweroff()
58 ret = regmap_update_bits(pwrc->regmap, in atc2603c_do_poweroff()
62 dev_err(pwrc->dev, "failed to write SYS_CTL%d: %d\n", in atc2603c_do_poweroff()
73 static int atc2609a_do_poweroff(const struct atc260x_pwrc *pwrc, bool restart) in atc2609a_do_poweroff() argument
[all …]
H A Dmt6323-poweroff.c27 struct mt6323_pwrc *pwrc = data->cb_data; in mt6323_do_pwroff() local
31 regmap_write(pwrc->regmap, pwrc->base + RTC_BBPU, RTC_BBPU_KEY); in mt6323_do_pwroff()
32 regmap_write(pwrc->regmap, pwrc->base + RTC_WRTGR_MT6323, 1); in mt6323_do_pwroff()
34 ret = regmap_read_poll_timeout(pwrc->regmap, in mt6323_do_pwroff()
35 pwrc->base + RTC_BBPU, val, in mt6323_do_pwroff()
40 dev_err(pwrc->dev, "failed to write BBPU: %d\n", ret); in mt6323_do_pwroff()
53 struct mt6323_pwrc *pwrc; in mt6323_pwrc_probe() local
57 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in mt6323_pwrc_probe()
58 if (!pwrc) in mt6323_pwrc_probe()
65 pwrc->base = res->start; in mt6323_pwrc_probe()
[all …]
/linux/drivers/pmdomain/amlogic/
H A Dmeson-secure-pwrc.c14 #include <dt-bindings/power/amlogic,c3-pwrc.h>
16 #include <dt-bindings/power/amlogic,t7-pwrc.h>
17 #include <dt-bindings/power/amlogic,a4-pwrc.h>
18 #include <dt-bindings/power/amlogic,a5-pwrc.h>
31 struct meson_secure_pwrc *pwrc; member
57 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_GET, &is_off, in pwrc_secure_is_off()
70 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_off()
85 if (meson_sm_call(pwrc_domain->pwrc->fw, SM_A1_PWRC_SET, NULL, in meson_secure_pwrc_on()
271 struct meson_secure_pwrc *pwrc; in meson_secure_pwrc_probe() local
286 pwrc = devm_kzalloc(&pdev->dev, sizeof(*pwrc), GFP_KERNEL); in meson_secure_pwrc_probe()
[all …]
H A Dmeson-ee-pwrc.c334 struct meson_ee_pwrc *pwrc; member
353 regmap_read(pwrc_domain->pwrc->regmap_ao, in pwrc_ee_is_powered_off()
366 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
373 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_off()
381 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_off()
402 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
408 regmap_update_bits(pwrc_domain->pwrc->regmap_hhi, in meson_ee_pwrc_on()
419 regmap_update_bits(pwrc_domain->pwrc->regmap_ao, in meson_ee_pwrc_on()
432 struct meson_ee_pwrc *pwrc, in meson_ee_pwrc_init_domain() argument
437 dom->pwrc = pwrc; in meson_ee_pwrc_init_domain()
[all …]
H A DMakefile2 obj-$(CONFIG_MESON_EE_PM_DOMAINS) += meson-ee-pwrc.o
3 obj-$(CONFIG_MESON_SECURE_PM_DOMAINS) += meson-secure-pwrc.o
/linux/Documentation/devicetree/bindings/power/
H A Damlogic,meson-ee-pwrc.yaml5 $id: http://devicetree.org/schemas/power/amlogic,meson-ee-pwrc.yaml#
26 - amlogic,meson8-pwrc
27 - amlogic,meson8b-pwrc
28 - amlogic,meson8m2-pwrc
29 - amlogic,meson-gxbb-pwrc
30 - amlogic,meson-axg-pwrc
31 - amlogic,meson-g12a-pwrc
32 - amlogic,meson-sm1-pwrc
64 - amlogic,meson8b-pwrc
65 - amlogic,meson8m2-pwrc
[all …]
H A Damlogic,meson-sec-pwrc.yaml6 $id: http://devicetree.org/schemas/power/amlogic,meson-sec-pwrc.yaml#
21 - amlogic,meson-a1-pwrc
22 - amlogic,meson-s4-pwrc
23 - amlogic,a4-pwrc
24 - amlogic,a5-pwrc
25 - amlogic,c3-pwrc
26 - amlogic,t7-pwrc
42 pwrc: power-controller {
43 compatible = "amlogic,meson-a1-pwrc";
H A Damlogic,meson-gx-pwrc.txt20 - "amlogic,meson-gx-pwrc-vpu" for the Meson GX SoCs
21 - "amlogic,meson-g12a-pwrc-vpu" for the Meson G12A SoCs
42 compatible = "amlogic,meson-gx-pwrc-vpu";
H A Dstarfive,jh7110-pmu.yaml40 pwrc: power-controller@17030000 {
/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-a1.dtsi56 power-domains = <&pwrc PWRC_OTP_ID>;
81 pwrc: power-controller { label
82 compatible = "amlogic,meson-a1-pwrc";
99 power-domains = <&pwrc PWRC_SPIFC_ID>;
320 power-domains = <&pwrc PWRC_I2C_ID>;
348 power-domains = <&pwrc PWRC_I2C_ID>;
367 power-domains = <&pwrc PWRC_I2C_ID>;
378 power-domains = <&pwrc PWRC_I2C_ID>;
389 power-domains = <&pwrc PWRC_I2C_ID>;
400 power-domains = <&pwrc PWRC_USB_ID>;
[all …]
H A Dmeson-sm1.dtsi509 power-domains = <&pwrc PWRC_SM1_ETH_ID>;
518 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
522 power-domains = <&pwrc PWRC_SM1_PCIE_ID>;
529 &pwrc {
530 compatible = "amlogic,meson-sm1-pwrc";
534 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
538 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
546 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
550 power-domains = <&pwrc PWRC_SM1_USB_ID>;
554 power-domains = <&pwrc PWRC_SM1_NNA_ID>;
H A Damlogic-a4.dtsi7 #include <dt-bindings/power/amlogic,a4-pwrc.h>
45 pwrc: power-controller { label
46 compatible = "amlogic,a4-pwrc";
H A Damlogic-a5.dtsi7 #include <dt-bindings/power/amlogic,a5-pwrc.h>
45 pwrc: power-controller { label
46 compatible = "amlogic,a5-pwrc";
H A Dmeson-g12.dtsi363 power-domains = <&pwrc PWRC_G12A_ETH_ID>;
367 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
371 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
379 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
383 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
H A Damlogic-t7.dtsi7 #include <dt-bindings/power/amlogic,t7-pwrc.h>
124 pwrc: power-controller { label
125 compatible = "amlogic,t7-pwrc";
H A Damlogic-c3.dtsi13 #include <dt-bindings/power/amlogic,c3-pwrc.h>
59 pwrc: power-controller { label
60 compatible = "amlogic,c3-pwrc";
564 power-domains = <&pwrc PWRC_C3_SDIOA_ID>;
579 power-domains = <&pwrc PWRC_C3_SDCARD_ID>;
611 power-domains = <&pwrc PWRC_C3_ETH_ID>;
H A Dmeson-gx.dtsi76 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
84 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
566 pwrc: power-controller { label
567 compatible = "amlogic,meson-gxbb-pwrc";
593 power-domains = <&pwrc PWRC_GXBB_ETHERNET_MEM_ID>;
H A Dmeson-gxbb.dtsi318 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
742 &pwrc {
864 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
/linux/Documentation/devicetree/bindings/power/reset/
H A Dmt6323-poweroff.txt8 "mediatek,mt6323-pwrc": for MT6323 PMIC
18 compatible = "mediatek,mt6323-pwrc";
/linux/Documentation/devicetree/bindings/soc/amlogic/
H A Damlogic,meson-gx-hhi-sysctrl.yaml30 $ref: /schemas/power/amlogic,meson-ee-pwrc.yaml
116 compatible = "amlogic,meson-gxbb-pwrc";
175 compatible = "amlogic,meson-axg-pwrc";
/linux/arch/arm/boot/dts/amlogic/
H A Dmeson8m2.dtsi64 &pwrc {
65 compatible = "amlogic,meson8m2-pwrc";
/linux/Documentation/devicetree/bindings/firmware/
H A Damlogic,meson-gxbb-sm.yaml26 $ref: /schemas/power/amlogic,meson-sec-pwrc.yaml#
/linux/drivers/mfd/
H A Datc260x-core.c124 { .name = "atc260x-pwrc" },
134 { .name = "atc260x-pwrc" },
/linux/Documentation/devicetree/bindings/clock/
H A Dstarfive,jh7110-voutcrg.yaml89 power-domains = <&pwrc JH7110_PD_VOUT>;
H A Dstarfive,jh7110-ispcrg.yaml86 power-domains = <&pwrc JH7110_PD_ISP>;

12