Commit graph

8737 commits

Author SHA1 Message Date
Selvam Sathappan Periakaruppan
be07da4a76 drivers: net: ipq9574: Update PPE TDM/Sched Config
Change-Id: I992de44db5dd5a6d28b3bd54ddcc005d0c46acc9
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-15 22:37:01 -07:00
Selvam Sathappan Periakaruppan
1f1a5ed7b6 drivers: net: ipq9574: Fix VSI configuration
Change-Id: Ia7f9d23ad991738cb9f55a14e7c310791a837ea5
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-15 22:36:54 -07:00
Linux Build Service Account
1bc74c6b9e Merge "drivers : nand : Update Serial training fixup" 2022-03-08 05:12:40 -08:00
Saahil Tomar
4c8be9b750 drivers : nand : Update Serial training fixup
This change fixup the magic word (0xBAD0FF5E) instead of zero.
So the uboot will skip setting qcom,training_offset
if the serial training partition is not present in flash.

Change-Id: I0ee8c9475e1153fdbc295691ceb2a4b1d6fdd394
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-03-07 14:45:01 +05:30
Selvam Sathappan Periakaruppan
a8ed69675d ipq: Change qca808x mode to SGMII by default
This patch updates the default uniphy mode to SGMII
for the qca808x ports. If suppose, the phy is capable
of supporting 2.5G, then it will reconfigure the
uniphy mode to SGMII_PLUS at that time based on the
link speed detected.

Change-Id: I56692b19536e71cbcf3a4c31d32ecb29866c5fdc
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-02-09 02:49:24 -08:00
Kavin A
db4391c1d7 drivers: mtd: nand: Extract the Status register value
Flash Status register value will get updated in [15:8]
bits section. Hence right shift first and then extract
the required bit value.

Change-Id: I7f2233f22984da3db2324e9e2ba8aafff76adb32
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2022-01-25 04:01:59 -08:00
Kavin A
d539984c88 mtd: nand: Configure Buffer mode only in Winbond SPI Nand devices
Winbond SPI Nand devices provides two different modes for read operations,
Buffer Read Mode (BUF=1) and Continuous Read Mode (BUF=0).

We can configure the BUF bit to read and operate in any one mode.

Change-Id: Ie7adce70642756725e52dab8821333c42fdb601f
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2022-01-25 03:43:06 -08:00
Kavin A
9649af968e mtd: nand: Add support for Winbond 1G-bits spi nand.
This change will add support for Winbond "W25N01GWZEIG" spi nand

Change-Id: Ic42938142115408406a8790e114d2d2acfc0dbb5
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2022-01-25 03:41:58 -08:00
Kavin A
9b7697d4c5 mtd: qpic_nand: Add support for Macronix 2G-bits Nand device
This change will add support for Macronix "MX35UF2GE4AD-Z4I" spi nand

Change-Id: I5d783473c0ec918b02e59a85b71ee941fe649365
Signed-off-by: Kavin A <quic_kavia@quicinc.com>
2021-12-29 20:42:35 +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
Selvam Sathappan Periakaruppan
8bf3539016 Revert "drivers: net: ipq9574: Update network config"
This reverts commit ac52f93c49.

Change-Id: I4177af51cf3a38204181069ff027225f4fdc78bc
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-15 01:10:01 +05:30
Selvam Sathappan Periakaruppan
ac52f93c49 drivers: net: ipq9574: Update network config
This patch updates the following:

1) Remove ACL configurations
2) Reduce packet size to 1024 bytes

Change-Id: I94c0024fc8efeea12fc2742bbf9b4c3d0907d0ed
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-08 01:03:01 -08:00
Selvam Sathappan Periakaruppan
e0726bab13 drivers: net: ipq9574: Fix network configurations
This patch updates the following:

1) Updates NSS NOC clock frequencies to expected clock rates
2) Add Debug prints during eth_halt which can help debug issues
3) Update ACL structure and configurations for ipq9574 platform
as required
4) Disable the MIB counters reset bit so that those counter
registers values can be dumped to check stats
5) Update VSI configurations for cases when BRIDGED_MODE config
is disabled
6) Update the VSI configuration to avoid flooding from one LAN
port to another

Change-Id: I39f20a57c08205fbeb669c93b6459cf8e184098d
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2021-12-06 04:41:12 -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
2fb57de7a2 Merge "mtd: qpic_nand: add support to switch between 2K & 4K layout" 2021-11-15 21:38:18 -08: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
Linux Build Service Account
af4bf870a0 Merge "drivers: net: ipq9574: Add SFP 1G and 2.5G Support" 2021-10-28 12:38:56 -07:00
Selvam Sathappan Periakaruppan
ee7e19ba6e drivers: net: ipq9574: Add SFP 1G and 2.5G Support
This patch adds support for SFP 1G and 2.5G. Note that
there is no autoneg support for SFP in U-Boot and the mode needs
to be changed in DT to make it work in 1G or 2.5G.

By default SFP will be configured to work in 10G mode.

Change-Id: I1c209276fe2a586332be87ce5d49a140f4814eb2
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-10-27 06:30:57 -07:00
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
Vandhiadevan Karunamoorthy
cc76ff5e54 drivers: pci: optimize for ipq806x platform
This changes removes unwannted source for ipq806x
platform, therefore it saves more memory in flash

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia34c9843a5b32c2db57ec4b4977ab8c04875161b
2021-10-26 18:15:00 +05:30
Rajkumar Ayyasamy
0dc8c1c7a6 mtd: qpic_nand: add support to switch between 2K & 4K layout
qpic_nand sbl -> to switch to 2K layout
qpic_nand linux -> to switch back to 4K layout

Currently this switch is enabled for IPQ9574

Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
(cherry picked from commit c9a1c10b2e35ba8f14dafc1f4c07aa5a07a01541)
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>

Change-Id: I3e429b8cd5e600b4214c01d7949c01536f988e47
2021-10-22 19:23:10 +05:30
Selvam Sathappan Periakaruppan
47cf0fd956 drivers: net: ipq9574: Fix print msg in edma
This patch adds the phy type and phy address also as part
of the print message during error cases which will help in
quickly identifying the port configuration.

Change-Id: I6762998e8bae8be8473d32e41b81ecc7e0b94885
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-09-04 02:57:21 -07:00
Vandhiadevan Karunamoorthy
2bc07e0161 pci: ipq9574: Add SKU validation support
This changes add SKU validation support in PCI driver
the valdiation api given as weak for non SKU supported platform.

Change-Id: I32985be1e06e9cb07d28edfba50299bb7eaa3cc5
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
2021-08-31 21:22:32 -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
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
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
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
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
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
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
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
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
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
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
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
65f79bad9a Merge "ipq9574: add pci phy configuration" 2021-07-19 05:46:38 -07:00
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
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
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
Rajkumar Ayyasamy
d11ded2ea4 drivers: qpic_nand: add support for Macronix spi nand
This change will add support for 4K Macronix spi nand
"MX35UF4GE4AD-Z4I"

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: I94e07d9e25de46c67fcb679ef149990e093afc8f
2021-06-24 09:58:22 -07:00
Selvam Sathappan Periakaruppan
580d877a56 drivers: net: ipq9574: Add AQR113 support
Change-Id: I77ec2d03cc280b819ab4874bf14614cde091c416
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-06-07 11:49:15 +05:30
Selvam Sathappan Periakaruppan
6b2af69e7a drivers: net: ipq9574: Make Port MUX info as debug prints
Change-Id: Ie80ed1992719ad71a3199785760fd0d9ad4f9009
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-06-07 11:38:52 +05:30
Linux Build Service Account
3b2c9ea52c Merge "driver: nand: qpic_nand: Add support for Gigadevice 2Gb SPI nand device GD5F2GQ5REYIG" 2021-05-27 06:12:58 -07:00