Commit graph

9010 commits

Author SHA1 Message Date
Selvam Sathappan Periakaruppan
052d08d6c4 arm: dts: ipq9574: Add Ethernet support for DB-AL02 variants
DB-AL02 variants by default has support for 4x1G, 1x2.5G and
1x10G ethernet ports.

Change-Id: Ic3821acce4f743582292dc9655da8d238c3f6709
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-20 06:37:32 -07:00
Selvam Sathappan Periakaruppan
080c81b9f0 arm: dts: ipq9574: Add ipq9574 DB-AL02 RDPs Support
The main features of DB-AL02-C1 are as below:

Flash: SPI NOR, QSPI NAND
RAM: DDR4
PCIe: M.2 SSD
Ethernet: 1x10G, 1x2.5G, 5x1G
USB: 1xUSB3
PMIC: I2C based MPS

Only change in DB-AL02-C2 is that it can support:

Flash: eMMC with rework
Other features are same as DB-AL02-C1

Change-Id: Ia52dffb1ecd832d89bbe183bd8d32bf2d0351d90
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-20 06:37:24 -07:00
Selvam Sathappan Periakaruppan
73dec84a77 arm: dts: ipq9574: Fix aq port id in db-al01
Change-Id: I5347fdfba7a3c85bbea289ba2406d5c340b613dd
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-19 03:33:22 -07:00
Vandhiadevan Karunamoorthy
2dfd9be9a9 dts: arm: ipq9574: disable pcie
This changes temporarily disable pcie

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I36b2f1563e6c4de928f5f4e5cd84afec94488221
2021-08-17 11:56:01 +05:30
Selvam Sathappan Periakaruppan
4f92f7e93e drivers: net: ipq9574: Update Eth configurations
This patch updates the following:

1) Removes unnecessary TIMER and THRESHOLD configurations in EDMA
2) Adds Uniphy Clock deinit and init in eth_init (during each ping
& speed change)
3) Removes preheader configurations and calculations from EDMA
as there are no preheaders in ipq9574 platform (Instead there is
a secondary descriptor)
4) Add sufficient delay after uniphy reset
5) Remove CONFIG_IPQ9574_RUMI macro from network drivers
6) Change default mac_speed to 0
7) Fix the ppe sched. and tdm configuration
8) Reduce the block size to 1280 + headers for tftp (around 1326)
for timebeing without which timeouts were observed randomly during
TFTP (Note that the MTU is 1514 bytes)

Change-Id: I4004adfb2ae0dc98d65e458c15dafcff6523744b
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-11 10:28:21 -07:00
Selvam Sathappan Periakaruppan
ba44370834 arm: dts: ipq9574: Fix eth switch nodes
By default DB-AL01 supports 4 Malibu, 1 AQ and 1 Napa.
This patch updates the nodes accordingly to support this
default configuration.

Change-Id: I4fbf97ed65e1f38d0bb50a5e82746bf2d807fa66
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-09 07:44:33 -07:00
Vandhiadevan Karunamoorthy
ec99e068ec ipq9574: remove eMMC from AL01 rdp
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I8e1b9a06822cd60b216c7ca7c058d6034246fd0e
2021-08-03 20:18:14 +05:30
Vandhiadevan Karunamoorthy
e60f13cc9e ipq9574: add uart2
This changes enable multi-uart support.

Change-Id: Ice7892c70f891a278a17314ddd520f907b320689
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-03 20:07:15 +05:30
Vandhiadevan Karunamoorthy
d3cb5ab1d5 ipq9574: add I2C support
This change also remove emulation dts since
build issue due to i2c duplicate

Change-Id: I28e0ffa1dd275c6ba416ded91756589ffe886631
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-01 11:00:39 -07:00
Selvam Sathappan Periakaruppan
51ca57fd04 arm: dts: ipq9574: Fix AQ Phy Address and GPIO
Change-Id: Id0044be3fa723925bcb440edd8d168bd5c718490
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-01 04:10:08 -07:00
Vandhiadevan Karunamoorthy
5caa1160dd ipq9574: update eMMC gpio configuration
Change-Id: I6369d607746e095bb971b348b671aa5c1ba7de7b
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-07-29 03:12:05 -07:00
Selvam Sathappan Periakaruppan
31ddb16d89 drivers: net: ipq9574: Fix ethernet for RDPs
This patch updates the following:
1) Removes unused/duplicate macro: NSS_CC_PORT1_RX_CBCR_ADDR
2) Remove CMN_BLK_INIT
3) Update MAX Ports to 6
4) Rename switch_mac_mode to switch_mac_mode0 in DTS and driver
5) Fix SYSNOC frequency configuration
6) Tx/Rx descs is initialized to 0 before use which is
needed because Alder DDR is not init to 0 by default.

Change-Id: Ide22e146f9c8ecb75585d0a8d04e426c463ad8c9
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-26 09:22:04 -07:00
Linux Build Service Account
fd0f1408d8 Merge "ipq9574: USB clock update" 2021-07-20 09:11:49 -07:00
Linux Build Service Account
5767a0aadb Merge "ipq9574: pcie clock update" 2021-07-20 09:11:48 -07:00
Vandhiadevan Karunamoorthy
5d7818d7fe ipq9574: USB clock update
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I5193a74629fd49c297820f88fb49ad062b5e0603
2021-07-20 06:21:05 -07:00
Vandhiadevan Karunamoorthy
747f419dc2 ipq9574: pcie clock update
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib96358966168be1c4180d0fb8a3be3a3c1d65b57
2021-07-20 18:34:47 +05:30
Vandhiadevan Karunamoorthy
41c18006f5 dts: arm: ipq9574: update uart configuration
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I716903def19d7113879166ef64a15bd7bb3a636b
2021-07-20 00:31:36 +05:30
Linux Build Service Account
d9dcf0eb51 Merge "ipq9574: Update QCA PHY name" 2021-07-19 08:49:48 -07:00
Linux Build Service Account
1c222e2210 Merge "arm: dts: ipq9574: Handle multiple AQ Port Support" 2021-07-19 08:49:48 -07:00
Linux Build Service Account
4a86814c28 Merge "arm: dts: ipq9574: Remove redundant ethernet configuration" 2021-07-19 08:49:47 -07:00
Selvam Sathappan Periakaruppan
5fa59be07c ipq9574: Update QCA PHY name
This patch updates the QCA PHY names and its references
accordingly.

Change-Id: I5d301fcecc49793387a50487bf2e713a5a9288e8
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 15:46:15 +05:30
Selvam Sathappan Periakaruppan
e15ff0bab1 arm: dts: ipq9574: Handle multiple AQ Port Support
This patch adds a boolean in DT, so that configurations
can be done accordingly in network driver in case the
RDP supports 2 AQ Ports.

Change-Id: I6eb070ad0d281e3bac0b111f0659e67168296456
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 15:43:32 +05:30
Selvam Sathappan Periakaruppan
5c3bfd870c arm: dts: ipq9574: Remove redundant ethernet configuration
The ethernet node is already included from the file
ipq9574-db-al01-c1.dts. Remove redundant ethernet node
config from this c2 file.

Change-Id: I1046f04c67c1a67c614708cd6575dd436154ad83
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 15:32:06 +05:30
Vandhiadevan Karunamoorthy
462b54aa11 ipq9574: add pci phy configuration
This changes add pci 2 lane support in pci driver

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia4235c277e91d68366f6ae8aa16d8505a2ca5b05
2021-07-19 13:59:37 +05:30
Vandhiadevan Karunamoorthy
3026f77ee3 dts: arm: ipq9574: Update SPI gpio details
This changes remove spi gpio details from soc dts
to avoid conflict with emulation configuration

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I3e949c6e3b03754dac9d0803d3ec32bb630a12b8
2021-07-18 23:46:21 +05:30
Vandhiadevan Karunamoorthy
8f185f4138 dts: arm: ipq9574: update the rdp dts
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I221877b04ff53df564200aee6d60ef426a7c17fa
2021-07-16 16:33:25 +05:30
Vandhiadevan Karunamoorthy
4f5ec191c8 ipq9574: update peripheral clk
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I12f9bf2adecd6630cfbc36f57860efdff0f0e51e
2021-07-16 16:23:45 +05:30
Linux Build Service Account
ac5b7ca764 Merge "ipq9574: Inialialize ethernet ports during boot up" 2021-07-15 08:10:52 -07:00
Selvam Sathappan Periakaruppan
e488fe5224 ipq9574: Inialialize ethernet ports during boot up
This patch sets the function select as mdc_mdio and also
adds AQUANTIA, QCA80xx PHY ASSERT and DE-ASSERT support.

Change-Id: Ib606b51342df4e80d705271cc661f6fbe1664ed0
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org
2021-07-15 17:26:20 +05:30
Selvam Sathappan Periakaruppan
0c02241ac5 arm: dts: ipq9574: Add Ethernet support for DB-AL01 variants
DB-AL01 variants have 5x1G, 1x10G and 1x2.5G ethernet ports.

Change-Id: Ided2569d9a24e153fc293220300d514a6b685ee1
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-11 21:03:53 +05:30
Selvam Sathappan Periakaruppan
5aafab71dc arm: dts: ipq9574: Add Ethernet support for AL01
AL01 has 5x1G and 1x10G ethernet ports.

Change-Id: I79408b3a8fcea90a31e008e167df4e5fb005229d
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-11 20:41:47 +05:30
Selvam Sathappan Periakaruppan
19f21020c6 arm: dts: ipq9574: Add Ethernet support for AL02 variants
AL02 variants have 4x1G ports and 2x10G ethernet ports.

Change-Id: Iea96bd32cc008ea5f7bb62fd1867b5e8244bb780
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-11 20:40:14 +05:30
Linux Build Service Account
15b31bce66 Merge "Merge remote-tracking branch origin/win.coretech.1.0 into HEAD" 2021-07-08 07:41:06 -07:00
Sanchana Balu
8bf35dc3a9 Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: Idb6d9698a8842341b88e611afc7dee10d219e491
2021-07-06 16:22:57 +05:30
Selvam Sathappan Periakaruppan
37ef95abf9 arm: dts: ipq9574: Add ipq9574 DB-AL01 RDPs Support
The main features of DB-AL01-C1 are as below:

Flash: SPI NOR(32 MB), QSPI NAND(256 MB)
RAM: DDR3(1 GB)
PCIe: 1x2G, 1x5G, 1x6G, SSD 
Ethernet: 1x10G, 1x2.5G, 5x1G
USB: 1xUSB3
PMIC: I2C based MPS

Only change in DB-AL01-C2 is that it can support:

Flash: eMMC(8 GB) with rework
Other features are same as DB-AL01-C1

Change-Id: Id988f0aa1d3ee9ec203c1682f3dda5f698aca63d
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-05 01:31:41 -07:00
Selvam Sathappan Periakaruppan
29c22d4eb8 arm: dts: ipq9574: Add ipq9574 AL02 RDPs Support
The main features of AL02-C1 are as below:

Flash: SPI NOR(32 MB), QSPI NAND(256 MB)
RAM: DDR4(2 GB)
PCIe: 1x5G, 1x6G
Ethernet: 2x10G, 4x1G
USB: 1xUSB3
PMIC: I2C based MPS

Only change in AL02-C2 is that it can support:

Flash: eMMC(8 GB) with rework
Other features are same as AL01-C1

Change-Id: I1c92c57aab854e7835439fd67fc5c2029256de2e
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-05 01:31:34 -07:00
Selvam Sathappan Periakaruppan
5724d292b3 arm: dts: ipq9574: Add ipq9574 AL01-C1 support
The main features of AL01-C1 RDP are as below:

Flash: SPI NOR(16 MB), QSPI NAND(128 MB)
RAM: DDR3(1 GB)
PCIe: 1x5G, 1x6G
Ethernet: 1x10G, 5x1G
USB: 1xUSB3

Change-Id: Id6ce828dc4ca15c72baca8eb61901e49878e2aa0
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-05 01:31:28 -07:00
Linux Build Service Account
6b3ac18cdb Merge "drivers: mtd: qpic_nand: Fix compilation issue for ipq50xx" 2021-07-03 12:40:50 -07:00
anusha
eb0121616f drivers: mtd: qpic_nand: Fix compilation issue for ipq50xx
Change-Id: I638f0e19a2934f92f00567e9ed2417fb8a3ce35c
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-07-01 14:24:24 +05:30
Rajkumar Ayyasamy
081123e558 qpic_nand: fix bam data FIFO size
Updated the data FIFO size to work with 4K page as well.

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: I5d94e50755b0934d1dd6c9c0d2c6759a782f52d5
2021-06-30 22:29:28 -07:00
anusha
eed8fc7b0d Merge remote-tracking branch 'origin/win.coretech.1.0' into HEAD
Change-Id: I2893089a3b0ca91ea22d49417934f126398a6a58
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-06-30 13:11:44 +05:30
Prasanna Kumar Thoorvas Samyrao Muralidharan
c01f9cccc4 arm: ipq5018: Add clock line for NAND in DB.MP03.3
Change-Id: Iec5dcf6f14ab9a1542e18e9a028290b91f3f809d
Signed-off-by: Prasanna Kumar Thoorvas Samyrao Muralidharan <ptsm@codeaurora.org>
2021-06-09 05:35:22 -07:00
Linux Build Service Account
6953108ceb Merge "ipq6018: Add support for AP-CP01-C5" 2021-05-27 12:43:39 -07:00
Linux Build Service Account
2ec29c1ab4 Merge "ipq50xx: update gephy debug register RW" 2021-05-26 00:40:40 -07:00
Linux Build Service Account
97612534d7 Merge "dts: sirocco: Add base dts file" 2021-05-24 03:46:18 -07:00
Vandhiadevan Karunamoorthy
b3de3b7abf ipq50xx: update gephy debug register RW
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Id179a343a93b465941630ba6613930c29d5ffcdd
2021-05-21 15:43:05 +05:30
Singh, Amandeep
0e82aab856 dts: sirocco: Add base dts file
Change-Id: I4d9e6c83cfe40518f236d324f25240d87382f652
Signed-off-by: Singh, Amandeep <amansing@codeaurora.org>
2021-05-21 10:59:44 +05:30
Mohamed Husain
293234fda0 ipq6018: Add support for AP-CP01-C5
Signed-off-by: Mohamed Husain <mhusain@codeaurora.org>
Change-Id: I097abd309ee3010eef302aababb74b9668d46a0a
2021-05-21 10:52:25 +05:30
Selvam Sathappan Periakaruppan
929b70f32f arm: dts: ipq95xx: Add Ethernet Support
In EMU Platform, there is no PHY/Uniphy, clocks/resets and
by default all MACs will be configured as SGMII mode.

The first 4 ports will have GMAC and PC side link speed
should be set as 10M, RUMI side link speed should
be configured as 1000M and then last 2 ports will have
XGMAC and PC side link speed should be set as 100M and the
RUMI side link speed should be configured as 10G.

Change-Id: I2ffe2bdb9c58eeacb3f765094c2bfb89e81a5c7d
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-05-13 05:36:23 -07:00
Selvam Sathappan Periakaruppan
48298857ba drivers: net: ipq9574: Update EDMA Driver
This patch updates the address of the EDMA registers, removes
registers which are not used and then does the required changes
to accomodate the new EDMA Descriptor format.

This patch also does the required changes to accomodate Secondary
Descriptor which is added instead of preheaders in ipq95xx.

We have also updated the number of descriptors per ring to 128
with this patch and have also moved the configs not required for
EMU Platform to !CONFIG_IPQ9574_RUMI.

Change-Id: I6e98c457d76c66f87b74cc0eafa7088d0081f533
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-05-13 05:36:14 -07:00