Skip to content

Commit 3eae6cd

Browse files
taieup-kimcfriedt
authored andcommitted
board: nxp: mimxrt700_evk: add pmic instance for rt700 cm33_cpu0
enable pmic i2c clock config pmic pin add pca9422 pmic instance on rt700_evk cm33_cpu0 Signed-off-by: Clark Kim <[email protected]>
1 parent 3778309 commit 3eae6cd

File tree

3 files changed

+118
-0
lines changed

3 files changed

+118
-0
lines changed

boards/nxp/mimxrt700_evk/board.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ void board_early_init_hook(void)
272272
#endif
273273

274274
#if DT_NODE_HAS_STATUS(DT_NODELABEL(lpi2c15), okay)
275+
CLOCK_AttachClk(kSENSE_BASE_to_LPI2C15);
276+
CLOCK_SetClkDiv(kCLOCK_DivLpi2c15Clk, 2U);
275277
CLOCK_EnableClock(kCLOCK_LPI2c15);
276278
RESET_ClearPeripheralReset(kLPI2C15_RST_SHIFT_RSTn);
277279
#endif

boards/nxp/mimxrt700_evk/mimxrt700_evk-pinctrl.dtsi

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@
7070
};
7171
};
7272

73+
pinmux_lpi2c15: pinmux_lpi2c15 {
74+
group0 {
75+
pinmux = <PMIC_I2C_SCL>,
76+
<PMIC_I2C_SDA>;
77+
bias-pull-up;
78+
input-enable;
79+
slew-rate = "normal";
80+
drive-strength = "normal";
81+
drive-open-drain;
82+
};
83+
};
84+
7385
flexio_pwm_default: flexio_pwm_default {
7486
group0 {
7587
pinmux = <FLEXIO_IO7_PIO2_7>;

boards/nxp/mimxrt700_evk/mimxrt700_evk_mimxrt798s_cm33_cpu0.dts

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,106 @@
131131
pinctrl-names = "default";
132132
};
133133

134+
&lpi2c15 {
135+
status = "okay";
136+
clock-frequency = <I2C_BITRATE_FAST>;
137+
#address-cells = <1>;
138+
#size-cells = <0>;
139+
pinctrl-0 = <&pinmux_lpi2c15>;
140+
pinctrl-names = "default";
141+
142+
pca9422: pca9422@61 {
143+
compatible = "nxp,pca9422";
144+
reg = <0x61>;
145+
interrupts = <138 0>;
146+
147+
charger: pca9422_charger {
148+
compatible = "nxp,pca9422-charger";
149+
constant-charge-current-max-microamp = <100000>;
150+
constant-charge-voltage-max-microvolt = <4200000>;
151+
precharge-current-percent = <16>;
152+
charge-termination-current-percent = <25>;
153+
re-charge-threshold-microvolt = <100000>;
154+
input-current-limit-microamp = <470000>;
155+
system-voltage-min-threshold-microvolt = <4550000>;
156+
};
157+
158+
regulators: pca9422_regulators {
159+
compatible = "nxp,pca9422-regulator";
160+
nxp,vsys-uvlo-sel-millivolt = <2700>;
161+
162+
pca9422_sw1: BUCK1 {
163+
regulator-boot-on;
164+
low-power-mode = "Normal";
165+
enable-mode = "All";
166+
nxp,active-microvolt = <1000000>;
167+
nxp,sleep-microvolt = <600000>;
168+
nxp,standby-microvolt = <1000000>;
169+
};
170+
171+
pca9422_sw2: BUCK2 {
172+
regulator-boot-on;
173+
low-power-mode = "Normal";
174+
enable-mode = "All";
175+
nxp,active-microvolt = <1100000>;
176+
nxp,sleep-microvolt = <1100000>;
177+
nxp,standby-microvolt = <1100000>;
178+
};
179+
180+
pca9422_sw3: BUCK3 {
181+
regulator-boot-on;
182+
low-power-mode = "Normal";
183+
enable-mode = "All";
184+
nxp,active-microvolt = <1800000>;
185+
nxp,sleep-microvolt = <1800000>;
186+
nxp,standby-microvolt = <1800000>;
187+
};
188+
189+
pca9422_sw4: BUCKBOOST {
190+
regulator-boot-on;
191+
low-power-mode = "Normal";
192+
enable-mode = "All";
193+
nxp,active-microvolt = <1800000>;
194+
nxp,sleep-microvolt = <1800000>;
195+
nxp,standby-microvolt = <1800000>;
196+
};
197+
198+
pca9422_ldo1: LDO1 {
199+
regulator-boot-on;
200+
enable-mode = "All";
201+
nxp,active-microvolt = <1800000>;
202+
nxp,sleep-microvolt = <1800000>;
203+
nxp,standby-microvolt = <1800000>;
204+
};
205+
206+
pca9422_ldo2: LDO2 {
207+
regulator-boot-on;
208+
low-power-mode = "Normal";
209+
enable-mode = "All";
210+
nxp,active-microvolt = <1800000>;
211+
nxp,sleep-microvolt = <1800000>;
212+
nxp,standby-microvolt = <1800000>;
213+
};
214+
215+
pca9422_ldo3: LDO3 {
216+
regulator-boot-on;
217+
low-power-mode = "Normal";
218+
enable-mode = "All";
219+
nxp,active-microvolt = <1200000>;
220+
nxp,sleep-microvolt = <1200000>;
221+
nxp,standby-microvolt = <1200000>;
222+
};
223+
pca9422_ldo4: LDO4 {
224+
regulator-boot-on;
225+
enable-mode = "All";
226+
nxp,active-microvolt = <3300000>;
227+
nxp,sleep-microvolt = <3300000>;
228+
nxp,standby-microvolt = <3300000>;
229+
};
230+
};
231+
};
232+
};
233+
134234
&flexcomm2{
135235
status = "okay";
136236
};
@@ -283,3 +383,7 @@ p3t1755dp_ard_i2c_interface: &flexcomm8_lpi2c8 {};
283383
&mbox4 {
284384
status = "okay";
285385
};
386+
387+
&pca9422 {
388+
status = "okay";
389+
};

0 commit comments

Comments
 (0)