Commit graph

37186 commits

Author SHA1 Message Date
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
Linux Build Service Account
d4fab50cef Merge "arm: qca: Add support to set CRASHDUMP RESET bit" 2022-11-06 21:17:01 -08:00
Linux Build Service Account
1a3c71242b Merge "board: qca: arm: Removal of the dumpinfo_s structure" 2022-11-04 13:33:58 -07:00
Linux Build Service Account
2cc0af4c3e Merge "pci: ipq9574: Add new command to list the qcn9224 fuses" 2022-11-04 13:33:57 -07:00
devi priya
9184c7a019 board: qca: arm: Removal of the dumpinfo_s structure
This patch removes the support for dumpinfo_s structure to have
uniform EBICS0 bin for both sec and non-sec boots as the Read As Zero
(RAZ) flag has been enabled to protect code and data regions of TZ

The patchset applies to all the targets except IPQ5018 as the RAZ
flag enablement was not supported in IPQ5018

Change-Id: I63514284448de08926cd2c9b741f02859067044d
Signed-off-by: devi priya <quic_devipriy@quicinc.com>
2022-11-03 23:17:17 -07:00
Praveenkumar I
2cc20dc1c6 pci: ipq9574: Add new command to list the qcn9224 fuses
"list_qcn9224_fuse" command will print the OEM ID, Secure boot enable
and OEM PK hash details of QCN9224 from all attached PCIe slots.

Change-Id: I87be2f58bcef6898a00f4e179c87f2dcb93a2604
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-11-04 11:35:15 +05:30
Gurumoorthy Santhakumar
0d9961e519 arm: qca: Add support to set CRASHDUMP RESET bit
The CRASHDUMP RESET bit of TCSR_BOOT_MISC_DETECT Register
has to be set before reset from u-boot in the
crashdump collection path for TZ to differentiate between the
normal reset and crashdump reset from u-boot and
to retain the crash reason.

Change-Id: Ib623bfeab15d1bc230f4a8824218f1a3c4368fbb
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-11-04 10:38:00 +05:30
Rajkumar Ayyasamy
11a742f785 ipq5018: bt: Toggle ECO bit in start/stop sequence
Add support for ECO bit toggle during IPC start/stop
messages to allow BT subsystem to do self reset

Change-Id: I4d1d31a43ea8a002eb91cc42300677339c117d71
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-10-30 22:52:19 -07:00
Linux Build Service Account
308f007e14 Merge "arm: dts: ipq5332: Add build support for DB boards" 2022-10-29 03:57:48 -07:00
Timple Raj M
7fb117c8b3 arm: dts: ipq5332: Add build support for DB boards
Add build support for DB-MI01.1 and DB-MI02.1

Change-Id: I00a2698924813e52d196469630e271b0c3009aec
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-28 19:11:10 +05:30
Timple Raj M
c7b972e06b arm: dts: Update the GPIO Configuration
GPIO_PULL details updated on AP-MI01.1, AP-MI01.2, AP-MI01.4,
DB-MI01.1 and DB-MI02.1

SPI NOR added only in MI01.1 and removed from other RDP's

Renamed DB-MI01.2 to DB-MI01.1

Change-Id: Ic2c3467aa06d04dd5e759767a806b4905b0d118a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-28 19:09:30 +05:30
Linux Build Service Account
36c1628ca2 Merge "arm: dts: ipq5332: update ethernet config" 2022-10-28 06:38:39 -07:00
Timple Raj M
b4e6e2971d arm: dts: rename db-mi01.2 to db-mi01.1
Change-Id: Ifbb828c971b7947f78fc940817f4bd8fa669949b
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-28 19:06:26 +05:30
Vandhiadevan Karunamoorthy
9ec1f908bc arm: dts: ipq5332: update ethernet config
Change-Id: Id790f4f97d865bc73b97f2ab5069cada4148cf04
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-27 12:03:30 +05:30
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
Vandhiadevan Karunamoorthy
e3b2150af9 board: arm: ipq5332: update ethernet clock config
Change-Id: I3354354c7cffcb3107293efc54834c5d87556518
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-25 23:38:31 -07:00
Timple Raj M
390ce51a5e arm: dts: ipq5332: Added spi and i2c gpio's in emulation dts
Change-Id: I9e2eff00b20152188acbe335120e5415b460ccad
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-21 07:13:19 -07:00
Linux Build Service Account
942cca269f Merge "board: arm: ipq5332: update eMMC clock sequence" 2022-10-21 00:31:50 -07:00
Gokul Sriram Palanisamy
32248d4fab arm: qca: scm: Cleanup TCSR_BOOT_MISC_REG usage
TCSR_BOOT_MISC_REG bits are not properly managed
for DLOAD implementation. Modify only necessary
bits to enable availability for new feature
implementations using TCSR_BOOT_MISC_REG.

Change-Id: I888a1bf6ce3654b0453c9ec2f87b4d5ff2a20de0
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-10-20 11:03:39 +05:30
Linux Build Service Account
b37ea35ac8 Merge "ipq5332: rename the files from devsoc to ipq5332" 2022-10-19 18:49:17 -07:00
Linux Build Service Account
4c9ce5f6ed Merge "arm: dts: ipq5332: add the various DB RDP support" 2022-10-19 18:49:16 -07:00
Vandhiadevan Karunamoorthy
c0acbfa54a board: arm: ipq5332: update eMMC clock sequence
Change-Id: Icadbf580d71cf672ff78961ed12a53c9e0bccf4f
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-19 05:10:42 -07:00
Vandhiadevan Karunamoorthy
35d9c9f36a board: arm: ipq5332: update pcie deinit sequence
This changes remove pci phy deinit sequence and
also update the pci phy address

Change-Id: I9bae09958e395dfb509a17e472674f33fe214f1c
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-10-19 15:36:01 +05:30
Timple Raj M
03947473f0 ipq5332: rename the files from devsoc to ipq5332
Change-Id: If2a3988bebe5eb491f8fce26a10c1f584f23752e
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-19 14:04:29 +05:30
Timple Raj M
e4327498cd arm: dts: ipq5332: add the various DB RDP support
Listed below are the new DB RDP's added:
PCIE0 ---> PCIE3X1_0
PCIE1 ---> PCIE3X2
PCIE2 ---> PCIE3X1_1

IPQ5332-DB-01.2
	Flash: NOR and NAND / emmc (option)
	RAM: 1GB DDR4
	Features:
	1 Lane PCIe Gen3 [pci0]
	2 Lane PCIe Gen3 [pci1]
	1 Lane PCIe Gen3 [pci2]
	1 USB 2.0
	1 LAN ports – 1GE AQR113C

IPQ5332-DB-02.1
	Flash: NOR and NAND / emmc (option)
	RAM: 512MB DDR3
	Features:
	1 Lane PCIe Gen3 [pci0]
	2 Lane PCIe Gen3 [pci1]
	1 Lane PCIe Gen3 [pci2]
	1 USB 2.0
	4 LAN ports – 2.5GE Manhattan

Change-Id: Ibcc0eb430f3caff29cdf4dde5784825342732d90
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-19 09:39:55 +05:30
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
Linux Build Service Account
48b394cf3c Merge "arm: dts: ipq9574: Add new board variant AP.AL02-C18" 2022-10-12 07:25:00 -07:00
Timple Raj M
61c9cf3505 driver: nand: qpic_nand: Add support for giga device spi nand
This change will  add support for giga device GD5F1GM7REYIG
spi nand support.

Change-Id: Ie32cb6824bd0fbcf04449fa070005b7fa323c025
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-10-11 11:23:34 +05:30
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
17f3d532f3 Merge "devsoc: kconfig: add TZT support" 2022-10-07 09:47:11 -07:00
Hariharan K
727c6f32d0 arm: dts: ipq9574: Add new board variant AP.AL02-C18
Same as AP.AL02-C4 RDP, with support for 10G PHY or 10G fiber in UNIPHY0

Change-Id: Ic3935a2cdc0033ed4c7478ae14abd3cf61aef797
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2022-10-03 02:05:28 -07:00
Vandhiadevan Karunamoorthy
d40d98ed31 board: qca: common: Add cmd_dpr support
This change adds cmd_dpr as a common file,
so it will be reused in the future SoC.

dpr support added in Devsoc SoC.

Change-Id: I246a8f51c07c2f6952173bbd72e327ab1119af6e
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-09-27 20:27:06 -07:00
Linux Build Service Account
e2360ed382 Merge "pci: ipq9574: Add a new command to list the PCIe device details" 2022-09-27 08:41:57 -07:00
Linux Build Service Account
ab1f3974f2 Merge "pci: ipq: Add sec.dat fusing support for qcn9224" 2022-09-27 04:55:52 -07:00
Praveenkumar I
4a3be8755b pci: ipq9574: Add a new command to list the PCIe device details
Change-Id: I6da44fbd966d8c45ba9b4adb447d415ee15628ce
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-09-27 16:22:05 +05:30
Praveenkumar I
32ad9dcb99 pci: ipq: Add sec.dat fusing support for qcn9224
This change adds a new command to support the qcn9224 fusing.
Fuser blower binary should be transfered via tftp to Host and
using fuse_qcn9224 command, binary can be transfered to qcn9224.
qcn9224 will take care of the fusing.

sample command:
tftpboot fuse_blower.bin
fuse_qcn9224 0

Change-Id: Ie8cd73a2d49799100bd1f717cdc4b8dad070f9bd
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-09-27 12:01:38 +05:30
Gurumoorthy Santhakumar
28f75030f6 devsoc: kconfig: add TZT support
Change-Id: I02700ad6c1db8725553c70bcc52b7675c4df42fd
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-09-26 06:36:32 -07:00
Rajkumar Ayyasamy
94dbaae51e pack_v2: use new xtract_n_flash command
xtract_n_flash $imgaddr $filename $partname

The above cmd can be used instead of below set of cmds

imxtract $imgaddr $filename
erase <offset> <size>
write <fileaddr> <offset> <filesize>

This patch also removes padding as it will be taken
care by the flash cmd itself

Change-Id: Id55d844103a97a6a621545e4d62d3da408ffa61c
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-09-25 22:06:20 -07:00
Kathiravan T
9eb70ef0b4 arm: dts: devsoc: add devsoc-01.6 and devsoc-01.7 RDP support
devsoc-01.6 and devsoc-01.7 RDPs are same as devsoc-01.4 and devsoc-01.1
respectively with 10GE SFP module instead of 2.5GE SFP module.

Change-Id: Ic65bab9126a34cb73dd51d5ce6a85e1cf29a1215
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-09-21 23:38:45 -07:00
Linux Build Service Account
7a5d903329 Merge "flash: add new command xtract_n_flash" 2022-09-21 11:15:18 -07:00
Linux Build Service Account
a593fa793b Merge "configs: devsoc: update the SMEM base address" 2022-09-21 11:15:18 -07:00
Rajkumar Ayyasamy
4d60476def flash: add new command xtract_n_flash
xtract_n_flash $imgaddr $filename $part_name
can be used instead of the below set of cmds

imxtract $imgaddr $filename
flash $part_name

This patch also takes page_size, block_size
and chip_size as arguments of mibib_load cmd

Change-Id: Iaf1ed33a2281029ad151f00ce5416648e513de56
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2022-09-21 04:50:08 -07:00
Kathiravan T
1296b4cfbc configs: devsoc: update the SMEM base address
SMEM base address is moved to 0x4A800000, update it.

Change-Id: Ic88268ac4db80efe4d50cadbee191f85f91ee06d
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-09-20 02:19:51 -07:00
Kathiravan T
e5f29a66be pack_v2: remove the obselete code
Remove the following support

*) ipq806x / ipq40xx targets
*) nand-audio
*) LK image
*) IPQ807x + QCN9000

Change-Id: I595f868e5b99d481a2110c430c228c2d70112b1e
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-09-20 11:14:52 +05:30
Kathiravan T
c6a4de6d00 pack_v2: remove the unwanted changes
Reverted the changes till the below commit
d84c9f230d ("tools: pack: add new option to select fw based on
machid")

Change-Id: I0578dd5014fbd1d4669065e0bff566c9fc899811
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-09-19 15:39:12 +05:30
Gurumoorthy Santhakumar
4d0a4d1677 devsoc: Enable multicore support
Change-Id: I7fb4098eeb30f48aae41017aef4c1ad6c52d067b
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2022-09-16 04:11:46 -07:00
Kathiravan T
3f7ad2e752 pack_v2: add the snapshot of pack script
Add the snapshot as of below commit from win.coretech.1.0 branch
9e40b52661 ("tools: pack: Update pack script for IPQ9574")

Change-Id: Iebafae7f827a5ae8bb0b48ca9c899f2672f65fb3
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-09-14 21:13:24 -07:00
Timple Raj M
40c1f3f4b3 ipq: support for mibib reload
Adding a new command mibib_reload to
populate the partition table info from
mibib binary

Change-Id: I3f08fc07ea55f1bbd90dc28d8f459d108f86bc0e
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-09-12 18:12:02 +05:30
Timple Raj M
361518f76c ipq: Flash support for gpt and gpt_backup
This patch adds the flash support
for gpt and gpt_backup in flash command

flash 0:GPT
flash 0:GPTBACKUP

Change-Id: I9101b27989acc84da25f010f6c73674d6717d54c
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-09-12 05:22:15 -07:00