This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/systems/lctr-b2xx/patches/linux/patches-3.13-rc7/00-pps.patch
2014-01-07 16:05:10 +00:00

44 lines
1.0 KiB
Diff

diff --git a/arch/arm/boot/dts/am335x-boneblack.dts b/arch/arm/boot/dts/am335x-boneblack.dts
index 6b71ad9..0299c79 100644
--- a/arch/arm/boot/dts/am335x-boneblack.dts
+++ b/arch/arm/boot/dts/am335x-boneblack.dts
@@ -60,6 +60,17 @@
0x1b0 0x03 /* xdma_event_intr0, OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
>;
};
+
+ gps_pps_pins: gps_pps_pins {
+ pinctrl-single,pins = <0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7)>;
+ };
+
+ uart1_pins: pinmux_uart1_pins {
+ pinctrl-single,pins = <
+ 0x180 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
+ 0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
+ >;
+ };
};
&lcdc {
@@ -75,4 +86,19 @@
pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>;
status = "okay";
};
+
+ pps {
+ compatible = "pps-gpio";
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&gps_pps_pins>;
+ gpios = <&gpio2 2 0>;
+ assert-rising-edge;
+ };
};
+
+&uart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart1_pins>;
+ status = "okay";
+};
\ No newline at end of file