Skip to content

Commit 13563e1

Browse files
committed
[nrf fromtree] tests: drivers: build_all: add npm1300 and npm1304 devices
Add the npm1300 and npm1304 devices tests to the appropriate build_all Signed-off-by: Sergei Ovchinnikov <[email protected]> (cherry picked from commit 3b03595)
1 parent 7e00dde commit 13563e1

File tree

5 files changed

+109
-0
lines changed

5 files changed

+109
-0
lines changed

tests/drivers/build_all/gpio/app.overlay

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,30 @@
413413
ngpios = <16>;
414414
int-gpios = <&test_gpio 0 0>;
415415
};
416+
417+
test_i2c_npm1300: pmic@1d {
418+
compatible = "nordic,npm1300";
419+
reg = <0x1d>;
420+
421+
npm1300_gpio: gpio-controller {
422+
compatible = "nordic,npm1300-gpio";
423+
gpio-controller;
424+
#gpio-cells = <2>;
425+
ngpios = <5>;
426+
};
427+
};
428+
429+
test_i2c_npm1304: pmic@1e {
430+
compatible = "nordic,npm1304";
431+
reg = <0x1e>;
432+
433+
npm1304_gpio: gpio-controller {
434+
compatible = "nordic,npm1304-gpio";
435+
gpio-controller;
436+
#gpio-cells = <2>;
437+
ngpios = <5>;
438+
};
439+
};
416440
};
417441

418442
nct3807_alert_1 {

tests/drivers/build_all/led/app.overlay

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,30 @@
168168
x-powers,mode = "by-reg";
169169
};
170170
};
171+
172+
pmic@13 {
173+
compatible = "nordic,npm1300";
174+
reg = <0x13>;
175+
176+
leds {
177+
compatible = "nordic,npm1300-led";
178+
nordic,led0-mode = "error";
179+
nordic,led1-mode = "charging";
180+
nordic,led2-mode = "host";
181+
};
182+
};
183+
184+
pmic@14 {
185+
compatible = "nordic,npm1304";
186+
reg = <0x14>;
187+
188+
leds {
189+
compatible = "nordic,npm1304-led";
190+
nordic,led0-mode = "error";
191+
nordic,led1-mode = "charging";
192+
nordic,led2-mode = "host";
193+
};
194+
};
171195
};
172196
};
173197
};

tests/drivers/build_all/regulator/i2c.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,17 @@ npm2100@8 {
143143
LDOSW {};
144144
};
145145
};
146+
147+
npm1304@9 {
148+
compatible = "nordic,npm1304";
149+
reg = <0x9>;
150+
151+
regulators {
152+
compatible = "nordic,npm1304-regulator";
153+
154+
BUCK1 {};
155+
BUCK2 {};
156+
LDO1 {};
157+
LDO2 {};
158+
};
159+
};

tests/drivers/build_all/sensor/i2c.dtsi

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,3 +1331,32 @@ test_i2c_bh1730: bh1730@b4 {
13311331
compatible = "rohm,bh1730";
13321332
reg = <0xb4>;
13331333
};
1334+
1335+
test_i2c_npm1300: npm1300@b5 {
1336+
compatible = "nordic,npm1300";
1337+
reg = <0xb5>;
1338+
1339+
charger {
1340+
compatible = "nordic,npm1300-charger";
1341+
vbus-limit-microamp = <1000000>;
1342+
thermistor-ohms = <10000>;
1343+
thermistor-beta = <3380>;
1344+
term-microvolt = <4150000>;
1345+
current-microamp = <150000>;
1346+
dischg-limit-microamp = <1000000>;
1347+
};
1348+
};
1349+
1350+
test_i2c_npm1304: npm1304@b6 {
1351+
compatible = "nordic,npm1304";
1352+
reg = <0xb6>;
1353+
1354+
charger {
1355+
compatible = "nordic,npm1304-charger";
1356+
vbus-limit-microamp = <1000000>;
1357+
thermistor-ohms = <10000>;
1358+
thermistor-beta = <3380>;
1359+
term-microvolt = <4150000>;
1360+
current-microamp = <10000>;
1361+
};
1362+
};

tests/drivers/build_all/watchdog/i2c_devices.overlay

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,24 @@
4141
compatible = "nordic,npm2100-wdt";
4242
};
4343
};
44+
45+
npm1300_pmic: pmic@2 {
46+
compatible = "nordic,npm1300";
47+
reg = <0x2>;
48+
49+
npm1300_wdt: watchdog {
50+
compatible = "nordic,npm1300-wdt";
51+
};
52+
};
53+
54+
npm1304_pmic: pmic@3 {
55+
compatible = "nordic,npm1304";
56+
reg = <0x3>;
57+
58+
npm1304_wdt: watchdog {
59+
compatible = "nordic,npm1304-wdt";
60+
};
61+
};
4462
};
4563
};
4664
};

0 commit comments

Comments
 (0)