From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796501327; b=SHuCU7fc03jWtRF6G/h0sH9Df7ebpVUMRqL843zf1N6yDWahk/bAd/TTQpF6roEeWWX6 pmMSix/ZrHPh9ahc+zjblGDDNW9RyvwBezJF4nMzGo0SZAM4QcZuWBRmxWprQumR/rAlV iIuAj8nMMVBZqTLVv9Lt4srFIQN9dd/lH3lhoEuKT1gbazXX7gyAqBAzSLlh3BP6sj71v GhbE2kgvYkXqXnovyHMz0t8Qt8yYUZyI9ET63oAn0iC6xg9M0zZUlBviq8w6pBwQ6sZ93 ZB9eIam9R7rXtLZDjD8pNh6wBCRBgn9DOOSOtIc6BQpKThCwI3eQsbFcIybcHptutaw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796501327; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=ya4Y7taXcyMlp4xtaxYvlpzJZV2+BeJKHhBzzBDpXrk=; b=Z9x90KFegZPXljs4Ovanp4cyu6jaq87ret9pCA+7dVQzFYXJgvoKcALt+UBHSOKrvuty fPT+KaI3w0FLR53ieFAzDJJhHu2gEXvuSI7CWJ2Y+7JuBu40JXyq9r+1p+0BFwnhuZSEt Z5gomj0hhMkPm2lqrfSJud/JbsvfFdtAizGVT0SxFRiVRd42ejqWzuOggls/ZVCCYTxZz QHEOF+DDDLTEKIYACe6ve1bN1jNmitoDi9vwxe4qteCJTdMY7O34iPZkPOKPjwli+ZpcT 0teqzVNhBqHRnppuUgzhL5qsJfhmT50CQ00TYjAMFu+sFnPL/oI7LK5V4Uu7KODf+Tg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lgnakWiO; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B957606A31F for ; Sat, 5 Dec 2026 20:08:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lgnakWiO Received: by smtp.kernel.org (Postfix) with ESMTPSA id 258B31F00936; Sat, 5 Dec 2026 20:08:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796501327; bh=ya4Y7taXcyMlp4xtaxYvlpzJZV2+BeJKHhBzzBDpXrk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=lgnakWiOl/GuARCMLlkW+wX6zrc5OTWIeViIaSw3DbyaNcCUwDG1ojPKG1mh93iTR bGobCz1RdKcbQXeQPWrZS9mBXjQ1/3WVbNKhKZ/mORfywY/iPFPtRZMcSWx/7hzeI0 sxPVkz4LIY/ViCCdW3Eygm3vLqMTF56pbCmi0BDlb031q8qbadDAwzv8t5Z9RwuhXQ QMbjEVTH8hiGS/YJTIXaRc+KdjPc+Aju2DfQCds7W9k/lSr0aWRdTp7wj1II9nSZtu QsT8nf33oEMfWK4axyyWCrxqFIzLsn4S9OA+EScCQrusUR3h5fT3GhkbHYHfQIVrzw JBYitE9eJPxQw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 2/3] ARM: dts: cortina: Enable Almond+ board peripherals Reply-To: sashiko-reviews@lists.linux.dev To: "Fil Dunsky" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261205-b4-cs7542-peripherals-dts-v4-2-f4e93d42533a@gmail.com> References: <20261205-b4-cs7542-peripherals-dts-v4-0-f4e93d42533a@gmail.com> <20261205-b4-cs7542-peripherals-dts-v4-2-f4e93d42533a@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 20:08:46 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 7 potential issues to consider: - [High] ARM: dts: cortina: uncoordinated shared PCIe PERST# GPIO92 breaks pcie1 - [Medium] ARM: dts: cortina: ethaddr offset -1 breaks Ethernet probe on :00 MACs - [Medium] ARM: dts: cortina: pinctrl hogs omit probe ordering for keys and UARTs - [Medium] ARM: dts: cortina: missing GPIO pinmux state for touchscreen IRQ gpio156 - [Low] ARM: dts: cortina: duplicate pinctrl override block in Almond+ DTS - [Low] ARM: dts: cortina: undocumented compatible pci168c,003c on ath10k node - [Low] ARM: dts: cortina: out-of-order unit addresses in cal nvmem-layout -- commit 9a0f6ed0467de1ffec33e5b7f7a05708aa49f484 Author: Fil Dunsky ARM: dts: cortina: Enable Almond+ board peripherals This commit enables the onboard peripherals for the Securifi Almond+ board, including NAND partitions and NVMEM calibration cells, PCIe endpoints, the QCA8337 switch and Ethernet GMACs, touchscreen, reset button, auxiliary UARTs, and ramoops reserved memory. > diff --git a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts b/a= rch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts > index 2da3645927f61..81c6390f67846 100644 > --- a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts > +++ b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts [ ... ] > @@ -29,14 +47,335 @@ reserved-memory { [ ... ] > +&pinctrl { > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&reset_pins &aux_uarts_pins>; > + > + reset_pins: reset-pins { > + function =3D "gpio"; > + pins =3D "gpio37"; > + }; > + > + aux_uarts_pins: aux-uarts-pins { > + function =3D "uart"; > + pins =3D "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77"; > + }; > +}; [Severity: Medium] Should reset_pins and aux_uarts_pins be referenced from pinctrl-0 on the keys and uart1-uart3 consumer nodes instead of hogged on &pinctrl? Because PINCTRL_CS7542 is tristate, hogging these pins on &pinctrl drops the supplier dependency for gpio-keys and the auxiliary UARTs, so they can probe and operate before pinctrl-cs7542 has muxed their pins. Attaching pinctrl-0 to the consumers, as done for &pcie0, lets the driver core defer them until their pins are configured. > +&i2c { > + clock-frequency =3D <400000>; > + > + status =3D "okay"; > + > + touchscreen@48 { > + compatible =3D "semtech,sx8650"; > + reg =3D <0x48>; > + interrupt-parent =3D <&gpio4>; > + interrupts =3D <28 IRQ_TYPE_LEVEL_LOW>; > + }; > +}; [Severity: Medium] Does touchscreen@48 need a pinctrl-0 state muxing gpio156 (gpio4 line 28) to GPIO mode? gpio-cs75xx does not configure pin muxing and cs7542.dtsi defines no gpio-ranges, so unlike gpio37 and gpio92, this interrupt line relies on the bootloader having pre-muxed it. If firmware leaves gpio156 in its peripheral function, touchscreen interrupts will silently fail to fire. [ ... ] > + nvmem-layout { > + compatible =3D "fixed-layout"; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + > + macaddr_ath9k: macaddr@1002 { > + reg =3D <0x1002 0x6>; > + }; > + > + cal_ath9k: cal@1000 { > + reg =3D <0x1000 0x440>; > + }; > + > + cal_ath10k: cal@5000 { > + reg =3D <0x5000 0x844>; > + }; > + }; [Severity: Low] Minor DT style nit: cal@1000 should be ordered before macaddr@1002 so sibling nodes are sorted by ascending unit address. [ ... ] > +&pcie0 { > + status =3D "okay"; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&pcie0_reset_pins>; > +}; > + > +&pcie0_port { > + /* GPIO92 resets both Wi-Fi endpoints; only this port owns it. */ > + reset-gpios =3D <&gpio2 28 GPIO_ACTIVE_LOW>; > + > + wifi@0,0 { > + compatible =3D "pci168c,003c"; > + reg =3D <0 0 0 0 0>; > + nvmem-cells =3D <&cal_ath10k>; > + nvmem-cell-names =3D "calibration"; > + }; > +}; [Severity: Low] Is "pci168c,003c" documented in the Devicetree bindings? Documentation/devicetree/bindings/net/wireless/qcom,ath10k.yaml currently only lists qcom,ath10k, qcom,ipq4019-wifi, and qcom,wcn3990-wifi, so this node and its nvmem-cells properties will fail dtbs_check unless the PCI compatible is added to the binding. > +&pcie1 { > + status =3D "okay"; > +}; > + > +&pcie1_port { > + wifi@0,0 { > + compatible =3D "pci168c,0033"; > + reg =3D <0 0 0 0 0>; > + nvmem-cells =3D <&macaddr_ath9k>, <&cal_ath9k>; > + nvmem-cell-names =3D "mac-address", "calibration"; > + }; > +}; [Severity: High] Can giving exclusive ownership of the shared PERST# line (GPIO92) to &pcie0_port break &pcie1? Because &pcie1 declares no reset-gpios or dependency on gpio2, pinctrl, or &pcie0, pcie1 can probe first when GPIO_CS75XX or PINCTRL_CS7542 probes later. When pcie0 then probes, cortina_pcie_parse_port() requests GPIO92 with GPIOD_OUT_HIGH, asserting PERST# across pcie0 init. That resets the live AR9580 endpoint and fires INT_LINK_DOWN in cortina_pcie_irq_handler(), permanently latching cp->link_lost and clearing APP_INT_ENABLE until pcie1 is reprobed. If GPIO92 starts asserted instead, pcie1 fails link training before pcie0 releases it. pcie0 probe failure, remove, or out-of-order shutdown also re-asserts GPIO92 via gpiod_set_value_cansleep(cp->port.perst, 1), holding pcie1's endpoint in reset while ath9k is active. Both ports need shared, refcounted reset coordination rather than exclusive ownership on &pcie0_port. [ ... ] > +&gmac0 { > + status =3D "okay"; > + /* The QCA8337 CPU port supplies the internal RX and TX delays. */ > + phy-mode =3D "rgmii-id"; > + nvmem-cells =3D <ðaddr 0>; > + nvmem-cell-names =3D "mac-address"; > + > + fixed-link { > + speed =3D <1000>; > + full-duplex; > + }; > +}; > + > +&gmac1 { > + status =3D "okay"; > + /* The QCA8337 CPU port supplies the internal RX and TX delays. */ > + phy-mode =3D "rgmii-id"; > + nvmem-cells =3D <ðaddr (-1)>; > + nvmem-cell-names =3D "mac-address"; > + > + fixed-link { > + speed =3D <1000>; > + full-duplex; > + }; > +}; [Severity: Medium] Will nvmem-cells =3D <ðaddr (-1)> break Ethernet probe on boards whose factory ethaddr ends in 0x00? u_boot_env_read_post_process_ethaddr() calls 48-bit eth_addr_add(), so subtracting 1 from a :00 MAC borrows from byte 4. gmac0 and gmac1 then differ in their first five bytes, causing cs_ne_cache_addresses() to fail cs_ne_probe() with -EINVAL and leaving wired Ethernet unprobed. Passing (-1) in DT also relies on unsigned 0xffffffff wrapping to signed int in of_nvmem_cell_get(). > +&pinctrl { > + pcie0_reset_pins: pcie0-reset-pins { > + function =3D "gpio"; > + pins =3D "gpio92"; > + }; > +}; [Severity: Low] This isn't a bug, but &pinctrl is already opened earlier in this file; merging pcie0_reset_pins into the first &pinctrl block would keep all board pinmux nodes in one place. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205-b4-cs7542-= peripherals-dts-v4-0-f4e93d42533a@gmail.com?part=3D2