Commit graph

1369 commits

Author SHA1 Message Date
Sham Muthayyan
0195f6b90d ipq807x: Fix compiler warnings in Ethernet drivers
Change-Id: Ife293bc31c919aba00c30a83424d9b5114f485ba
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2019-01-04 04:14:05 -08:00
Sham Muthayyan
c8a41b0cef ipq807x: Add NAPA 1.1 phy support
Change-Id: I04b2a75277bee180d2e098a347a9f999801ed038
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-11-18 22:47:19 -08:00
Sham Muthayyan
f9bf44c614 ipq807x: Add SFP 10G ethernet support
Change-Id: Ia2fc764ed69f5304d9837e39896d58820f073599
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-11-13 01:08:36 -08:00
Sham Muthayyan
0794c3bc41 ipq807x: Add Malibu phy serdes reset and uniphy calibration for PSGMII mode
The malibu phy stucks if the continuous tftp, ping and reboot tests in the
long run. Added the Malibu phy serdes and uniphy calibration for PSGMII mode.

Change-Id: Ie2e0dc363689fff69011560994b37adf6da76a17
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-10-26 05:19:56 -07:00
Sham Muthayyan
97572e5c82 ipq807x: Add AQ112C phy support
Change-Id: I6f51a7cefab21cdcf663b8927756e1b84d636d0e
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-10-26 05:19:18 -07:00
Sham Muthayyan
3dafe3b072 ipq807x: Add Aquantia phy restart command
Change-Id: I6c714ea861e00a37bee80e074bac7652a45be349
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-10-26 05:19:05 -07:00
Sham Muthayyan
2f5487d020 ipq807x: Disable the TX MAC in PPE during init
Change-Id: Ia3b3918ad64c94cf72b0bf4932e40f33a2b17f1b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-10-23 23:43:47 -07:00
Sham Muthayyan
b20e9626e0 ipq807x: Fix Aquantia port in DB-HK02
Change-Id: I8b0ad580f48f83239180d76bc46dfb3f076cce7f
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-09-16 23:50:02 -07:00
Sham Muthayyan
5658fb95e2 ipq807x: Fixed the SGMII mode for channel 0
Change-Id: I91c01e1961be99a94f6398b3aaf6c2470fbb8832
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-09-11 05:43:42 -07:00
Sham Muthayyan
cc660eb4c7 ipq807x: Enabled napa and aquantia phy in DB-hk02
Change-Id: Iadaffde34e3af45905535423cb20ea71d0081644
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-09-11 05:43:22 -07:00
Gokul Sriram Palanisamy
6eba23c6c0 qca: Removed duplicate header file qca_common.h
Change-Id: I437d016bce46b21a1d93520f4f28cfa7b2f3e3e5
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
2018-08-20 06:21:41 -07:00
Nikhil Prakash V
da508573a9 ipq807x: Changes for fixing kw issues
Change-Id: Ib309e1eacfc8d23815c04a97d72b6eb31f81f69f
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-07-30 11:43:52 +05:30
Nikhil Prakash V
97834d63d9 ipq807x: Changes for fixing kw issues
Since set_sgmii_mode function does not return any value, changed its
functon type to void.

Change-Id: I4f098747ed2e562488cf97dc06dbb48a54b53fc3
Signed-off-by: Nikhil Prakash V <nprakash@codeaurora.org>
2018-07-16 19:03:26 +05:30
Sham Muthayyan
f4307a0c64 ipq807x: Fixed the ethenet failure in HK01
Change-Id: I0ba38f89c35c34be45040aba1d2928a43d9f636b
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-07-12 12:00:06 +05:30
Sham Muthayyan
eff774150c ipq807x: Fix the napa 2nd-port 1G speed
Change-Id: I15317cec3dde811001be9d34c2bcf3487df9721d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-07-10 05:05:49 -07:00
Sham Muthayyan
2de09dcab6 ipq807x: Multiple napa port support
Change-Id: I31d9ecf57e892bae31b044edb9d4ffbac2c17215
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-07-09 06:54:27 -07:00
Linux Build Service Account
d21e486821 Merge "ipq40xx: Device tree support for AP.DK07.1-C4" 2018-06-28 15:35:24 -07:00
Sham Muthayyan
f0321e1c5f ipq807x: Enable ethernet support for HK08
-Add 8031 phy and Aquantia phy

Change-Id: I69118be6a358ac9ea7b1cf6e793ed3343e174e39
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-06-25 15:42:00 +05:30
Sham Muthayyan
8d9a453c47 ipq807x: Add uncahed alloc support for edma driver
TX and RX descriptors are 16 bytes. This causes problems with the cache
maintenance on CPUs where the cache-line size exceeds the size of these
descriptors. What will happen is that when the driver receives a packet
it will be immediately requeued for the hardware to reuse. The CPU will
therefore need to flush the cache-line containing the descriptor, which
will cause all other descriptors in the same cache-line to be flushed
along with it. If one of those descriptors had been written to by the
device those changes (and the associated packet) will be lost.

To work around this, we make use of non-cached memory if available. If
descriptors are mapped uncached there's no need to manually flush them
or invalidate them.

Change-Id: I7b8a9a55226dfdcbab49a93bcdf43af4d70c108a
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-06-22 02:39:51 -07:00
Gitanjali Krishna
3cc4f89b3d ipq40xx: Device tree support for AP.DK07.1-C4
This change enables u-boot support for AP.DK07.1-C4 configuration.
AP.DK07.1-C4 enables QCA402x IOT support

Change-Id: I5982b8f8783755b03d11c878f8108d71e6ace6d1
Signed-off-by: Gitanjali Krishna <gitanjal@codeaurora.org>
2018-06-19 20:20:56 -07:00
Sham Muthayyan
8550018c8e ipq807x: Enabled napa phy for HK07
Change-Id: I1865a8336fc9763e1c541f5b6346ddbce7cb6eb9
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-06-11 07:20:22 -07:00
Sham Muthayyan
b8f8d40827 ipq807x: Add qca8081 phy support
Change-Id: I09093ee3351066aa55f70012459512ae4cbcb23f
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-06-11 07:19:54 -07:00
Sham Muthayyan
039b3c19d5 ipq807x: Add ACL support for edma
Change-Id: I9102709f2a744e8434cc8d96d8a396766c4fc6c0
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-05-08 04:27:50 -07:00
Sasirekaa Madhesu
88cbba86db ipq40xx: Add Cache support for ethernet
Change-Id: Iea6b03467640c138163bbb12c4478049c47c67bc
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-04-20 11:12:42 +05:30
Rajkumar Ayyasamy
5364cd9d80 ipq40xx: Added support for DK04-C6 board
Change-Id: Ic9f451c30f4991df8013ae3191ad4384aed6f730
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-04-10 12:19:53 +05:30
Sham Muthayyan
3d59ead98a ipq807x: Fix KW issues for edma and pci
Change-Id: I46d870b14810b33d500cdba6e8a238f95fc05208
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-03-22 03:04:49 -07:00
Rajkumar Ayyasamy
cddf515afc ipq806x: fixed the fdt_path_offset return value check
fdt_path_offset function will return zero or positive
value for success case.So fixed the return value check
accordingly.

Change-Id: Iafacdaf7c12cecdb882f3795f6145730efe938a6
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
2018-03-15 11:35:24 +05:30
Linux Build Service Account
1aba896bf0 Merge "qca: Fix KW variable initialization issue" 2018-03-08 10:07:16 -08:00
Linux Build Service Account
ed7b3de7eb Merge "ipq40xx: Replace strcpy with strlcpy" 2018-03-08 08:06:02 -08:00
Pavithra Palanisamy
79fd2cc72c qca: Fix KW variable initialization issue
Change-Id: I90363e8da0f1f3cf89e0e9635707a9b2fd555770
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
2018-03-08 06:06:26 -08:00
Sasirekaa Madhesu
b3394e6891 ipq40xx: Replace strcpy with strlcpy
Change-Id: I0b1a6d66e7fa99f62dbd1d08602026fbb128694a
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-03-02 16:30:40 +05:30
Kathiravan T
ea17792263 ipq806x: Fix the 8033 mii init
This change is ported based on commit b83c56c4d4

Change-Id: Ia4cdf26368d238ea3fcdb808f1446f010408a78c
Signed-off-by: Kathiravan T <kathirav@codeaurora.org>
2018-03-01 08:13:41 -08:00
Linux Build Service Account
3174e97d20 Merge "ipq40xx: Replace sprintf with snprintf" 2018-02-27 23:40:26 -08:00
Linux Build Service Account
eaf20104f1 Merge "ipq40xx: Enabled Ethernet initialization for DK07-C2 board" 2018-02-27 23:40:22 -08:00
Liu Zhongjian
6a4904ef88 drivers: phy: support AQR111B0 chip.
Change-Id: I238e5263ff9e194f958fd6ef217c26654513216e
Signed-off-by: Liu Zhongjian <zhongjia@codeaurora.org>
2018-02-27 04:08:03 -08:00
Sasirekaa Madhesu
75d4a7a9c2 ipq40xx: Enabled Ethernet initialization for DK07-C2 board
Change-Id: I9aec449ce94e99a2d641fc6adb6c1bb09cf0d6e6
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-22 21:05:54 -08:00
Linux Build Service Account
2c3843028a Merge "ipq40xx: Add ethernet support for DK07-C3 board." 2018-02-21 06:01:13 -08:00
Sasirekaa Madhesu
612713b37f ipq40xx: Add ethernet support for DK07-C3 board.
This patch enables ethernet initialization in
DK07-C3 board.

Change-Id: I70bf4dd2917b0fc02f937b236e68ebcb6b1c423c
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-19 12:02:27 +05:30
Sham Muthayyan
7d7aa70559 ipq807x: Add Cache support for ethernet
Change-Id: I58bf5e992175e73635f35b2b4bcbb44b501bd799
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-02-19 11:19:09 +05:30
Sasirekaa Madhesu
c5ffa908c0 ipq40xx: Replace sprintf with snprintf
Change-Id: I2f1d31901ce4c4b15dad9e25265597518d4b4122
Signed-off-by: Sasirekaa Madhesu <smadhesu@codeaurora.org>
2018-02-08 12:40:04 +05:30
Sham Muthayyan
be6400b9d7 ipq807x: Add ipq_mdio commands
This command helps to debug the phy issues.

Change-Id: If8354d6826795d9ef9d44112582d3b911963bda5
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2018-01-16 21:32:50 +05:30
Sham Muthayyan
91b49b6910 ipq807x: Enable the PPE tx_mac only if the phy link is up
Enable the PPE tx_mac only if the phy link is up else disble
the PPE tx_mac.

Change-Id: I7226a104fa287f8378b98923a00d0caa3f91079d
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-19 22:56:58 -08:00
Sham Muthayyan
a1aa6395b0 ipq807x: Added the 8033 port for uniphy instance 0
Change-Id: I34005349d1dbb74246dbf812f6dbe1ff9024a827
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-17 21:39:13 -08:00
Sham Muthayyan
102d8097d4 ipq807x: Fixed 8033 clocks to improve performance
Change-Id: I53d658b4ab47ba26117f10f7dd34f95cb9cd0cf5
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-17 21:39:00 -08:00
Sham Muthayyan
62ab0ec6a6 ipq807x: Issue sf command to read the AQ FW if the partiton is in nor boot
using nand command will change the default nand device to 1. This will
try to read the nor patitions so one if user tries to read the nand partitions.

Change-Id: Id73e89f479b5735fd5b28a871680190f48a76f0e
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-12-05 19:10:01 +05:30
Sham Muthayyan
e4217213f7 ipq807x: Add QSGMII mode support
Change-Id: Ic952513f482590a66341d88606ad7da5d2c405a7
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-29 17:00:24 +05:30
Sham Muthayyan
2ffbbe3dd2 ipq807x: Support Aquantia AQR112 PHY ID
Change-Id: I9e6a82345bfcf527311e1aef92cfa406a8a173a3
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-27 10:58:08 +05:30
Sham Muthayyan
f3af149d5f ipq807x: SGMII mode settings for all the channels
SGMII channel 0 is used for uniphy instance 1 and 2,
so set the SG_MODE for uniphy instance 1 and 2. Channel 0,1
and 4 are used for instance 0. So set CH1_CH0_SGMII and
CH4_CH1_0_SGMII for channel 1 and 4 respectively.

Change-Id: Ie6f0afa6419a9895f730c89fa27fb80b122acf73
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-08 02:41:01 -08:00
Sham Muthayyan
2035a079c5 ipq807x: Download firmware only if board has AQ PHY
Change-Id: I4c375367137ffdc3de00fd26882835e47eca86c5
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-11-01 06:01:14 -07:00
Sham Muthayyan
0ed8d4aa87 ipq807x: Fixed port mac for qsgmii mode
Change-Id: I190eb0e11ba17724b5bd6fa7ccf85c5dad9afb09
Signed-off-by: Sham Muthayyan <smuthayy@codeaurora.org>
2017-10-24 08:33:31 -07:00