Commit 22e50370 authored by Henrik Brix Andersen's avatar Henrik Brix Andersen Committed by Christopher Friedt
Browse files

boards: x86: qemu: add Kvaser PCIcan devicetree node



Add a devicetree node for emulating the Kvaser PCIcan CAN controller card.

Signed-off-by: default avatarHenrik Brix Andersen <henrik@brixandersen.dk>
parent abf82013
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
#define DT_FLASH_SIZE		DT_SIZE_K(4096)

#include <intel/ia32.dtsi>
#include <zephyr/dt-bindings/pcie/pcie.h>

/ {
	model = "QEMU X86 emulator";
@@ -41,6 +42,30 @@
		zephyr,code-partition = &slot0_partition;
		zephyr,flash-controller = &sim_flash;
		zephyr,ieee802154 = &ieee802154;
		zephyr,canbus = &can0;
	};

	pcie0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "intel,pcie";
		ranges;

		can0: can@1800 {
			compatible = "kvaser,pcican";
			status = "okay";
			reg = <PCIE_BDF(0,2,0) PCIE_ID(0x10e8,0x8406)>;
			interrupts = <11 IRQ_TYPE_LOWEST_LEVEL_LOW 3>;
			interrupt-parent = <&intc>;
			sjw = <1>;
			bus-speed = <125000>;
			sample-point = <875>;

			can-transceiver {
				max-bitrate = <1000000>;
			};
		};

	};

	soc {
+1 −0
Original line number Diff line number Diff line
@@ -12,5 +12,6 @@ supported:
  - nvs
  - netif:serial-net
  - eeprom
  - can
testing:
  default: true
+2 −0
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@ toolchain:
  - zephyr
  - xtools
simulation: qemu
supported:
  - can
testing:
  default: true
  ignore_tags: