Skip to content

Commit

Permalink
sunxi: using 10MHz crystal for mcp2515
Browse files Browse the repository at this point in the history
  • Loading branch information
srdgame committed Mar 22, 2024
1 parent a4eab71 commit 0bc969e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package/base-files/files/etc/build_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
24.03.15-ETH1-WAN
24.03.22
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
+ };
+
+ /* Fixed crystal dedicated to mcp251x */
+ can_clk8m: can-clock-8m {
+ can_clk10m: can-clock-10m {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <8000000>;
+ clock-output-names = "can_clk8m";
+ clock-frequency = <10000000>;
+ clock-output-names = "can_clk10m";
+ };
+
+ leds {
Expand Down Expand Up @@ -331,7 +331,7 @@
+ mcp2515: mcp2515@1 {
+ compatible = "microchip,mcp2515";
+ reg = <1>;
+ clocks = <&can_clk8m>;
+ clocks = <&can_clk10m>;
+ interrupt-parent = <&pio>;
+ interrupts = <7 2 IRQ_TYPE_LEVEL_LOW>; /* PH2/EINT2 */
+ vdd-supply = <&reg_vcc_wifi_3v3>; /* VCC-WIFI */
Expand Down

0 comments on commit 0bc969e

Please sign in to comment.