Jump to content

Recommended Posts

Posted

I made this simple dts file for my GPS NTP server running on Zero2/3 and Zero2w 

 

On Zero2, use PC9 as PPS in , and on Zero2W use PI5 .

 

It should be configured in /boot/armbianEnv.txt, but I unsuccess on zero2w, so you must comment out two lines and compile it by yourself.

 

Maybe help someone.

sun50i-h616-pps-gpio.dtso

Posted

do you have a github link or other location where the file still exists? i'm trying to get PPS working on zero 3 and this sounds like exactly what i need..

 

thanks!

Posted
/*
 * PPS-GPIO for H616
 */

/dts-v1/;
/plugin/;

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

	fragment@0 {
		target = <&pio>;
		__overlay__ {
        		pps_pins: pps_pins {
                  		pins = "PC9";  // Zero2 & 3
                  		// pins = "PI5";     // Zero2w
                  		function = "pps";
        		};
		};
	};

	fragment@1 {
		target-path = "/";
		__overlay__ {
			pps@0 {
                		compatible = "pps-gpio";
                		pinctrl-names = "default";
				pinctrl-0 = <&pps_pins>;
                		gpios = <&pio 2 9 0>;  /* PC9 */ // Zero2 & 3
                		//gpios = <&pio 8 5 0>;  /* PI5 */  // Zero2w
                		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