Commit graph

1544 commits

Author SHA1 Message Date
Linux Build Service Account
c520adb295 Merge "boot: cleanup edma before jump to kernel" 2024-04-22 09:12:11 -07:00
Ram Kumar D
c2c5de2497 drivers: net: ipq6018: enable qca8x8x switch support
This patch enables qca8x8x switch support on ipq6018.

Change-Id: I5e037071dad112558682255f99bac2adb2b411b5
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-04-22 12:26:10 +05:30
Vandhiadevan Karunamoorthy
6a32b06516 boot: cleanup edma before jump to kernel
This changes clean and disable edma before
jumping to kernel.

Change-Id: I324a9b410fb94e1e01e63ad77c46b5129bc76e54
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2024-04-21 11:06:38 -07:00
Ram Kumar D
ef599b2d1b drivers: net: skip configuration if already configured
This patch skips uniphy configuration if it is already
configured with the requested mode.

Change-Id: I4aa1f249a5393881f83e35f3016259986085921c
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-04-12 17:25:24 +05:30
Linux Build Service Account
2e4a573a66 Merge "drivers: net: ipq5332: update clk for 1G SFP" 2023-11-10 10:40:35 -08:00
Vandhiadevan Karunamoorthy
81937af3eb drivers: net: add Marvel X3410 10GE support
Change-Id: Icd95191f2a472fcb125adce53137a52adf08ad47
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-11-07 21:15:18 +05:30
Ram Kumar D
c3163fcb5e drivers: net: ipq5332: update clk for 1G SFP
Change-Id: Ic1274c29664c584124164f6e1b7892d713f335e4
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-10-11 10:21:40 +05:30
Gurumoorthy Santhakumar
96f2c8480b ipq5332: skip dcache disable and enable
during recovery mode dcache will not be available.
So, skip dcache disable and enable during
network transfer

Change-Id: Icc89c846580ebcd73332061a55ae9d8c15fa2b1a
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-10-04 17:14:43 +05:30
Ram Kumar D
c8f05e9e69 configs: enable tiny config for ipq5332
Change-Id: I19394ce3852e26cc9cb2f25b220e2dbea044e863
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-07-07 18:29:15 +05:30
Hariharan K
c758218e5f drivers: net: ipq: Use 16bit for phy_chip_id1 and phy_chip_id2
Changing the data type of phy_chip_id1 and phy_chip_id2 from
32-bit to 16-bit and initializing them to 0 to avoid any junk
value while shifting and concatenating them to form the final
phy_chip_id.

Change-Id: If96b01db9ec2b3c0a259ea3c98516d1f18a898ce
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-06-28 04:22:44 -07:00
Ram Kumar D
48d9f76a4a drivers: net: ipq5332: update port clk for 10M speed
update the port clock setting for qca8084 PHY with respect to
10M speed configuration.

Change-Id: I16403b155f31f37a6bdf828150ca2d0923a29f3e
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-04-14 19:07:10 +05:30
Ram Kumar D
5d5067a0cf drivers: net: qca8084: brought in qos patch for the qca8084
Change-Id: I5e90ea8d33c54cd2d84d61f82f950bd81e142d75
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-04-03 20:50:26 -07:00
Ram Kumar D
2515f73953 drivers: net: qca8084: do sgmii speed fixup in bypass mode
Previously 100M speed is not working in port 4 of MHT
by-pass mode. SGMII speed fixup required to dynamically
adjust the gcc clock based on the link-speed.

Still, this is requried only for port 4, because remaining
ports (1-3) will be taken care from switch core. So, added
speed fix for the by-mode support.

Change-Id: I495aad4b64de12ae7f57c0bdb9e0def08ad38681
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-03-29 18:55:14 +05:30
Vandhiadevan Karunamoorthy
7f962d9e36 drivers: net: ipq5332: update qca8084 & qca8337
This changes update qca8084 & qca8337 init sequence
to support dual mode

Change-Id: I2cb9430fc97145c459ed4e6b58394a22565a9860
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-08 15:03:30 +05:30
Linux Build Service Account
c6ba612d29 Merge "drivers: net: qca8084: update clk and bmap config" 2023-03-07 05:03:03 -08:00
Vandhiadevan Karunamoorthy
58567ec70a drivers: net: qca8084: update clk and bmap config
This changes updates the gcc common clk initialise
steps and adds support for obtaining bitmap
details from dts. 

Change-Id: I55e895989823a4fbb97c638ad937ca48c00519c5
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-06 13:38:42 +05:30
Vandhiadevan Karunamoorthy
bd47dbed37 drivers: net: ipq9574: update uniphy SGMII config
This change set SGMII mode and force mode based on
dts entries.

Change-Id: Ideaa1bb77fe8fb37a7e6b907a987f6dcac54917f
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-06 13:26:38 +05:30
Vandhiadevan Karunamoorthy
72b0604461 drivers: net: ipq9574: update QCA8084 config
This changes enable both PHY and switch configure
simultaneously and also switch can be configure
to any port.

And also these changes enable dual MDIO bus support.

Change-Id: Ib86c8a15abb9a7a35aa86d87cef78ad917dd1a00
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-06 10:09:20 +05:30
Vandhiadevan Karunamoorthy
b0e133d937 drivers: mdio: add bitbangmii support
Change-Id: Ieb6e05a462451e1d2c28b43cc7a761344742df15
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-01 21:16:50 -08:00
Vandhiadevan Karunamoorthy
1a4b370d2e drivers: net: add MDIO clause 45 support
Change-Id: Iba47a99967bed745083097a11a767062b26d21e3
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-01 20:59:50 -08:00
Vandhiadevan Karunamoorthy
0012c3f879 drivers: net: add ipq bit bang support
Change-Id: I65272bf187c11ca72425f9a29d1f29d62e139436
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-01 20:58:57 -08:00
Vandhiadevan Karunamoorthy
27112d3edc drivers: net: ipq5332: enable active port support
Change-Id: I0b8dcbd0386d89d4c4a2e7f525051a11c2423cdd
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-02-27 19:09:50 -08:00
Vandhiadevan Karunamoorthy
6d133d5019 net: ipq5332: update sgmii+ mode for bypass port
This change configure sgmii+ mode if linkup at 2.5Gbps
speed.

Change-Id: I6570c9ee34cfb4d5d9208766135d429795beebaf
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-11 22:32:47 +05:30
Vandhiadevan Karunamoorthy
50eabad97b ipq5332: net: qca8337: skip vlan configuration
Change-Id: I56c53b5b6370a3374089bfe997634936f9b4b277
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-06 02:12:46 -08:00
Vandhiadevan Karunamoorthy
9f006f0905 board: ipq5332: Enable MI03.1 ethernet
Change-Id: Iaa9320daabfc290b7bf02b8ce303d0ff34a11407
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-04 09:30:15 +05:30
Gurumoorthy Santhakumar
1ee172f386 board & drivers: ipq5332: Improved TFTP performance
modified TDM registers and
added reset for following
 NSS_CC_PPE_BCR
 GCC_UNIPHY0_BCR
 GCC_UNIPHY1_BCR

Change-Id: I5fb8c6dfc4f54346f9e12251dfe3028327d43e3b
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-12-20 01:13:22 -08:00
Ram Kumar D
7f4a4f32de driver: net: qca8084: added new kconfig for by-pass mode
Added new config called CONFIG_QCA8084_BYPASS_MODE and moved
all the qca8084 by-pass mode related code under it.

Change-Id: I4157960989cd67576803d494594869265fc81745
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-12-05 20:53:52 -08:00
Linux Build Service Account
33bf923140 Merge "driver: net: add qca8084 by-pass mode support on MI01.1 RDP" 2022-12-01 06:12:20 -08:00
Vandhiadevan Karunamoorthy
7d48be48a1 board: ipq5332: Update AQ ethernet config
This changes include, update reset sequence
increase heap region, add mdio RW version
for 3.15M Clk

Change-Id: I85ec0632ced1543aa1cca880fd00e47800ddecfd
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-30 05:56:10 -08:00
Ram Kumar D
457bfcfd2f driver: net: add qca8084 by-pass mode support on MI01.1 RDP
Added QCA8084 by-pass mode support on MI01.1 RDP

Change-Id: I1a14729cac5463675f9cb0d15df3da76746aa81e
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-11-30 09:45:42 +05:30
Linux Build Service Account
24f263d138 Merge "board: ipq5332: remove rumi flags." 2022-11-29 04:49:54 -08:00
Linux Build Service Account
5561bf340e Merge "drivers: net: ipq5332: Updated SFP and MHT config" 2022-11-29 04:49:52 -08:00
Linux Build Service Account
cfa5533c35 Merge "drivers: net: Update typo in MHT" 2022-11-28 14:00:14 -08:00
Vandhiadevan Karunamoorthy
c77f44b731 board: ipq5332: remove rumi flags.
Change-Id: I84ae7f2c6e8852c879aebc3538a8782c5b335d28
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-28 14:46:13 +05:30
Vandhiadevan Karunamoorthy
66dadd051f drivers: net: ipq5332: Updated SFP and MHT config
These changes update config as like below.
1.Config 100M, 1G as GMAC, 2.5G as XGMAC
2.Config MHT as XGMAC.

Change-Id: I0566f3a3d364931e8c8173c3604160f24c2439be
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-28 12:10:01 +05:30
Vandhiadevan Karunamoorthy
7c8bcaa2c0 drivers: net: Update typo in MHT
Change-Id: I44bc1e88b82eedff8e72ea4027b8d99b40178463
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-27 22:24:33 -08:00
Tom Rini
af3ad1d289 Merge branch '2021-02-15-fix-CVE-2021-27097-CVE-2021-27138'
Fix CVE-2021-27097 and CVE-2021-27138.  For more details see
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27097 and
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27138

Change-Id: I8f1f03a7e4b1d0bc9d8db51b6a08219f0c47fc2d
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
2022-11-24 00:57:50 -08:00
Vandhiadevan Karunamoorthy
a0b5416f43 net: ipq5332: update clk & TDM configuration
This changes update TDM and uniphy clk config

Change-Id: I7235713e130d07bb46e5c325bdfa3dd47da1e55c
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-17 20:12:44 -08:00
Vandhiadevan Karunamoorthy
87487dce1f drivers: net: ipq5332: update MHT switch config
Change-Id: I0ce008fffa08927ffbc58f860ddd0f6be6d76e14
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-16 11:20:00 +05:30
Vandhiadevan Karunamoorthy
8fe934032c board: ipq5332: update ethernet configuration
This changes includes update the Speed clock,
common clock update and dts nodes.

Change-Id: I673e8ccf191048fef966a8f6cd84858e1a3b824f
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-11-12 07:14:17 -08:00
Gokul Sriram Palanisamy
d820c5abbc drivers: net: ipq5018: Add SFP 1G and 2.5G Support
Only one SFP port can be enabled at time with
either SGMII or SGMII PLUS mode.

Mode shall be specified from dts for 1G or 2.5G
support respectively. Add below change to enable
SFP as this change is not mainlined.

gmac_cfg {
	gmac2_cfg {
		unit = <1>;
		base = <0x39D00000>;

-		phy_address = <0x1c>;
-		napa_gpio = <39>;
		/*
		 * 6 - SGMII_PLUS (2.5G),
		 * 8 - SGMII_FIBER (1G)
		 */
+               switch_mac_mode = <8>;
+               sfp_tx_gpio = <27>;
+               sfp_rx_gpio = <29>;
	};
};

Change-Id: I507be2b84b1f932802659abffa3288e304e0d411
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-11-07 18:26:58 -08:00
Vandhiadevan Karunamoorthy
bc5f3cca5a board: arm: ipq5332: update ethernet configuration
Change-Id: If66707a68ddf5681016acd95332d4056b31fb3fc
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-25 23:38:48 -07:00
Timple Raj M
95e16ef259 ipq5332: replace soc name from devsoc to ipq5332 in all file contents
Change-Id: Id5dd98e749bfd229e2c6e9d1944db397d2380cb1
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-12 22:31:53 -07:00
Timple Raj M
b12ecdc358 ipq5332: rename files from devsoc to ipq5332
Change-Id: I2a45b4017f98e725b6432e954040c154a39db663
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-12 22:31:40 -07:00
Vandhiadevan Karunamoorthy
d18ca4451a drivers: net: ipq9574: Enable usxgmii in UNIPHY0
This change adds usxgmii support in UNIPHY0.
Earlier it was supported up to PSGMII with 4 ports.

With these changes,
UNIPHY0 supports either of the 2 modes mentioned below.
	1. PSGMII with 4 ports
	2. USXGMII with 1 port

Change-Id: Ic4ca62e3ef74d275cda92d86b459d204ee4325ed
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-09 22:27:29 -07:00
Linux Build Service Account
daa18ac311 Merge "drivers: net: ipq6018: Removing the additional rx buffer allocation" 2022-09-10 00:51:40 -07:00
devi priya
067984e4b5 drivers: net: ipq6018: Removing the additional rx buffer allocation
During long run tests on image download in u-boot, 
EDMA crash was observed as the SKB buffer address 
returned by the RX descriptor was corrupted and was 
pointing to an invalid address:
clean_rx: p: 14 c: 0 skb: 61763b10
WARN: src_info_type:0x0. Drop skb:61763b10

The reason for corruption seems to be the RX buffer allocation that was
happening twice before initiating the EDMA for the next transaction.
This change removes the additional allocation of the Rx buffer which is
not needed.

Change-Id: I4a5b404527469ff3b981749aa4e05080f55807cd
Signed-off-by: devi priya <quic_devipriy@quicinc.com>
2022-09-08 12:54:07 +05:30
devi priya
2ff1847823 drivers: net: ipq9574: Removing the additional rx buffer allocation
During long run tests on image download in u-boot, 
EDMA crash was observed as the SKB buffer address 
returned by the RX descriptor was corrupted and was 
pointing to an invalid address:
clean_rx: p: 14 c: 0 skb: 61763b10
WARN: src_info_type:0x0. Drop skb:61763b10

The reason for corruption seems to be the RX buffer allocation that was
happening twice before initiating the EDMA for the next transaction.
This change removes the additional allocation of the Rx buffer which is
not needed.

Change-Id: I919024df8131fe87640ecc0d481b61012742efbf
Signed-off-by: devi priya <quic_devipriy@quicinc.com>
2022-09-08 12:52:01 +05:30
Ram Kumar D
8142f374a4 ipq: updated 32-bit RW support for mii & mdio utils
Change-Id: I50e2bf13cfde82e46cc9068e241f89aa7944bbe6
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-08-02 22:08:44 -07:00
Linux Build Service Account
e2b3415a66 Merge "drivers: net: ipq6018: Add optional active_port env support" 2022-07-22 13:47:23 -07:00