Lakka-LibreELEC/projects/RPi/devices/GPICase/config/pwm-audio-pi-zero-gpi-overlay.dts
Tomáš Kelemen (vudiq) 8a11bbb678 add support for GPICase
Co-authored-by: Albert Malina <albert.malina@gmail.com>
Co-authored-by: Seth Barberee <seth.barberee@gmail.com>
2021-10-07 10:58:42 +02: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 */
};
};
};
};