From a4b64e188d9a59a9d85094b1d7caad8e936e6a0d Mon Sep 17 00:00:00 2001 From: deooi Date: Mon, 13 Apr 2026 11:22:55 +0800 Subject: [PATCH 1/2] dts: Add ni-bluefinlc device tree Device tree for Bluefin LC devices are for Low-cost Ethernet cDAQ-9183 and cDAQ-9187. The changes here is to update the model name, NIDEVCODE and removal of dsa switch port 2 (sw1) since Bluefin LC devices only have a single ethernet port. Otherwise, the rest of the device tree remains the same as Bluefin. Signed-off-by: deooi --- arch/arm/boot/dts/xilinx/ni-bluefinlc.dts | 138 ++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 arch/arm/boot/dts/xilinx/ni-bluefinlc.dts diff --git a/arch/arm/boot/dts/xilinx/ni-bluefinlc.dts b/arch/arm/boot/dts/xilinx/ni-bluefinlc.dts new file mode 100644 index 0000000000000..65a4040f1a396 --- /dev/null +++ b/arch/arm/boot/dts/xilinx/ni-bluefinlc.dts @@ -0,0 +1,138 @@ +// SPDX-License-Identifier: GPL-2.0 +/dts-v1/; +#include +/include/ "ni-zynq.dtsi" + +/* NIDEVCODE 7B37 */ +/* NIDEVCODE 7B38 */ + +/ { + model = "NI Bluefin LC"; + compatible = "ni,zynq", "xlnx,zynq-7000"; + + leds { + compatible = "gpio-leds"; + + /* LED_STATUSy on GPIO46 */ + status { + label = "nilrt:status:yellow"; + gpios = <&gpio0 46 0>; + default-state = "on"; + }; + + /* LED_ACTIVEg on GPIO47 */ + active { + label = "nilrt:active:green"; + gpios = <&gpio0 47 0>; + default-state = "off"; + }; + }; + + gpio_keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + + /* Reset switch is on GPIO48 */ + reset_sw@0 { + label = "reset_sw"; + gpios = <&gpio0 48 1 /* GPIO_ACTIVE_LOW */>; + linux,code = <408>; /* KEY_RESTART */ + wakeup-source; + }; + }; + + gpio_restart { + compatible = "gpio-restart"; + + /* ~PS_FORCE_RESET is on GPIO44 */ + gpios = <&gpio0 44 1 /* GPIO_ACTIVE_LOW */>; + priority = <200>; + }; +}; + +&i2c0 { + /* Override ni-zynq.dtsi; we do not have a CPLD at 0x40. */ + nicpld@40 { + status = "disabled"; + }; + + tmp451@4c { + compatible = "ti,tmp451"; + reg = <0x4c>; + vcc-supply = <®ulator_vccpint>; + }; +}; + +&gem0 { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + fixed-link { + speed = <1000>; + full-duplex; + reg = <0>; + }; + + mdio0: mdio { + status = "okay"; + }; +}; + +&mdio0 { + #address-cells = <1>; + #size-cells = <0>; + + switch: switch@0 { + compatible = "marvell,mv88e6085"; + reg = <0>; + status = "okay"; + interrupt-parent = <&intc>; + interrupts = <45 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <2>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "cpu"; + phy-mode = "rgmii-id"; + ethernet = <&gem0>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + port@1 { + reg = <1>; + label = "sw0"; + phy-handle = <&swphy1>; + }; + }; + + mdio { + swphy1: ethernet-phy@11 { + reg = <0x11>; + }; + }; + }; +}; + +&uart1 { + status = "okay"; +}; + +&usb0 { + status = "okay"; + dr_mode = "host"; +}; + +&watchdog0 { + status = "okay"; + reset-on-timeout; +}; From 53020c4a8cd8ed2857bd9da7f567f44fc5937d5e Mon Sep 17 00:00:00 2001 From: deooi Date: Tue, 14 Apr 2026 13:29:22 +0800 Subject: [PATCH 2/2] workflows: Add python3-ply and python3-git to pr-checks.yml We need this because pr checks are complaining about missing ply and git module. Signed-off-by: deooi --- .github/workflows/pr-checks.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 8df161810f928..0219fcd06e18a 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -21,6 +21,8 @@ jobs: run: | sudo apt update sudo apt install libelf-dev + sudo apt install python3-ply + sudo apt install python3-git - name: "[TEST] Build nati_x86_64_defconfig" run: |