Commit graph

9739 commits

Author SHA1 Message Date
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
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
929ee5398b Merge remote-tracking branch origin/win.coretech.1.0 into HEAD
Change-Id: I02e357adcfe906716a752ecd99b3cf0fecb7e62f
2021-08-17 12:44:22 +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
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
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
a6631b0ee5 drivers: net: ipq9574: Update AQ Driver
This patch does the following:

1) Enables AQ Driver Compilation.
2) Updates malloc size to fixed value of 512 KB (size of ETHPHYFW Partition)
which is actually 1024 KB as per QSPI Nand Flash partition (considering the
bad block size also). While reading bad blocks will be skipped, and the
firmware size is not expected to exceed 512 KB and hence this size is updated.
Also note, the heap size is currently 1 MB and so if we try do malloc for 1 MB,
we might get failures during allocation.
3) Adds QSPI NAND Flash Support.

Change-Id: I5a6e19b1462b648523ce6b311128a447e34241b4
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-08-01 04:12:54 -07:00
Vandhiadevan Karunamoorthy
1139fab2a6 ipq9574: Add eMMC gpio initialization
Change-Id: I195549e196f30a40743a014cd7e092a824f6b4a0
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-07-28 19:53:35 +05:30
Vandhiadevan Karunamoorthy
44a15e92ad ipq9574: update usb phy sequence
Change-Id: I8d6707731b526c19dd1c1e5de3d55f46d2dfc08a
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-07-28 10:39:31 +05:30
Selvam Sathappan Periakaruppan
027fa4db92 ipq9574: Enable NSS_NOC clocks required for ethernet
In order to access DDR from NSS Block, we require the
MEM NOC to be enabled. Without enabling this, NSS Block
will not be able to access the DDR.

Similarly, we also enable other NSS NOC clocks which
are required for accessing various blocks.

Change-Id: I3c470bd182516f3415ff3b7e523e9474e3e6ed41
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-27 22:47:40 +05:30
Linux Build Service Account
85e6f1ca5a Merge "ipq9574: clock: Fix typo" 2021-07-26 11:13:09 -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
Selvam Sathappan Periakaruppan
4c21103ba7 ipq9574: clock: Fix typo
Change-Id: I34b231b7a37df6d80c739a9dc3e05ada91e39d69
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-26 09:21:47 -07:00
Linux Build Service Account
eed9d45c6c Merge "ipq9574: Disable ethernet support" 2021-07-20 12:10:34 -07:00
Selvam Sathappan Periakaruppan
c643a856cc ipq9574: Do board_eth_init only if EMDA enabled
Change-Id: I76ea6c634ca004c796deb6b32191b881ac143f3a
Signed-off-by: Selvam Sathappan Periakaruppan
2021-07-20 09:10:49 -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
Linux Build Service Account
8fd37e84dc Merge "ipq9574: update USB phy sequence" 2021-07-19 11:18:28 -07:00
Vandhiadevan Karunamoorthy
a62fbf4a57 ipq9574: update USB phy sequence
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I88909d5f8898b78b87fdcc2783415f3fc0733092
2021-07-19 05:31:39 -07:00
Selvam Sathappan Periakaruppan
872a52a13c ipq9574: Update GPIO config using macros
This patch updates GPIO configs using macros
which makes it more readable and easy to understand
or modify the configurations in future as required.

Change-Id: I785008072947035a580b0b39c43cbaf51e77a386
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 16:10:35 +05:30
Selvam Sathappan Periakaruppan
aabae370a9 ipq9574: Update Ethernet GPIO configurations
This patch updates the following:
1) Updates drive strength of all PHY GPIOs to 8MA
2) Updates MDC GPIO_PULL to "NO_PULL" and MDIO GPIO_PULL
to "PULL_UP"
3) Removes redundant GPIO_OE bit configuration

Change-Id: Ic33ccbb8413b5b99a9718ad67ebbc069982f44db
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 15:47:23 +05:30
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
0092594c27 ipq9574: Update ethernet initialization
Change-Id: Ifeb83d03010daf25a42161db96a182680bd5f9d7
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 10:47:18 +05:30
Linux Build Service Account
bdda3ea85e Merge "ipq9574: update peripheral clk" 2021-07-16 10:11:57 -07:00
Linux Build Service Account
3295f0eee7 Merge "ipq9574: fix up the gadget_diag node name" 2021-07-16 10:11:55 -07:00
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
Vandhiadevan Karunamoorthy
31e210f2e7 ipq9574: Add EUD check support
This change skip USB init if EUD is enable.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I26b4177b1b4fdf08ab3fbff81a71eb09c3b8b4a3
2021-07-16 03:50:16 -07:00
Kathiravan T
38ef558265 ipq9574: fix up the gadget_diag node name
Change-Id: I531280914b782ec4ef4c4f7a60bec05bafc19031
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2021-07-15 23:53:19 -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
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
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
anusha
aa77d3dc01 ipq9574: Pass UUID of rootfs partion to kernel in bootargs
Change-Id: Iba346e7cb5b2e809b873a7f885ec0844e9b4e708
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-06-17 22:45:43 -07:00
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
3600a5e5f5 ipq9574: Add eth_init support during boot up
During boot flow, when u-boot enters into u-boot,
eth init must be done. This patch adds support for
the same.

Change-Id: I00c39308e2f9afde59abae5b8a71fa281a7b3b51
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-05-13 05:36:27 -07:00
Linux Build Service Account
d32b9124f3 Merge "ipq9574: Enable qpic clocks required for emulation" 2021-04-29 06:21:18 -07:00
anusha
31928c2236 ipq9574: Enable qpic clocks required for emulation
Change-Id: I033df0121fa9e2141844db408bf7f62e1dc3c40e
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-29 14:34:37 +05:30
anusha
0968fc48e4 ipq9574: Fixup fdt to pass qpic training offset to HLOS
Change-Id: I0bad5b47778ed7ea2beae08bea7c95a99644b469
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-29 14:32:21 +05:30
anusha
b71149cdcb ipq9574: Update kernel authentication SCM CMD ID
Change-Id: Iabca45192a0fb9c297c85c11c7266ec8ed00ca8f
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-23 15:47:34 +05:30
Selvam Sathappan Periakaruppan
06c8e8eac3 drivers: net: ipq9574: Add base files from ipq6018
Change-Id: Ia40182ad332955c73b6a904081cc45cfabc10673
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-04-20 12:42:53 +05:30
Sivaprakash Murugesan
68a2362a87 fdt_fixup: Add ipq9574 nand compatible to fdt fixup
Change-Id: I38786e8b8c92b14a46faef09c032d627e672e97f
Signed-off-by: Sivaprakash Murugesan <sivaprak@codeaurora.org>
2021-04-15 11:55:06 +05:30
Linux Build Service Account
e375e06542 Merge "ipq9574: Update config_name based on platform ID" 2021-04-14 07:12:01 -07:00
anusha
0aad47125d ipq9574: Add support for memory dump collection
Enable memory dump collection during abnormal reset.
Add support to enable crashdump compression.

Change-Id: I18e7a387f7ab2fac770a78da73d9177b32383209
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-12 21:44:55 +05:30
anusha
47114c21ab ipq9574: Update config_name based on platform ID
Change-Id: Icb50c10f1bc1636f9899240bfa612ce7d58356d6
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-12 13:25:16 +05:30
anusha
3179b10e0a ipq9574: Enable multicore
Change-Id: I90f0cfdb7e013763e6869cf9a704724dd3ec729d
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-04-07 21:54:35 -07:00
anusha
65827a78d6 ipq9574: Add support to patch up cpu_type and soc version
Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I643ae8f915da81564951a7c1b955b842ac330132
2021-04-06 17:24:44 +05:30
anusha
f2723a7b17 ipq9574: Change references of ipq9048 to ipq9574
Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I306a9eae54aa31b3153ad3ebf58f73b6a973a710
2021-03-30 19:54:12 -07:00