Commit c708140e authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'socfpga_dts_updates_for_v6.6' of...

Merge tag 'socfpga_dts_updates_for_v6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux into soc/dt

SoCFPGA DTS updates for v6.6
- Fix dtbs_check warnings for usbphy, sram, rstmgr, memory, partitions
- Updated "stmmaceth-ocp" reset-names to "ahb" for stmmac ethernet
- Add initial support for Agilex5

* tag 'socfpga_dts_updates_for_v6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/dinguyen/linux:
  arm64: dts: agilex5: add initial support for Intel Agilex5 SoCFPGA
  dt-bindings: clock: add Intel Agilex5 clock manager
  dt-bindings: reset: add reset IDs for Agilex5
  dt-bindings: intel: Add Intel Agilex5 compatible
  arm64: dts: socfpga: change the reset-name of "stmmaceth-ocp" to "ahb"
  arm64: dts: socfpga: n5x/stratix10: fix dtbs_check warning for partitions
  arm64: dts: agilex/stratix10: Updated QSPI Flash layout for UBIFS
  arm64: dts: agilex/stratix10/n5x: fix dtbs_check for rstmgr
  arm64: dts: stratix10/agilex/n5x: fix dtbs_check warning for memory node
  arm64: dts: socfpga: stratix10: fix dtbs_check warning for usbphy
  arm64: dts: socfpga: agilex/stratix10: fix dtbs_check warnings for sram

Link: https://lore.kernel.org/r/20230819161418.931258-1-dinguyen@kernel.orgSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents ecd2dc2f 2d599bc4
......@@ -21,6 +21,11 @@ properties:
- intel,socfpga-agilex-n6000
- intel,socfpga-agilex-socdk
- const: intel,socfpga-agilex
- description: Agilex5 boards
items:
- enum:
- intel,socfpga-agilex5-socdk
- const: intel,socfpga-agilex5
additionalProperties: true
......
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/clock/intel,agilex5-clkmgr.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Intel SoCFPGA Agilex5 clock manager
maintainers:
- Dinh Nguyen <dinguyen@kernel.org>
description:
The Intel Agilex5 Clock Manager is an integrated clock controller, which
generates and supplies clock to all the modules.
properties:
compatible:
const: intel,agilex5-clkmgr
reg:
maxItems: 1
'#clock-cells':
const: 1
required:
- compatible
- reg
- '#clock-cells'
additionalProperties: false
examples:
- |
clkmgr: clock-controller@10d10000 {
compatible = "intel,agilex5-clkmgr";
reg = <0x10d10000 0x1000>;
#clock-cells = <1>;
};
...
......@@ -440,7 +440,7 @@ gmac0: ethernet@ff800000 {
clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
clock-names = "stmmaceth", "ptp_ref";
resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
reset-names = "stmmaceth", "stmmaceth-ocp";
reset-names = "stmmaceth", "ahb";
snps,axi-config = <&socfpga_axi_setup>;
status = "disabled";
};
......@@ -460,7 +460,7 @@ gmac1: ethernet@ff802000 {
clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
clock-names = "stmmaceth", "ptp_ref";
resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
reset-names = "stmmaceth", "stmmaceth-ocp";
reset-names = "stmmaceth", "ahb";
snps,axi-config = <&socfpga_axi_setup>;
status = "disabled";
};
......@@ -480,7 +480,7 @@ gmac2: ethernet@ff804000 {
clocks = <&l4_mp_clk>, <&peri_emac_ptp_clk>;
clock-names = "stmmaceth", "ptp_ref";
resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
reset-names = "stmmaceth", "stmmaceth-ocp";
reset-names = "stmmaceth", "ahb";
snps,axi-config = <&socfpga_axi_setup>;
status = "disabled";
};
......
......@@ -153,7 +153,7 @@ gmac0: ethernet@ff800000 {
interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00];
resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
reset-names = "stmmaceth", "stmmaceth-ocp";
reset-names = "stmmaceth", "ahb";
clocks = <&clkmgr STRATIX10_EMAC0_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
clock-names = "stmmaceth", "ptp_ref";
tx-fifo-depth = <16384>;
......@@ -171,7 +171,7 @@ gmac1: ethernet@ff802000 {
interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00];
resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
reset-names = "stmmaceth", "stmmaceth-ocp";
reset-names = "stmmaceth", "ahb";
clocks = <&clkmgr STRATIX10_EMAC1_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
clock-names = "stmmaceth", "ptp_ref";
tx-fifo-depth = <16384>;
......@@ -189,7 +189,7 @@ gmac2: ethernet@ff804000 {
interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00];
resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
reset-names = "stmmaceth", "stmmaceth-ocp";
reset-names = "stmmaceth", "ahb";
clocks = <&clkmgr STRATIX10_EMAC2_CLK>, <&clkmgr STRATIX10_EMAC_PTP_CLK>;
clock-names = "stmmaceth", "ptp_ref";
tx-fifo-depth = <16384>;
......@@ -331,6 +331,9 @@ nand: nand-controller@ffb90000 {
ocram: sram@ffe00000 {
compatible = "mmio-sram";
reg = <0xffe00000 0x100000>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0xffe00000 0x100000>;
};
pdma: dma-controller@ffda0000 {
......@@ -484,12 +487,6 @@ uart1: serial@ffc02100 {
status = "disabled";
};
usbphy0: usbphy@0 {
#phy-cells = <0>;
compatible = "usb-nop-xceiv";
status = "okay";
};
usb0: usb@ffb00000 {
compatible = "snps,dwc2";
reg = <0xffb00000 0x40000>;
......@@ -636,4 +633,9 @@ fpga_mgr: fpga-mgr {
};
};
};
usbphy0: usbphy0 {
compatible = "usb-nop-xceiv";
#phy-cells = <0>;
};
};
......@@ -38,10 +38,10 @@ led-hps2 {
};
};
memory {
memory@80000000 {
device_type = "memory";
/* We expect the bootloader to fill in the reg */
reg = <0 0 0 0>;
reg = <0 0x80000000 0 0>;
};
ref_033v: regulator-v-ref {
......@@ -202,12 +202,12 @@ partitions {
qspi_boot: partition@0 {
label = "Boot and fpga data";
reg = <0x0 0x03FE0000>;
reg = <0x0 0x04200000>;
};
qspi_rootfs: partition@3FE0000 {
label = "Root Filesystem - JFFS2";
reg = <0x03FE0000 0x0C020000>;
root: partition@4200000 {
label = "Root Filesystem - UBIFS";
reg = <0x04200000 0x0BE00000>;
};
};
};
......
......@@ -38,10 +38,10 @@ led-hps2 {
};
};
memory {
memory@80000000 {
device_type = "memory";
/* We expect the bootloader to fill in the reg */
reg = <0 0 0 0>;
reg = <0 0x80000000 0 0>;
};
ref_033v: regulator-v-ref {
......@@ -103,9 +103,9 @@ &nand {
status = "okay";
flash@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
reg = <0>;
nand-bus-width = <16>;
partition@0 {
......@@ -194,7 +194,7 @@ qspi_boot: partition@0 {
reg = <0x0 0x03FE0000>;
};
qspi_rootfs: partition@3FE0000 {
qspi_rootfs: partition@3fe0000 {
label = "Root Filesystem - JFFS2";
reg = <0x03FE0000 0x0C020000>;
};
......
......@@ -29,7 +29,7 @@ chosen {
linux,initrd-end = <0x125c8324>;
};
memory {
memory@80000000 {
device_type = "memory";
reg = <0x0 0x0 0x0 0x80000000>;
};
......
......@@ -2,5 +2,6 @@
dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga_agilex_n6000.dtb \
socfpga_agilex_socdk.dtb \
socfpga_agilex_socdk_nand.dtb \
socfpga_agilex5_socdk.dtb \
socfpga_n5x_socdk.dtb
dtb-$(CONFIG_ARCH_KEEMBAY) += keembay-evm.dtb
......@@ -158,7 +158,7 @@ gmac0: ethernet@ff800000 {
interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00];
resets = <&rst EMAC0_RESET>, <&rst EMAC0_OCP_RESET>;
reset-names = "stmmaceth", "stmmaceth-ocp";
reset-names = "stmmaceth", "ahb";
tx-fifo-depth = <16384>;
rx-fifo-depth = <16384>;
snps,multicast-filter-bins = <256>;
......@@ -176,7 +176,7 @@ gmac1: ethernet@ff802000 {
interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00];
resets = <&rst EMAC1_RESET>, <&rst EMAC1_OCP_RESET>;
reset-names = "stmmaceth", "stmmaceth-ocp";
reset-names = "stmmaceth", "ahb";
tx-fifo-depth = <16384>;
rx-fifo-depth = <16384>;
snps,multicast-filter-bins = <256>;
......@@ -194,7 +194,7 @@ gmac2: ethernet@ff804000 {
interrupt-names = "macirq";
mac-address = [00 00 00 00 00 00];
resets = <&rst EMAC2_RESET>, <&rst EMAC2_OCP_RESET>;
reset-names = "stmmaceth", "stmmaceth-ocp";
reset-names = "stmmaceth", "ahb";
tx-fifo-depth = <16384>;
rx-fifo-depth = <16384>;
snps,multicast-filter-bins = <256>;
......@@ -336,6 +336,9 @@ nand: nand-controller@ffb90000 {
ocram: sram@ffe00000 {
compatible = "mmio-sram";
reg = <0xffe00000 0x40000>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0xffe00000 0x40000>;
};
pdma: dma-controller@ffda0000 {
......@@ -373,9 +376,9 @@ pinctrl1: pinconf@ffd13100 {
};
rst: rstmgr@ffd11000 {
#reset-cells = <1>;
compatible = "altr,stratix10-rst-mgr";
compatible = "altr,stratix10-rst-mgr", "altr,rst-mgr";
reg = <0xffd11000 0x100>;
#reset-cells = <1>;
};
smmu: iommu@fa000000 {
......
This diff is collapsed.
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2023, Intel Corporation
*/
#include "socfpga_agilex5.dtsi"
/ {
model = "SoCFPGA Agilex5 SoCDK";
compatible = "intel,socfpga-agilex5-socdk", "intel,socfpga-agilex5";
aliases {
serial0 = &uart0;
};
chosen {
stdout-path = "serial0:115200n8";
};
};
&gpio1 {
status = "okay";
};
&osc1 {
clock-frequency = <25000000>;
};
&uart0 {
status = "okay";
};
&usb0 {
status = "okay";
disable-over-current;
};
&watchdog0 {
status = "okay";
};
......@@ -20,10 +20,10 @@ chosen {
stdout-path = "serial0:115200n8";
};
memory@0 {
memory@80000000 {
device_type = "memory";
/* We expect the bootloader to fill in the reg */
reg = <0 0 0 0>;
reg = <0 0x80000000 0 0>;
};
soc {
......
......@@ -37,10 +37,10 @@ led2 {
};
};
memory {
memory@80000000 {
device_type = "memory";
/* We expect the bootloader to fill in the reg */
reg = <0 0 0 0>;
reg = <0 0x80000000 0 0>;
};
};
......@@ -128,12 +128,12 @@ partitions {
qspi_boot: partition@0 {
label = "Boot and fpga data";
reg = <0x0 0x03FE0000>;
reg = <0x0 0x04200000>;
};
qspi_rootfs: partition@3FE0000 {
label = "Root Filesystem - JFFS2";
reg = <0x03FE0000 0x0C020000>;
root: partition@4200000 {
label = "Root Filesystem - UBIFS";
reg = <0x04200000 0x0BE00000>;
};
};
};
......
......@@ -37,10 +37,10 @@ led2 {
};
};
memory {
memory@80000000 {
device_type = "memory";
/* We expect the bootloader to fill in the reg */
reg = <0 0 0 0>;
reg = <0 0x80000000 0 0>;
};
};
......
......@@ -19,10 +19,10 @@ chosen {
stdout-path = "serial0:115200n8";
};
memory {
memory@80000000 {
device_type = "memory";
/* We expect the bootloader to fill in the reg */
reg = <0 0 0 0>;
reg = <0 0x80000000 0 0>;
};
soc {
......@@ -109,7 +109,7 @@ qspi_boot: partition@0 {
reg = <0x0 0x03FE0000>;
};
qspi_rootfs: partition@3FE0000 {
qspi_rootfs: partition@3fe0000 {
label = "Root Filesystem - JFFS2";
reg = <0x03FE0000 0x0C020000>;
};
......
/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
/*
* Copyright (C) 2023, Intel Corporation
*/
#ifndef __DT_BINDINGS_INTEL_AGILEX5_CLKMGR_H
#define __DT_BINDINGS_INTEL_AGILEX5_CLKMGR_H
/* fixed rate clocks */
#define AGILEX5_OSC1 0
#define AGILEX5_CB_INTOSC_HS_DIV2_CLK 1
#define AGILEX5_CB_INTOSC_LS_CLK 2
#define AGILEX5_F2S_FREE_CLK 3
/* PLL clocks */
#define AGILEX5_MAIN_PLL_CLK 4
#define AGILEX5_MAIN_PLL_C0_CLK 5
#define AGILEX5_MAIN_PLL_C1_CLK 6
#define AGILEX5_MAIN_PLL_C2_CLK 7
#define AGILEX5_MAIN_PLL_C3_CLK 8
#define AGILEX5_PERIPH_PLL_CLK 9
#define AGILEX5_PERIPH_PLL_C0_CLK 10
#define AGILEX5_PERIPH_PLL_C1_CLK 11
#define AGILEX5_PERIPH_PLL_C2_CLK 12
#define AGILEX5_PERIPH_PLL_C3_CLK 13
#define AGILEX5_CORE0_FREE_CLK 14
#define AGILEX5_CORE1_FREE_CLK 15
#define AGILEX5_CORE2_FREE_CLK 16
#define AGILEX5_CORE3_FREE_CLK 17
#define AGILEX5_DSU_FREE_CLK 18
#define AGILEX5_BOOT_CLK 19
/* fixed factor clocks */
#define AGILEX5_L3_MAIN_FREE_CLK 20
#define AGILEX5_NOC_FREE_CLK 21
#define AGILEX5_S2F_USR0_CLK 22
#define AGILEX5_NOC_CLK 23
#define AGILEX5_EMAC_A_FREE_CLK 24
#define AGILEX5_EMAC_B_FREE_CLK 25
#define AGILEX5_EMAC_PTP_FREE_CLK 26
#define AGILEX5_GPIO_DB_FREE_CLK 27
#define AGILEX5_S2F_USER0_FREE_CLK 28
#define AGILEX5_S2F_USER1_FREE_CLK 29
#define AGILEX5_PSI_REF_FREE_CLK 30
#define AGILEX5_USB31_FREE_CLK 31
/* Gate clocks */
#define AGILEX5_CORE0_CLK 32
#define AGILEX5_CORE1_CLK 33
#define AGILEX5_CORE2_CLK 34
#define AGILEX5_CORE3_CLK 35
#define AGILEX5_MPU_CLK 36
#define AGILEX5_MPU_PERIPH_CLK 37
#define AGILEX5_MPU_CCU_CLK 38
#define AGILEX5_L4_MAIN_CLK 39
#define AGILEX5_L4_MP_CLK 40
#define AGILEX5_L4_SYS_FREE_CLK 41
#define AGILEX5_L4_SP_CLK 42
#define AGILEX5_CS_AT_CLK 43
#define AGILEX5_CS_TRACE_CLK 44
#define AGILEX5_CS_PDBG_CLK 45
#define AGILEX5_EMAC1_CLK 47
#define AGILEX5_EMAC2_CLK 48
#define AGILEX5_EMAC_PTP_CLK 49
#define AGILEX5_GPIO_DB_CLK 50
#define AGILEX5_S2F_USER0_CLK 51
#define AGILEX5_S2F_USER1_CLK 52
#define AGILEX5_PSI_REF_CLK 53
#define AGILEX5_USB31_SUSPEND_CLK 54
#define AGILEX5_EMAC0_CLK 46
#define AGILEX5_USB31_BUS_CLK_EARLY 55
#define AGILEX5_USB2OTG_HCLK 56
#define AGILEX5_SPIM_0_CLK 57
#define AGILEX5_SPIM_1_CLK 58
#define AGILEX5_SPIS_0_CLK 59
#define AGILEX5_SPIS_1_CLK 60
#define AGILEX5_DMA_CORE_CLK 61
#define AGILEX5_DMA_HS_CLK 62
#define AGILEX5_I3C_0_CORE_CLK 63
#define AGILEX5_I3C_1_CORE_CLK 64
#define AGILEX5_I2C_0_PCLK 65
#define AGILEX5_I2C_1_PCLK 66
#define AGILEX5_I2C_EMAC0_PCLK 67
#define AGILEX5_I2C_EMAC1_PCLK 68
#define AGILEX5_I2C_EMAC2_PCLK 69
#define AGILEX5_UART_0_PCLK 70
#define AGILEX5_UART_1_PCLK 71
#define AGILEX5_SPTIMER_0_PCLK 72
#define AGILEX5_SPTIMER_1_PCLK 73
#define AGILEX5_DFI_CLK 74
#define AGILEX5_NAND_NF_CLK 75
#define AGILEX5_NAND_BCH_CLK 76
#define AGILEX5_SDMMC_SDPHY_REG_CLK 77
#define AGILEX5_SDMCLK 78
#define AGILEX5_SOFTPHY_REG_PCLK 79
#define AGILEX5_SOFTPHY_PHY_CLK 80
#define AGILEX5_SOFTPHY_CTRL_CLK 81
#define AGILEX5_NUM_CLKS 82
#endif /* __DT_BINDINGS_INTEL_AGILEX5_CLKMGR_H */
......@@ -63,12 +63,15 @@
#define I2C2_RESET 74
#define I2C3_RESET 75
#define I2C4_RESET 76
/* 77-79 is empty */
#define I3C0_RESET 77
#define I3C1_RESET 78
/* 79 is empty */
#define UART0_RESET 80
#define UART1_RESET 81
/* 82-87 is empty */
#define GPIO0_RESET 88
#define GPIO1_RESET 89
#define WATCHDOG4_RESET 90
/* BRGMODRST */
#define SOC2FPGA_RESET 96
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment