[PATCH RFC 3/3] ARM64: bcm2837-rpi: Fix pwm and i2c pin control

Stefan Wahren stefan.wahren at i2se.com
Thu Feb 16 13:20:47 PST 2017


According to the firmware DT blob [1] the RPi 3 uses different
pins for i2c0 and pwm.

[1] - https://github.com/raspberrypi/firmware/blob/master/extra/dt-blob.dts

Fixes: 9d56c22a7861 ("ARM: bcm2835: Add devicetree for the Raspberry Pi 3.")
Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
---
 arch/arm64/boot/dts/broadcom/bcm2837-rpi.dtsi |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/broadcom/bcm2837-rpi.dtsi b/arch/arm64/boot/dts/broadcom/bcm2837-rpi.dtsi
index 6ddf7df..9f3f3ed 100644
--- a/arch/arm64/boot/dts/broadcom/bcm2837-rpi.dtsi
+++ b/arch/arm64/boot/dts/broadcom/bcm2837-rpi.dtsi
@@ -46,7 +46,7 @@
 
 &i2c0 {
 	pinctrl-names = "default";
-	pinctrl-0 = <&i2c0_gpio0>;
+	pinctrl-0 = <&i2c0_gpio44>;
 	status = "okay";
 	clock-frequency = <100000>;
 };
@@ -71,7 +71,7 @@
 
 &pwm {
 	pinctrl-names = "default";
-	pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio45>;
+	pinctrl-0 = <&pwm0_gpio40 &pwm1_gpio41>;
 	status = "okay";
 };
 
-- 
1.7.9.5




More information about the linux-rpi-kernel mailing list