Commit graph

36756 commits

Author SHA1 Message Date
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
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
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
Linux Build Service Account
ffbee0b40e Merge "ipq9574: Add eMMC gpio initialization" 2021-07-29 09:08:54 -07:00
Linux Build Service Account
33dcec400e Merge "ipq9574: update usb phy sequence" 2021-07-29 09:08:53 -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
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
Linux Build Service Account
6aaf02b9d3 Merge "ipq9574: update pcie x1 & x2 phy configuration" 2021-07-27 14:09:03 -07:00
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
Vandhiadevan Karunamoorthy
cdc5b97b86 ipq9574: update pcie x1 & x2 phy configuration
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I19708bfef11d48f034d2dc218f249676bc5621f7
2021-07-27 17:15:45 +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
Selvam Sathappan Periakaruppan
a9cb2ebd77 configs: ipq9574: Disable CONFIG_IPQ9574_RUMI
This patch removes RUMI flag which will enable the
PHY, clock, reset, etc. needed for RDPs.

Change-Id: I5459281967cacb6362c5be846ccc377b7ce5ef3d
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-26 09:21:11 -07:00
Selvam Sathappan Periakaruppan
a4265a9649 Revert "ipq9574: Disable ethernet support"
This reverts commit 43dae58f78.

Change-Id: I171e84ebb0ec1d89248fc9b12f281d282f354627
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-26 09:20:50 -07:00
Linux Build Service Account
eed9d45c6c Merge "ipq9574: Disable ethernet support" 2021-07-20 12:10:34 -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
Selvam Sathappan Periakaruppan
43dae58f78 ipq9574: Disable ethernet support
This patch will be reverted post SoD.

Change-Id: I71251b61a13b18db63793cad7802b9a509bdae3f
Signed-off-by: Selvam Sathappan Periakaruppan
2021-07-20 09:11:12 -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
Linux Build Service Account
3422ebf3ff Merge "dts: arm: ipq9574: update uart configuration" 2021-07-20 06:39:44 -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
8fd37e84dc Merge "ipq9574: update USB phy sequence" 2021-07-19 11:18:28 -07:00
Linux Build Service Account
8adfed1ba4 Merge "ipq9574: Update GPIO config using macros" 2021-07-19 08:49:49 -07:00
Linux Build Service Account
14fe3cb4fd Merge "ipq9574: Update Ethernet GPIO configurations" 2021-07-19 08:49:48 -07:00
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
Linux Build Service Account
65f79bad9a Merge "ipq9574: add pci phy configuration" 2021-07-19 05:46:38 -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
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
Selvam Sathappan Periakaruppan
9dc52fbd6b drivers: net: ipq9574: Update PPE configurations
This patch updates the following:
1) Update speed clock, port mac clock reset for ipq9574
platform.
2) Handle PPE init for all 3 switch mac modes.
3) Handle port mux config when port5 is part of Uniphy0
during when Uniphy1 won't be used.

Change-Id: I23b04b00036ab139cd5877bcf913dbecb7fb7fa2
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 11:25:01 +05:30
Selvam Sathappan Periakaruppan
870b38b697 drivers: net: ipq9574: Update Uniphy configurations
This patch updates the following:
1) Add support for 3 switch_mac_modes in ipq9574 platform.
2) Update xpcs and soft_reset as needed for ipq9574 platform.
3) Support usecase where 5*1G ports can be supported as part
of Uniphy0 during when Uniphy1 won't be used.

Change-Id: I949db117fa3c8adb937c5c055eedcaa6ead0da07
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 11:24:07 +05:30
Selvam Sathappan Periakaruppan
0698626570 drivers: net: ipq9574: Update EDMA configurations
This patch updates the following:
1) Handle 2 aquantia ports during ping
2) Remove SFP Port Support Temporarily
3) Update clocks for different port speeds and different
ethernet port types as needed.
4) Update number of ports to 7 since 7 is the MAX ports
supported in ipq9574 platform.

Change-Id: I2d9040227b9c8a11cddc0d00e835ac64d3a4940d
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-07-19 10:50:44 +05:30