mantouboji Posted February 8, 2023 Posted February 8, 2023 This is my DTS file for OrangePi Zero2, opened UART5 for attach a GPS module on GPIO. Tried to add 1wire, PPS and SPI , but can't work. maybe help someone. sun50i-h616-orangepi-zero2.dts 0 Quote
mantouboji Posted February 9, 2023 Author Posted February 9, 2023 the new one, add bluetooth, now hciconfig can found hci0, but can't init it. sun50i-h616-orangepi-zero2.dts 0 Quote
Marian Minar Posted April 6, 2023 Posted April 6, 2023 And what overlay_prefix do you have set in /boot/armbianEnv.txt? 0 Quote
Guest Posted November 23, 2023 Posted November 23, 2023 @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"; }; }; }; }; 0 Quote
mantouboji Posted December 4 Author Posted December 4 two DTS, one for PPS-GPIO, and one for W1-GPIO, test successful . Maybe someone can intergrate into kernel source tree sun50i-h616-pps-gpio.dts sun50i-h616-w1-gpio.dts 0 Quote
Recommended Posts
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.