Skip to content

Commit

Permalink
fix: replace the interrupt pin from gpio3_c6 to gpio4_c5
Browse files Browse the repository at this point in the history
Signed-off-by: Nascs Fang <[email protected]>
  • Loading branch information
nascs committed Aug 9, 2024
1 parent d235c9a commit 33c76a2
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
title = "Enable MCP2515 on SPI3-M0 CS0";
compatible = "radxa,cm3-io", "radxa,cm3-rpi-cm4-io";
category = "misc";
exclusive = "GPIO4_B0", "GPIO4_B2", "GPIO4_B3", "GPIO4_A6", "GPIO3_C6";
exclusive = "GPIO4_B0", "GPIO4_B2", "GPIO4_B3", "GPIO4_A6", "GPIO4_C5";
description = "Enable MCP2515 on SPI3-M0 CS0 with 12 MHz Crystal Oscillator.
INT=22";
INT=26";
};
};

&pinctrl {
mcp2515_int_pin {
mcp2515_int_pin: mcp2515_int_pin {
rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};
Expand All @@ -46,8 +46,8 @@ INT=22";
status = "okay";
compatible = "microchip,mcp2515";
reg = <0>;
interrupt-parent = <&gpio3>;
interrupts = <RK_PC6 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpio4>;
interrupts = <RK_PC5 IRQ_TYPE_EDGE_FALLING>;
spi-max-frequency = <10000000>;
clocks = <&can_mcp2515_osc>;
vdd-supply = <&vcc3v3_sys>;
Expand Down

0 comments on commit 33c76a2

Please sign in to comment.