* [PATCH 1/3] ARM: dts: cortina: Describe CS7542 peripheral controllers
2026-11-27 20:59 [PATCH 0/3] ARM: dts: cortina: Enable CS7542 Almond+ peripherals Fil Dunsky via B4 Relay
@ 2026-11-27 20:59 ` Fil Dunsky via B4 Relay
2026-11-27 21:08 ` sashiko-bot
2026-11-27 20:59 ` [PATCH 2/3] ARM: dts: cortina: Enable Almond+ board peripherals Fil Dunsky via B4 Relay
2026-11-27 20:59 ` [PATCH 3/3] ARM: multi_v7_defconfig: Enable CS7542 " Fil Dunsky via B4 Relay
2 siblings, 1 reply; 5+ messages in thread
From: Fil Dunsky via B4 Relay @ 2026-11-27 20:59 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
From: Fil Dunsky <filipp.dunsky@gmail.com>
Describe the shared global clock and pin controllers, peripheral
interrupt controller and GPIO banks, I2C, watchdog, 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.
Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
---
arch/arm/boot/dts/cortina/cs7542.dtsi | 321 ++++++++++++++++++++++++++++++++--
1 file changed, 311 insertions(+), 10 deletions(-)
diff --git a/arch/arm/boot/dts/cortina/cs7542.dtsi b/arch/arm/boot/dts/cortina/cs7542.dtsi
index 29b0b7da8..3d827502c 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] 5+ messages in thread* [PATCH 2/3] ARM: dts: cortina: Enable Almond+ board peripherals
2026-11-27 20:59 [PATCH 0/3] ARM: dts: cortina: Enable CS7542 Almond+ peripherals Fil Dunsky via B4 Relay
2026-11-27 20:59 ` [PATCH 1/3] ARM: dts: cortina: Describe CS7542 peripheral controllers Fil Dunsky via B4 Relay
@ 2026-11-27 20:59 ` Fil Dunsky via B4 Relay
2026-11-27 20:59 ` [PATCH 3/3] ARM: multi_v7_defconfig: Enable CS7542 " Fil Dunsky via B4 Relay
2 siblings, 0 replies; 5+ messages in thread
From: Fil Dunsky via B4 Relay @ 2026-11-27 20:59 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
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 | 342 ++++++++++++++++++++-
1 file changed, 339 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts b/arch/arm/boot/dts/cortina/cs7542-securifi-almondplus.dts
index e3152fd1d..32bab3f0b 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,18 +47,336 @@
#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;
};
};
};
-&apb_clk {
- clock-frequency = <150000000>;
+&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-mode = "hw";
+ 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] 5+ messages in thread* [PATCH 3/3] ARM: multi_v7_defconfig: Enable CS7542 board peripherals
2026-11-27 20:59 [PATCH 0/3] ARM: dts: cortina: Enable CS7542 Almond+ peripherals Fil Dunsky via B4 Relay
2026-11-27 20:59 ` [PATCH 1/3] ARM: dts: cortina: Describe CS7542 peripheral controllers Fil Dunsky via B4 Relay
2026-11-27 20:59 ` [PATCH 2/3] ARM: dts: cortina: Enable Almond+ board peripherals Fil Dunsky via B4 Relay
@ 2026-11-27 20:59 ` Fil Dunsky via B4 Relay
2 siblings, 0 replies; 5+ messages in thread
From: Fil Dunsky via B4 Relay @ 2026-11-27 20:59 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
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 23f144359..dde9393ba 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] 5+ messages in thread