Skip to content

Commit

Permalink
squash! ODROID-N2/C4: arm64/dts: add PPS client device tree (GPIOX_3)
Browse files Browse the repository at this point in the history
ODROID-N2/C4: arm64/dts: add PPS client device trees

Two device tree overlays are added to support GPS PPS client through
GPIO pin header hardkernel#11 and hardkernel#12 as 'pps-gpio_p11.dtbo' and
'pps-gpio_p12.dtbo' respectively.

Change-Id: I063217af96f4afe787980027a0e78719e7f3c856
  • Loading branch information
tobetter authored and paralin committed Mar 29, 2022
1 parent a84b5e5 commit fa1b63b
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 2 deletions.
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ dtbo-y += \
i2c0.dtbo \
i2c1.dtbo \
pcf8563.dtbo \
pps-gpiox3.dtbo \
pps-gpio_p11.dtbo \
pps-gpio_p12.dtbo \
spi0.dtbo \
sx865x-i2c1.dtbo \
uart0.dtbo \
Expand Down
19 changes: 19 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/odroidc4/pps-gpio_p12.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/meson-g12a-gpio.h>
#include <dt-bindings/gpio/gpio.h>

/ {
fragment@0 {
target-path = "/";

__overlay__ {
pps: pps {
compatible = "pps-gpio";
gpios = <&gpio GPIOX_16 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
};
3 changes: 2 additions & 1 deletion arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ dtbo-y += \
hktft35.dtbo \
i2c0.dtbo \
i2c1.dtbo \
pps-gpiox3.dtbo \
pps-gpio_p11.dtbo \
pps-gpio_p12.dtbo \
pwm_cd.dtbo \
pwm_ef.dtbo \
pwmfan-lowtemp.dtbo \
Expand Down
19 changes: 19 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/odroidn2/pps-gpio_p12.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/meson-g12a-gpio.h>
#include <dt-bindings/gpio/gpio.h>

/ {
fragment@0 {
target-path = "/";

__overlay__ {
pps: pps {
compatible = "pps-gpio";
gpios = <&gpio GPIOX_16 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
};

0 comments on commit fa1b63b

Please sign in to comment.