|
11 | 11 | #include <zephyr/dt-bindings/gpio/gpio.h> |
12 | 12 | #include <zephyr/dt-bindings/i2c/i2c.h> |
13 | 13 | #include <zephyr/dt-bindings/input/input-event-codes.h> |
| 14 | +#include <zephyr/dt-bindings/regulator/npm13xx.h> |
14 | 15 |
|
15 | 16 | #include "pt2-pinctrl.dtsi" |
16 | 17 |
|
|
72 | 73 | status = "okay"; |
73 | 74 | }; |
74 | 75 |
|
| 76 | +&gpioa_00_31 { |
| 77 | + status = "okay"; |
| 78 | +}; |
| 79 | + |
75 | 80 | &gpioa_32_44 { |
76 | 81 | status = "okay"; |
77 | 82 | }; |
|
85 | 90 | pinctrl-0 = <&i2c1_default>; |
86 | 91 | pinctrl-names = "default"; |
87 | 92 | clock-frequency = <I2C_BITRATE_FAST>; |
| 93 | + |
| 94 | + npm1300: pmic@6b { |
| 95 | + compatible = "nordic,npm1300"; |
| 96 | + reg = <0x6b>; |
| 97 | + pmic-int-pin = <1>; |
| 98 | + host-int-gpios = <&gpioa_00_31 26 GPIO_ACTIVE_HIGH>; |
| 99 | + |
| 100 | + npm1300_charger: charger { |
| 101 | + compatible = "nordic,npm1300-charger"; |
| 102 | + term-microvolt = <4350000>; |
| 103 | + term-warm-microvolt = <4000000>; |
| 104 | + current-microamp = <185000>; |
| 105 | + dischg-limit-microamp = <200000>; |
| 106 | + vbus-limit-microamp = <500000>; |
| 107 | + thermistor-ohms = <10000>; |
| 108 | + thermistor-beta = <3380>; |
| 109 | + charging-enable; |
| 110 | + vbatlow-charge-enable; |
| 111 | + }; |
| 112 | + |
| 113 | + npm1300_gpio: gpio-controller { |
| 114 | + compatible = "nordic,npm1300-gpio"; |
| 115 | + gpio-controller; |
| 116 | + #gpio-cells = <2>; |
| 117 | + ngpios = <4>; |
| 118 | + }; |
| 119 | + |
| 120 | + regulators { |
| 121 | + compatible = "nordic,npm1300-regulator"; |
| 122 | + |
| 123 | + npm1300_ldo1: LDO1 { |
| 124 | + regulator-allowed-modes = <NPM13XX_LDSW_MODE_LDO>; |
| 125 | + regulator-initial-mode = <NPM13XX_LDSW_MODE_LDO>; |
| 126 | + regulator-min-microvolt = <1800000>; |
| 127 | + regulator-max-microvolt = <1800000>; |
| 128 | + }; |
| 129 | + |
| 130 | + npm1300_ldo2: LDO2 { |
| 131 | + regulator-allowed-modes = <NPM13XX_LDSW_MODE_LDO>; |
| 132 | + regulator-initial-mode = <NPM13XX_LDSW_MODE_LDO>; |
| 133 | + regulator-min-microvolt = <3300000>; |
| 134 | + regulator-max-microvolt = <3300000>; |
| 135 | + }; |
| 136 | + }; |
| 137 | + |
| 138 | + }; |
88 | 139 | }; |
89 | 140 |
|
90 | 141 | &i2c2 { |
|
0 commit comments