Jump to content

kampi

Members
  • Posts

    8
  • Joined

  • Last visited

  1. Hi, I use a device tree fragment example for a shutdown button on my Orange Pi One. /dts-v1/; /plugin/; / { compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5"; fragment@0 { target = <&pio>; __overlay__ { gpio_button_0: gpio_button_0 { pins = "PA20"; function = "gpio_in"; bias-pull-up; }; }; }; fragment@1 { target-path = "/"; __overlay__ { gpio-keys-user { compatible = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <&gpio_button_0>; power_button { label = "Shutdown button"; linux,code = <116>; /* KEY_POWER, see include/uapi/linux/input-event-codes.h */ gpios = <&pio 0 20 1>; }; }; }; }; }; And I try to understand how this fragment works. AS I understand it right now the fragment uses the existing infrastructure of the SW4. Which parts of the system (driver, etc.) handle the input of the push putton and where can I find some additional informations about it?
  2. Anyway I have downloaded DTC 1.4.7 and this version fixes the issue.
  3. mmh the command doesn´t output an URL.
  4. I can compile the fragment on my Raspberry Pi with DT 1.4.7, so there is definitely an issue with the version. How can I update the DTC on my OrangePi? Using apt doesn´t work, because I have the current version already.
  5. I´m pretty sure that I try to compile the correct file. But my DTC is only version 1.4.2. Maybe thats the issue.
  6. mmh maybe some missing dependencies or an old version? Which device tree compiler do you use?
  7. Hi, sorry, but this doesn´t solve the problem. I reduce the overlay to /dts-v1/; /plugin/; / { compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5"; fragment@0 { target = <&pio>; __overlay__ { gpio_button_0: gpio_button_0 { pins = "PA20"; function = "gpio_in"; bias-pull-up; }; }; }; }; and I still have the same problem.
  8. Hi, I use kernel version 4.19.62-sunxi on my Orange Pi One and I want compile the following devide tree overlay: /dts-v1/; /plugin/; / { compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5"; fragment@0 { target = <&pio>; __overlay__ { gpio_button_0: gpio_button_0 { pins = "PA20"; function = "gpio_in"; bias-pull-up; }; }; }; fragment@1 { target-path = "/"; __overlay__ { gpio-keys-user { compatible = "gpio-keys"; pinctrl-names = "default"; pinctrl-0 = <&gpio_button_0>; power_button { label = "GPIO Key Power"; linux,code = <KEY_POWER>; gpios = <&pio 0 20 GPIO_ACTIVE_LOW>; }; }; }; }; }; dtc -I dts -O dtb -o overlay-user/test.dtbo overlay-user/gpio-poweroff.dts But the DTC outputs the following error: Error: overlay-user/gpio-poweroff.dts:2.2-8 syntax error FATAL ERROR: Unable to parse input tree What is wrong with this overlay?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines