Skip to content

Commit 7e31890

Browse files
authored
Merge pull request #358 from nascs/cm3-gpio3_c6
Cm3 gpio3 c6
2 parents dda166b + 33c76a2 commit 7e31890

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

arch/arm64/boot/dts/rockchip/overlays/rk3568-spi3-m0-cs0-mcp2515.dts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
title = "Enable MCP2515 on SPI3-M0 CS0";
1212
compatible = "radxa,cm3-io", "radxa,cm3-rpi-cm4-io";
1313
category = "misc";
14-
exclusive = "GPIO4_B0", "GPIO4_B2", "GPIO4_B3", "GPIO4_A6", "GPIO3_C6";
14+
exclusive = "GPIO4_B0", "GPIO4_B2", "GPIO4_B3", "GPIO4_A6", "GPIO4_C5";
1515
description = "Enable MCP2515 on SPI3-M0 CS0 with 12 MHz Crystal Oscillator.
16-
INT=22";
16+
INT=26";
1717
};
1818
};
1919

2020
&pinctrl {
2121
mcp2515_int_pin {
2222
mcp2515_int_pin: mcp2515_int_pin {
23-
rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
23+
rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
2424
};
2525
};
2626
};
@@ -46,8 +46,8 @@ INT=22";
4646
status = "okay";
4747
compatible = "microchip,mcp2515";
4848
reg = <0>;
49-
interrupt-parent = <&gpio3>;
50-
interrupts = <RK_PC6 IRQ_TYPE_EDGE_FALLING>;
49+
interrupt-parent = <&gpio4>;
50+
interrupts = <RK_PC5 IRQ_TYPE_EDGE_FALLING>;
5151
spi-max-frequency = <10000000>;
5252
clocks = <&can_mcp2515_osc>;
5353
vdd-supply = <&vcc3v3_sys>;

arch/arm64/boot/dts/rockchip/overlays/rk3568-spi3-m0-cs0-waveshare35.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/ {
55
metadata {
66
title = "Enable Waveshare 3.5inch RPi LCD (C) on SPI3";
7-
compatible = "radxa,cm3-io", "radxa,cm3-rpi-cm4-io";
7+
compatible = "radxa,cm3-rpi-cm4-io";
88
category = "misc";
99
exclusive = "GPIO4_B0", "GPIO4_B2", "GPIO4_B3", "GPIO4_A6", "GPIO3_C6", "GPIO3_D3", "GPIO0_C7";
1010
description = "Enable Waveshare 3.5inch RPi LCD (C) on SPI3.";

0 commit comments

Comments
 (0)