arm64: dts: qcom: qrb5165-rb5: Add support for MCP2518FD
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>
This commit is contained in:
parent
0fc0f4b6ad
commit
5c44c564e4
|
@ -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";
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue