Skip to content

Commit a8a9c43

Browse files
Ecce_Liscorpiochang
authored andcommitted
Support w1-gpio(base)
Change-Id: I00c3e128356e54e5c1c3f18d95c45705e3e4c0af Reviewed-on: https://tp-biosrd-v02/gerrit/81058 Reviewed-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com> Tested-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com>
1 parent 195c23b commit a8a9c43

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
88
waveshare35a-tinker.dtbo \
99
waveshare32b-tinker.dtbo \
1010
pps-gpio.dtbo \
11+
w1-gpio.dtbo \
1112

1213
targets += dtbs dtbs_install
1314
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+
w1: onewire@0 {
10+
compatible = "w1-gpio";
11+
pinctrl-names = "default";
12+
pinctrl-0 = <&w1_pins>;
13+
gpios = <&gpio5 19 0>;
14+
status = "okay";
15+
};
16+
};
17+
};
18+
19+
fragment@1 {
20+
target = <&gpio5>;
21+
__overlay__ {
22+
w1_pins: w1_pins@0 {
23+
rockchip,pins = <5 19 0 &pcfg_pull_up>;
24+
};
25+
};
26+
};
27+
};
28+

arch/arm/configs/miniarm-rk3288_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,3 +778,5 @@ CONFIG_TEXTSEARCH_BM=y
778778
CONFIG_TEXTSEARCH_FSM=y
779779
CONFIG_PPS_CLIENT_GPIO=y
780780
CONFIG_POSIX_MQUEUE=y
781+
CONFIG_W1=m
782+
CONFIG_W1_GPIO=m

0 commit comments

Comments
 (0)