]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/boot/dts/overlays/pwm-2chan-overlay.dts
Add support for Allo Piano DAC 2.1 plus add-on board for Raspberry Pi.
[mirror_ubuntu-zesty-kernel.git] / arch / arm / boot / dts / overlays / pwm-2chan-overlay.dts
CommitLineData
0a7ba7e9 1/dts-v1/;
2/plugin/;
3
4/*
5This is the 2-channel overlay - only use it if you need both channels.
6
7Legal pin,function combinations for each channel:
8 PWM0: 12,4(Alt0) 18,2(Alt5) 40,4(Alt0) 52,5(Alt1)
9 PWM1: 13,4(Alt0) 19,2(Alt5) 41,4(Alt0) 45,4(Alt0) 53,5(Alt1)
10
11N.B.:
12 1) Pin 18 is the only one available on all platforms, and
13 it is the one used by the I2S audio interface.
14 Pins 12 and 13 might be better choices on an A+, B+ or Pi2.
15 2) The onboard analogue audio output uses both PWM channels.
16 3) So be careful mixing audio and PWM.
17*/
18
19/ {
20 fragment@0 {
21 target = <&gpio>;
22 __overlay__ {
23 pwm_pins: pwm_pins {
24 brcm,pins = <18 19>;
25 brcm,function = <2 2>; /* Alt5 */
26 };
27 };
28 };
29
30 fragment@1 {
31 target = <&pwm>;
32 frag1: __overlay__ {
33 pinctrl-names = "default";
34 pinctrl-0 = <&pwm_pins>;
35 assigned-clock-rates = <100000000>;
36 status = "okay";
37 };
38 };
39
40 __overrides__ {
41 pin = <&pwm_pins>,"brcm,pins:0";
42 pin2 = <&pwm_pins>,"brcm,pins:4";
43 func = <&pwm_pins>,"brcm,function:0";
44 func2 = <&pwm_pins>,"brcm,function:4";
45 clock = <&frag1>,"assigned-clock-rates:0";
46 };
47};