Hello,
I am having issues with pps-gpio driver. I want to have pps signal from GPS connected to the GPIO4_14 (sodimm 133) and use chrony as NTP server for my system. I have created the following patch that should add pps-gpio to the device tree.
diff --git a/arch/arm/boot/dts/imx6ull-colibri-wifi-iris.dts b/arch/arm/boot/dts/imx6ull-colibri-wifi-iris.dts
index 966d02a07b1c..8cee66209932 100644
--- a/arch/arm/boot/dts/imx6ull-colibri-wifi-iris.dts
+++ b/arch/arm/boot/dts/imx6ull-colibri-wifi-iris.dts
@@ -13,4 +13,45 @@
compatible = "toradex,colibri-imx6ull-wifi-iris",
"toradex,colibri-imx6ull",
"fsl,imx6ull";
+
+ // add PPS node
+ pps {
+ compatible = "pps-gpio";
+ pinctrl-0 = <&pinctrl_pps>;
+ gpios = <&gpio4 14 GPIO_ACTIVE_HIGH>;
+ assert-falling-edge;
+ pinctrl-names = "default";
+ status = "okay";
+ };
+
+ pinctrl_pps: pinctrl_pps-grp {
+ fsl,pins = <
+ MX6UL_PAD_NAND_CE1_B__GPIO4_IO14 0x1b0b1 /* SODIMM 133 */
+ >;
+ };
+};
+
+&usbotg1 {
+ dr_mode = "host";
+ status = "okay";
+ /delete-property/srp-disable;
+ /delete-property/hnp-disable;
+ /delete-property/adp-disable;
+ /delete-property/extcon;
+};
+
+&usbotg2 {
+ status = "okay";
+};
+
+&pinctrl_gpio1{
+ fsl,pins = <
+ MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x10b0 /* SODIMM 77 */
+ MX6UL_PAD_JTAG_TCK__GPIO1_IO14 0x70a0 /* SODIMM 99 */
+ MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x10b0 /* SODIMM 135 */
+ MX6UL_PAD_UART3_CTS_B__GPIO1_IO26 0x10b0 /* SODIMM 100 */
+ MX6UL_PAD_JTAG_TRST_B__GPIO1_IO15 0x70a0 /* SODIMM 102 */
+ MX6UL_PAD_ENET1_RX_ER__GPIO2_IO07 0x10b0 /* SODIMM 104 */
+ MX6UL_PAD_UART3_RTS_B__GPIO1_IO27 0x10b0 /* SODIMM 186 */
+ >;
};
The device is created, but it looks like the pin is not asserted to the device because I still can access the pin using the gpiod tool (i expect that the pin will not be accessible).
I did not make any other changes to the kernel and the default defconfig have the PPS and PPS_CLIENT_GPIO enabled.
Did I miss anything in DTS configuration or it is the problem somewhere else?
I have attached dmesg log, chronyc log, and gpiomon output if it helps.
I will be gratefull for any suggestion.
Best wishes,
Tomas.link text