Skip to content

Commit

Permalink
reComputer:Modify the frequency of i2c1(ECC608)
Browse files Browse the repository at this point in the history
  • Loading branch information
is-qian committed Mar 21, 2024
1 parent 2376618 commit a784623
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions overlays/rpi/reComputer-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@
target = <&i2c1>;
__overlay__ {
status = "okay";
clock-frequency = <400000>;
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;

};
};

Expand Down Expand Up @@ -251,5 +250,7 @@
};

__overrides__ {
uart2 = <0>,"=5!1";
i2c0 = <0>,"!5=1";
};
};
2 changes: 2 additions & 0 deletions scripts/reTerminal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ function install_overlay_reComputer {
cp -fv overlays/rpi/reComputer-overlay.dtbo $OVERLAY_DIR/reComputer.dtbo || exit 1;

set_config_dtoverlay "reComputer"
set_config_dtoverlay "reComputer,uart2"
}

function uninstall_overlay_reComputer {
Expand All @@ -282,6 +283,7 @@ function uninstall_overlay_reComputer {

rm -fv $OVERLAY_DIR/reComputer.dtbo || exit 1;
remove_config_dtoverlay "reComputer"
remove_config_dtoverlay "reComputer,uart2"

rm -fv overlays/rpi/.*.tmp
rm -fv overlays/rpi/.*.cmd
Expand Down

0 comments on commit a784623

Please sign in to comment.