I made the follow DT fragment some time ago and can remember what some of it means ![Sad :(]()
what is the number after the GPIO pin in "switch-gpios = <&gpio 12 1>;" and "status-led-gpios = <&gpio 13 0>;"?
what are the possible function values of brcm,function?
what are the possible pull values of brcm,pull?
Thanks
Code:
fragment@3 {target = <&gpio>;__overlay__ {wpc_racecam_pins: wpc_racecam_pins {brcm,pins = <12 13>;brcm,function = <0 1>; /* in on 12 and out on 13*/brcm,pull = <2 0>; /* pull up on 12 and none on 13*/};};}; fragment@4 {target-path = "/";__overlay__ {wpc_racecam: wpc_racecam {compatible = "wpc_racecam";status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&wpc_racecam_pins>; switch-gpios = <&gpio 12 1>;status-led-gpios = <&gpio 13 0>;};};};what are the possible function values of brcm,function?
what are the possible pull values of brcm,pull?
Thanks
Statistics: Posted by wkeeling — Thu Aug 28, 2025 5:30 pm