Commit 5c44c564 authored by Manivannan Sadhasivam's avatar Manivannan Sadhasivam Committed by Bjorn Andersson

arm64: dts: qcom: qrb5165-rb5: Add support for MCP2518FD

Add support for onboard MCP2518FD SPI CAN transceiver attached to SPI0
of RB5.
Tested-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20201127173044.55144-1-manivannan.sadhasivam@linaro.orgSigned-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 0fc0f4b6
......@@ -25,6 +25,13 @@ chosen {
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";
......@@ -493,6 +500,16 @@ &sdhc_2 {
/* 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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment