Jump to content

Recommended Posts

Posted

@mantouboji did you ever get this working?

I'm also trying to get GPS with PPS on Orange Pi Zero 2.

orangepi@orangepi:~$ dmesg | grep pps
[    6.546878] sun50i-h616-pinctrl 300b000.pinctrl: pin PC1 already requested by pps@0; cannot claim for 300b000.pinctrl:65
[    6.546910] pps-gpio pps@0: error -EINVAL: failed to request PPS GPIO
[    6.546918] pps-gpio: probe of pps@0 failed with error -22


My overlay:
 

/dts-v1/;
/plugin/;

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

        fragment@0 {
                target = <&pio>;
                __overlay__ {
                        pps_pins: pps_pins {
                                pins = "PC1";
                                function = "gpio_in";
                        };
                };
        };

        fragment@1 {
                target-path = "/";
                __overlay__ {
                        pps@0 {
                                compatible = "pps-gpio";
                                pinctrl-names = "default";
                                pinctrl-0 = <&pps_pins>;
                                gpios = <&pio 2 1 0>; /* PC1 */
                                status = "okay";
                        };
                };
        };
};

 

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...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines