summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
diff options
context:
space:
mode:
authorStefan Wahren2018-04-21 13:28:34 +0200
committerEric Anholt2018-04-23 22:00:36 +0200
commitc4bb97821744b02e04be2744c1a726e2a21e7779 (patch)
tree7b0b13cf7af1398b861cb618997d3dad8680ad3a /arch/arm/boot/dts/bcm2837-rpi-3-b.dts
parentLinux 4.17-rc1 (diff)
downloadkernel-qcow2-linux-c4bb97821744b02e04be2744c1a726e2a21e7779.tar.gz
kernel-qcow2-linux-c4bb97821744b02e04be2744c1a726e2a21e7779.tar.xz
kernel-qcow2-linux-c4bb97821744b02e04be2744c1a726e2a21e7779.zip
ARM: dts: bcm283x: Fix PWM pin assignment
All RPi 1 and 2 boards used the PWM (audio out) on pin 40 and 45. So it was easy to define them in bcm2835-rpi.dtsi. Starting with RPi 3 this wont work anymore, because it uses pin 40 and 41. Furthermore the Zero variants doesn't have audio out. This patch fixes this pin conflict by moving the PWM node to the board-level. Change summary: RPi 3 B: PWM1 45 -> 41 Zero, Zero W: PWM disabled all other: no functional change Reported-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'arch/arm/boot/dts/bcm2837-rpi-3-b.dts')
-rw-r--r--arch/arm/boot/dts/bcm2837-rpi-3-b.dts6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
index 0b31d995a066..cc39b6f8d6a5 100644
--- a/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
+++ b/arch/arm/boot/dts/bcm2837-rpi-3-b.dts
@@ -42,6 +42,12 @@
};
};
+&pwm {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>;
+ status = "okay";
+};
+
/* uart0 communicates with the BT module */
&uart0 {
pinctrl-names = "default";