Skip to content

Commit 9818319

Browse files
Ecce_Liscorpiochang
authored andcommitted
Add w1_therm for DS18B20 and set the default w1-gpio's pin to GPIO 17 (GPIO0 C1)
Change-Id: I24f9f61f987df8ec3ae74ac8fc4a7ca3d4ce972a Reviewed-on: https://tp-biosrd-v02/gerrit/81250 Reviewed-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com> Tested-by: Scorpio Chang(張志賢) <Scorpio_Chang@asus.com>
1 parent 56d7358 commit 9818319

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

arch/arm/boot/dts/overlays/w1-gpio-overlay.dts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@
1010
compatible = "w1-gpio";
1111
pinctrl-names = "default";
1212
pinctrl-0 = <&w1_pins>;
13-
gpios = <&gpio5 19 0>;
13+
gpios = <&gpio0 17 0>;
1414
status = "okay";
1515
};
1616
};
1717
};
1818

1919
fragment@1 {
20-
target = <&gpio5>;
20+
target = <&gpio0>;
2121
__overlay__ {
2222
w1_pins: w1_pins@0 {
23-
rockchip,pins = <5 19 0 &pcfg_pull_up>;
23+
rockchip,pins = <0 17 0 &pcfg_pull_up>;
2424
};
2525
};
2626
};
2727
};
28-

arch/arm/configs/miniarm-rk3288_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ CONFIG_PPS_CLIENT_GPIO=y
788788
CONFIG_POSIX_MQUEUE=y
789789
CONFIG_W1=y
790790
CONFIG_W1_MASTER_GPIO=y
791+
CONFIG_W1_SLAVE_THERM=y
791792
CONFIG_RK_CHAR_DRIVERS=y
792793
CONFIG_RK3288_DEVGPIOMEM=y
793794

0 commit comments

Comments
 (0)