Skip to content

Commit

Permalink
arm64: dts: qcom: qrb5165-rb5: Add support for MCP2518FD
Browse files Browse the repository at this point in the history
Add support for onboard MCP2518FD SPI CAN transceiver attached to SPI0
of RB5.

Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20201127173044.55144-1-manivannan.sadhasivam@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
  • Loading branch information
Mani-Sadhasivam authored and andersson committed Nov 29, 2020
1 parent 0fc0f4b commit 5c44c56
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions arch/arm64/boot/dts/qcom/qrb5165-rb5.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
stdout-path = "serial0:115200n8";
};

/* Fixed crystal oscillator dedicated to MCP2518FD */
clk40M: can_clock {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <40000000>;
};

dc12v: dc12v-regulator {
compatible = "regulator-fixed";
regulator-name = "DC12V";
Expand Down Expand Up @@ -493,6 +500,16 @@
/* CAN */
&spi0 {
status = "okay";

can@0 {
compatible = "microchip,mcp2518fd";
reg = <0>;
clocks = <&clk40M>;
interrupts-extended = <&tlmm 15 IRQ_TYPE_LEVEL_LOW>;
spi-max-frequency = <10000000>;
vdd-supply = <&vdc_5v>;
xceiver-supply = <&vdc_5v>;
};
};

&tlmm {
Expand Down

0 comments on commit 5c44c56

Please sign in to comment.