Lines Matching +full:npm6001 +full:- +full:regulator
3 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/drivers/regulator.h>
12 #include <zephyr/dt-bindings/gpio/nordic-npm6001-gpio.h>
13 #include <zephyr/dt-bindings/regulator/npm6001.h>
50 printk("nPM6001 GPIO device not ready\n"); in main()
55 printk("nPM6001 Watchdog device not ready\n"); in main()
62 printk("nPM6001 %s regulator device not ready\n", in main()
93 shell_error(sh, "Invalid regulator: %s", argv[1]); in cmd_regulator_voltages()
94 return -ENODEV; in cmd_regulator_voltages()
118 shell_error(sh, "Invalid regulator: %s", argv[1]); in cmd_regulator_enable()
119 return -ENODEV; in cmd_regulator_enable()
124 shell_error(sh, "Could not enable regulator (%d)", ret); in cmd_regulator_enable()
140 shell_error(sh, "Invalid regulator: %s", argv[1]); in cmd_regulator_disable()
141 return -ENODEV; in cmd_regulator_disable()
146 shell_error(sh, "Could not disable regulator (%d)", ret); in cmd_regulator_disable()
161 shell_error(sh, "Invalid regulator: %s", argv[1]); in cmd_regulator_set()
162 return -ENODEV; in cmd_regulator_set()
191 shell_error(sh, "Invalid regulator: %s", argv[1]); in cmd_regulator_get()
192 return -ENODEV; in cmd_regulator_get()
216 shell_error(sh, "Invalid regulator: %s", argv[1]); in cmd_regulator_modeset()
217 return -ENODEV; in cmd_regulator_modeset()
226 return -EINVAL; in cmd_regulator_modeset()
248 shell_error(sh, "Invalid regulator: %s", argv[1]); in cmd_regulator_modeget()
249 return -ENODEV; in cmd_regulator_modeget()
264 return -EINVAL; in cmd_regulator_modeget()
280 shell_error(sh, "Invalid regulator: %s", argv[1]); in cmd_regulator_errors()
281 return -ENODEV; in cmd_regulator_errors()
309 {"high-drive", no_argument, &high_drive, 1}, in cmd_gpio_configure()
310 {"pull-down", no_argument, &pull_down, 1}, in cmd_gpio_configure()
320 &long_index)) != -1) { in cmd_gpio_configure()
341 return -EINVAL; in cmd_gpio_configure()
458 SHELL_CMD(list, NULL, "List regulator names",
462 SHELL_CMD_ARG(enable, NULL, "Enable regulator",
464 SHELL_CMD_ARG(disable, NULL, "Disable regulator",
499 SHELL_CMD(regulator, &sub_npm6001_regulator_cmds,
507 SHELL_CMD_REGISTER(npm6001, &sub_npm6001_cmds, "nPM6001 commands", NULL);