Skip to content

Commit

Permalink
ODROID-N2/C4: arm64/dts: add PPS client device trees
Browse files Browse the repository at this point in the history
Two device tree overlays are added to support GPS PPS client through
GPIO pin header #11 and #12 as 'pps-gpio_p11.dtbo' and
'pps-gpio_p12.dtbo' respectively.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I67c0a1750de0885e27b8545fab8acbd4ef0b7ef9
  • Loading branch information
tobetter committed May 17, 2022
1 parent a827bf7 commit 035eaa6
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/odroidc4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ dtbo-y += \
i2c0.dtbo \
i2c1.dtbo \
pcf8563.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_p11.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_3 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
};
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";
};
};
};
};
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/amlogic/overlays/odroidn2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ dtbo-y += \
hktft35.dtbo \
i2c0.dtbo \
i2c1.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_p11.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_3 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
};
};
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 035eaa6

Please sign in to comment.