mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 10:26:42 +07:00
ARM: vf-colibri: add SPI support and enable MCP2515 CAN
MCP2515 CAN controller is available on Colibri Evaluation board. Hence enable MCP2515 CAN. Acked-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
This commit is contained in:
parent
1b545c172e
commit
9fca015177
@ -12,6 +12,12 @@ chosen {
|
||||
bootargs = "console=ttyLP0,115200";
|
||||
};
|
||||
|
||||
clk16m: clk16m {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
clock-frequency = <16000000>;
|
||||
};
|
||||
|
||||
regulators {
|
||||
compatible = "simple-bus";
|
||||
#address-cells = <1>;
|
||||
@ -47,6 +53,21 @@ &bl {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dspi1 {
|
||||
status = "okay";
|
||||
|
||||
mcp2515can: can@0 {
|
||||
compatible = "microchip,mcp2515";
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_can_int>;
|
||||
reg = <0>;
|
||||
clocks = <&clk16m>;
|
||||
spi-max-frequency = <10000000>;
|
||||
interrupt-parent = <&gpio1>;
|
||||
interrupts = <11 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
&esdhc1 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_esdhc1>;
|
||||
@ -94,3 +115,13 @@ &uart2 {
|
||||
&usbh1 {
|
||||
vbus-supply = <&usbh_vbus_reg>;
|
||||
};
|
||||
|
||||
&iomuxc {
|
||||
vf610-colibri {
|
||||
pinctrl_can_int: can_int {
|
||||
fsl,pins = <
|
||||
VF610_PAD_PTB21__GPIO_43 0x22ed
|
||||
>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -23,6 +23,12 @@ &adc1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dspi1 {
|
||||
bus-num = <1>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_dspi1>;
|
||||
};
|
||||
|
||||
&edma0 {
|
||||
status = "okay";
|
||||
};
|
||||
@ -107,6 +113,15 @@ VF610_PAD_PTD26__GPIO_68 0x22ed /* EXT_IO_2 */
|
||||
>;
|
||||
};
|
||||
|
||||
pinctrl_dspi1: dspi1grp {
|
||||
fsl,pins = <
|
||||
VF610_PAD_PTD5__DSPI1_CS0 0x33e2
|
||||
VF610_PAD_PTD6__DSPI1_SIN 0x33e1
|
||||
VF610_PAD_PTD7__DSPI1_SOUT 0x33e2
|
||||
VF610_PAD_PTD8__DSPI1_SCK 0x33e2
|
||||
>;
|
||||
};
|
||||
|
||||
pinctrl_esdhc1: esdhc1grp {
|
||||
fsl,pins = <
|
||||
VF610_PAD_PTA24__ESDHC1_CLK 0x31ef
|
||||
|
Loading…
Reference in New Issue
Block a user