Skip to content

Commit

Permalink
dt: Update all mainline bcm283x overlays for i2c0 pinctrl mux
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Stevenson <[email protected]>
  • Loading branch information
6by9 authored and pelwell committed Apr 14, 2020
1 parent 0fc90f6 commit c188d57
Show file tree
Hide file tree
Showing 14 changed files with 80 additions and 2 deletions.
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,8 @@
pinctrl-0 = <&uart0_gpio14>;
status = "okay";
};

/* i2c on camera/display connector is gpio 28&29 */
&i2c10mux {
pinctrl-1 = <&i2c0_gpio28>;
};
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi-a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,11 @@
pinctrl-0 = <&uart0_gpio14>;
status = "okay";
};

/* i2c0 on camera/display connector is gpio 0&1. Not exposed on header.
* To avoid having to remap everything, map both ports to gpios 0&1
*/
&i2c10mux {
pinctrl-1 = <&i2c0_gpio0>;
};

5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,8 @@
pinctrl-0 = <&uart0_gpio14>;
status = "okay";
};

/* i2c on camera/display connector is gpio 28&29 */
&i2c10mux {
pinctrl-1 = <&i2c0_gpio28>;
};
8 changes: 8 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,11 @@
pinctrl-0 = <&uart0_gpio14>;
status = "okay";
};

/* i2c0 on camera/display connector is gpio 0&1. Not exposed on header.
* To avoid having to remap everything, map both ports to gpios 0&1
*/
&i2c10mux {
pinctrl-1 = <&i2c0_gpio0>;
};

7 changes: 7 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,10 @@
pinctrl-0 = <&uart0_gpio14>;
status = "okay";
};

/* camera/display connector use BSC1 on GPIOS 2&3.
* To avoid having to remap everything, map both ports to gpios 0&1
*/
&i2c10mux {
pinctrl-1 = <&i2c0_gpio0>;
};
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi-cm1-io1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,8 @@
pinctrl-0 = <&uart0_gpio14>;
status = "okay";
};

/* WHAT TO DO HERE? */
&i2c10mux {
pinctrl-1 = <&i2c0_gpio28>;
};
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi-zero-w.dts
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,8 @@
pinctrl-0 = <&uart1_gpio14>;
status = "okay";
};

/* i2c on camera/display connector is gpio 28&29 */
&i2c10mux {
pinctrl-1 = <&i2c0_gpio28>;
};
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2835-rpi-zero.dts
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,8 @@
pinctrl-0 = <&uart0_gpio14>;
status = "okay";
};

/* i2c on camera/display connector is gpio 28&29 */
&i2c10mux {
pinctrl-1 = <&i2c0_gpio28>;
};
9 changes: 7 additions & 2 deletions arch/arm/boot/dts/bcm2835-rpi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,18 @@
};
};

&i2c0 {
&i2c10 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_gpio0>;
status = "okay";
clock-frequency = <100000>;
};

&i2c10mux {
pinctrl-0 = <&i2c0_gpio0>;
/* pinctrl-1 varies based on platform */
status = "okay";
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_gpio2>;
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2836-rpi-2-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,8 @@
pinctrl-0 = <&uart0_gpio14>;
status = "okay";
};

/* i2c on camera/display connector is gpio 28&29 */
&i2c10mux {
pinctrl-1 = <&i2c0_gpio28>;
};
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2837-rpi-3-a-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,8 @@
pinctrl-0 = <&uart1_gpio14>;
status = "okay";
};

/* i2c on camera/display connector is gpio 44&45 */
&i2c10mux {
pinctrl-1 = <&i2c0_gpio44>;
};
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2837-rpi-3-b-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,8 @@
pinctrl-0 = <&uart1_gpio14>;
status = "okay";
};

/* i2c on camera/display connector is gpio 44&45 */
&i2c10mux {
pinctrl-1 = <&i2c0_gpio44>;
};
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2837-rpi-3-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,8 @@
status = "okay";
bus-width = <4>;
};

/* i2c on camera/display connector is gpio 44&45 */
&i2c10mux {
pinctrl-1 = <&i2c0_gpio44>;
};
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/bcm2837-rpi-cm3-io3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,8 @@
pinctrl-0 = <&uart0_gpio14>;
status = "okay";
};

/* WHAT TO DO HERE? */
&i2c10mux {
pinctrl-1 = <&i2c0_gpio28>;
};

0 comments on commit c188d57

Please sign in to comment.