[PATCH] ARM: dts: bcm2837-rpi-3-b: fix pwm1 pin

Baruch Siach baruch at tkos.co.il
Sun Dec 31 07:12:48 PST 2017


Raspberry Pi 3 uses GPIO45 for I2C SCL0. pwm1 is on GPIO41. Update the
DT description accordingly. Fix the following error that shows when
GPIO44 and GPIO45 are configured to I2C:

[    1.751563] pinctrl-bcm2835 3f200000.gpio: pin gpio45 already requested by 3f205000.i2c; cannot claim for 3f20c000.pwm
[    1.762474] pinctrl-bcm2835 3f200000.gpio: pin-45 (3f20c000.pwm) status -22
[    1.775176] pinctrl-bcm2835 3f200000.gpio: could not request pin 45 (gpio45) from group gpio45  on device pinctrl-bcm2835
[    1.786344] bcm2835-pwm 3f20c000.pwm: Error applying setting, reverse things back
[    1.793980] bcm2835-pwm: probe of 3f20c000.pwm failed with error -22

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 arch/arm/boot/dts/bcm2837-rpi-3-b.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
index a8844d033b3f..b44b3b5af00d 100644
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
@@ -60,3 +60,9 @@
 	status = "okay";
 	bus-width = <4>;
 };
+
+&pwm {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>;
+	status = "okay";
+};
-- 
2.15.1




More information about the linux-rpi-kernel mailing list