Lakka-LibreELEC/projects/RPi/devices/Pi02GPi/config/pwm-audio-pi-zero-gpi-overlay.dts
Tomáš Kelemen (vudiq) 42ec40ee45
Add support for Raspberry Pi Zero 2 W with GPICase
Co-authored-by: Cicirifu <54900043+Cicirifu@users.noreply.github.com>
2022-03-03 18:45:14 +01:00

25 lines
640 B
Plaintext

// This file has been taken from:
// https://github.com/tsoliman/Retroflag-GPi-case
//
// Thanks @tsoliman !
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&gpio>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&pwm_audio_pins>;
pwm_audio_pins: pwm_audio_pins {
brcm,pins = <18 19>; /* gpio no ('BCM' number) */
brcm,function = <2 2>; /* 0:in, 1:out, 2: alt5, 3: alt4, 4: alt0, 5: alt1, 6: alt2, 7: alt3 */
brcm,pull = <0 0>; /* 2:up 1:down 0:none */
};
};
};
};