Jump to content

Artem Shakirov

Members
  • Posts

    5
  • Joined

  • Last visited

  1. You are absolutely right!: user@orangepipcplus:~$ grep -n POWER_RESET_GPIO /boot/conf* 3457:# CONFIG_POWER_RESET_GPIO is not set 3458:# CONFIG_POWER_RESET_GPIO_RESTART is not set I will continue to use the power LED driver. It's even more suitable. ----------------------------------------------------------------------------------------------- Nothing about this driver.
  2. The gpio-poweroff driver is not about buttons 🙂 See https://www.kernel.org/doc/Documentation/devicetree/bindings/power/reset/gpio-poweroff.txt (first link of my first message).
  3. Good health, going! Thank you for you answer! And sorry for my English😓 What I want: When OPi PC turns off, "reboot: System halted" is displayed on the screen. I want the PA21 to turn on at this moment. What I did with overlays: 1) I found "gpio-poweroff", described in the first link of my first message. 2) I found a thread at this forum (second link in my first message) with overlay code and changed gpio pin to PA21. Here is my overlay code that does not work: 3) I found a pull request (third link in my first message) with overlay code and changed gpio pin to PA21. Here is my overlay code that does not work too: What I did with armbian-config: Armbian-config menu has "Dtc" entry that opens huge file in the nano editor. I tried to change entries in this file instead of make overlays. And pasted only changes in the my first message. The end result was the same. No errors occured but it still does not work. What I expected: PA21 is configured as output. And it turned on (for 100ms) when OPi PC halted. What is happening now: PA21 isn't configured at all. And nothing happens when OPi PC halted.
  4. As workaround, now I am using "gpio-leds" to copy power led to PA21 😄 So, when halt message appears, PA21 turns off. And I can turn off the whole device by relay.
  5. I can't set up gpio-poweroff feature described here. I tried made overlays from here and here - no effect. U-boot boots with no errors. Then i am tried to edit DT (armbian-config > System > Dtc), - manually add node at pinctrl@1c20800: and node at "/": where 0 21 0 means "PA 21 drive_active_high", i assume. So "Reference to non-existent node or label "pio"" error is occured. Then I use gpios = <0x0e 0x00 0x15 0x00>; for PA21 (like it used in leds node for pwr_led on PA10 by changing 0x0a to 0x15 (PA21)). No errors occured but it still not work. Also pwr_off_pins labels in Dtc was repaced by phandle = <0x7f>; and pinctrl-0 = <0x7f>; after compilation. PA21 is free pin. How to make it work? Welcome message:
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines