Commit graph

36797 commits

Author SHA1 Message Date
Linux Build Service Account
d9e69aa54b Merge "drivers: net: ipq9574: Add SKU Validation" 2021-08-31 05:08:57 -07:00
Linux Build Service Account
d5b9ba2048 Merge "arm: dts: ipq9574: Update switch_mac_mode property" 2021-08-27 04:38:17 -07:00
Selvam Sathappan Periakaruppan
01c2d98698 drivers: net: ipq9574: Add SKU Validation
Change-Id: I0993e36938eeb79ac1e810249e273c06ed5dce54
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-26 07:59:25 -07:00
Selvam Sathappan Periakaruppan
52018d860f arm: dts: ipq9574: Enable SFP instead of QCA808x in DB-AL02-c3
Change-Id: Ide9a4bbcf11910c62195269ce83ac00a25d84540
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-26 07:58:55 -07:00
Selvam Sathappan Periakaruppan
e54f2fc13d arm: dts: ipq9574: Enable AQ instead of QCA808x in DB-AL01-c3
Change-Id: I70c9486f80b2e2c4c9e097eeea2c98886612d7e6
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-26 07:58:40 -07:00
Selvam Sathappan Periakaruppan
56525cc2a7 drivers: net: ipq9574: Add Support for SFP
Change-Id: I8cd09a85c03405de0c7e4b5d5ed3f5fc7fee8147
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-26 07:56:32 -07:00
Selvam Sathappan Periakaruppan
05b77e3907 ipq9574: Remove IMEM Clock config
IMEM is not needed in U-Boot. This patch removes the
IMEM Clock config.

Change-Id: I76c20b4d1fb83be958ff98edd9935aa234e6a67a
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-25 10:31:31 -07:00
Vandhiadevan Karunamoorthy
17f88020e4 Revert "dts: arm: ipq9574: disable pcie"
This reverts commit 2dfd9be9a9.
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>

Change-Id: I7e565e51859f026def1616ff906d40876c805eb4
2021-08-25 10:31:49 +05:30
Vandhiadevan Karunamoorthy
af18e13699 ipq9575: add SKU support
This change check fuse before initialize pci.

Change-Id: I2c5b17ff0c446aad7633ec35468983b5e1c85fa0
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-24 21:53:39 -07:00
Selvam Sathappan Periakaruppan
41ad17daf4 arm: dts: ipq9574: Update switch_mac_mode property
In ipq9574, switch_mac_mode0 is used for Uniphy0 and
this patch updates the same for db-al02 RDP.

Change-Id: I23080d70f9462bf857e083d6f54a97e8ce20d341
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-23 20:33:46 -07:00
Linux Build Service Account
92b6cab88b Merge "dts: arm: update DB-AL02 rdp." 2021-08-23 13:38:38 -07:00
Linux Build Service Account
2d2f73e977 Merge "arm: dts: ipq9574: Remove model and compat from DT" 2021-08-23 07:38:55 -07:00
Vandhiadevan Karunamoorthy
24ddd68fca dts: arm: update DB-AL02 rdp.
This changes add console, flash and peripherals

Change-Id: I180e0f1131fb936a7f9cc1a1262fdef6d5dca0ff
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-23 16:39:10 +05:30
Selvam Sathappan Periakaruppan
2930d2f051 arm: dts: ipq9574: Add DB Board c3 variants support
In c3 config, we will be making the following changes:

DB-AL01-c3:
Removing 1x2.5G port & adding 1x10G in USXGMII1 with rework

DB-AL02-c3:
Removing 1x2.5G port & adding 1xSFP+ in USXGMII0 with Rework

Note that other features are same as c1 in c3 config and
Ethernet port changes will be done on top of this.

Change-Id: I4ccfcf196e923a815deea377879cdc3e782d4673
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-23 01:11:56 -07:00
Selvam Sathappan Periakaruppan
d0d22e82c8 arm: dts: ipq9574: Remove model and compat from DT
These properties are not used in UBoot and this patch
removes the same.

Change-Id: I949f207d5b772755e6ab818270cd6c401e8e8f8a
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-23 01:08:32 -07:00
Linux Build Service Account
c6abc21619 Merge "arm: dts: ipq9574: Add Ethernet support for DB-AL02 variants" 2021-08-22 22:09:52 -07:00
Linux Build Service Account
7d72e805ac Merge "ipq9574: usb: 24 Mhz reference clock update" 2021-08-21 11:06:44 -07:00
Linux Build Service Account
4db2583af7 Merge "ipq9574: Fix PCIE PCS COM offset" 2021-08-20 21:06:54 -07:00
Praveenkumar I
af10e1fa4d ipq9574: usb: 24 Mhz reference clock update
Updated mock_utmi_clk to 24 MHz and use appropriate clock period.

Change-Id: I080d1d7e544b97d1911dfdc597f44fcb37a7d906
Signed-off-by: Praveenkumar I <ipkumar@codeaurora.org>
2021-08-20 10:41:43 -07:00
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
Vandhiadevan Karunamoorthy
0488bd0d1f ipq9574: add dload_warm_reset support
This features skip crashdump path if its set
and disable sdi path

Change-Id: I9e51efc5940920e06671de231ed09f66e2cf4646
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-20 04:40:53 -07:00
Linux Build Service Account
fbc3614174 Merge "ipq9574: Add compressed dtb support" 2021-08-19 16:09:26 -07:00
Vandhiadevan Karunamoorthy
24a501d710 ipq9574: Add compressed dtb support
This change enable compressed dtb support for memory
optimization.

Change-Id: I692b4cbfe339910c9bb67da6bb442ba01b3a177e
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-19 09:38:22 -07:00
Praveenkumar I
4730d3fa31 ipq9574: Fix PCIE PCS COM offset
Change-Id: Ifd0416940231b8923324aa0de1567a8cee5016f3
Signed-off-by: Praveenkumar I <ipkumar@codeaurora.org>
2021-08-19 16:41:29 +05:30
Selvam Sathappan Periakaruppan
00277b03ad drivers: net: ipq9574: uniphy clock init update
Uniphy clk init and deinit creates additional delay in UBoot.
Falling back to Uniphy clk init during boot up and not doing
de-init during speed changes.

Change-Id: I10fb86e4b616f46c2a0c3066308e7c6a6325cf44
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-19 03:34:03 -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
Selvam Sathappan Periakaruppan
3a941f607e drivers: net: ipq9574: Add uniphy_clk_init for uxsgmii
Change-Id: I468850b5fb7ae43ea3c2e3288172311b71ba9826
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-18 10:14:46 -07:00
Selvam Sathappan Periakaruppan
de094207d3 drivers: net: ipq9574: Move net functions inside EDMA config
Change-Id: I24e60a3726d01abcd27136f4c126652771a198ca
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-18 10:14:18 -07:00
Linux Build Service Account
d4ac2d38d5 Merge "Merge remote-tracking branch origin/win.coretech.1.0 into HEAD" 2021-08-18 04:40:05 -07:00
Linux Build Service Account
929ee5398b Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: I02e357adcfe906716a752ecd99b3cf0fecb7e62f
2021-08-17 12:44:22 +05:30
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
Linux Build Service Account
30c94d9ef4 Merge "common: ubi: fix ubi_initialized flag handling" 2021-08-13 11:40:15 -07:00
Vandhiadevan Karunamoorthy
89f08320cb common: ubi: fix ubi_initialized flag handling
This patch clears the ubi_initialized flag after doing ubi_exit since
there can be chance to ubi_int failure, but still ubi_initialized flag
will be set. This will result in doing ubi_exit again and uboot crash.

This patch also doing put_mtd_device after deleting mtd partition to
make the ref count to zero.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I5a875ec82266db6b09045602b5d1b3fe47d4bd58
2021-08-12 20:56:17 +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
Karthick Shanmugham
590a4b2d9a ipq806x: Disabling usb_init in recovery path for AK alone
This patch skips the usb_init during recovery path for AK platform alone.
No checks for usb_init for all other platforms

Change-Id: I3720f7e159d95bb6656df06ec9aeccfd02f3db01
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
2021-08-11 16:04:35 +05:30
Linux Build Service Account
f085a51baa Merge "drivers: net: ipq9574: Add separate QCA8075 phy driver" 2021-08-10 08:08:12 -07:00
Linux Build Service Account
632f590533 Merge "arm: dts: ipq9574: Fix eth switch nodes" 2021-08-09 13:08:12 -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
Selvam Sathappan Periakaruppan
ba61e78389 drivers: net: ipq9574: Add separate QCA8075 phy driver
Previous platforms assume qca8075 phy address starts from
0. This patch adds a separate qca8075 phy driver for ipq9574
platform and handles cases where qca8075 phy addr doesn't
start with 0.

Change-Id: I59a596d692b1663af638af358335056661bdf199
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-08 04:20:03 -07:00
Selvam Sathappan Periakaruppan
eeeee570e7 ipq9574: Fix eth init during boot up
This patch fixes the array initialization and
also updates the typo in Kconfig file.

Change-Id: I7fb06da17491a156bd4bd13771ce1f2583715dc5
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-08 04:19:58 -07:00
Selvam Sathappan Periakaruppan
29c2f25f72 drivers: net: ipq9574: Clean up drivers
This patch does the following:

1) Removes unused macros and functions
2) Updates EDMA Reset address and assert/de-assert values
3) Updates Port5 and Port6 address in uniphy clock config
4) Reduces delay to 500 us in usxgmii uniphy mode set
5) Disable clearing of mac counters

Change-Id: I7cc9b20bbd4f2367d9f405ae2e5652d6236476a9
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-08 04:19:51 -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
5e86f2cc7e drivers: net: ipq9574: Update edma driver
This patch does the following:

1) Adds support for AQR113C_B0 and AQR113C_B1 AQ PHY versions
which will be used in ipq9574 platform
2) Adds delay of 100 ms after FW download before calling phy
init which is necessary in ipq9574 platform without which the
init doesn't happen properly as expected

Change-Id: I50be933e68598ada5e3d9df71c3e3abcc79c52d2
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-01 04:15:32 -07:00
Selvam Sathappan Periakaruppan
0679e63be7 ipq9574: Clean up eth initialization
This patch does the following:

1) Adds separate function for each init
2) Calls the above individual init functions from eth_init function
which is then called in board_eth_init which is called from the core
network driver stack during boot up.
3) Adds CMN_BLK init which is needed for NSS

Change-Id: I0e5c07bf42f3473b80f524470217879f81c22b1b
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-01 04:15:19 -07:00
Selvam Sathappan Periakaruppan
d01203d912 drivers: net: ipq9574: Update to use ipq9574 macros
This patch updates the macro used for modes and also additionally
increases the delay between uniphy reset as needed for ipq9574
platform

Change-Id: Ide565e071963e17abd4f8f7e5d6270849d729b21
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-01 04:15:06 -07:00
Selvam Sathappan Periakaruppan
e5ba2c1988 drivers: net: ipq9574: Update ppe driver
This patch updates the following:
1) Updates per port port mac reset
2) Updates XGMAC based on port instead of based on Uniphy as needed
for ipq9574 platform
3) uniphy_port5_clock_source_set -> If uniphy1 is not used, then
it is assumed that the first uniphy supports 5 Malibu and so accordingly
clock source is set by calling this function in that scenario

Change-Id: I978043cfa277fa02dadee5070b94f7a77ed81a5f
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-01 04:14:32 -07:00
Selvam Sathappan Periakaruppan
2f9a2d758d configs: ipq9574: Move net driver macros inside config
Change-Id: I2e25110e2bdcd31e0b60a228766a82f1433709dd
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-01 04:13:26 -07:00