Commit graph

9048 commits

Author SHA1 Message Date
Ignatius Michael (Jihan) Jihan
01ed5153e4 ipq5018: Added SPI_NAND support for MP0_2.1 in uboot
1. Modified ipq5018-mp02.1.dts and added NAND alias and description

Change-Id: I6043168712b2b8e54780fe44ca2e00d29f90374a
Signed-off-by: Ignatius Michael (Jihan) Jihan <quic_mignatiu@quicinc.com>
2022-01-21 00:15:12 -08:00
Ignatius Michael (Jihan) Jihan
5753e00585 ipq5018: Add support to read and apply caldata in u-boot
This change will read the 0:ART partition for calibration data and
apply it to the appropriate registers.

Following sequence added for the same.
1. created scm_read call to read the protected register.
2. added function to read data from ART partition of all flash types
3. added function to apply data to the Caldata register.

Change-Id: I4c769be3cdf664e4c59159851cc211fca53c0f27
Signed-off-by: Ignatius Michael (Jihan) Jihan <quic_mignatiu@quicinc.com>
2022-01-12 21:38:44 -08:00
anusha
369ce9f09b ipq: Add support for failsafe boot
Add failsafe boot support to recover from system hang.

Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I49e28a4e88aa16e564065d06f8701dc4f6cb3555
2022-01-03 21:05:45 -08:00
Ram Kumar D
93937d92f3 arm: scm: check error codes as well during secure authentication
Currently, during secure authentication only return values are checked,
error codes are not considered. So, added respective check to verify both
return value and error codes value during secure_authentication scm call.

Change-Id: Ie3e4fbf8651666001bdfacc0705fb2799a306b96
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2021-12-28 16:37:31 +05:30
Selvam Sathappan Periakaruppan
1d2a2dc57a drivers: net: ipq9574: Update EDMA Driver
This patch optimizes and updates the EDMA Driver as
required for ipq9574 platform similar to the Kernel
Host EDMA Driver.

-> Config TX_MOD and RX_MOD timers
-> Config DMAR_CTRL
-> Config Service code bypass for TX_DESC
-> Update the SRCINFO and DST_PORT configs
-> Make changes to include secondary and primary DESC's
into the same corresponding ring structure
-> Increase the TX_BUFF Size to 2048
-> Update to use RX_DESC RING 23
-> Remove unused fields from the EDMA structures
-> Update the description for the EDMA structure fields

Change-Id: I3f7f1c11cdd87687c38774a4930c9bee90857203
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-15 01:11:45 +05:30
Vandhiadevan Karunamoorthy
ee631ab742 ipq9574: Add support for DPR feature
The command dpr_execute <load_address_of_dpr_binary>
is defined for the user to initiate DPR processing.
Uboot will raise scm call to TZ and pass the DPR load address.

Change-Id: Ide4495b49485a4ac6b722f0cb7d423d6a93946ca
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-11-30 22:36:16 -08:00
Linux Build Service Account
bcf5b57166 Merge "ipq: spi: add multiple spi support" 2021-11-22 01:26:28 -08:00
Rajkumar Ayyasamy
cb1e4ebe62 ipq: spi: add multiple spi support
Added read & write bam pipe entires in all the ipq specific dtsi.
Also, updated the spi bam code with generic code changes to enable
the multiple spi support on all ipq chipsets.

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Signed-off-by: Ram Kumar D <ramd@codeaurora.org>
Change-Id: Ibcdb9d2a9ff7a25f3d296ecdb1aca403511e07d7
2021-11-19 12:26:31 +05:30
Linux Build Service Account
30427b829f Merge "arm: dts: ipq9574: Add AL02-C4 RDP support" 2021-11-03 12:06:49 -07:00
Linux Build Service Account
a838762ce1 Merge "serial: qca_uart: Restart UART RX when RX stale timeout occurs" 2021-11-01 10:35:27 -07:00
Praveenkumar I
5d9bbdd388 arm: dts: ipq9574: Add AL02-C4 RDP support
The main differece on AL02-C4 are,
PCIE1: 2G WKK
PCIE2: 6G WKK
PCIE3: 5G WKK

Other features are same as AL02-C1.

Change-Id: Ie13154dacf247c99e15f1da775238012075740ee
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2021-10-29 11:36:10 +05:30
Ram Kumar D
dfb99bda23 serial: qca_uart: Restart UART RX when RX stale timeout occurs
When a long string (>255 char) input given to uboot console, RX
stale timeout occurred on UART subsystem due to RXFULL. This in-turn
cause uboot console to stuck.

So, Added a check to catch this scenario and re-start the UART RX
if it occurred.

Change-Id: Ic80c1d5f1178bf2455385c3888a2023ce1dbf6fa
Signed-off-by: Ram Kumar D <ramd@codeaurora.org>
2021-10-27 14:50:57 +05:30
Praveenkumar I
7202d494bf arm: dts: ipq9574: Add AL02-C3 RDP support
The main differece on AL02-C3 are,

PCIE0: 1x5G
PCIE2: 1x6G
PCIE3: SDX

Other features are same as AL02-C2

Change-Id: If40e554baf16af1654bef3314f017f93d2babfbb
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2021-10-22 18:19:15 +05:30
Linux Build Service Account
5f0dbcd5b1 Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: If781dcc16344e303f237954f3025f8b10d510ff6
2021-10-04 16:38:03 +05:30
Karthick Shanmugham
63c2c3a2c5 ipq: Indicate SDx when host resets
Change-Id: I202725bffe1ecbdf69aeac4d99a6b6a010f6cbce
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
2021-09-26 21:07:49 -07:00
Vandhiadevan Karunamoorthy
f1fc6e4c71 ipq9574: Pass HLOS partition info to TZ
Include SCM call to inform TZ whether HLOS boots from
primary or secondary partition

Change-Id: Ib1fa2b3c12762d1deed5b99f025c83870c142fa6
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-09-20 18:14:23 +05:30
anusha
8063318fa4 ipq9574: Update PCIE AUX clock source
Updated the source from gpll0_out_aux to gpll0_out_main

Change-Id: Iecaefbe03c02286823d1a67ea53b180bfd8d948e
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-09-09 02:13:48 -07:00
Selvam Sathappan Periakaruppan
24709ce492 arm: dts: ipq9574: Remove duplicate i2c config
Only i2c aliases will be populated as needed in respective
RDP DTS. All i2c nodes will be added in common SOC DTS.

Change-Id: I540425c63339f45990231dca84cab6e66af009fb
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-09-04 02:57:17 -07:00
Selvam Sathappan Periakaruppan
4a0081f07e arm: dts: ipq9574: Enable 2 PCIE nodes in AL02
Only 2 PCIE's must be enabled by default in AL02.

Change-Id: I6ef06daca92e83df065bb4ca80d77e79b13834e5
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-09-04 15:23:24 +05:30
Selvam Sathappan Periakaruppan
e549c56389 arm: dts: ipq9574: Fix port_phyinfo node in DB c3
Change-Id: Ic58d4a9399142806263e760fc9e8d07a1a228f50
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-09-04 15:22:06 +05:30
Vandhiadevan Karunamoorthy
50781feff3 ipq9574: Update pci configuration
This change allign pci id with design.
This changes remove the manual id variable and use
alias id number instead.

Change-Id: I7ba481ee6e05b58a8481ccd89c6d40c4b3928e76
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-31 21:22:19 -07:00
Linux Build Service Account
8b02b5f5d3 Merge "dts: arm: ipq9574: add x1 lane pcie in DB Al01 rdp" 2021-08-31 08:07:32 -07:00
Linux Build Service Account
0528204539 Merge "dts: arm: ipq9574: Add BLSP3 I2C support" 2021-08-31 08:07:31 -07:00
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
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
Vandhiadevan Karunamoorthy
e6f00946c7 dts: arm: ipq9574: add x1 lane pcie in DB Al01 rdp
Change-Id: Iefb6b38398704df7ccfc9f90f6d51e84c862d9e2
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-25 10:34:04 +05:30
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
3b56bd8af1 dts: arm: ipq9574: Add BLSP3 I2C support
This changes add BLSP3 I2C and remove BLSP5 I2C.

Change-Id: I532da3733a170e78aaaeb4aba8faf1770cdfa97b
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-24 21:54:55 -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
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
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