so you could try applying this patch to the file /opt/bb.org-overlays/src/arm/BB-BELA-00A0.dts
:
diff --git a/src/arm/BB-BELA-00A1.dts b/src/arm/BB-BELA-00A1.dts
index 69ab609..f86e5c9 100644
--- a/src/arm/BB-BELA-00A1.dts
+++ b/src/arm/BB-BELA-00A1.dts
@@ -19,12 +19,9 @@
fragment@0 {
target = <&ocp>;
__overlay__ {
- P2_09_pinmux { status = "disabled"; };
- P2_11_pinmux { status = "disabled"; };
P2_26_pinmux { status = "disabled"; };
P2_30_pinmux { status = "disabled"; };
P2_32_pinmux { status = "disabled"; };
- P2_33_pinmux { status = "disabled"; };
P2_34_pinmux { status = "disabled"; };
P1_05_pinmux { status = "disabled"; };
P1_06_pinmux { status = "disabled"; };
@@ -156,10 +153,9 @@
target = <&i2c1>;
__overlay__ {
pinctrl-names = "default";
- pinctrl-0 = <&i2c1_pins>;
status = "okay";
- clock-frequency = <100000>;
+ clock-frequency = <1000000>;
};
};
@@ -251,6 +247,8 @@
P1_30_pinmux{ pinctrl-0 = <&P1_30_bela>; };
P1_02_pinmux{ pinctrl-0 = <&P1_02_bela>; };
P1_04_pinmux{ pinctrl-0 = <&P1_04_bela>; };
+ P2_09_pinmux{ pinctrl-0 = <&P2_09_i2c_pin>; };
+ P2_11_pinmux{ pinctrl-0 = <&P2_11_i2c_pin>; };
};
};
This does the following:
- avoids disabling P2_33_pinmux (which was a mistake, as mentioned above)
- Instead of disabling the
P2_09_pinmux
and P2_11_pinmux
, it just sets its default values to be i2c
. Then via config-pin
you can still change their behaviour to make them gpio
. The downside of this is that I don't think it would work straight away on a BeagleBone
, but it should work well for your purposes.
- avoids telling the i2c-1 bus to own the pins (as they will already be set by the
P2_xx_pinmux
entries)
- bonus: increases the speed of the i2c-1 bus
After you apply the patch (either manually, by removing the lines marked with a -
and adding those marked with +
, or using patch
or git apply
), then to apply these changes you would do:
- rebuild the dtbo
:
make -C /opt/bb.org-overlays
(if this does not output this line DTC src/arm/BB-BELA-00A1.dtbo
, it may be that the date is not set correctly on the board and so the file does not appear to have changed to the make
building system. In that case, simply delete the output file with rm /opt/bb.org-overlays/ src/arm/BB-BELA-00A1.dtbo
and try again).