Skip to content

Commit

Permalink
Squash with "dt: Implement an I2C pinctrl mux for BSC0."
Browse files Browse the repository at this point in the history
  • Loading branch information
pelwell committed Apr 22, 2020
1 parent fc39dce commit 53ceea0
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 9 deletions.
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/bcm2708-rpi-b-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
brcm,function = <1>; /* output */
};

i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <4>;
};

i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <4>;
Expand Down Expand Up @@ -68,6 +73,10 @@
clock-frequency = <100000>;
};

&i2c0mux {
pinctrl-0 = <&i2c0_pins>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand Down
14 changes: 9 additions & 5 deletions arch/arm/boot/dts/bcm2708-rpi-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
brcm,function = <1>; /* output */
};

i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <4>;
};

i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <4>;
Expand All @@ -38,11 +43,6 @@
};
};

&i2c0mux {
pinctrl-0;
pinctrl-1 = <&i2c0_gpio28>;
};

&uart0 {
status = "okay";
};
Expand Down Expand Up @@ -73,6 +73,10 @@
clock-frequency = <100000>;
};

&i2c0mux {
pinctrl-0 = <&i2c0_pins>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/bcm2708-rpi-cm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
brcm,function = <1>; /* output */
};

i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <4>;
};

i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <4>;
Expand Down Expand Up @@ -67,6 +72,10 @@
clock-frequency = <100000>;
};

&i2c0mux {
pinctrl-0 = <&i2c0_pins>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/bcm2708-rpi-zero-w.dts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
brcm,function = <1>; /* output */
};

i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <4>;
};

i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <4>;
Expand Down Expand Up @@ -116,6 +121,10 @@
clock-frequency = <100000>;
};

&i2c0mux {
pinctrl-0 = <&i2c0_pins>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand Down
9 changes: 6 additions & 3 deletions arch/arm/boot/dts/bcm2708-rpi-zero.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "bcm2708.dtsi"
#include "bcm2708-rpi.dtsi"
#include "bcm283x-rpi-csi1-2lane.dtsi"
#include "bcm283x-rpi-i2c0mux_0_28.dtsi"

/ {
compatible = "raspberrypi,model-zero", "brcm,bcm2835";
Expand Down Expand Up @@ -71,12 +72,14 @@
};
};

&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins>;
&i2c0if {
clock-frequency = <100000>;
};

&i2c0mux {
pinctrl-0 = <&i2c0_pins>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/bcm2709-rpi-2-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
brcm,function = <1>; /* output */
};

i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <4>;
};

i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <4>;
Expand Down Expand Up @@ -68,6 +73,10 @@
clock-frequency = <100000>;
};

&i2c0mux {
pinctrl-0 = <&i2c0_pins>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/bcm270x-rpi.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
i2s = &i2s;
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c9 = &i2c_csi_dsi;
i2c10 = &i2c_csi_dsi;
spi0 = &spi0;
spi1 = &spi1;
spi2 = &spi2;
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/bcm2710-rpi-2-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
brcm,function = <1>; /* output */
};

i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <4>;
};

i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <4>;
Expand Down Expand Up @@ -68,6 +73,10 @@
clock-frequency = <100000>;
};

&i2c0mux {
pinctrl-0 = <&i2c0_pins>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/bcm2710-rpi-3-b-plus.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
brcm,function = <1>; /* output */
};

i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <4>;
};

i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <4>;
Expand Down Expand Up @@ -126,6 +131,10 @@
clock-frequency = <100000>;
};

&i2c0mux {
pinctrl-0 = <&i2c0_pins>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/bcm2710-rpi-3-b.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
brcm,function = <1>; /* output */
};

i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <4>;
};

i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <4>;
Expand Down Expand Up @@ -137,6 +142,10 @@
clock-frequency = <100000>;
};

&i2c0mux {
pinctrl-0 = <&i2c0_pins>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand Down
9 changes: 9 additions & 0 deletions arch/arm/boot/dts/bcm2710-rpi-cm3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
brcm,function = <1>; /* output */
};

i2c0_pins: i2c0 {
brcm,pins = <0 1>;
brcm,function = <4>;
};

i2c1_pins: i2c1 {
brcm,pins = <2 3>;
brcm,function = <4>;
Expand Down Expand Up @@ -87,6 +92,10 @@
clock-frequency = <100000>;
};

&i2c0mux {
pinctrl-0 = <&i2c0_pins>;
};

&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&i2c1_pins>;
Expand Down

0 comments on commit 53ceea0

Please sign in to comment.