pps_gpio_setup--根据dts配置获取GPIO pin、是否assert-falling-edge、echo、echo-active-ms等。 gpiod_to_irq--配置GPIO为中断。 pps_register_source devm_request_irq pps_gpio_irq_handler pps_get_ts--获取当前时间戳。 gpiod_get_value--读取GPIO当前值,判断是上升沿(PPS_CAPTUREASSERT)还是下降沿(PPS_...
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi@@ -336,6 +336,7 @@ compatible = "fsl,qoriq-gpio"; reg = <0x0 0x2300000 0x0 0x10000>; interrupts = <0 36 IRQ_TYPE_LEVEL_HIGH>;+ little-endian; gpio-controller; #gpio-cells = <2>; interrupt-controller;@@ -346,6 +347...
I'm trying to connect a GPS 1PPS signal to a FRWY-LS1046 via a GPIO line. I've done the following: Kernel config: CONFIG_PPS=y CONFIG_PPS_CLIENT_GPIO=m CONFIG_PPS_DEBUG=y fsl-ls1046a.dtsi: pps { compatible = "pps-gpio"; gpios = <&gpio3 11 0>; assert-falling-edge; }; ...
Actions Projects Security Insights Additional navigation options main BranchesTags Code Folders and files Name Last commit message Last commit date Latest commit History 1 Commit Kconfig LICENSE Makefile README.md am335x-boneblack.dts pps-gen-gpio.txt ...
If you use a Beaglebone Black and want to change the PPS output pin, you have to modify your device tree file (am335x-boneblack.dts) accordingly: Make sure you have the right pin multiplexing setting: pps_gen_pins: pinmux_pps_gen_pins { pinctrl-single,pins = < 0x4C (PIN_OUTPUT_PUL...
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi@@ -336,6 +336,7 @@ compatible = "fsl,qoriq-gpio"; reg = <0x0 0x2300000 0x0 0x10000>; interrupts = <0 36 IRQ_TYPE_LEVEL_HIGH>;+ little-endian; gpio-controller; #gpio-cells = <2>; interrupt-controller;@@ -346,6 +347...
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi@@ -336,6 +336,7 @@ compatible = "fsl,qoriq-gpio"; reg = <0x0 0x2300000 0x0 0x10000>; interrupts = <0 36 IRQ_TYPE_LEVEL_HIGH>;+ little-endian; gpio-controller; #gpio-cells = <2>; interrupt-controller;@@ -346,6 +347...
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi@@ -336,6 +336,7 @@ compatible = "fsl,qoriq-gpio"; reg = <0x0 0x2300000 0x0 0x10000>; interrupts = <0 36 IRQ_TYPE_LEVEL_HIGH>;+ little-endian; gpio-controller; #gpio-cells = <2>; interrupt-controller;@@ -346,6 +347...
fsl-ls1046a.dtsi: pps { compatible = "pps-gpio"; gpios = <&gpio3 11 0>; assert-falling-edge; }; The kernel logs show pps1 fails to get setup: [ 941.608348] genirq: Setting trigger mode 1 for irq 83 failed (mpc8xxx_irq_set_type+0x0/0xf8) [ 941.616823] pps_core: unregisteri...