hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/dts-v1/;
/plugin/;
 
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
 
/ {
   metadata {
       title = "Enable 1-Wire on GPIO3_B3";
       compatible = "radxa,rock-5b";
       category = "misc";
       exclusive = "GPIO3_B3";
       description = "Enable 1-Wire on GPIO3_B3.\nOn Radxa ROCK 5B this is pin 40.";
   };
 
   fragment@0 {
       target-path = "/";
 
       __overlay__ {
           w1: onewire@0 {
               compatible = "w1-gpio";
               gpios = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>;
               status = "okay";
           };
       };
   };
};