Lines Matching +full:regulator +full:- +full:gpio
1 .. zephyr:code-sample:: npm6001_ek
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
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
113 GPIO section in Building and Running
116 The ``npm6001`` shell interface provides the ``gpio`` subcommand to test the
117 GPIO functionality offered by the PMIC. Below you can find some command
120 .. code-block:: bash
122 # configure GPIO 0 as output
123 npm6001 gpio configure -p 0 -d out
124 # configure GPIO 0 as output (init high)
125 npm6001 gpio configure -p 0 -d outh
126 # configure GPIO 0 as output (init low)
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
130 # configure GPIO 1 as input
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
134 # configure GPIO 1 as input with CMOS mode enabled
135 npm6001 gpio configure -p 1 -d input --cmos
137 .. code-block:: bash
139 # get GPIO 1 level
140 npm6001 gpio get 1
142 .. code-block:: bash
144 # set GPIO 0 high
145 npm6001 gpio set 0 1
146 # set GPIO 0 low
147 npm6001 gpio set 0 0
149 .. code-block:: bash
151 # toggle GPIO 0
152 npm6001 gpio toggle 0
161 .. code-block:: bash
164 # the resolution of the watchdog, e.g. 10s -> 12s.