RESOLVED: a64 (pine64) dt bindings for cir?


Recommended Posts

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.

 

Link to post
Share on other sites
Donate and support the project!

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.

Link to post
Share on other sites
  • Learnincurve changed the title to RESOLVED: a64 (pine64) dt bindings for cir?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...