* [PATCH v4 0/3] ARM: dts: cortina: Enable CS7542 Almond+ peripherals
@ 2026-12-05 19:51 ` Fil Dunsky via B4 Relay
0 siblings, 0 replies; 11+ messages in thread
From: Fil Dunsky @ 2026-12-05 19:51 UTC (permalink / raw)
To: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Kees Cook, Tony Luck, Guilherme G. Piccoli
Cc: linux-arm-kernel, devicetree, linux-kernel, Fil Dunsky
Describe the CS7542 controllers in cs7542.dtsi and the Almond+ wiring in
cs7542-securifi-almondplus.dts. Enable the peripheral drivers in
multi_v7_defconfig. Platform v9 supplies the minimal bootable SoC and board
descriptions; this series completes them using the subsystem bindings.
Use the global syscon for clocks and seven independent network-engine
resets. Describe all three PCIe Root Ports, with one owner for GPIO92
shared by the Wi-Fi endpoints. Put endpoint addresses and factory NVMEM
cells on the actual PCI children. Both QCA8337 CPU links use rgmii-id,
matching the tested board wiring. The MDIO input is the APB clock, as
confirmed by a differentiating clock-domain measurement on Almond+.
The NAND node describes the AXI clock, interrupt, data aperture and
separate flash reset from the vendor resources and posted NAND v5 binding.
The NAND driver has passed the recorded Almond+ checks; that is driver
evidence, not execution of this publication commit. The board properties
follow the tested OpenWrt integration.
Validation: the final sources pass unsuppressed preprocessing/dtc and
complete board schema validation. Reset/clock specifiers, PCIe addresses,
shared PERST ownership and NVMEM cells were checked explicitly. The final
dependency stack is checked with b4 against the base commit below.
Earlier combined revisions passed full native ARM builds and RAM tests;
no new hardware result is claimed for these DT-only changes.
Clock/reset/pinctrl v6, MDIO v4, Ethernet v4, NAND v5 and PCIe v4 are now
posted. Prerequisites select their published code and binding patches;
independent MAINTAINERS-only additions are not needed by this DTS stack.
The bindings and drivers can proceed through their subsystem trees, with
this board series following once those dependencies are available.
No offload-specific overrides or personal LCD package are included.
Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
---
Changes in v4:
- Refresh the PCIe host dependency to the published v4 driver.
- Drop the deprecated NAND ECC mode property. The existing on-host
Hamming-256 format comes from the NAND core and Cortina driver.
- Link to v3: https://lore.kernel.org/r/20261130-b4-cs7542-peripherals-dts-v3-0-f9da13176728@gmail.com
Changes in v3:
- Use the published v6 global-control bindings and reset provider.
The symbolic DTS reset references are unchanged.
- Clock/reset/pinctrl v6: https://lore.kernel.org/all/20261129-cs7542-syscon-v6-0-553dc4c01460@gmail.com/
- Link to v2: https://patch.msgid.link/20261128-b4-cs7542-peripherals-dts-v2-0-ccab93aac77f@gmail.com
Changes in v2:
- Remove the board APB-rate override in the same patch that replaces the
fixed APB provider, keeping the DTB buildable after every commit
(sashiko-bot).
- Clarify that the existing watchdog node changes its clock provider; it
is not newly introduced (sashiko-bot).
- Validate the Almond+ DTB after each of the three patches; final tree
contents are unchanged from v1.
- Link to v1: https://patch.msgid.link/20261127-b4-cs7542-peripherals-dts-v1-0-7ce24b842b3a@gmail.com
To: Fil Dunsky <filipp.dunsky@gmail.com>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Kees Cook <kees@kernel.org>
To: Tony Luck <tony.luck@intel.com>
To: "Guilherme G. Piccoli" <gpiccoli@igalia.com>
To: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
---
Fil Dunsky (3):
ARM: dts: cortina: Describe CS7542 peripheral controllers
ARM: dts: cortina: Enable Almond+ board peripherals
ARM: multi_v7_defconfig: Enable CS7542 board peripherals
.../dts/cortina/cs7542-securifi-almondplus.dts | 341 ++++++++++++++++++++-
arch/arm/boot/dts/cortina/cs7542.dtsi | 321 ++++++++++++++++++-
arch/arm/configs/multi_v7_defconfig | 16 +
3 files changed, 665 insertions(+), 13 deletions(-)
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261123-b4-cs7542-peripherals-dts-dfa20a5c748f
prerequisite-message-id: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com>
prerequisite-patch-id: 104c6fb668f30ac8c2c5b3b6c524c18caa8808c4
prerequisite-patch-id: e7d503348cbec7558cd084162133f8e34df1c1bc
prerequisite-patch-id: 1d5770db02b983d012f6c58806fbf3f5291a06c9
prerequisite-patch-id: 8515988ae3509d4289a8d845803353f5ed412982
prerequisite-patch-id: 6c0137d52f201d8ec085ee6cc7b2d49af15583d8
prerequisite-patch-id: f591d13e0d394441e3cd28149633c1133bfb79ee
prerequisite-patch-id: b3dad3ee0f7e08ea9e942fd83f3d2a06ff8fb164
prerequisite-patch-id: 4fdf33aaedc9ca7f4d7a59b48e4ae55c497462e4
prerequisite-patch-id: 9b4a468b7b74861017ef533ba0a5574bc14b212e
prerequisite-patch-id: 1f232c94dd3fc0d862203b7c0c1449e6ba9a6859
prerequisite-message-id: <20261120-cs75xx-intc-v5-0-f2be75c5e97c@gmail.com>
prerequisite-patch-id: d1aa6857057b1e76a68ba14d4ea17352ffa90c7e
prerequisite-patch-id: 1fd32c18f2d4a7700528bf45da72b30b62744171
prerequisite-message-id: <20261119-cs75xx-gpio-v6-0-37aeda0aaedd@gmail.com>
prerequisite-patch-id: 7189d6a033e0e18b87b72f3f9b49a1c71a97a2b8
prerequisite-patch-id: a70999df9edd8fbb4ea81ca7e782aa89f52b4a06
prerequisite-message-id: <20261124-cs75xx-i2c-v8-0-d0800b967886@gmail.com>
prerequisite-patch-id: 1ccad6a46a6b3391a0244edbdbc4949b6614e271
prerequisite-patch-id: ac9ec16b2e96d5580a256823ab1330098380ae32
prerequisite-message-id: <20261121-arm-twd-wdt-v9-1-8118d048cfde@gmail.com>
prerequisite-patch-id: e8d416021a43d45b01ac95877bb1c42a46d30153
prerequisite-message-id: <20261124-arm-twd-clock-notifier-v1-1-62933570ae27@gmail.com>
prerequisite-patch-id: 66eb0299dcb45847726974805c675a856fea149d
prerequisite-patch-id: 27fe25055bcadb3c3fbc8b6788f31c2fb791df38
prerequisite-patch-id: ae69b5cca6f4604972300a89411bdca0ea19ab57
prerequisite-patch-id: 55dc4f1e91fc85340c4422438225f50fdf636799
prerequisite-patch-id: 66fccae72a8f951ac0ee182490e98543af29bd89
prerequisite-patch-id: 7fbe9405265ef3d1ec62811415a46c0061afd7c8
prerequisite-patch-id: 07e805007e8d5e0c1d06e50a9ffe799f9d61bb35
prerequisite-patch-id: 5301369d9b5f76a650c5e6c01b63bf10634e9ffe
prerequisite-patch-id: 5e86fea092879a6940e7f098db6cd346ac515837
prerequisite-patch-id: 49ea479e68bcdf4bb792e712130b22cb9cc2d378
prerequisite-patch-id: ebd89772638cdde67204f9859648c532072f8f64
prerequisite-patch-id: 3602aa81630ee3e18d9302c23cba59d483ea9d81
prerequisite-patch-id: 1713798d81d3140dea98cb980a4bac9aa22a3780
prerequisite-patch-id: ead1ebcb89468d700d8875693f405460d6d5a2c8
prerequisite-message-id: <20261124-b4-qca8k-two-byte-header-init-v1-1-c644025b69fa@gmail.com>
prerequisite-patch-id: 48d4c38319b803b22db91864e3321abdb6ab32b0
prerequisite-patch-id: 9d8ec97932a1c3a4c41dad64e27364d395e8821c
prerequisite-patch-id: 1b20a366220308b1864130aaef2a53816101f442
prerequisite-patch-id: 0a571205b2bb84488ae379a21ab734caa9cd15a6
prerequisite-patch-id: b08306581bf5dcd6d5543b00ee75105dc67c2355
prerequisite-patch-id: 6cfb1cf607dff2578799414c3b5c289970aeb7aa
prerequisite-patch-id: 6a6f50f93cfd1e3df21d74b525ecf4882e5c057b
prerequisite-patch-id: 8dd7f2d65905ec5c2dc0bc66b56301048436a6d1
Best regards,
--
Fil Dunsky <filipp.dunsky@gmail.com>
^ permalink raw reply [flat|nested] 11+ messages in thread* [PATCH v4 0/3] ARM: dts: cortina: Enable CS7542 Almond+ peripherals @ 2026-12-05 19:51 ` Fil Dunsky via B4 Relay 0 siblings, 0 replies; 11+ messages in thread From: Fil Dunsky via B4 Relay @ 2026-12-05 19:51 UTC (permalink / raw) To: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Kees Cook, Tony Luck, Guilherme G. Piccoli Cc: linux-arm-kernel, devicetree, linux-kernel, Fil Dunsky Describe the CS7542 controllers in cs7542.dtsi and the Almond+ wiring in cs7542-securifi-almondplus.dts. Enable the peripheral drivers in multi_v7_defconfig. Platform v9 supplies the minimal bootable SoC and board descriptions; this series completes them using the subsystem bindings. Use the global syscon for clocks and seven independent network-engine resets. Describe all three PCIe Root Ports, with one owner for GPIO92 shared by the Wi-Fi endpoints. Put endpoint addresses and factory NVMEM cells on the actual PCI children. Both QCA8337 CPU links use rgmii-id, matching the tested board wiring. The MDIO input is the APB clock, as confirmed by a differentiating clock-domain measurement on Almond+. The NAND node describes the AXI clock, interrupt, data aperture and separate flash reset from the vendor resources and posted NAND v5 binding. The NAND driver has passed the recorded Almond+ checks; that is driver evidence, not execution of this publication commit. The board properties follow the tested OpenWrt integration. Validation: the final sources pass unsuppressed preprocessing/dtc and complete board schema validation. Reset/clock specifiers, PCIe addresses, shared PERST ownership and NVMEM cells were checked explicitly. The final dependency stack is checked with b4 against the base commit below. Earlier combined revisions passed full native ARM builds and RAM tests; no new hardware result is claimed for these DT-only changes. Clock/reset/pinctrl v6, MDIO v4, Ethernet v4, NAND v5 and PCIe v4 are now posted. Prerequisites select their published code and binding patches; independent MAINTAINERS-only additions are not needed by this DTS stack. The bindings and drivers can proceed through their subsystem trees, with this board series following once those dependencies are available. No offload-specific overrides or personal LCD package are included. Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> --- Changes in v4: - Refresh the PCIe host dependency to the published v4 driver. - Drop the deprecated NAND ECC mode property. The existing on-host Hamming-256 format comes from the NAND core and Cortina driver. - Link to v3: https://lore.kernel.org/r/20261130-b4-cs7542-peripherals-dts-v3-0-f9da13176728@gmail.com Changes in v3: - Use the published v6 global-control bindings and reset provider. The symbolic DTS reset references are unchanged. - Clock/reset/pinctrl v6: https://lore.kernel.org/all/20261129-cs7542-syscon-v6-0-553dc4c01460@gmail.com/ - Link to v2: https://patch.msgid.link/20261128-b4-cs7542-peripherals-dts-v2-0-ccab93aac77f@gmail.com Changes in v2: - Remove the board APB-rate override in the same patch that replaces the fixed APB provider, keeping the DTB buildable after every commit (sashiko-bot). - Clarify that the existing watchdog node changes its clock provider; it is not newly introduced (sashiko-bot). - Validate the Almond+ DTB after each of the three patches; final tree contents are unchanged from v1. - Link to v1: https://patch.msgid.link/20261127-b4-cs7542-peripherals-dts-v1-0-7ce24b842b3a@gmail.com To: Fil Dunsky <filipp.dunsky@gmail.com> To: Rob Herring <robh@kernel.org> To: Krzysztof Kozlowski <krzk+dt@kernel.org> To: Conor Dooley <conor+dt@kernel.org> To: Kees Cook <kees@kernel.org> To: Tony Luck <tony.luck@intel.com> To: "Guilherme G. Piccoli" <gpiccoli@igalia.com> To: Russell King <linux@armlinux.org.uk> Cc: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- Fil Dunsky (3): ARM: dts: cortina: Describe CS7542 peripheral controllers ARM: dts: cortina: Enable Almond+ board peripherals ARM: multi_v7_defconfig: Enable CS7542 board peripherals .../dts/cortina/cs7542-securifi-almondplus.dts | 341 ++++++++++++++++++++- arch/arm/boot/dts/cortina/cs7542.dtsi | 321 ++++++++++++++++++- arch/arm/configs/multi_v7_defconfig | 16 + 3 files changed, 665 insertions(+), 13 deletions(-) --- base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f change-id: 20261123-b4-cs7542-peripherals-dts-dfa20a5c748f prerequisite-message-id: <20261122-b4-cs75xx-v9-0-1fc1b90bd097@gmail.com> prerequisite-patch-id: 104c6fb668f30ac8c2c5b3b6c524c18caa8808c4 prerequisite-patch-id: e7d503348cbec7558cd084162133f8e34df1c1bc prerequisite-patch-id: 1d5770db02b983d012f6c58806fbf3f5291a06c9 prerequisite-patch-id: 8515988ae3509d4289a8d845803353f5ed412982 prerequisite-patch-id: 6c0137d52f201d8ec085ee6cc7b2d49af15583d8 prerequisite-patch-id: f591d13e0d394441e3cd28149633c1133bfb79ee prerequisite-patch-id: b3dad3ee0f7e08ea9e942fd83f3d2a06ff8fb164 prerequisite-patch-id: 4fdf33aaedc9ca7f4d7a59b48e4ae55c497462e4 prerequisite-patch-id: 9b4a468b7b74861017ef533ba0a5574bc14b212e prerequisite-patch-id: 1f232c94dd3fc0d862203b7c0c1449e6ba9a6859 prerequisite-message-id: <20261120-cs75xx-intc-v5-0-f2be75c5e97c@gmail.com> prerequisite-patch-id: d1aa6857057b1e76a68ba14d4ea17352ffa90c7e prerequisite-patch-id: 1fd32c18f2d4a7700528bf45da72b30b62744171 prerequisite-message-id: <20261119-cs75xx-gpio-v6-0-37aeda0aaedd@gmail.com> prerequisite-patch-id: 7189d6a033e0e18b87b72f3f9b49a1c71a97a2b8 prerequisite-patch-id: a70999df9edd8fbb4ea81ca7e782aa89f52b4a06 prerequisite-message-id: <20261124-cs75xx-i2c-v8-0-d0800b967886@gmail.com> prerequisite-patch-id: 1ccad6a46a6b3391a0244edbdbc4949b6614e271 prerequisite-patch-id: ac9ec16b2e96d5580a256823ab1330098380ae32 prerequisite-message-id: <20261121-arm-twd-wdt-v9-1-8118d048cfde@gmail.com> prerequisite-patch-id: e8d416021a43d45b01ac95877bb1c42a46d30153 prerequisite-message-id: <20261124-arm-twd-clock-notifier-v1-1-62933570ae27@gmail.com> prerequisite-patch-id: 66eb0299dcb45847726974805c675a856fea149d prerequisite-patch-id: 27fe25055bcadb3c3fbc8b6788f31c2fb791df38 prerequisite-patch-id: ae69b5cca6f4604972300a89411bdca0ea19ab57 prerequisite-patch-id: 55dc4f1e91fc85340c4422438225f50fdf636799 prerequisite-patch-id: 66fccae72a8f951ac0ee182490e98543af29bd89 prerequisite-patch-id: 7fbe9405265ef3d1ec62811415a46c0061afd7c8 prerequisite-patch-id: 07e805007e8d5e0c1d06e50a9ffe799f9d61bb35 prerequisite-patch-id: 5301369d9b5f76a650c5e6c01b63bf10634e9ffe prerequisite-patch-id: 5e86fea092879a6940e7f098db6cd346ac515837 prerequisite-patch-id: 49ea479e68bcdf4bb792e712130b22cb9cc2d378 prerequisite-patch-id: ebd89772638cdde67204f9859648c532072f8f64 prerequisite-patch-id: 3602aa81630ee3e18d9302c23cba59d483ea9d81 prerequisite-patch-id: 1713798d81d3140dea98cb980a4bac9aa22a3780 prerequisite-patch-id: ead1ebcb89468d700d8875693f405460d6d5a2c8 prerequisite-message-id: <20261124-b4-qca8k-two-byte-header-init-v1-1-c644025b69fa@gmail.com> prerequisite-patch-id: 48d4c38319b803b22db91864e3321abdb6ab32b0 prerequisite-patch-id: 9d8ec97932a1c3a4c41dad64e27364d395e8821c prerequisite-patch-id: 1b20a366220308b1864130aaef2a53816101f442 prerequisite-patch-id: 0a571205b2bb84488ae379a21ab734caa9cd15a6 prerequisite-patch-id: b08306581bf5dcd6d5543b00ee75105dc67c2355 prerequisite-patch-id: 6cfb1cf607dff2578799414c3b5c289970aeb7aa prerequisite-patch-id: 6a6f50f93cfd1e3df21d74b525ecf4882e5c057b prerequisite-patch-id: 8dd7f2d65905ec5c2dc0bc66b56301048436a6d1 Best regards, -- Fil Dunsky <filipp.dunsky@gmail.com> ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v4 1/3] ARM: dts: cortina: Describe CS7542 peripheral controllers 2026-12-05 19:51 ` Fil Dunsky via B4 Relay @ 2026-12-05 19:51 ` Fil Dunsky via B4 Relay -1 siblings, 0 replies; 11+ messages in thread From: Fil Dunsky @ 2026-12-05 19:51 UTC (permalink / raw) To: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Kees Cook, Tony Luck, Guilherme G. Piccoli Cc: linux-arm-kernel, devicetree, linux-kernel, Fil Dunsky Describe the shared global clock and pin controllers, peripheral interrupt controller and GPIO banks, I2C, RTC, TRNG, NAND PIO controller, MDIO, network engine and three PCIe root ports. Use the global syscon for clocks and resets, a separate PCIe PHY provider and the complete exclusive Ethernet DMA/reset domain. Keep the optional controllers disabled until the board supplies wiring, reserved memory and endpoint descriptions. Replace the fixed APB assumption with strap-selected clocks. Migrate the existing UART and watchdog clock consumers and remove the board APB-rate override in this same patch, so the board remains buildable after each commit. Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> --- .../dts/cortina/cs7542-securifi-almondplus.dts | 4 - arch/arm/boot/dts/cortina/cs7542.dtsi | 321 ++++++++++++++++++++- 2 files changed, 311 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts index e3152fd1db..2da3645927 100644 --- a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts +++ b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts @@ -37,10 +37,6 @@ }; }; -&apb_clk { - clock-frequency = <150000000>; -}; - &uart0 { status = "okay"; }; diff --git a/arch/arm/boot/dts/cortina/cs7542.dtsi b/arch/arm/boot/dts/cortina/cs7542.dtsi index 29b0b7da86..3d827502c9 100644 --- a/arch/arm/boot/dts/cortina/cs7542.dtsi +++ b/arch/arm/boot/dts/cortina/cs7542.dtsi @@ -3,6 +3,8 @@ * Device Tree Source for the Cortina Systems CS7542 SoC */ +#include <dt-bindings/clock/cortina,cs7542-clock.h> +#include <dt-bindings/reset/cortina,cs7542-reset.h> #include <dt-bindings/interrupt-controller/arm-gic.h> / { @@ -10,11 +12,10 @@ #size-cells = <1>; interrupt-parent = <&gic>; - /* Rate is selected by the boot strap pins, set by the board */ - apb_clk: clock-apb { + ref24: clock-24mhz { compatible = "fixed-clock"; #clock-cells = <0>; - clock-output-names = "apb"; + clock-frequency = <24000000>; }; cpus { @@ -26,6 +27,7 @@ compatible = "arm,cortex-a9"; reg = <0>; next-level-cache = <&l2>; + clocks = <&global CS7542_CLK_CPU>; }; cpu@1 { @@ -35,6 +37,7 @@ enable-method = "cortina,cs7542-smp"; cpu-release-addr = <0 0xf00000b8>; next-level-cache = <&l2>; + clocks = <&global CS7542_CLK_CPU>; }; }; @@ -44,11 +47,227 @@ #address-cells = <1>; #size-cells = <1>; + pcie0: pcie@80000000 { + compatible = "cortina,cs7542-pcie"; + reg = <0x80000000 0x1000>, <0x80001000 0x1000>, <0xf00a0000 0x100>; + reg-names = "dbi", "config", "app"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + linux,pci-domain = <0>; + bus-range = <0 0xff>; + num-lanes = <1>; + ranges = <0x82000000 0 0x80200000 0x80200000 0 0x1fe00000>; + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + clocks = <&global CS7542_CLK_PCIE0>; + resets = <&global CS7542_RESET_PCIE0>; + phys = <&serdes 0>; + phy-names = "pcie"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie0_intc 1>, + <0 0 0 2 &pcie0_intc 2>, + <0 0 0 3 &pcie0_intc 3>, + <0 0 0 4 &pcie0_intc 4>; + status = "disabled"; + + pcie0_port: pcie@0,0 { + compatible = "pciclass,0604"; + reg = <0 0 0 0 0>; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pcie0_intc: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + }; + }; + + pcie1: pcie@a0000000 { + compatible = "cortina,cs7542-pcie"; + reg = <0xa0000000 0x1000>, <0xa0001000 0x1000>, <0xf00a0400 0x100>; + reg-names = "dbi", "config", "app"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + linux,pci-domain = <1>; + bus-range = <0 0xff>; + num-lanes = <1>; + ranges = <0x82000000 0 0xa0200000 0xa0200000 0 0x1fe00000>; + interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + clocks = <&global CS7542_CLK_PCIE1>; + resets = <&global CS7542_RESET_PCIE1>; + phys = <&serdes 1>; + phy-names = "pcie"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie1_intc 1>, + <0 0 0 2 &pcie1_intc 2>, + <0 0 0 3 &pcie1_intc 3>, + <0 0 0 4 &pcie1_intc 4>; + status = "disabled"; + + pcie1_port: pcie@0,0 { + compatible = "pciclass,0604"; + reg = <0 0 0 0 0>; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pcie1_intc: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + }; + }; + + pcie2: pcie@c0000000 { + compatible = "cortina,cs7542-pcie"; + reg = <0xc0000000 0x1000>, <0xc0001000 0x1000>, <0xf00a0800 0x100>; + reg-names = "dbi", "config", "app"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + linux,pci-domain = <2>; + bus-range = <0 0xff>; + num-lanes = <1>; + ranges = <0x82000000 0 0xc0200000 0xc0200000 0 0x1fe00000>; + interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + clocks = <&global CS7542_CLK_PCIE2>; + resets = <&global CS7542_RESET_PCIE2>; + phys = <&serdes 2>; + phy-names = "pcie"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie2_intc 1>, + <0 0 0 2 &pcie2_intc 2>, + <0 0 0 3 &pcie2_intc 3>, + <0 0 0 4 &pcie2_intc 4>; + status = "disabled"; + + pcie2_port: pcie@0,0 { + compatible = "pciclass,0604"; + reg = <0 0 0 0 0>; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pcie2_intc: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + }; + }; + + global: syscon@f0000000 { + compatible = "cortina,cs7542-syscon", "syscon", "simple-mfd"; + reg = <0xf0000000 0x100>; + #clock-cells = <1>; + #reset-cells = <1>; + + pinctrl: pinctrl { + compatible = "cortina,cs7542-pinctrl"; + }; + }; + + ethernet: ethernet@f0010000 { + compatible = "cortina,cs7542-ethernet"; + reg = <0xf0010000 0x500>, + <0xf0090000 0x800>, <0xf0020000 0x4000>, + <0xf0030000 0x400>, <0xf0040000 0x800>, + <0xf0060000 0x100>, <0xf0400000 0x100000>; + reg-names = "ni", "dma", "fe", "qm", "tm", + "sch", "xram"; + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "eth0", "eth1", "eth2"; + resets = <&global CS7542_RESET_NI>, + <&global CS7542_RESET_FE>, + <&global CS7542_RESET_TM>, + <&global CS7542_RESET_SCH>, + <&global CS7542_RESET_QM>, + <&global CS7542_RESET_DMA>, + <&global CS7542_RESET_NI_XRAM>; + reset-names = "ni", "fe", "tm", "sch", "qm", "dma", "xram"; + #address-cells = <1>; + #size-cells = <0>; + cortina,global-syscon = <&global>; + status = "disabled"; + + gmac0: ethernet-port@0 { + reg = <0>; + status = "disabled"; + }; + + gmac1: ethernet-port@1 { + reg = <1>; + status = "disabled"; + }; + + gmac2: ethernet-port@2 { + reg = <2>; + status = "disabled"; + }; + }; + + nandc: nand-controller@f0050000 { + compatible = "cortina,cs7542-nand"; + reg = <0xf0050000 0x300>, <0xe0000000 0x08000000>; + reg-names = "regs", "data"; + interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&global CS7542_CLK_AXI>; + resets = <&global CS7542_RESET_FLASH>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + intc: interrupt-controller@f0070004 { + compatible = "cortina,cs7542-intc"; + reg = <0xf0070004 0x8>; + interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; + interrupt-controller; + #interrupt-cells = <1>; + }; + + mdio0: mdio@f00700a0 { + compatible = "cortina,cs7542-mdio"; + reg = <0xf00700a0 0x14>; + clocks = <&global CS7542_CLK_APB>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c: i2c@f00700e8 { + compatible = "cortina,cs7542-i2c"; + reg = <0xf00700e8 0x28>; + interrupt-parent = <&intc>; + interrupts = <11>; + clocks = <&global CS7542_CLK_APB>; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + uart0: serial@f0070110 { compatible = "cortina,cs7542-uart"; reg = <0xf0070110 0x30>; interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; status = "disabled"; }; @@ -57,7 +276,7 @@ compatible = "cortina,cs7542-uart"; reg = <0xf0070140 0x30>; interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; status = "disabled"; }; @@ -66,7 +285,7 @@ compatible = "cortina,cs7542-uart"; reg = <0xf0070170 0x30>; interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; status = "disabled"; }; @@ -75,8 +294,90 @@ compatible = "cortina,cs7542-uart"; reg = <0xf00701a0 0x30>; interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; + + status = "disabled"; + }; + + gpio0: gpio@f00701d0 { + compatible = "cortina,cs7542-gpio"; + reg = <0xf00701d0 0x20>; + interrupt-parent = <&intc>; + interrupts = <6>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio1: gpio@f00701f0 { + compatible = "cortina,cs7542-gpio"; + reg = <0xf00701f0 0x20>; + interrupt-parent = <&intc>; + interrupts = <7>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio2: gpio@f0070210 { + compatible = "cortina,cs7542-gpio"; + reg = <0xf0070210 0x20>; + interrupt-parent = <&intc>; + interrupts = <8>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio3: gpio@f0070230 { + compatible = "cortina,cs7542-gpio"; + reg = <0xf0070230 0x20>; + interrupt-parent = <&intc>; + interrupts = <9>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio4: gpio@f0070250 { + compatible = "cortina,cs7542-gpio"; + reg = <0xf0070250 0x20>; + interrupt-parent = <&intc>; + interrupts = <10>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + serdes: phy@f00a1000 { + compatible = "cortina,cs7542-pcie-phy"; + reg = <0xf00a1000 0x400>, <0xf00a5000 0x400>, + <0xf00a9000 0x400>, <0xf00a0e00 0x180>; + reg-names = "phy0", "phy1", "phy2", "status"; + clocks = <&ref24>; + cortina,global-syscon = <&global>; + #phy-cells = <1>; + }; + + trng: rng@f0600000 { + compatible = "cortina,cs7542-trng"; + reg = <0xf0600000 0x20>; + cortina,syscon = <&global>; + status = "disabled"; + }; + rtc0: rtc@f4920000 { + compatible = "cortina,cs7542-rtc"; + reg = <0xf4920000 0x50>; + interrupt-names = "alarm", "periodic"; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -99,21 +400,21 @@ compatible = "arm,cortex-a9-global-timer"; reg = <0xf8000200 0x20>; interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; }; timer@f8000600 { compatible = "arm,cortex-a9-twd-timer"; reg = <0xf8000600 0x20>; interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; }; watchdog@f8000620 { compatible = "arm,cortex-a9-twd-wdt"; reg = <0xf8000620 0x20>; interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; }; gic: interrupt-controller@f8001000 { -- 2.53.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v4 1/3] ARM: dts: cortina: Describe CS7542 peripheral controllers @ 2026-12-05 19:51 ` Fil Dunsky via B4 Relay 0 siblings, 0 replies; 11+ messages in thread From: Fil Dunsky via B4 Relay @ 2026-12-05 19:51 UTC (permalink / raw) To: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Kees Cook, Tony Luck, Guilherme G. Piccoli Cc: linux-arm-kernel, devicetree, linux-kernel, Fil Dunsky From: Fil Dunsky <filipp.dunsky@gmail.com> Describe the shared global clock and pin controllers, peripheral interrupt controller and GPIO banks, I2C, RTC, TRNG, NAND PIO controller, MDIO, network engine and three PCIe root ports. Use the global syscon for clocks and resets, a separate PCIe PHY provider and the complete exclusive Ethernet DMA/reset domain. Keep the optional controllers disabled until the board supplies wiring, reserved memory and endpoint descriptions. Replace the fixed APB assumption with strap-selected clocks. Migrate the existing UART and watchdog clock consumers and remove the board APB-rate override in this same patch, so the board remains buildable after each commit. Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> --- .../dts/cortina/cs7542-securifi-almondplus.dts | 4 - arch/arm/boot/dts/cortina/cs7542.dtsi | 321 ++++++++++++++++++++- 2 files changed, 311 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts index e3152fd1db..2da3645927 100644 --- a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts +++ b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts @@ -37,10 +37,6 @@ }; }; -&apb_clk { - clock-frequency = <150000000>; -}; - &uart0 { status = "okay"; }; diff --git a/arch/arm/boot/dts/cortina/cs7542.dtsi b/arch/arm/boot/dts/cortina/cs7542.dtsi index 29b0b7da86..3d827502c9 100644 --- a/arch/arm/boot/dts/cortina/cs7542.dtsi +++ b/arch/arm/boot/dts/cortina/cs7542.dtsi @@ -3,6 +3,8 @@ * Device Tree Source for the Cortina Systems CS7542 SoC */ +#include <dt-bindings/clock/cortina,cs7542-clock.h> +#include <dt-bindings/reset/cortina,cs7542-reset.h> #include <dt-bindings/interrupt-controller/arm-gic.h> / { @@ -10,11 +12,10 @@ #size-cells = <1>; interrupt-parent = <&gic>; - /* Rate is selected by the boot strap pins, set by the board */ - apb_clk: clock-apb { + ref24: clock-24mhz { compatible = "fixed-clock"; #clock-cells = <0>; - clock-output-names = "apb"; + clock-frequency = <24000000>; }; cpus { @@ -26,6 +27,7 @@ compatible = "arm,cortex-a9"; reg = <0>; next-level-cache = <&l2>; + clocks = <&global CS7542_CLK_CPU>; }; cpu@1 { @@ -35,6 +37,7 @@ enable-method = "cortina,cs7542-smp"; cpu-release-addr = <0 0xf00000b8>; next-level-cache = <&l2>; + clocks = <&global CS7542_CLK_CPU>; }; }; @@ -44,11 +47,227 @@ #address-cells = <1>; #size-cells = <1>; + pcie0: pcie@80000000 { + compatible = "cortina,cs7542-pcie"; + reg = <0x80000000 0x1000>, <0x80001000 0x1000>, <0xf00a0000 0x100>; + reg-names = "dbi", "config", "app"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + linux,pci-domain = <0>; + bus-range = <0 0xff>; + num-lanes = <1>; + ranges = <0x82000000 0 0x80200000 0x80200000 0 0x1fe00000>; + interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + clocks = <&global CS7542_CLK_PCIE0>; + resets = <&global CS7542_RESET_PCIE0>; + phys = <&serdes 0>; + phy-names = "pcie"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie0_intc 1>, + <0 0 0 2 &pcie0_intc 2>, + <0 0 0 3 &pcie0_intc 3>, + <0 0 0 4 &pcie0_intc 4>; + status = "disabled"; + + pcie0_port: pcie@0,0 { + compatible = "pciclass,0604"; + reg = <0 0 0 0 0>; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pcie0_intc: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + }; + }; + + pcie1: pcie@a0000000 { + compatible = "cortina,cs7542-pcie"; + reg = <0xa0000000 0x1000>, <0xa0001000 0x1000>, <0xf00a0400 0x100>; + reg-names = "dbi", "config", "app"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + linux,pci-domain = <1>; + bus-range = <0 0xff>; + num-lanes = <1>; + ranges = <0x82000000 0 0xa0200000 0xa0200000 0 0x1fe00000>; + interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + clocks = <&global CS7542_CLK_PCIE1>; + resets = <&global CS7542_RESET_PCIE1>; + phys = <&serdes 1>; + phy-names = "pcie"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie1_intc 1>, + <0 0 0 2 &pcie1_intc 2>, + <0 0 0 3 &pcie1_intc 3>, + <0 0 0 4 &pcie1_intc 4>; + status = "disabled"; + + pcie1_port: pcie@0,0 { + compatible = "pciclass,0604"; + reg = <0 0 0 0 0>; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pcie1_intc: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + }; + }; + + pcie2: pcie@c0000000 { + compatible = "cortina,cs7542-pcie"; + reg = <0xc0000000 0x1000>, <0xc0001000 0x1000>, <0xf00a0800 0x100>; + reg-names = "dbi", "config", "app"; + #address-cells = <3>; + #size-cells = <2>; + device_type = "pci"; + linux,pci-domain = <2>; + bus-range = <0 0xff>; + num-lanes = <1>; + ranges = <0x82000000 0 0xc0200000 0xc0200000 0 0x1fe00000>; + interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + clocks = <&global CS7542_CLK_PCIE2>; + resets = <&global CS7542_RESET_PCIE2>; + phys = <&serdes 2>; + phy-names = "pcie"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 7>; + interrupt-map = <0 0 0 1 &pcie2_intc 1>, + <0 0 0 2 &pcie2_intc 2>, + <0 0 0 3 &pcie2_intc 3>, + <0 0 0 4 &pcie2_intc 4>; + status = "disabled"; + + pcie2_port: pcie@0,0 { + compatible = "pciclass,0604"; + reg = <0 0 0 0 0>; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + ranges; + }; + + pcie2_intc: interrupt-controller { + #address-cells = <0>; + #interrupt-cells = <1>; + interrupt-controller; + }; + }; + + global: syscon@f0000000 { + compatible = "cortina,cs7542-syscon", "syscon", "simple-mfd"; + reg = <0xf0000000 0x100>; + #clock-cells = <1>; + #reset-cells = <1>; + + pinctrl: pinctrl { + compatible = "cortina,cs7542-pinctrl"; + }; + }; + + ethernet: ethernet@f0010000 { + compatible = "cortina,cs7542-ethernet"; + reg = <0xf0010000 0x500>, + <0xf0090000 0x800>, <0xf0020000 0x4000>, + <0xf0030000 0x400>, <0xf0040000 0x800>, + <0xf0060000 0x100>, <0xf0400000 0x100000>; + reg-names = "ni", "dma", "fe", "qm", "tm", + "sch", "xram"; + interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "eth0", "eth1", "eth2"; + resets = <&global CS7542_RESET_NI>, + <&global CS7542_RESET_FE>, + <&global CS7542_RESET_TM>, + <&global CS7542_RESET_SCH>, + <&global CS7542_RESET_QM>, + <&global CS7542_RESET_DMA>, + <&global CS7542_RESET_NI_XRAM>; + reset-names = "ni", "fe", "tm", "sch", "qm", "dma", "xram"; + #address-cells = <1>; + #size-cells = <0>; + cortina,global-syscon = <&global>; + status = "disabled"; + + gmac0: ethernet-port@0 { + reg = <0>; + status = "disabled"; + }; + + gmac1: ethernet-port@1 { + reg = <1>; + status = "disabled"; + }; + + gmac2: ethernet-port@2 { + reg = <2>; + status = "disabled"; + }; + }; + + nandc: nand-controller@f0050000 { + compatible = "cortina,cs7542-nand"; + reg = <0xf0050000 0x300>, <0xe0000000 0x08000000>; + reg-names = "regs", "data"; + interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&global CS7542_CLK_AXI>; + resets = <&global CS7542_RESET_FLASH>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + intc: interrupt-controller@f0070004 { + compatible = "cortina,cs7542-intc"; + reg = <0xf0070004 0x8>; + interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; + interrupt-controller; + #interrupt-cells = <1>; + }; + + mdio0: mdio@f00700a0 { + compatible = "cortina,cs7542-mdio"; + reg = <0xf00700a0 0x14>; + clocks = <&global CS7542_CLK_APB>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c: i2c@f00700e8 { + compatible = "cortina,cs7542-i2c"; + reg = <0xf00700e8 0x28>; + interrupt-parent = <&intc>; + interrupts = <11>; + clocks = <&global CS7542_CLK_APB>; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + uart0: serial@f0070110 { compatible = "cortina,cs7542-uart"; reg = <0xf0070110 0x30>; interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; status = "disabled"; }; @@ -57,7 +276,7 @@ compatible = "cortina,cs7542-uart"; reg = <0xf0070140 0x30>; interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; status = "disabled"; }; @@ -66,7 +285,7 @@ compatible = "cortina,cs7542-uart"; reg = <0xf0070170 0x30>; interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; status = "disabled"; }; @@ -75,8 +294,90 @@ compatible = "cortina,cs7542-uart"; reg = <0xf00701a0 0x30>; interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; + + status = "disabled"; + }; + + gpio0: gpio@f00701d0 { + compatible = "cortina,cs7542-gpio"; + reg = <0xf00701d0 0x20>; + interrupt-parent = <&intc>; + interrupts = <6>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio1: gpio@f00701f0 { + compatible = "cortina,cs7542-gpio"; + reg = <0xf00701f0 0x20>; + interrupt-parent = <&intc>; + interrupts = <7>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio2: gpio@f0070210 { + compatible = "cortina,cs7542-gpio"; + reg = <0xf0070210 0x20>; + interrupt-parent = <&intc>; + interrupts = <8>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio3: gpio@f0070230 { + compatible = "cortina,cs7542-gpio"; + reg = <0xf0070230 0x20>; + interrupt-parent = <&intc>; + interrupts = <9>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpio4: gpio@f0070250 { + compatible = "cortina,cs7542-gpio"; + reg = <0xf0070250 0x20>; + interrupt-parent = <&intc>; + interrupts = <10>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + + serdes: phy@f00a1000 { + compatible = "cortina,cs7542-pcie-phy"; + reg = <0xf00a1000 0x400>, <0xf00a5000 0x400>, + <0xf00a9000 0x400>, <0xf00a0e00 0x180>; + reg-names = "phy0", "phy1", "phy2", "status"; + clocks = <&ref24>; + cortina,global-syscon = <&global>; + #phy-cells = <1>; + }; + + trng: rng@f0600000 { + compatible = "cortina,cs7542-trng"; + reg = <0xf0600000 0x20>; + cortina,syscon = <&global>; + status = "disabled"; + }; + rtc0: rtc@f4920000 { + compatible = "cortina,cs7542-rtc"; + reg = <0xf4920000 0x50>; + interrupt-names = "alarm", "periodic"; + interrupt-parent = <&gic>; + interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>; status = "disabled"; }; @@ -99,21 +400,21 @@ compatible = "arm,cortex-a9-global-timer"; reg = <0xf8000200 0x20>; interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; }; timer@f8000600 { compatible = "arm,cortex-a9-twd-timer"; reg = <0xf8000600 0x20>; interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; }; watchdog@f8000620 { compatible = "arm,cortex-a9-twd-wdt"; reg = <0xf8000620 0x20>; interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; - clocks = <&apb_clk>; + clocks = <&global CS7542_CLK_APB>; }; gic: interrupt-controller@f8001000 { -- 2.53.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v4 1/3] ARM: dts: cortina: Describe CS7542 peripheral controllers 2026-12-05 19:51 ` Fil Dunsky via B4 Relay (?) @ 2026-12-05 20:08 ` sashiko-bot -1 siblings, 0 replies; 11+ messages in thread From: sashiko-bot @ 2026-12-05 20:08 UTC (permalink / raw) To: Fil Dunsky; +Cc: devicetree, robh, conor+dt Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [High] ARM: dts: cortina: global clk migration breaks boot when COMMON_CLK_CS7542=n -- commit e9270d7acecebeaf6d81ee437ed7b70fb2a55ff2 Author: Fil Dunsky <filipp.dunsky@gmail.com> ARM: dts: cortina: Describe CS7542 peripheral controllers This commit adds device tree nodes for the CS7542 peripheral controllers, replaces the fixed APB clock with the global syscon clock provider, and updates the existing UART, timer, and watchdog nodes to use it. > diff --git a/arch/arm/boot/dts/cortina/cs7542.dtsi b/arch/arm/boot/dts/cortina/cs7542.dtsi > index 29b0b7da86670..3d827502c9b90 100644 > --- a/arch/arm/boot/dts/cortina/cs7542.dtsi > +++ b/arch/arm/boot/dts/cortina/cs7542.dtsi [ ... ] > @@ -99,21 +400,21 @@ timer@f8000200 { > compatible = "arm,cortex-a9-global-timer"; > reg = <0xf8000200 0x20>; > interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; > - clocks = <&apb_clk>; > + clocks = <&global CS7542_CLK_APB>; > }; > > timer@f8000600 { > compatible = "arm,cortex-a9-twd-timer"; > reg = <0xf8000600 0x20>; > interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; > - clocks = <&apb_clk>; > + clocks = <&global CS7542_CLK_APB>; > }; > > watchdog@f8000620 { > compatible = "arm,cortex-a9-twd-wdt"; > reg = <0xf8000620 0x20>; > interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>; > - clocks = <&apb_clk>; > + clocks = <&global CS7542_CLK_APB>; > }; [Severity: High] Does switching the timers and console UART from apb_clk to &global break boot when CONFIG_COMMON_CLK_CS7542 is not enabled? ARCH_CORTINA_ACCESS selects ARM_GLOBAL_TIMER and HAVE_ARM_TWD, but neither selects COMMON_CLK_CS7542 nor defaults it to y. Without a clock provider for &global, global_timer_of_register() fails of_clk_get() and twd_calibrate_rate() spins forever waiting for jiffies in late_time_init(). Similarly, intc and gpio0..4 are enabled while CS75XX_INTC is not selected or defaulted by ARCH_CORTINA_ACCESS, causing cs75xx_gpio_probe() to permanently defer on platform_get_irq(). Commit "ARM: multi_v7_defconfig: Enable CS7542 board peripherals" later enables both options in multi_v7_defconfig, but that leaves a two-commit bisection hang and still breaks non-multi_v7_defconfig builds or olddefconfig upgrades. Selecting COMMON_CLK_CS7542 and CS75XX_INTC from ARCH_CORTINA_ACCESS (or setting default ARCH_CORTINA_ACCESS on them) before removing apb_clk would avoid this regression. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261205-b4-cs7542-peripherals-dts-v4-0-f4e93d42533a@gmail.com?part=1 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v4 2/3] ARM: dts: cortina: Enable Almond+ board peripherals 2026-12-05 19:51 ` Fil Dunsky via B4 Relay @ 2026-12-05 19:51 ` Fil Dunsky via B4 Relay -1 siblings, 0 replies; 11+ messages in thread From: Fil Dunsky @ 2026-12-05 19:51 UTC (permalink / raw) To: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Kees Cook, Tony Luck, Guilherme G. Piccoli Cc: linux-arm-kernel, devicetree, linux-kernel, Fil Dunsky Enable the tested NAND geometry and stock-compatible partition layout, factory MAC/calibration cells, QCA8337 switch wiring, PCIe radios and xHCI endpoint, touchscreen and auxiliary UARTs. Select GPIO37 and UART72-77 mux states and the shared PCIe reset GPIO92. Connect the network engine to its reserved upper 64 MiB DDR region and keep a separate ramoops reservation. Preserve the stock bootloader console compatibility and describe the actual port labels. GPIO92 resets both Wi-Fi endpoints, so runtime PCIe hotplug is not advertised. The equivalent OpenWrt device tree has been booted on Almond+ with the new PIO NAND, MDIO, PCIe and Ethernet drivers, with factory MAC/calibration reads, Wi-Fi, USB, UDP/ICMP and jumbo/SG traffic. Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> --- .../dts/cortina/cs7542-securifi-almondplus.dts | 341 ++++++++++++++++++++- 1 file changed, 340 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts index 2da3645927..81c6390f67 100644 --- a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts +++ b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts @@ -5,6 +5,10 @@ /dts-v1/; +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> +#include <dt-bindings/interrupt-controller/irq.h> + #include "cs7542.dtsi" / { @@ -13,12 +17,26 @@ aliases { serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; }; chosen { + bootargs = "console=ttyCS0,115200"; stdout-path = "serial0:115200n8"; }; + keys { + compatible = "gpio-keys"; + + button-reset { + label = "reset"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + linux,code = <KEY_RESTART>; + }; + }; + memory@0 { device_type = "memory"; reg = <0x00000000 0x20000000>; @@ -29,14 +47,335 @@ #address-cells = <1>; #size-cells = <1>; + ramoops@1bf00000 { + compatible = "ramoops"; + reg = <0x1bf00000 0x100000>; + record-size = <0x20000>; + console-size = <0x80000>; + ecc-size = <16>; + no-map; + }; + /* Reserved for the packet engine queue manager */ - qm-buffer@1c000000 { + qm_reserved: qm-buffer@1c000000 { reg = <0x1c000000 0x4000000>; no-map; }; }; }; +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&reset_pins &aux_uarts_pins>; + + reset_pins: reset-pins { + function = "gpio"; + pins = "gpio37"; + }; + + aux_uarts_pins: aux-uarts-pins { + function = "uart"; + pins = "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77"; + }; +}; + +&i2c { + clock-frequency = <400000>; + + status = "okay"; + + touchscreen@48 { + compatible = "semtech,sx8650"; + reg = <0x48>; + interrupt-parent = <&gpio4>; + interrupts = <28 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &uart0 { status = "okay"; }; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&uart3 { + status = "okay"; +}; + +&rtc0 { + status = "okay"; +}; + +&trng { + status = "okay"; +}; + +&nandc { + status = "okay"; + nand@0 { + reg = <0>; + nand-ecc-step-size = <256>; + nand-ecc-strength = <1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@20000 { + label = "uboot0"; + reg = <0x0020000 0x00e0000>; + read-only; + }; + + partition@100000 { + label = "uboot-env0"; + reg = <0x0100000 0x0020000>; + read-only; + + nvmem-layout { + compatible = "u-boot,env"; + + ethaddr: ethaddr { + #nvmem-cell-cells = <1>; + }; + }; + }; + + partition@200000 { + label = "uboot1"; + reg = <0x0200000 0x0100000>; + read-only; + }; + + partition@300000 { + label = "uboot-env1"; + reg = <0x0300000 0x0100000>; + }; + + partition@400000 { + label = "sb0"; + reg = <0x0400000 0x0100000>; + }; + + partition@500000 { + label = "sb1"; + reg = <0x0500000 0x0100000>; + }; + + partition@600000 { + label = "kernel_standby"; + reg = <0x0600000 0x0600000>; + }; + + partition@c00000 { + label = "rootfs_standby"; + reg = <0x0c00000 0x2e00000>; + }; + + partition@3a00000 { + label = "kernel"; + reg = <0x3a00000 0x0600000>; + }; + + partition@4000000 { + label = "rootfs_stock"; + reg = <0x4000000 0x2e00000>; + }; + + partition@6e00000 { + label = "stock_data"; + reg = <0x6e00000 0x1000000>; + }; + + partition@7e00000 { + label = "log"; + reg = <0x7e00000 0x0100000>; + }; + + partition@7f00000 { + label = "cal"; + reg = <0x7f00000 0x0100000>; + read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_ath9k: macaddr@1002 { + reg = <0x1002 0x6>; + }; + + cal_ath9k: cal@1000 { + reg = <0x1000 0x440>; + }; + + cal_ath10k: cal@5000 { + reg = <0x5000 0x844>; + }; + }; + }; + + partition@8000000 { + label = "man"; + reg = <0x8000000 0x0100000>; + read-only; + }; + + partition@8100000 { + label = "almond_data"; + reg = <0x8100000 0x0500000>; + }; + + partition@8600000 { + label = "ubi"; + reg = <0x8600000 0x17a00000>; + }; + }; + }; +}; + +&pcie0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pcie0_reset_pins>; +}; + +&pcie0_port { + /* GPIO92 resets both Wi-Fi endpoints; only this port owns it. */ + reset-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; + + wifi@0,0 { + compatible = "pci168c,003c"; + reg = <0 0 0 0 0>; + nvmem-cells = <&cal_ath10k>; + nvmem-cell-names = "calibration"; + }; +}; + +&pcie1 { + status = "okay"; +}; + +&pcie1_port { + wifi@0,0 { + compatible = "pci168c,0033"; + reg = <0 0 0 0 0>; + nvmem-cells = <&macaddr_ath9k>, <&cal_ath9k>; + nvmem-cell-names = "mac-address", "calibration"; + }; +}; + +&pcie2 { + status = "okay"; +}; + +&mdio0 { + status = "okay"; + + switch@10 { + compatible = "qca,qca8337"; + reg = <0x10>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "cpu"; + ethernet = <&gmac1>; + phy-mode = "rgmii-id"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + port@1 { + reg = <1>; + label = "wan"; + nvmem-cells = <ðaddr 0>; + nvmem-cell-names = "mac-address"; + }; + + port@2 { + reg = <2>; + label = "lan4"; + }; + + port@3 { + reg = <3>; + label = "lan3"; + }; + + port@4 { + reg = <4>; + label = "lan2"; + }; + + port@5 { + reg = <5>; + label = "lan1"; + }; + + port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&gmac0>; + phy-mode = "rgmii-id"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; +}; + +ðernet { + memory-region = <&qm_reserved>; + status = "okay"; +}; + +&gmac0 { + status = "okay"; + /* The QCA8337 CPU port supplies the internal RX and TX delays. */ + phy-mode = "rgmii-id"; + nvmem-cells = <ðaddr 0>; + nvmem-cell-names = "mac-address"; + + fixed-link { + speed = <1000>; + full-duplex; + }; +}; + +&gmac1 { + status = "okay"; + /* The QCA8337 CPU port supplies the internal RX and TX delays. */ + phy-mode = "rgmii-id"; + nvmem-cells = <ðaddr (-1)>; + nvmem-cell-names = "mac-address"; + + fixed-link { + speed = <1000>; + full-duplex; + }; +}; + +&pinctrl { + pcie0_reset_pins: pcie0-reset-pins { + function = "gpio"; + pins = "gpio92"; + }; +}; -- 2.53.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v4 2/3] ARM: dts: cortina: Enable Almond+ board peripherals @ 2026-12-05 19:51 ` Fil Dunsky via B4 Relay 0 siblings, 0 replies; 11+ messages in thread From: Fil Dunsky via B4 Relay @ 2026-12-05 19:51 UTC (permalink / raw) To: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Kees Cook, Tony Luck, Guilherme G. Piccoli Cc: linux-arm-kernel, devicetree, linux-kernel, Fil Dunsky From: Fil Dunsky <filipp.dunsky@gmail.com> Enable the tested NAND geometry and stock-compatible partition layout, factory MAC/calibration cells, QCA8337 switch wiring, PCIe radios and xHCI endpoint, touchscreen and auxiliary UARTs. Select GPIO37 and UART72-77 mux states and the shared PCIe reset GPIO92. Connect the network engine to its reserved upper 64 MiB DDR region and keep a separate ramoops reservation. Preserve the stock bootloader console compatibility and describe the actual port labels. GPIO92 resets both Wi-Fi endpoints, so runtime PCIe hotplug is not advertised. The equivalent OpenWrt device tree has been booted on Almond+ with the new PIO NAND, MDIO, PCIe and Ethernet drivers, with factory MAC/calibration reads, Wi-Fi, USB, UDP/ICMP and jumbo/SG traffic. Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> --- .../dts/cortina/cs7542-securifi-almondplus.dts | 341 ++++++++++++++++++++- 1 file changed, 340 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts index 2da3645927..81c6390f67 100644 --- a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts +++ b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts @@ -5,6 +5,10 @@ /dts-v1/; +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/input/input.h> +#include <dt-bindings/interrupt-controller/irq.h> + #include "cs7542.dtsi" / { @@ -13,12 +17,26 @@ aliases { serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + serial3 = &uart3; }; chosen { + bootargs = "console=ttyCS0,115200"; stdout-path = "serial0:115200n8"; }; + keys { + compatible = "gpio-keys"; + + button-reset { + label = "reset"; + gpios = <&gpio1 5 GPIO_ACTIVE_LOW>; + linux,code = <KEY_RESTART>; + }; + }; + memory@0 { device_type = "memory"; reg = <0x00000000 0x20000000>; @@ -29,14 +47,335 @@ #address-cells = <1>; #size-cells = <1>; + ramoops@1bf00000 { + compatible = "ramoops"; + reg = <0x1bf00000 0x100000>; + record-size = <0x20000>; + console-size = <0x80000>; + ecc-size = <16>; + no-map; + }; + /* Reserved for the packet engine queue manager */ - qm-buffer@1c000000 { + qm_reserved: qm-buffer@1c000000 { reg = <0x1c000000 0x4000000>; no-map; }; }; }; +&pinctrl { + pinctrl-names = "default"; + pinctrl-0 = <&reset_pins &aux_uarts_pins>; + + reset_pins: reset-pins { + function = "gpio"; + pins = "gpio37"; + }; + + aux_uarts_pins: aux-uarts-pins { + function = "uart"; + pins = "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77"; + }; +}; + +&i2c { + clock-frequency = <400000>; + + status = "okay"; + + touchscreen@48 { + compatible = "semtech,sx8650"; + reg = <0x48>; + interrupt-parent = <&gpio4>; + interrupts = <28 IRQ_TYPE_LEVEL_LOW>; + }; +}; + &uart0 { status = "okay"; }; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&uart3 { + status = "okay"; +}; + +&rtc0 { + status = "okay"; +}; + +&trng { + status = "okay"; +}; + +&nandc { + status = "okay"; + nand@0 { + reg = <0>; + nand-ecc-step-size = <256>; + nand-ecc-strength = <1>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@20000 { + label = "uboot0"; + reg = <0x0020000 0x00e0000>; + read-only; + }; + + partition@100000 { + label = "uboot-env0"; + reg = <0x0100000 0x0020000>; + read-only; + + nvmem-layout { + compatible = "u-boot,env"; + + ethaddr: ethaddr { + #nvmem-cell-cells = <1>; + }; + }; + }; + + partition@200000 { + label = "uboot1"; + reg = <0x0200000 0x0100000>; + read-only; + }; + + partition@300000 { + label = "uboot-env1"; + reg = <0x0300000 0x0100000>; + }; + + partition@400000 { + label = "sb0"; + reg = <0x0400000 0x0100000>; + }; + + partition@500000 { + label = "sb1"; + reg = <0x0500000 0x0100000>; + }; + + partition@600000 { + label = "kernel_standby"; + reg = <0x0600000 0x0600000>; + }; + + partition@c00000 { + label = "rootfs_standby"; + reg = <0x0c00000 0x2e00000>; + }; + + partition@3a00000 { + label = "kernel"; + reg = <0x3a00000 0x0600000>; + }; + + partition@4000000 { + label = "rootfs_stock"; + reg = <0x4000000 0x2e00000>; + }; + + partition@6e00000 { + label = "stock_data"; + reg = <0x6e00000 0x1000000>; + }; + + partition@7e00000 { + label = "log"; + reg = <0x7e00000 0x0100000>; + }; + + partition@7f00000 { + label = "cal"; + reg = <0x7f00000 0x0100000>; + read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_ath9k: macaddr@1002 { + reg = <0x1002 0x6>; + }; + + cal_ath9k: cal@1000 { + reg = <0x1000 0x440>; + }; + + cal_ath10k: cal@5000 { + reg = <0x5000 0x844>; + }; + }; + }; + + partition@8000000 { + label = "man"; + reg = <0x8000000 0x0100000>; + read-only; + }; + + partition@8100000 { + label = "almond_data"; + reg = <0x8100000 0x0500000>; + }; + + partition@8600000 { + label = "ubi"; + reg = <0x8600000 0x17a00000>; + }; + }; + }; +}; + +&pcie0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pcie0_reset_pins>; +}; + +&pcie0_port { + /* GPIO92 resets both Wi-Fi endpoints; only this port owns it. */ + reset-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; + + wifi@0,0 { + compatible = "pci168c,003c"; + reg = <0 0 0 0 0>; + nvmem-cells = <&cal_ath10k>; + nvmem-cell-names = "calibration"; + }; +}; + +&pcie1 { + status = "okay"; +}; + +&pcie1_port { + wifi@0,0 { + compatible = "pci168c,0033"; + reg = <0 0 0 0 0>; + nvmem-cells = <&macaddr_ath9k>, <&cal_ath9k>; + nvmem-cell-names = "mac-address", "calibration"; + }; +}; + +&pcie2 { + status = "okay"; +}; + +&mdio0 { + status = "okay"; + + switch@10 { + compatible = "qca,qca8337"; + reg = <0x10>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "cpu"; + ethernet = <&gmac1>; + phy-mode = "rgmii-id"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + port@1 { + reg = <1>; + label = "wan"; + nvmem-cells = <ðaddr 0>; + nvmem-cell-names = "mac-address"; + }; + + port@2 { + reg = <2>; + label = "lan4"; + }; + + port@3 { + reg = <3>; + label = "lan3"; + }; + + port@4 { + reg = <4>; + label = "lan2"; + }; + + port@5 { + reg = <5>; + label = "lan1"; + }; + + port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&gmac0>; + phy-mode = "rgmii-id"; + + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; +}; + +ðernet { + memory-region = <&qm_reserved>; + status = "okay"; +}; + +&gmac0 { + status = "okay"; + /* The QCA8337 CPU port supplies the internal RX and TX delays. */ + phy-mode = "rgmii-id"; + nvmem-cells = <ðaddr 0>; + nvmem-cell-names = "mac-address"; + + fixed-link { + speed = <1000>; + full-duplex; + }; +}; + +&gmac1 { + status = "okay"; + /* The QCA8337 CPU port supplies the internal RX and TX delays. */ + phy-mode = "rgmii-id"; + nvmem-cells = <ðaddr (-1)>; + nvmem-cell-names = "mac-address"; + + fixed-link { + speed = <1000>; + full-duplex; + }; +}; + +&pinctrl { + pcie0_reset_pins: pcie0-reset-pins { + function = "gpio"; + pins = "gpio92"; + }; +}; -- 2.53.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v4 2/3] ARM: dts: cortina: Enable Almond+ board peripherals 2026-12-05 19:51 ` Fil Dunsky via B4 Relay (?) @ 2026-12-05 20:08 ` sashiko-bot -1 siblings, 0 replies; 11+ messages in thread From: sashiko-bot @ 2026-12-05 20:08 UTC (permalink / raw) To: Fil Dunsky; +Cc: devicetree, robh, conor+dt 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 <filipp.dunsky@gmail.com> 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/arch/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 = "default"; > + pinctrl-0 = <&reset_pins &aux_uarts_pins>; > + > + reset_pins: reset-pins { > + function = "gpio"; > + pins = "gpio37"; > + }; > + > + aux_uarts_pins: aux-uarts-pins { > + function = "uart"; > + pins = "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 = <400000>; > + > + status = "okay"; > + > + touchscreen@48 { > + compatible = "semtech,sx8650"; > + reg = <0x48>; > + interrupt-parent = <&gpio4>; > + interrupts = <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 = "fixed-layout"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + macaddr_ath9k: macaddr@1002 { > + reg = <0x1002 0x6>; > + }; > + > + cal_ath9k: cal@1000 { > + reg = <0x1000 0x440>; > + }; > + > + cal_ath10k: cal@5000 { > + reg = <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 = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pcie0_reset_pins>; > +}; > + > +&pcie0_port { > + /* GPIO92 resets both Wi-Fi endpoints; only this port owns it. */ > + reset-gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; > + > + wifi@0,0 { > + compatible = "pci168c,003c"; > + reg = <0 0 0 0 0>; > + nvmem-cells = <&cal_ath10k>; > + nvmem-cell-names = "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 = "okay"; > +}; > + > +&pcie1_port { > + wifi@0,0 { > + compatible = "pci168c,0033"; > + reg = <0 0 0 0 0>; > + nvmem-cells = <&macaddr_ath9k>, <&cal_ath9k>; > + nvmem-cell-names = "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 = "okay"; > + /* The QCA8337 CPU port supplies the internal RX and TX delays. */ > + phy-mode = "rgmii-id"; > + nvmem-cells = <ðaddr 0>; > + nvmem-cell-names = "mac-address"; > + > + fixed-link { > + speed = <1000>; > + full-duplex; > + }; > +}; > + > +&gmac1 { > + status = "okay"; > + /* The QCA8337 CPU port supplies the internal RX and TX delays. */ > + phy-mode = "rgmii-id"; > + nvmem-cells = <ðaddr (-1)>; > + nvmem-cell-names = "mac-address"; > + > + fixed-link { > + speed = <1000>; > + full-duplex; > + }; > +}; [Severity: Medium] Will nvmem-cells = <ð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 = "gpio"; > + pins = "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. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261205-b4-cs7542-peripherals-dts-v4-0-f4e93d42533a@gmail.com?part=2 ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v4 3/3] ARM: multi_v7_defconfig: Enable CS7542 board peripherals 2026-12-05 19:51 ` Fil Dunsky via B4 Relay @ 2026-12-05 19:51 ` Fil Dunsky via B4 Relay -1 siblings, 0 replies; 11+ messages in thread From: Fil Dunsky @ 2026-12-05 19:51 UTC (permalink / raw) To: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Kees Cook, Tony Luck, Guilherme G. Piccoli Cc: linux-arm-kernel, devicetree, linux-kernel, Fil Dunsky Build the shared providers and boot-critical storage, watchdog and network support for Almond+. Enable the QCA8337 switch driver and U-Boot environment NVMEM layout needed for its factory MAC addresses. Existing generic ath9k/ath10k and xHCI support supplies the PCIe endpoint drivers. Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> --- arch/arm/configs/multi_v7_defconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 23f1443599..dde9393bad 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -177,6 +177,7 @@ CONFIG_NFC_S3FWRN5_I2C=m CONFIG_PCIEPORTBUS=y CONFIG_PCI_MVEBU=y CONFIG_PCI_TEGRA=y +CONFIG_PCIE_CS7542=y CONFIG_PCIE_RCAR_HOST=y CONFIG_PCI_RCAR_GEN2=y CONFIG_PCI_LAYERSCAPE=y @@ -203,6 +204,7 @@ CONFIG_MTD_CFI_INTELEXT=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_PHYSMAP_OF=y CONFIG_MTD_RAW_NAND=y +CONFIG_MTD_NAND_CS752X=y CONFIG_MTD_NAND_DENALI_DT=y CONFIG_MTD_NAND_OMAP2=y CONFIG_MTD_NAND_OMAP_BCH=y @@ -252,12 +254,14 @@ CONFIG_B53_SPI_DRIVER=m CONFIG_B53_MDIO_DRIVER=m CONFIG_B53_MMAP_DRIVER=m CONFIG_NET_DSA_BCM_SF2=m +CONFIG_NET_DSA_QCA8K=m CONFIG_NET_DSA_RZN1_A5PSW=m CONFIG_SUN4I_EMAC=y CONFIG_SPI_AX88796C=m CONFIG_BCMGENET=m CONFIG_BGMAC_BCMA=y CONFIG_SYSTEMPORT=m +CONFIG_CS7542_ETHERNET=y CONFIG_MACB=y CONFIG_NET_CALXEDA_XGMAC=y CONFIG_FTGMAC100=m @@ -300,6 +304,7 @@ CONFIG_CAN_C_CAN=m CONFIG_CAN_C_CAN_PLATFORM=m CONFIG_CAN_RCAR=m CONFIG_CAN_MCP251X=y +CONFIG_MDIO_CS75XX=y CONFIG_MDIO_MSCC_MIIM=m CONFIG_USB_PEGASUS=y CONFIG_USB_RTL8152=m @@ -409,6 +414,7 @@ CONFIG_VIRTIO_CONSOLE=y CONFIG_ASPEED_KCS_IPMI_BMC=m CONFIG_ASPEED_BT_IPMI_BMC=m CONFIG_HW_RANDOM=y +CONFIG_HW_RANDOM_CS75XX=y CONFIG_HW_RANDOM_ST=y CONFIG_HW_RANDOM_QCOM=m CONFIG_TCG_TPM=m @@ -423,6 +429,7 @@ CONFIG_I2C_ASPEED=m CONFIG_I2C_AT91=m CONFIG_I2C_BCM2835=y CONFIG_I2C_CADENCE=y +CONFIG_I2C_CS75XX=y CONFIG_I2C_DAVINCI=y CONFIG_I2C_DESIGNWARE_CORE=y CONFIG_I2C_DIGICOLOR=m @@ -480,6 +487,7 @@ CONFIG_SPI_XILINX=y CONFIG_SPI_SPIDEV=y CONFIG_SPMI=y CONFIG_PINCTRL_AS3722=y +CONFIG_PINCTRL_CS7542=y CONFIG_PINCTRL_MCP23S08=m CONFIG_PINCTRL_MICROCHIP_SGPIO=y CONFIG_PINCTRL_OCELOT=y @@ -492,6 +500,7 @@ CONFIG_PINCTRL_QCOM_SSBI_PMIC=y CONFIG_PINCTRL_RZA2=y CONFIG_PINCTRL_RZN1=y CONFIG_GPIO_ASPEED_SGPIO=y +CONFIG_GPIO_CS75XX=y CONFIG_GPIO_DAVINCI=y CONFIG_GPIO_DWAPB=y CONFIG_GPIO_EM=y @@ -568,6 +577,7 @@ CONFIG_UNIPHIER_THERMAL=y CONFIG_DA9063_WATCHDOG=m CONFIG_XILINX_WATCHDOG=y CONFIG_ARM_SP805_WATCHDOG=y +CONFIG_ARM_TWD_WATCHDOG=y CONFIG_AT91SAM9X_WATCHDOG=y CONFIG_SAMA5D4_WATCHDOG=y CONFIG_S3C2410_WATCHDOG=m @@ -1018,6 +1028,7 @@ CONFIG_EDAC_HIGHBANK_L2=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_AC100=y CONFIG_RTC_DRV_AS3722=y +CONFIG_RTC_DRV_CS75XX=y CONFIG_RTC_DRV_DS1307=y CONFIG_RTC_DRV_HYM8563=m CONFIG_RTC_DRV_MAX8907=y @@ -1097,6 +1108,7 @@ CONFIG_CHROME_PLATFORMS=y CONFIG_CROS_EC=m CONFIG_CROS_EC_I2C=m CONFIG_CROS_EC_SPI=m +CONFIG_COMMON_CLK_CS7542=y CONFIG_COMMON_CLK_MAX77686=y CONFIG_COMMON_CLK_RK808=m CONFIG_COMMON_CLK_SCMI=y @@ -1223,14 +1235,17 @@ CONFIG_PWM_TIECAP=m CONFIG_PWM_TWL=m CONFIG_PWM_TWL_LED=m CONFIG_PWM_VT8500=y +CONFIG_CS75XX_INTC=y CONFIG_KEYSTONE_IRQ=y CONFIG_RESET_MCHP_SPARX5=y CONFIG_RESET_SCMI=y +CONFIG_RESET_CS7542=y CONFIG_RESET_TI_SCI=m CONFIG_RESET_TI_SYSCON=m CONFIG_PHY_SUN4I_USB=y CONFIG_PHY_SUN9I_USB=y CONFIG_PHY_BRCM_USB=m +CONFIG_PHY_CS7542_PCIE=y CONFIG_PHY_HIX5HD2_SATA=y CONFIG_PHY_BERLIN_SATA=y CONFIG_PHY_BERLIN_USB=y @@ -1264,6 +1279,7 @@ CONFIG_NVMEM_RMEM=m CONFIG_NVMEM_ROCKCHIP_EFUSE=m CONFIG_NVMEM_STM32_ROMEM=m CONFIG_NVMEM_SUNXI_SID=y +CONFIG_NVMEM_U_BOOT_ENV=y CONFIG_NVMEM_VF610_OCOTP=y CONFIG_FSI=m CONFIG_FSI_MASTER_GPIO=m -- 2.53.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v4 3/3] ARM: multi_v7_defconfig: Enable CS7542 board peripherals @ 2026-12-05 19:51 ` Fil Dunsky via B4 Relay 0 siblings, 0 replies; 11+ messages in thread From: Fil Dunsky via B4 Relay @ 2026-12-05 19:51 UTC (permalink / raw) To: Russell King, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Kees Cook, Tony Luck, Guilherme G. Piccoli Cc: linux-arm-kernel, devicetree, linux-kernel, Fil Dunsky From: Fil Dunsky <filipp.dunsky@gmail.com> Build the shared providers and boot-critical storage, watchdog and network support for Almond+. Enable the QCA8337 switch driver and U-Boot environment NVMEM layout needed for its factory MAC addresses. Existing generic ath9k/ath10k and xHCI support supplies the PCIe endpoint drivers. Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com> --- arch/arm/configs/multi_v7_defconfig | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 23f1443599..dde9393bad 100644 --- a/arch/arm/configs/multi_v7_defconfig +++ b/arch/arm/configs/multi_v7_defconfig @@ -177,6 +177,7 @@ CONFIG_NFC_S3FWRN5_I2C=m CONFIG_PCIEPORTBUS=y CONFIG_PCI_MVEBU=y CONFIG_PCI_TEGRA=y +CONFIG_PCIE_CS7542=y CONFIG_PCIE_RCAR_HOST=y CONFIG_PCI_RCAR_GEN2=y CONFIG_PCI_LAYERSCAPE=y @@ -203,6 +204,7 @@ CONFIG_MTD_CFI_INTELEXT=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_PHYSMAP_OF=y CONFIG_MTD_RAW_NAND=y +CONFIG_MTD_NAND_CS752X=y CONFIG_MTD_NAND_DENALI_DT=y CONFIG_MTD_NAND_OMAP2=y CONFIG_MTD_NAND_OMAP_BCH=y @@ -252,12 +254,14 @@ CONFIG_B53_SPI_DRIVER=m CONFIG_B53_MDIO_DRIVER=m CONFIG_B53_MMAP_DRIVER=m CONFIG_NET_DSA_BCM_SF2=m +CONFIG_NET_DSA_QCA8K=m CONFIG_NET_DSA_RZN1_A5PSW=m CONFIG_SUN4I_EMAC=y CONFIG_SPI_AX88796C=m CONFIG_BCMGENET=m CONFIG_BGMAC_BCMA=y CONFIG_SYSTEMPORT=m +CONFIG_CS7542_ETHERNET=y CONFIG_MACB=y CONFIG_NET_CALXEDA_XGMAC=y CONFIG_FTGMAC100=m @@ -300,6 +304,7 @@ CONFIG_CAN_C_CAN=m CONFIG_CAN_C_CAN_PLATFORM=m CONFIG_CAN_RCAR=m CONFIG_CAN_MCP251X=y +CONFIG_MDIO_CS75XX=y CONFIG_MDIO_MSCC_MIIM=m CONFIG_USB_PEGASUS=y CONFIG_USB_RTL8152=m @@ -409,6 +414,7 @@ CONFIG_VIRTIO_CONSOLE=y CONFIG_ASPEED_KCS_IPMI_BMC=m CONFIG_ASPEED_BT_IPMI_BMC=m CONFIG_HW_RANDOM=y +CONFIG_HW_RANDOM_CS75XX=y CONFIG_HW_RANDOM_ST=y CONFIG_HW_RANDOM_QCOM=m CONFIG_TCG_TPM=m @@ -423,6 +429,7 @@ CONFIG_I2C_ASPEED=m CONFIG_I2C_AT91=m CONFIG_I2C_BCM2835=y CONFIG_I2C_CADENCE=y +CONFIG_I2C_CS75XX=y CONFIG_I2C_DAVINCI=y CONFIG_I2C_DESIGNWARE_CORE=y CONFIG_I2C_DIGICOLOR=m @@ -480,6 +487,7 @@ CONFIG_SPI_XILINX=y CONFIG_SPI_SPIDEV=y CONFIG_SPMI=y CONFIG_PINCTRL_AS3722=y +CONFIG_PINCTRL_CS7542=y CONFIG_PINCTRL_MCP23S08=m CONFIG_PINCTRL_MICROCHIP_SGPIO=y CONFIG_PINCTRL_OCELOT=y @@ -492,6 +500,7 @@ CONFIG_PINCTRL_QCOM_SSBI_PMIC=y CONFIG_PINCTRL_RZA2=y CONFIG_PINCTRL_RZN1=y CONFIG_GPIO_ASPEED_SGPIO=y +CONFIG_GPIO_CS75XX=y CONFIG_GPIO_DAVINCI=y CONFIG_GPIO_DWAPB=y CONFIG_GPIO_EM=y @@ -568,6 +577,7 @@ CONFIG_UNIPHIER_THERMAL=y CONFIG_DA9063_WATCHDOG=m CONFIG_XILINX_WATCHDOG=y CONFIG_ARM_SP805_WATCHDOG=y +CONFIG_ARM_TWD_WATCHDOG=y CONFIG_AT91SAM9X_WATCHDOG=y CONFIG_SAMA5D4_WATCHDOG=y CONFIG_S3C2410_WATCHDOG=m @@ -1018,6 +1028,7 @@ CONFIG_EDAC_HIGHBANK_L2=y CONFIG_RTC_CLASS=y CONFIG_RTC_DRV_AC100=y CONFIG_RTC_DRV_AS3722=y +CONFIG_RTC_DRV_CS75XX=y CONFIG_RTC_DRV_DS1307=y CONFIG_RTC_DRV_HYM8563=m CONFIG_RTC_DRV_MAX8907=y @@ -1097,6 +1108,7 @@ CONFIG_CHROME_PLATFORMS=y CONFIG_CROS_EC=m CONFIG_CROS_EC_I2C=m CONFIG_CROS_EC_SPI=m +CONFIG_COMMON_CLK_CS7542=y CONFIG_COMMON_CLK_MAX77686=y CONFIG_COMMON_CLK_RK808=m CONFIG_COMMON_CLK_SCMI=y @@ -1223,14 +1235,17 @@ CONFIG_PWM_TIECAP=m CONFIG_PWM_TWL=m CONFIG_PWM_TWL_LED=m CONFIG_PWM_VT8500=y +CONFIG_CS75XX_INTC=y CONFIG_KEYSTONE_IRQ=y CONFIG_RESET_MCHP_SPARX5=y CONFIG_RESET_SCMI=y +CONFIG_RESET_CS7542=y CONFIG_RESET_TI_SCI=m CONFIG_RESET_TI_SYSCON=m CONFIG_PHY_SUN4I_USB=y CONFIG_PHY_SUN9I_USB=y CONFIG_PHY_BRCM_USB=m +CONFIG_PHY_CS7542_PCIE=y CONFIG_PHY_HIX5HD2_SATA=y CONFIG_PHY_BERLIN_SATA=y CONFIG_PHY_BERLIN_USB=y @@ -1264,6 +1279,7 @@ CONFIG_NVMEM_RMEM=m CONFIG_NVMEM_ROCKCHIP_EFUSE=m CONFIG_NVMEM_STM32_ROMEM=m CONFIG_NVMEM_SUNXI_SID=y +CONFIG_NVMEM_U_BOOT_ENV=y CONFIG_NVMEM_VF610_OCOTP=y CONFIG_FSI=m CONFIG_FSI_MASTER_GPIO=m -- 2.53.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v4 3/3] ARM: multi_v7_defconfig: Enable CS7542 board peripherals 2026-12-05 19:51 ` Fil Dunsky via B4 Relay (?) @ 2026-12-05 20:03 ` sashiko-bot -1 siblings, 0 replies; 11+ messages in thread From: sashiko-bot @ 2026-12-05 20:03 UTC (permalink / raw) To: Fil Dunsky; +Cc: devicetree, robh, conor+dt Thank you for your contribution! Sashiko AI review found 4 potential issues to consider: - [Medium] ARM: multi_v7_defconfig: ATH9K/ATH10K missing despite commit message claim - [Medium] ARM: multi_v7_defconfig: missing QCA83XX_PHY for QCA8337 switch PHYs - [Low] ARM: multi_v7_defconfig: enables legacy NVMEM_U_BOOT_ENV over layout option - [Low] ARM: multi_v7_defconfig: new CS7542 options out of savedefconfig order -- commit a2858a63169a0e98fe4c32e2a75001994ff06cae Author: Fil Dunsky <filipp.dunsky@gmail.com> ARM: multi_v7_defconfig: Enable CS7542 board peripherals This commit enables the platform, storage, network, watchdog, and NVMEM options for the CS7542-based Almond+ board in multi_v7_defconfig. > Existing generic ath9k/ath10k and xHCI support supplies the PCIe endpoint > drivers. [Severity: Medium] Are CONFIG_ATH9K, CONFIG_ATH10K, and CONFIG_ATH10K_PCI missing here? None of those options are enabled in multi_v7_defconfig or selected elsewhere, so a multi_v7_defconfig kernel will not build drivers for Almond+'s two PCIe Wi-Fi radios (ath10k_pci and ath9k). Either enable them as modules or update the commit message. > diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig > index 23f14435998c4..dde9393bad77a 100644 > --- a/arch/arm/configs/multi_v7_defconfig > +++ b/arch/arm/configs/multi_v7_defconfig > @@ -177,6 +177,7 @@ CONFIG_NFC_S3FWRN5_I2C=m > CONFIG_PCIEPORTBUS=y > CONFIG_PCI_MVEBU=y > CONFIG_PCI_TEGRA=y > +CONFIG_PCIE_CS7542=y > CONFIG_PCIE_RCAR_HOST=y > CONFIG_PCI_RCAR_GEN2=y > CONFIG_PCI_LAYERSCAPE=y [Severity: Low] Can the new options be placed in savedefconfig order? CONFIG_PCIE_CS7542, CONFIG_CS7542_ETHERNET, CONFIG_HW_RANDOM_CS75XX, CONFIG_RTC_DRV_CS75XX, CONFIG_RESET_CS7542, and CONFIG_PHY_CS7542_PCIE are out of Kconfig order, which causes churn on future savedefconfig refreshes. Running make ARCH=arm multi_v7_defconfig && make ARCH=arm savedefconfig will put them in canonical order. [ ... ] > @@ -252,12 +254,14 @@ CONFIG_B53_SPI_DRIVER=m > CONFIG_B53_MDIO_DRIVER=m > CONFIG_B53_MMAP_DRIVER=m > CONFIG_NET_DSA_BCM_SF2=m > +CONFIG_NET_DSA_QCA8K=m > CONFIG_NET_DSA_RZN1_A5PSW=m [Severity: Medium] Should CONFIG_QCA83XX_PHY also be enabled alongside CONFIG_NET_DSA_QCA8K? NET_DSA_QCA8K does not select QCA83XX_PHY, and CONFIG_AT803X_PHY no longer binds to QCA8337 internal PHYs. Without CONFIG_QCA83XX_PHY, the five internal PHYs on Almond+'s QCA8337 switch fall back to genphy, skipping the errata workarounds in qca83xx_config_init() and suspend/resume callbacks. [ ... ] > @@ -1264,6 +1279,7 @@ CONFIG_NVMEM_RMEM=m > CONFIG_NVMEM_ROCKCHIP_EFUSE=m > CONFIG_NVMEM_STM32_ROMEM=m > CONFIG_NVMEM_SUNXI_SID=y > +CONFIG_NVMEM_U_BOOT_ENV=y > CONFIG_NVMEM_VF610_OCOTP=y [Severity: Low] Should this be CONFIG_NVMEM_LAYOUT_U_BOOT_ENV=y instead? Almond+'s device tree uses the nvmem-layout binding handled by drivers/nvmem/layouts/u-boot-env.c. Enabling CONFIG_NVMEM_U_BOOT_ENV=y selects that layout indirectly, but also builds the unused legacy MTD platform driver (drivers/nvmem/u-boot-env.c) into every multi_v7 kernel. -- Sashiko AI review · https://sashiko.dev/#/patchset/20261205-b4-cs7542-peripherals-dts-v4-0-f4e93d42533a@gmail.com?part=3 ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-12-05 20:08 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-12-05 19:51 [PATCH v4 0/3] ARM: dts: cortina: Enable CS7542 Almond+ peripherals Fil Dunsky 2026-12-05 19:51 ` Fil Dunsky via B4 Relay 2026-12-05 19:51 ` [PATCH v4 1/3] ARM: dts: cortina: Describe CS7542 peripheral controllers Fil Dunsky 2026-12-05 19:51 ` Fil Dunsky via B4 Relay 2026-12-05 20:08 ` sashiko-bot 2026-12-05 19:51 ` [PATCH v4 2/3] ARM: dts: cortina: Enable Almond+ board peripherals Fil Dunsky 2026-12-05 19:51 ` Fil Dunsky via B4 Relay 2026-12-05 20:08 ` sashiko-bot 2026-12-05 19:51 ` [PATCH v4 3/3] ARM: multi_v7_defconfig: Enable CS7542 " Fil Dunsky 2026-12-05 19:51 ` Fil Dunsky via B4 Relay 2026-12-05 20:03 ` sashiko-bot
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.