forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This patch addes two device tree overlay files in order to run PPS via GPIO pins populated in GPIO pin header #11 and #12. By adding the device tree overlay file to 'config.ini', the driver will be enabled and PPS will be registered. In 'config.ini', overlays="pps-gpio_p12" Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I2e13c8de7592bd117bb311f3fe2c1bc50901785e
- Loading branch information
Showing
7 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
arch/arm64/boot/dts/amlogic/overlays/odroidc4/pps-gpio_p11.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
19
arch/arm64/boot/dts/amlogic/overlays/odroidc4/pps-gpio_p12.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
arch/arm64/boot/dts/amlogic/overlays/odroidn2/pps-gpio_p11.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
19
arch/arm64/boot/dts/amlogic/overlays/odroidn2/pps-gpio_p12.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters