Skip to content

Commit 2577a6e

Browse files
ennice_yangYuehtsang Li(李岳蒼)
authored andcommitted
Suppot pps-gpio overlay
Change-Id: I90a51ba3dbefed5d955716b9340f2b9470a19147 Reviewed-on: https://tp-biosrd-v02/gerrit/80802 Reviewed-by: Yuehtsang Li(李岳蒼) <[email protected]> Tested-by: Yuehtsang Li(李岳蒼) <[email protected]>
1 parent bf4d668 commit 2577a6e

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
77
iqaudio-dacplus.dtbo \
88
waveshare35a-tinker.dtbo \
99
waveshare32b-tinker.dtbo \
10+
pps-gpio.dtbo \
1011

1112
targets += dtbs dtbs_install
1213
targets += $(dtbo-y)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
compatible = "rockchip,rk3288-miniarm", "rockchip,rk3288";
6+
fragment@0 {
7+
target-path = "/";
8+
__overlay__ {
9+
pps: pps {
10+
compatible = "pps-gpio";
11+
pinctrl-names = "default";
12+
pinctrl-0 = <&pps_pins>;
13+
gpios = <&gpio5 19 0>;
14+
status = "okay";
15+
};
16+
};
17+
};
18+
19+
fragment@1 {
20+
target = <&gpio5>;
21+
__overlay__ {
22+
pps_pins: pps_pins {
23+
rockchip,pins = <5 19 0 &pcfg_pull_none>;
24+
};
25+
};
26+
};
27+
};
28+

arch/arm/configs/miniarm-rk3288_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,3 +776,4 @@ CONFIG_TEXTSEARCH=y
776776
CONFIG_TEXTSEARCH_KMP=y
777777
CONFIG_TEXTSEARCH_BM=y
778778
CONFIG_TEXTSEARCH_FSM=y
779+
CONFIG_PPS_CLIENT_GPIO=y

0 commit comments

Comments
 (0)