Skip to content

Commit 4fe5331

Browse files
committed
HACK: Test that converts one of the PCA9685 PWM outputs to a GPIO
1 parent 4fcb32c commit 4fe5331

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

arch/arm/boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@
2020
};
2121
};
2222
};
23+
24+
fragment@1 {
25+
target-path = "/";
26+
__overlay__ {
27+
pwm_gpio: pwm_gpio@0 {
28+
compatible = "pwm-gpio";
29+
reg = <0x0>;
30+
gpio-controller;
31+
#gpio-cells = <2>;
32+
33+
pwms = <&pca 15 1000000>; //100ns or 1kHz
34+
35+
status = "okay";
36+
};
37+
};
38+
};
39+
2340
__overrides__ {
2441
addr = <&pca>,"reg:0";
2542
};

0 commit comments

Comments
 (0)