blob: 552a09a14ae8110207ce83eb9e8e1f0e0c888a41 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001/*
2 * Copyright 2021 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&pmic7 {
10 compatible = "asr,pm813";
11 reg = <0x30>;
12 /* interrupts = <4>;
13 interrupt-parent = <&intc>;
14 interrupt-controller;
15 #interrupt-cells = <1>; */
16 asr,pm813-irq-write-clear;
17 /* set scs-int-active-high depending on board connection */
18 /* scs-int-active-high; */
19
20 asr,pm813-power-page-addr = <0x1>;
21
22 regulators {
23 compatible = "asr,pm813-regulator";
24
25 BUCK1 {
26 regulator-compatible = "PM813-BUCK1";
27 regulator-min-microvolt = <600000>;
28 regulator-max-microvolt = <3950000>;
29 regulator-boot-on;
30 regulator-always-on;
31 };
32 BUCK2 {
33 regulator-compatible = "PM813-BUCK2";
34 regulator-min-microvolt = <600000>;
35 regulator-max-microvolt = <3950000>;
36 regulator-boot-on;
37 regulator-always-on;
38 };
39 BUCK3 {
40 regulator-compatible = "PM813-BUCK3";
41 regulator-min-microvolt = <600000>;
42 regulator-max-microvolt = <3950000>;
43 regulator-boot-on;
44 regulator-always-on;
45 };
46
47 pm813ldo1: LDO1 {
48 regulator-compatible = "PM813-LDO1";
49 regulator-min-microvolt = <1200000>;
50 regulator-max-microvolt = <3300000>;
51 };
52 pm813ldo2: LDO2 {
53 regulator-compatible = "PM813-LDO2";
54 regulator-min-microvolt = <1200000>;
55 regulator-max-microvolt = <3300000>;
56 regulator-boot-on;
57 regulator-always-on;
58 };
59 pm813ldo3: LDO3 {
60 regulator-compatible = "PM813-LDO3";
61 regulator-min-microvolt = <1200000>;
62 regulator-max-microvolt = <3300000>;
63 };
64 pm813ldo4: LDO4 {
65 regulator-compatible = "PM813-LDO4";
66 regulator-min-microvolt = <1200000>;
67 regulator-max-microvolt = <3300000>;
68 };
69 pm813ldo5: LDO5 {
70 regulator-compatible = "PM813-LDO5";
71 regulator-min-microvolt = <1200000>;
72 regulator-max-microvolt = <3300000>;
73 regulator-boot-on;
74 regulator-always-on;
75 };
76 pm813ldo6: LDO6 {
77 regulator-compatible = "PM813-LDO6";
78 regulator-min-microvolt = <1200000>;
79 regulator-max-microvolt = <3300000>;
80 regulator-boot-on;
81 regulator-always-on;
82 };
83 pm813ldo7: LDO7 {
84 regulator-compatible = "PM813-LDO7";
85 regulator-min-microvolt = <1200000>;
86 regulator-max-microvolt = <3300000>;
87 regulator-boot-on;
88 regulator-always-on;
89 };
90 /* pm813ldo8: LDO8 {
91 regulator-compatible = "PM813-LDO8";
92 regulator-min-microvolt = <1200000>;
93 regulator-max-microvolt = <3300000>;
94 regulator-boot-on;
95 regulator-always-on;
96 }; */
97 pm813ldo9: LDO9 {
98 regulator-compatible = "PM813-LDO9";
99 regulator-min-microvolt = <1200000>;
100 regulator-max-microvolt = <3300000>;
101 };
102 pm813ldo10: LDO10 {
103 regulator-compatible = "PM813-LDO10";
104 regulator-min-microvolt = <1200000>;
105 regulator-max-microvolt = <3300000>;
106 };
107 pm813ldo11: LDO11 {
108 regulator-compatible = "PM813-LDO11";
109 regulator-min-microvolt = <1200000>;
110 regulator-max-microvolt = <3300000>;
111 regulator-boot-on;
112 regulator-always-on;
113 };
114 pm813ldo12: LDO12 {
115 regulator-compatible = "PM813-LDO12";
116 regulator-min-microvolt = <1200000>;
117 regulator-max-microvolt = <3300000>;
118 };
119 pm813ldo13: LDO13 {
120 regulator-compatible = "PM813-LDO13";
121 regulator-min-microvolt = <1200000>;
122 regulator-max-microvolt = <3300000>;
123
124 };
125
126 };
127 dvc {
128 status = "okay";
129 compatible = "marvell,88pm8xx-dvc";
130 /* pm800 dvc affect buck1/4, affected 32bit = (1 << 3) | (1 << 0)*/
131 dvc-affected-buckbits = <1>;
132 dvc-gpio1 = <13>;
133 dvc-gpio2 = <127>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&dvc_pmx_func>;
136 };
137 usb813: usb {
138 compatible = "marvell,88pm80x-usb";
139 vbus_gpio = <0xff>; /* set_vbus */
140 /* id-gpadc = <0xff>;*//* usb-id */
141 vchg-from-exton = <1>;
142 };
143 wd {
144 compatible = "marvell,88pm80x-wdt";
145 };
146};