blob: 186b8a0197f4c67f341eb789af0d7c63aa0f8645 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/*
2 * Copyright 2018 ASR Microelectronics (Shanghai) Co., Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8
9&pmic5 {
10 compatible = "asr,pm802";
11 reg = <0x00>;
12/* interrupts = <4>;
13 interrupt-parent = <&intc>;
14 interrupt-controller;
15 #interrupt-cells = <1>;
16*/
17 asr,pm802-irq-write-clear;
18 /* set scs-int-active-high depending on board connection */
19 /* scs-int-active-high; */
20
21 asr,pm802-power-page-addr = <0x1>;
22 asr,pm802-gpadc-page-addr = <0x2>;
23
24 regulators {
25 compatible = "asr,pm802-regulator";
26
27 BUCK1 {
28 regulator-compatible = "PM802-BUCK1";
29 regulator-min-microvolt = <600000>;
30 regulator-max-microvolt = <3950000>;
31 regulator-boot-on;
32 regulator-always-on;
33 };
34 BUCK2 {
35 regulator-compatible = "PM802-BUCK2";
36 regulator-min-microvolt = <600000>;
37 regulator-max-microvolt = <3950000>;
38 regulator-boot-on;
39 regulator-always-on;
40 };
41 BUCK3 {
42 regulator-compatible = "PM802-BUCK3";
43 regulator-min-microvolt = <600000>;
44 regulator-max-microvolt = <3950000>;
45 regulator-boot-on;
46 regulator-always-on;
47 };
48 BUCK4 {
49 regulator-compatible = "PM802-BUCK4";
50 regulator-min-microvolt = <600000>;
51 regulator-max-microvolt = <3950000>;
52 regulator-boot-on;
53 regulator-always-on;
54 };
55 BUCK5 {
56 regulator-compatible = "PM802-BUCK5";
57 regulator-min-microvolt = <600000>;
58 regulator-max-microvolt = <3950000>;
59 regulator-always-on;
60 };
b.liub17525e2025-05-14 17:22:29 +080061 pm802ldo1:LDO1 {
b.liue9582032025-04-17 19:18:16 +080062 regulator-compatible = "PM802-LDO1";
63 regulator-min-microvolt = <1200000>;
64 regulator-max-microvolt = <3300000>;
65 regulator-boot-on;
66 regulator-always-on;
67 };
68 LDO2 {
69 regulator-compatible = "PM802-LDO2";
70 regulator-min-microvolt = <1700000>;
71 regulator-max-microvolt = <3300000>;
72 regulator-boot-on;
73 regulator-always-on;
74 };
75 /* LDO3 {
76 regulator-compatible = "PM802-LDO3";
77 regulator-min-microvolt = <1800000>;
78 regulator-max-microvolt = <3300000>;
79 };*/
b.liub17525e2025-05-14 17:22:29 +080080 /* ldo4 works as LDO4_3V0_USIM2 shouldn't be configed in uboot/linux. It is only controled in CP */
b.liue9582032025-04-17 19:18:16 +080081 pm802ldo4: LDO4 {
82 regulator-compatible = "PM802-LDO4";
83 regulator-min-microvolt = <1800000>;
84 regulator-max-microvolt = <3300000>;
85 };
86 LDO5 {
87 regulator-compatible = "PM802-LDO5";
88 regulator-min-microvolt = <1200000>;
89 regulator-max-microvolt = <3300000>;
b.liub17525e2025-05-14 17:22:29 +080090 //regulator-boot-on;
91 //regulator-always-on;
b.liue9582032025-04-17 19:18:16 +080092 };
93 pm802ldo6: LDO6 {
94 regulator-compatible = "PM802-LDO6";
95 regulator-min-microvolt = <1200000>;
96 regulator-max-microvolt = <3300000>;
b.liub17525e2025-05-14 17:22:29 +080097 regulator-boot-on; /*add by mbtk*/
98 regulator-always-on; /*add by mbtk*/
b.liue9582032025-04-17 19:18:16 +080099 };
100 };
101 dvc {
102 status = "okay";
103 compatible = "marvell,88pm8xx-dvc";
104 /* pm800 dvc affect buck1/4, affected 32bit = (1 << 3) | (1 << 0)*/
105 dvc-affected-buckbits = <1>;
106 dvc-gpio1 = <13>;
107 dvc-gpio2 = <127>;
108 pinctrl-names = "default";
109 pinctrl-0 = <&dvc_pmx_func>;
110 };
111 usb802: usb {
112 compatible = "marvell,88pm80x-usb";
113 vbus_gpio = <0xff>; /* set_vbus */
114 /* id-gpadc = <0xff>;*//* usb-id */
115 vchg-from-exton = <1>;
116 };
117 wd {
118 compatible = "marvell,88pm80x-wdt";
119 };
120};