Linux kernel and device drivers for NXP i.MX platforms
 help / color / mirror / Atom feed
From: Josua Mayer <josua@solid-run.com>
To: "sashiko@lists.linux.dev" <sashiko@lists.linux.dev>
Cc: "imx@lists.linux.dev" <imx@lists.linux.dev>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"robh@kernel.org" <robh@kernel.org>,
	"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
	"conor+dt@kernel.org" <conor+dt@kernel.org>,
	"Frank.Li@kernel.org" <Frank.Li@kernel.org>
Subject: Re: [PATCH v5 10/10] arm64: dts: Add support for LX2160 Twins board in single configuration
Date: Tue, 12 May 2026 13:39:54 +0000	[thread overview]
Message-ID: <dd8be911-4fc4-4c47-bec1-694e1a03dcd7@solid-run.com> (raw)
In-Reply-To: <20260511222934.91EA4C2BCB0@smtp.kernel.org>

Am 12.05.26 um 00:29 schrieb sashiko-bot@kernel.org:
> Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:
> - [High] Undocumented and unrelated SoC revision change for the Clearfog CX board.
> - [High] The PCI-E OCP card connector is not enabled in the device tree.
> - [Low] Duplicate `function-enumerator` value in the SFP LED definitions.
> - [Low] The `dpmac` nodes referenced as LED `trigger-sources` lack the mandatory `#trigger-source-cells` property.
> - [Low] The `gpio-mux` configured for PWM fan monitoring has no label and no consumer node.
> --
>
> commit e131b341e534ec21c95289bd4bedcef8bb6fcf54
> Author: Josua Mayer <josua@solid-run.com>
>
> arm64: dts: Add support for LX2160 Twins board in single configuration
>     
> This commit adds support for the SolidRun LX2160A Twins board in its
> single CPU configuration. The board features several connectors including
> SFP, PCIe OCP, USB-3.0, and microSD.
>
>> - PCI-E OCP card connector
> The commit message explicitly lists the PCI-E OCP card connector as a
> supported feature. However, looking at the device tree, are there any PCIe
> host controller nodes enabled?
>
> All PCIe host controller nodes default to disabled in the base SoC device
> trees, and this device tree doesn't seem to override their status to "okay".
>
>> diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-cx.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-cx.dts
>> index 802d7611c6479..6078ce47fabf1 100644
>> --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-cx.dts
>> +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-cx.dts
>> @@ -6,7 +6,7 @@
>>  
>>  /dts-v1/;
>>  
>> -#include "fsl-lx2160a.dtsi"
>> +#include "fsl-lx2160a-rev2.dtsi"
> Does this commit intend to change the SoC revision for the Clearfog CX board?
Unintentional, to be dropped in v6.
>
> This hardware definition change is not documented in the commit message.
>
>> diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-half-twins.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-half-twins.dts
>> new file mode 100644
>> index 0000000000000..434b3f4873008
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-half-twins.dts
> [ ... ]
>
>> +	leds {
>> +		compatible = "gpio-leds";
> [ ... ]
>
>> +		led_ht_c3_bb: led-sfp-2 {
>> +			color = <LED_COLOR_ID_GREEN>;
>> +			default-state = "off";
>> +			function = LED_FUNCTION_LAN;
>> +			function-enumerator = <2>;
>> +			gpios = <&expander3 13 GPIO_ACTIVE_LOW>;
>> +			trigger-sources = <&dpmac15>;
>> +			linux,default-trigger = "netdev";
>> +		};
>> +
>> +		led_ht_c3_at: led-sfp-3 {
>> +			color = <LED_COLOR_ID_GREEN>;
>> +			default-state = "off";
>> +			function = LED_FUNCTION_LAN;
>> +			function-enumerator = <2>;
> Does this node have a duplicate function-enumerator?
Queued for v6.
>
> It shares the same value as the preceding led_ht_c3_bb (led-sfp-2) node.
>
>> +			gpios = <&expander3 11 GPIO_ACTIVE_LOW>;
>> +			trigger-sources = <&dpmac6>;
> Do the referenced dpmac nodes lack the #trigger-source-cells property?
They do, and possibly they need to keep lacking it.
MACs do not (currently) provide LED triggers, only linux netdevs do.

This does not fail dtbs_check as of v6.1-c1.

>
> According to the standard LED trigger-source binding, any provider node must
> define this property. The base dpmac nodes in fsl-lx2160a.dtsi do not appear
> to define it.
>
> [ ... ]
>
>> +	mux-controller {
>> +		compatible = "gpio-mux";
>> +		#mux-control-cells = <0>;
>> +		/*
>> +		 * This gpio controlled mux can route the tacho signals of 6 PWM FAN connectors
>> +		 * to the tacho inputs of both CEX-7 modules (twins).
>> +		 *
>> +		 * The first twin controls this mux and monitors four fan connectors, two intended
>> +		 * for itself, and two for the OCP card.
>> +		 *
>> +		 * The second twin monitors only two fan connectors intended for itself.
>> +		 *
>> +		 * The table below maps selector GPIO states to monitored fan connector per twin:
>> +		 *
>> +		 * | SEL1 | SEL0 | Twin 1 | Twin 2 |
>> +		 * | ---: | ---: | :------| ------ |
>> +		 * |    0 |    0 | J10    |  J5024 |
>> +		 * |    0 |    1 | J5016  |  J5024 |
>> +		 * |    1 |    0 | J5026  |  J5025 |
>> +		 * |    1 |    1 | J5013  |  J5025 |
>> +		 */
>> +		mux-gpios = <&expander0 8 GPIO_ACTIVE_HIGH>, /* SEL0 */
>> +			    <&expander0 15 GPIO_ACTIVE_HIGH>; /* SEL1 */
>> +	};
> Is this mux-controller missing a label and a consumer node?
>
> There are no hwmon, fan, or other consumer nodes defined that reference it.
This mux is impossibly complex to use from hwmon driver.
Hence there is no consumer.

      reply	other threads:[~2026-05-12 13:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-10 15:12 [PATCH v5 00/10] arm64: dts: lx2160a: cleanups, add new board, large pci bars Josua Mayer
2026-05-10 15:12 ` [PATCH v5 01/10] arm64: dts: lx2160a: extend 32-bit, and add 64-bit pci regions Josua Mayer
2026-05-11 21:20   ` sashiko-bot
2026-05-12 14:21     ` Josua Mayer
2026-05-10 15:12 ` [PATCH v5 02/10] arm64: dts: lx2162a-clearfog: use rev2 SoC dtsi Josua Mayer
2026-05-10 15:12 ` [PATCH v5 03/10] arm64: dts: lx2162a-clearfog: cleanup superfluous status properties Josua Mayer
2026-05-10 15:12 ` [PATCH v5 04/10] arm64: dts: lx2162a-clearfog: specify sfp ports led colour and function Josua Mayer
2026-05-10 15:12 ` [PATCH v5 05/10] dt-bindings: arm: fsl: Add solidrun lx2160a twins board Josua Mayer
2026-05-10 15:12 ` [PATCH v5 06/10] arm64: dts: lx2160a-clearfog-itx: remove redundant dts version tag Josua Mayer
2026-05-10 15:12 ` [PATCH v5 07/10] arm64: dts: lx2160a-clearfog-itx: move shared includes to dts Josua Mayer
2026-05-10 15:12 ` [PATCH v5 08/10] arm64: dts: lx2160a: add labels to thermal trip-point nodes Josua Mayer
2026-05-10 15:12 ` [PATCH v5 09/10] arm64: dts: lx2160a-cex7: add labels to i2c buses behind mux Josua Mayer
2026-05-10 15:12 ` [PATCH v5 10/10] arm64: dts: Add support for LX2160 Twins board in single configuration Josua Mayer
2026-05-10 15:23   ` Josua Mayer
2026-05-11 22:29   ` sashiko-bot
2026-05-12 13:39     ` Josua Mayer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dd8be911-4fc4-4c47-bec1-694e1a03dcd7@solid-run.com \
    --to=josua@solid-run.com \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=imx@lists.linux.dev \
    --cc=krzk+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=sashiko@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox