Lines Matching +full:npm6001 +full:- +full:regulator

1 .. zephyr:code-sample:: npm6001_ek
2 :name: nPM6001 EK
4 Interact with the nPM6001 PMIC using the shell interface.
11 by the nPM6001 PMIC, including:
13 - Regulators (BUCK0/1/2/3 and LDO0/1)
14 - GPIO
15 - Watchdog
24 :alt: nRF52840DK + nPM6001-EK wiring example
27 nRF52840DK + nPM6001-EK wiring example
35 .. zephyr-app-commands::
36 :zephyr-app: samples/shields/npm6001_ek
42 flashed, you should boot into the shell interface. The ``npm6001`` command is
48 The ``npm6001`` shell interface provides the ``regulator`` subcommand to test
52 .. code-block:: bash
55 npm6001 regulator list
63 .. code-block:: bash
66 npm6001 regulator voltages BUCK2
73 .. code-block:: bash
76 npm6001 regulator enable BUCK3
78 npm6001 regulator disable BUCK3
80 .. code-block:: bash
83 npm6001 regulator set BUCK3 3000
85 npm6001 regulator get BUCK3
88 npm6001 regulator set BUCK0 2350 2450
90 npm6001 regulator get BUCK3
93 .. code-block:: bash
96 npm6001 regulator modeset BUCK0 hys
98 npm6001 regulator modeset BUCK0 pwm
100 .. code-block:: bash
103 npm6001 regulator modeget BUCK0
106 .. code-block:: bash
109 npm6001 regulator errors BUCK0
116 The ``npm6001`` shell interface provides the ``gpio`` subcommand to test the
120 .. code-block:: bash
123 npm6001 gpio configure -p 0 -d out
125 npm6001 gpio configure -p 0 -d outh
127 npm6001 gpio configure -p 0 -d outl
128 # configure GPIO 0 as output with high-drive mode enabled
129 npm6001 gpio configure -p 0 -d out --high-drive
131 npm6001 gpio configure -p 1 -d input
132 # configure GPIO 1 as input with pull-down enabled
133 npm6001 gpio configure -p 1 -d input --pull-down
135 npm6001 gpio configure -p 1 -d input --cmos
137 .. code-block:: bash
140 npm6001 gpio get 1
142 .. code-block:: bash
145 npm6001 gpio set 0 1
147 npm6001 gpio set 0 0
149 .. code-block:: bash
152 npm6001 gpio toggle 0
157 The ``npm6001`` shell interface provides the ``wdt`` subcommand to test the
161 .. code-block:: bash
164 # the resolution of the watchdog, e.g. 10s -> 12s.
165 npm6001 wdt enable 8000
167 npm6001 wdt disable
169 npm6001 wdt kick