Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

RESOLVED: a64 (pine64) dt bindings for cir?

Featured Replies

Hi,

 

  Thank you all for so much work to fully implement the mainline kernel for the Pine64!

 

So much is now working out-of-the-box with armbian, that there is no need to use the legacy version based on kernel 3.10.

 

The pine64 does have CIR capabilities and the sunxi-cir kernel module is available, but we are still missing DT bindings for the device, although I see that an overlay file is present for the h5:

/dts-v1/;

/ {
        compatible = "allwinner,sun50i-h5";

        fragment@0 {
                target = <0xffffffff>;

                __overlay__ {
                        pinctrl-names = "default";
                        pinctrl-0 = <0xffffffff>;
                        status = "okay";
                };
        };

        __fixups__ {
                ir = "/fragment@0:target:0";
                r_ir_rx_pin = "/fragment@0/__overlay__:pinctrl-0:0";
        };
};
/tmp/sun50i-h5-cir.dtbs (END) 

   

 

I would be very happy to try to implement and test this, if anyone can suggest changes to the overlay code, to shoehorn it into the pine64-plus DT. 

 

Update:

I did try the obvious, simple approach of changing the compatible line to compatible = "allwinner,sun50i-a64"

, recompiling and changing the filename to

/boot/overlay-user/sun50i-a64-pine64-cir.dtbo

 

but this looks like it messes up the official 7 inch lcd overlay (blank screen) that otherwise loads fine. So looks like it needs more changes.

 

Many thanks in advance for any suggestions!

 

BR.

 

  • Author

I found the solution at 

I was expecting this to be called "cir something", but the device is already listed in the device tree as ir@1f02000. 

I did a

sudo fdtput -t s /boot/dtb/allwinner/sun50i-a64-pine64-plus.dtb /soc/ir@1f02000 status okay

and rebooted. Device now shows up as /dev/input/event2

 

Now all I need is to find some codes that can be used with it.

  • Learnincurve changed the title to RESOLVED: a64 (pine64) dt bindings for cir?
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.