Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Documentation/devicetree/bindings/net/can/microchip,mcp251xfd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ properties:
Must be half or less of "clocks" frequency.
maximum: 20000000

gpio-controller: true

"#gpio-cells":
const: 2

patternProperties:
"^.+-hog(-[0-9]+)?$":
type: object
required:
- gpio-hog

required:
- compatible
- reg
Expand Down
30 changes: 30 additions & 0 deletions arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@
stdout-path = "serial0:115200n8";
};

clocks {
mcp2518fd_osc: can-clk {
compatible = "fixed-clock";
clock-frequency = <40000000>;
#clock-cells = <0>;
};
};

dp-connector {
compatible = "dp-connector";
label = "DP";
Expand Down Expand Up @@ -1230,6 +1238,28 @@
};
};

&spi3 {
status = "okay";

can@0 {
compatible = "microchip,mcp2518fd";
reg = <0>;
interrupts-extended = <&tlmm 7 IRQ_TYPE_LEVEL_LOW>;
clocks = <&mcp2518fd_osc>;
spi-max-frequency = <10000000>;
vdd-supply = <&vreg_l11c_2p8>;
gpio-controller;
#gpio-cells = <2>;

gpio0-hog {
gpio-hog;
gpios = <0 GPIO_ACTIVE_LOW>;
output-high;
line-name = "mcp251xfd-gpio0";
};
};
};

&swr2 {
status = "okay";

Expand Down
1 change: 0 additions & 1 deletion arch/arm64/configs/prune.config
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
# CONFIG_DP83TD510_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_CAN_FLEXCAN is not set
# CONFIG_CAN_MCP251XFD is not set
# CONFIG_BRCMFMAC is not set
# CONFIG_MWIFIEX is not set
# CONFIG_MWIFIEX_SDIO is not set
Expand Down
1 change: 1 addition & 0 deletions drivers/net/can/spi/mcp251xfd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ config CAN_MCP251XFD
select CAN_RX_OFFLOAD
select REGMAP
select WANT_DEV_COREDUMP
select GPIOLIB
help
Driver for the Microchip MCP251XFD SPI FD-CAN controller
family.
Expand Down
Loading