Commit graph

8951 commits

Author SHA1 Message Date
Selvam Sathappan Periakaruppan
929b70f32f arm: dts: ipq95xx: Add Ethernet Support
In EMU Platform, there is no PHY/Uniphy, clocks/resets and
by default all MACs will be configured as SGMII mode.

The first 4 ports will have GMAC and PC side link speed
should be set as 10M, RUMI side link speed should
be configured as 1000M and then last 2 ports will have
XGMAC and PC side link speed should be set as 100M and the
RUMI side link speed should be configured as 10G.

Change-Id: I2ffe2bdb9c58eeacb3f765094c2bfb89e81a5c7d
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-05-13 05:36:23 -07:00
Selvam Sathappan Periakaruppan
48298857ba drivers: net: ipq9574: Update EDMA Driver
This patch updates the address of the EDMA registers, removes
registers which are not used and then does the required changes
to accomodate the new EDMA Descriptor format.

This patch also does the required changes to accomodate Secondary
Descriptor which is added instead of preheaders in ipq95xx.

We have also updated the number of descriptors per ring to 128
with this patch and have also moved the configs not required for
EMU Platform to !CONFIG_IPQ9574_RUMI.

Change-Id: I6e98c457d76c66f87b74cc0eafa7088d0081f533
Signed-off-by: Selvam Sathappan Periakaruppan <speriaka@codeaurora.org>
2021-05-13 05:36:14 -07:00
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
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
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
b4a334b276 ipq9574: Update machid and config_name for ipq9574 emulation
Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: Id77b132ba45662745a5b59a893419568fcb89bca
2021-04-06 17:22:18 +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
anusha
a5174ca51e ipq9574: Change target name from ipq9048 to ipq9574
Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: I34847b720ffe466e97cca92c00a0ab6545816c03
2021-03-30 19:40:24 -07:00
anusha
dab796560d ipq9574: Add PCIE support
Change-Id: I7272cf5bd27a7b62ae35f23cda7f980e177e2fd5
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-03-17 12:10:26 +05:30
anusha
be18366519 ipq9048: Add I2C support
Change-Id: Ia7ad9a00bca0ce361ef73101fddb727d748ac2a2
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-02-21 22:14:38 -08:00
anusha
8bdcb0c32b ipq9048: Add USB support
Change-Id: I4e638f9fef05551f9e96744a9fb719fbc6d0ffb4
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-02-21 22:04:16 -08:00
Linux Build Service Account
6470b8c616 Merge "ipq9048: Enable barrier operations" 2021-02-09 10:38:43 -08:00
anusha
b992347829 ipq: Add ISB instruction in isb() for aarch32
Updated the isb function for the aarch32 config to include
ISB instruction.

Change-Id: Iea2ee7934d18d6149af4032102b1677c16b9c06c
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-02-08 19:10:42 +05:30
anusha
0a965966aa ipq9048: Enable barrier operations
Enable accesses to DMB, DSB, ISB instructions.

Change-Id: Ib1ebd5884a6de01a1a5eecb12385a7258c140dfa
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-01-31 21:25:55 -08:00
anusha
15fd656acb ipq9048: Enable mmc support
Change-Id: If260475979df0eb5d50cbe232060bc38613847d4
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-01-10 20:27:27 +05:30
anusha
114b71a5f5 ipq9048: Enable serial nand support
Change-Id: I11f62302f46d9d0e0174c2ce2735e60406c5a9b9
Signed-off-by: anusha <anusharao@codeaurora.org>
2021-01-08 22:14:58 +05:30
anusha
123e771583 ipq9048: Enabling bootipq command
Change-Id: I59284e9b96ca5dc741554725c9f1c78a02d58d31
Signed-off-by: anusha <anusharao@codeaurora.org>
2020-12-30 21:50:49 -08:00
Md Sadre Alam
5c027bbc3d arch: arm: ipq9048: Add support for spi-nor
Added support for spi-nor in bam mode.

Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I3b38396c3fd92705cfce446d512f555258e863bb
2020-12-30 14:53:54 +05:30
Linux Build Service Account
ce59750a4d Merge "qca: ipq9048: Adding support for IPQ9048" 2020-12-28 22:06:23 -08:00
anusha
dc32ceba50 qca: ipq9048: Adding support for IPQ9048
Added config, dts and initial board support code for ipq9048.

Signed-off-by: anusha <anusharao@codeaurora.org>
Change-Id: Ib4d0da9aedd5c98b02c59dd83d9efa78baada335
2020-12-22 18:18:01 +05:30
Rajkumar Ayyasamy
2343ff363f ipq5018: Add BT beaconing support
Signed-off-by: Rajkumar Ayyasamy <arajkuma@codeaurora.org>
Change-Id: Ibe8dc716d0f4bafbbf1ec7f3b776bb4a6f891f45
2020-11-25 12:49:07 +05:30
Linux Build Service Account
2e249ffd6b Merge "ipq5018: dts: Update TB-MP04 device tree" 2020-11-20 14:08:03 -08:00
Pavithra Palanisamy
cb7d4f966d ipq5018: dts: Update TB-MP04 device tree
TB-MP04 baord is based on MP03.3 RDP.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I06ee9973bc7db73e49174cc820c5d2385e1ca943
2020-11-19 20:28:51 +05:30
Pavithra Palanisamy
007a5446e8 ipq5018: dts: Update MP03.4 device tree
MP03.4-C1 and MP03.4-C2 RDPs are based on MP03.3 and
MP03.3-C2 respectively.

Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I016eb422f3628e1a7733d71754613b2fa51245f1
2020-11-19 20:23:21 +05:30
Pavithra Palanisamy
d6dd5e226b ipq5018: dts: Add support for TB-MP04 RDP
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: I8e048ecfea8c1b32db382b663a6ca54198b31607
2020-11-18 00:04:36 -08:00
Pavithra Palanisamy
63891397f5 ipq5018: dts: Add support for MP03.4-C1/C2 RDPs
Signed-off-by: Pavithra Palanisamy <pavip@codeaurora.org>
Change-Id: Iee9d3663a0232a40e6791dc925a5d0a4805155c5
2020-11-18 00:03:30 -08:00
Vandhiadevan Karunamoorthy
9f5a786d58 dts: ipq50xx: Add MP03.1-C3 RDP
This RDP is the combination of MP03.1 + NAPA.
This RDP support Nor & nand flash.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia39cdf8ae21ad9800ee1c00c7af44c9bc1af03dc
2020-11-05 22:19:27 -08:00
Vandhiadevan Karunamoorthy
c33fb86ed0 dts: ipq50xx: Enable MP03.5 RDP build
This changes add Machid , USB Power gpio and enable build support.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I99e2da23f54da4d5e4edc9312f08340b88f7c59a
2020-11-04 11:53:11 +05:30
Vandhiadevan Karunamoorthy
e3ccad69cf dts: ipq5018: Add MP03.5 RDP
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ica56c52ee16051b0b9d13bbb68c5cd90e27e7cb3
2020-11-04 11:48:25 +05:30
Linux Build Service Account
ea3e33a8e2 Merge "ipq5018: Add pull up gpio for usb pwr in MP03 RDP" 2020-10-29 08:06:42 -07:00
Vandhiadevan Karunamoorthy
0ee364d5ed ipq5018: Add pull up gpio for usb pwr in MP03 RDP
This changes enable pull up to drive 5V to usb
in MP03 RDP

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I43c2098c75f23a38bab221773c1dcce7c754cf39
2020-10-24 20:49:06 +05:30
Linux Build Service Account
b7e5f67e98 Merge "dts: ipq50xx: Update spi-nor gpio DRV_STRENGTH." 2020-10-24 01:06:06 -07:00
Vandhiadevan Karunamoorthy
3fc5e5d54d dts: ipq50xx: Update spi-nor gpio DRV_STRENGTH.
This changes reduce spi-nor drv_strength from 8mA to 2mA.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib21e8229fff3ce81f5da29edfb978cbe1fdc833b
2020-10-23 13:56:09 +05:30
Vandhiadevan Karunamoorthy
7fff6b863d ipq5018: update ethernet initialization sequence
This change make the qca_8337 switch initialization generic based on
dts irrespective of gmac controller.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I292992307ead2cd7bbb0763ff483dc16c266d417
2020-10-22 12:13:32 +05:30
Vandhiadevan Karunamoorthy
1affd87bb6 dts: ipq5018: modify MP03.6 to MP03.6-C1
This changes update mp03.6 config name.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I16b68bae3939848102c52152604e2a25807683cf
2020-10-06 15:40:24 +05:30
Vandhiadevan Karunamoorthy
2f134cac29 dts: ipq5018: Add MP03.6 RDP
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Id0e7cffd0d996cf9629f2aa3e10ec7ed579cb62e
2020-10-01 13:45:54 +05:30
Karthick Shanmugham
7635ecacd3 ipq50xx: Added support for compressed dtb in u-boot
Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: If56b282b02cf621fa220d7f8cc6f2ddfe85bb212
2020-09-16 00:01:29 -07:00
Linux Build Service Account
397b6fab69 Merge "config: ipq5018: Add tiny_debug config" 2020-09-14 09:06:03 -07:00
Vandhiadevan Karunamoorthy
1189dd5c9d ipq5018: Add argument for size in fuseipq
This changes add additional argument for binary size
information in fuseipq.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I9ea5e3104a750377b7999a5e0475739b107b0204
2020-09-11 16:42:52 +05:30
Karthick Shanmugham
434cc613fc ipq: Added nand bad block skipping to dump_to_flash feature
This change will skip the bad blocks offsets, if any while writing
into the nand flash duirng crash when dump_to_flash enabled. This
change also verifies whether the dump data is not overwritten into
the next partition.

Signed-off-by: Karthick Shanmugham <kartshan@codeaurora.org>
Change-Id: I0eec4c772a5f5efb3c17bfd1fd3d3d9a5ff85d1d
2020-09-11 12:49:29 +05:30
Vandhiadevan Karunamoorthy
089da6a643 dts: ipq5018: update gephy led gpio pin
Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ic44ca15091cb6ee44bec2e65ac765b475174d6f3
2020-08-13 23:26:43 -07:00
Vandhiadevan Karunamoorthy
81ba78ca06 mtd: ipq5018: remove CONFIG_CMD_NAND from tiny nor
This changes add CONFIG_CMD_NAND flags in flash command and smem
source file to eliminate nand specific source if CONFIG_CMD_NAND
is not defined.

This changes replace CONFIG_IPQ_MTD_NOR with CONFIG_MTD_DEVICE flag

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I612ae89c3730dc86f2693088fb4cb5c10763165d
2020-08-12 00:04:52 -07:00
Linux Build Service Account
ace1d279a1 Merge "env: Export soc_hw_version to environment variable" 2020-08-07 09:35:39 -07:00
Karthick Jeyaraman
a6ca8dd013 IPQ807x: Implement SCM interface for AES 256
Encryptio/Decryption

	- For encryption/decryption, plain data/
	  encrypted date has to be written to memory
	  directly using mw command along with
	  ivadata, type and mode
	- Implemented new uboot command "aes_256"
	  to receive the memory address where the
	  above data is written to
	- Perfom basic sanity check against the data
	  received and send them to secure world through
	  scm calls
	- This is supported only for HK/CYP, hence not
	  implemented for TZ running in 32bit mode

Change-Id: I589a15025cd248cf5792f13ea435c5c5b64c6066
Signed-off-by: Karthick Jeyaraman <kjeyaram@codeaurora.org>
2020-08-05 06:48:06 -07:00
Gokul Sriram Palanisamy
bae298d521 env: Export soc_hw_version to environment variable
soc_hw_version can used to prevent cross-platform
flashing of single images to prevent board
from getting bricked.

Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: I579489498c8cbbc944b54e3050a319d1e11cb825
2020-08-04 14:21:10 +05:30
Gokul Sriram Palanisamy
d30e27b42d dts: Enable dts support for DB-HK02
Signed-off-by: Gokul Sriram Palanisamy <gokulsri@codeaurora.org>
Change-Id: Iea51ec57cb43fd4f19fbe370865779cfff6f6190
2020-07-24 09:52:13 +05:30
Vandhiadevan Karunamoorthy
cec29b5195 ipq5018: Add 8033 phy support in MP02.1 RDP
This changes add 8033 phy support in MP02.1(Ap & Db) RDP
in tiny nor flash

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ib35faba4321c70fed007c923ff0f5e618fad0276
2020-07-20 14:51:05 +05:30
Md Sadre Alam
6639bc0828 driver: i2c: Enable I2C support for ipq5018
Signed-off-by: Md Sadre Alam <mdalam@codeaurora.org>
Change-Id: I9da4833a6aefc132092b88b4610f57dd3568ee5a
2020-07-16 18:53:41 +05:30
Vandhiadevan Karunamoorthy
d15814b9f3 ipq5018: remove phy_name from dts
This changes remove the phy_name from all mpXX dts and
handle by driver itself.

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: Ia2d0379151db0c68a0b28f5062e83f80579d37c1
2020-07-04 15:47:56 +05:30
Vandhiadevan Karunamoorthy
4ee702eff9 ipq5018: Add Napa phy support in mp03.3 RDP
This changes removes NAPA support from tiny U-boot config

Signed-off-by: Vandhiadevan Karunamoorthy <vkarunam@codeaurora.org>
Change-Id: I057064d63a3ac0788275a4572242cc251a445a98
2020-07-04 14:52:02 +05:30