Hi All,
Am I correct in thinking that Rising Edge Interupts on All Winner H3 GPIO lines are not supported in FreeBSD yet, and hence an attempt to get a /dev/pps0 is futile at this point in time please?
I am trying to assign PG11 (pin 91) to be a PPS device and have updated the FDT to include this but get the following output:
The FDT I am using is as follows:
The output of
Yet the pad configuration in /usr/src/sys/arm/allwinner/h3/h3_padconf.c (in head) states it is an interrupt:
I believe the gpiopps() driver is looking for a rising edge interrupt...
Any advice as I have seen people getting this to work on FreeBSD on a Raspberry Pi and also using Armbian on an H3 CPU so I know it is possible which is the fustrating bit; Happy to attempt to code any missing bits...
Thanks for reading, and all feedback welcomed...
Am I correct in thinking that Rising Edge Interupts on All Winner H3 GPIO lines are not supported in FreeBSD yet, and hence an attempt to get a /dev/pps0 is futile at this point in time please?
I am trying to assign PG11 (pin 91) to be a PPS device and have updated the FDT to include this but get the following output:
Code:
gpiopps0: <GPIO PPS> irq 0 on ofwbus0
gpiopps0: PPS input on gpio0 pin 91
gpiopps0: Pin cannot be configured for the requested signal edge
device_attach: gpiopps0 attach returned 45
The FDT I am using is as follows:
Code:
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun8i-h3";
fragment@0 {
target-path = "/";
__overlay__ {
pps@0 {
compatible = "pps-gpio";
gpios = <&gpio PG11 0>;
status = "okay";
};
};
};
};
The output of
gpioctl
is as follows and is not showing the interupt as a capability:
Code:
pin 91: 0 PG11<>, caps:<IN,OUT,PU,PD>
Yet the pad configuration in /usr/src/sys/arm/allwinner/h3/h3_padconf.c (in head) states it is an interrupt:
Code:
{"PG11", 6, 11, {"gpio_in", "gpio_out", "i2s1", NULL, NULL, NULL, "pg_eint11", NULL}, 6, 11, 1},
I believe the gpiopps() driver is looking for a rising edge interrupt...
Any advice as I have seen people getting this to work on FreeBSD on a Raspberry Pi and also using Armbian on an H3 CPU so I know it is possible which is the fustrating bit; Happy to attempt to code any missing bits...
Thanks for reading, and all feedback welcomed...