Commit graph

37555 commits

Author SHA1 Message Date
Ram Kumar D
98fa31b9d4 board: qca: ipq5332: updated scope for the loop in PHY reset
The missing calibrace leads to an in-valid hardware access,
it in-turn causes silent reboot. So, added the calibrace to
define the scope for the loop statement.

Change-Id: I0c719798af35eb21a824ee6f570501dab720e241
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
(cherry picked from commit 17f2872c6b)
2024-02-03 01:53:57 -08:00
Saahil Tomar
a355661408 arm: dts: Add MI01.3-C3 dts support
This change adds MI01.3-C3 (RDP486) which is a derivative of RDP442

Change-Id: Ia19d7bf94962a52b76cc4556969c4ed1cd3706b6
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2024-01-23 06:10:52 -08:00
Poovendhan Selvaraj
bae645d417 aes: Add aes 256 support for ipq5332 platform
ipq5332 is a TME-L based platform in which before
encrypt/decrypt, we are required to derive a key
handle.

This patch adds support for the same.

Change-Id: I28b327611b62381542086d6d599c4a0195525aca
Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
(cherry picked from commit e15df34ac8)
2024-01-21 21:19:20 -08:00
Timple Raj M
4d07c250f2 ipq5332: Skip PCIe enumeration during the board_init
In Q6, we are seeing rare PCIe enumeration failure and suspecting
U-boot PCIe enumeration (Gen1) could impact. Hence skipping the PCIe
enumeration during the board_init based on CONFIG_IPQ_PCI_INIT_DEFER
config and added it after autoboot is stopped.

Change-Id: I79d0d0aef2eeea9bf49157f405a29f23b3c2239d
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-01-10 04:48:54 -08:00
Timple Raj M
b7dae37965 drivers: mtd: spi: Add MX25U12832F SPI NOR device support
Change-Id: Ie8ee6c5a79fe6469b3c7688010ce33cac60ffc4a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-01-01 22:09:30 -08:00
ratchaya
bc7351900c arch: arm: dts: update the config name for all ipq9574 and
ipq5332 targets.

Change-Id: I8ebafdcd98f68ca2f9287a7c44cadfc77955dff3
Signed-off-by: ratchaya <quic_ratchaya@quicinc.com>
(cherry picked from commit c6fd33b70c)
2023-12-19 20:35:57 -08:00
Ram Kumar D
604f7cf36c board: qca: arm: load rootfs as per the elf hdr
During rootfs authentication, this following patch makes
the uboot will load rootfs at the load address mentioned
in the rootfs elf hdr which is present at the end of
kernel image.

Change-Id: Iba9d31c72d01449b858b3866f38f369b67011cae
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
(cherry picked from commit 0b102f4bdc)
2023-12-19 05:05:00 -08:00
Linux Build Service Account
dec577be25 Merge "qca: ipq: fix to correct wrong delay obtained from udelay function" 2023-11-27 05:12:16 -08:00
Timple Raj M
2e896eccc8 qca: ipq: fix to correct wrong delay obtained from udelay function
If usec >= 224000 usec, then:
usec * GPT_FREQ_KHZ = 224000 * 19200 >= 0x100590000,
which is a 33 bits value

To fix this usec is typecasted to 64 bit
(unsigned long long)usec * GPT_FREQ_KHZ

Change-Id: Ib1642d39b0581d2c04c62e415a1fd2dfed47fff1
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
(cherry picked from commit 72d8ec613f)
2023-11-27 03:26:46 -08:00
Saahil Tomar
ab765304c8 arch: arm: dts: Enable SPI NOR support for MI01.2
Change-Id: I3c823cde2dcde912169da878bba0569b5c9b088a
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
(cherry picked from commit a91b6759b1)
2023-11-26 06:38:14 -08:00
Linux Build Service Account
2f2f149458 Merge "ipqsoc: board: Add restriction for bootm and mw cmd" 2023-11-22 08:40:01 -08:00
Gurumoorthy Santhakumar
1bf2b24543 ipqsoc: board: Add restriction for bootm and mw cmd
Added restriction for secure board

Change-Id: I7a7b4089689d98a6502b0360bb742fa42eff4759
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
(cherry picked from commit 59cb1c8529)
2023-11-22 02:21:31 -08:00
Saahil Tomar
33bf8df37a arm: dts: Add MI01.13 (RDP480) dts support.
RDP480 IPQ5332 + QCN9224 + QCN6432 + QCN9160 (2+4+2+Y)

Change-Id: Ibd36002d30c563932da501901c0e1504e1c33d8f
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-11-22 01:22:28 -08:00
Praveenkumar I
1be88b4e84 pci: pci_ipq: Fix pci_find_ipq_devices() to not check all PCIe hose
Fix pci_find_ipq_devices(), which is checking all the PCIe hose from
the given ID and if searching device is not present, it moves till
the last PCIe hose and finds the device. This leads to duplicate
entries if unknown devices are also present. Instead it should
check only the selected PCIe hose and return success or failure.

Add QCN6432 in PCI device list so that list_pci command can show it.

Change-Id: I1fd1af9a760354f558680889dd5804abd6145dea
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-11-20 23:55:37 -08:00
Saahil Tomar
6b5567dedd arm: dts: Add MI01.12 (RDP479) dts support
Add dts support of RDP 479
IPQ5332 + QCN6432 + QCN9224 (2+2+4)
	PCIe0 QCN6432-6G
	PCIe1(x2) QCN9224-5G

Change-Id: If370919a699f45d8e0b5f41d4214c7e4e2967790
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-11-16 01:46:01 -08:00
Linux Build Service Account
2c6159e3c4 Merge "configs: ipq5332: Add fdtfixup support for tiny-nor" 2023-11-10 05:42:10 -08:00
Saahil Tomar
bc21208512 arm: dts: Add MI01.7 (RDP473) dts support
RDP473 IPQ5332 + QCN6432 + QCN6432 + QCN9160 (2+2+2+Y)

Change-Id: I321dfecf50bb21835e2e3ed967400d0e29386c06
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-11-10 03:52:30 -08:00
Timple Raj M
b548032a51 configs: ipq5332: Add fdtfixup support for tiny-nor
Change-Id: Ic75d3ec52f1982fc4e1d6a06cf3227ff2edd7cc2
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-11-09 08:25:53 -08:00
Linux Build Service Account
0133affe21 Merge "arm: dts: Add MI04.3 (RDP483) dts support" 2023-11-09 01:22:14 -08:00
Saahil Tomar
44bd4029af arm: dts: Add MI04.3 (RDP483) dts support
This RDP 483 (MI04.3) is based on RDP478 (MI04.1-C2).
RDP483 has u-boot eth config:4*2.5GE (1+3)

Change-Id: I670e32f3c49a2a71bca8d349b7f4f5334075836c
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
(cherry picked from commit ea59bdfcf6)
2023-11-08 02:29:40 -08:00
Timple Raj M
0edc112832 drivers: mtd: nand: Add winbond W25N04KWZEIR device
Change-Id: Id76f33547c3acb7db7e6ad35d478c77580f14ad1
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-11-07 02:31:26 -08:00
Ram Kumar D
68c7b3e7ff arch: arm: dts: ipq5332: configure SFP RX pin state
We used to configure SFP RX pin with 8MA drive strenght and pull
up enabled, but later identified that, it is not really required.
Then, removed it in miami.

But, looks likes when device like SFP-80M module is connected to
SFP cage, these configurations are needed. So, enabling it on
all miami sfp rdps.

This change wont affect our SFP-30M module behaviour.

Change-Id: I5dd758e1d982062d9a0259b50e1e537eeda8ddc8
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
(cherry picked from commit b66a91afdd)
2023-11-03 02:09:33 -07:00
Rajkumar Ayyasamy
2df60bce7d ipq5332: enable JFFS2_CLEANMARKER for all the tiny profiles
This patch also skips adding clean marker if rootfs_data
size is less than 1MB

Change-Id: I3687a1d9954dfc319f6b3880556169269a72c4ea
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2023-10-17 02:31:30 -07:00
Gokul Sriram Palanisamy
5b1b2ae33c configs: ipq5332: TINY NOR debug: Enable ETH PHY
Enable ETH PHYs QCA8081 and QCA8084 for debug profile

Change-Id: I3c006799c16d1e2018c75fb0cff85ef8fbf2af7d
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2023-10-13 05:34:27 -07:00
Linux Build Service Account
e6270399ad Merge "configs: ipq5332: TINY NOR: enable ART_COMPRESSED" 2023-10-12 03:13:05 -07:00
Gokul Sriram Palanisamy
251833f5ff configs: ipq5332: TINY NOR: disable dtb compression
Disable configs ZLIB, GZIP, CMD_ZIP, COMPRESSED_DTB.

Change-Id: Ie13d82d390f4c60dd20099c6c5a03216940e11a9
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
(cherry picked from commit 70c83e3f70)
2023-10-11 21:13:42 -07:00
Gokul Sriram Palanisamy
244be04db3 configs: ipq5332: TINY NOR: enable ART_COMPRESSED
Enable compressed ART support and also
included related header files.

Change-Id: Ie28a0e5a91548b8b4ae9ae0560b7d139812145b3
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
(cherry picked from commit 00b660e13d)
2023-10-11 21:07:11 -07:00
Gurumoorthy Santhakumar
4f030cf325 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>
(cherry picked from commit 96f2c8480b)
2023-10-06 18:14:58 -07:00
Linux Build Service Account
8894b3a7f4 Merge "flash: NOR: add jffs2 clean marker support" 2023-10-05 22:39:04 -07:00
Rajkumar Ayyasamy
41570fdb70 flash: NOR: add jffs2 clean marker support
during NOR rootfs image flashing , each block in the
remaning space (rootfs_data) will be updated with jffs2 clean marker

Change-Id: I324ee3d61b427533473ebed6653ae8716b31600b
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
2023-10-05 04:44:28 -07:00
Rajkumar Ayyasamy
28e270194d pack_v2: fix wifi fw packing of norplusemmc image
Change-Id: I131e9ca0c3bd512f5f16363bf0ae5836a4601c8c
Signed-off-by: Rajkumar Ayyasamy <quic_arajkuma@quicinc.com>
(cherry picked from commit 881cdd8aa0)
2023-10-05 03:44:53 -07:00
Linux Build Service Account
6445908141 AU_LINUX_QSDK_FIG_TARGET_ALL.12.4.000.2264
-----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQTxBDvDjyiEYwLkeGuhSA9lgKkB8QUCZRrKYgAKCRChSA9lgKkB
 8SYmAJ4zgKB3A1YfCdoGqUSSjlEhzwGahQCgn+Nkiq5wh+Kqcfh+240lhKh9QOM=
 =BZuC
 -----END PGP SIGNATURE-----

Merge AU_LINUX_QSDK_FIG_TARGET_ALL.12.4.000.2264 on remote branch

Signed-off-by: Linux Build Service Account <lnxbuild@localhost>
Change-Id: Ieab7813c6efffd30da773ec84d4b5fa25503ecef
2023-10-04 01:32:02 -07:00
Timple Raj M
b2c1ec334d pack_v2: Update the image_type condition check for 0:WIFIFW
This patch updates the image_type condition check
for 0:WIFIFW since emmc-partition.xml each partition
information is parsed in single xml tag but for other
partition.xml files each partition information is
mentioned in multiple xml tags

For Example

ipq5332/flash_partition/tiny-nor-partition.xml

<partition>
        <name length="16" type="string">0:WIFIFW</name>
        <size_kb length="4">5500</size_kb>
        <pad_kb length="2">0</pad_kb>
        <which_flash length="2">0</which_flash>
        <attr>0xFF</attr>
        <attr>0xFF</attr>
        <attr>0x00</attr>
        <attr>0xFF</attr>
        <img_name image_type="hlos" optional="true" type="string"
wififw_type="1">wifi_fw_ipq5332_qcn6432_squashfs.img </img_name>
</partition>

ipq5332/flash_partition/emmc-partition.xml

<partition
        label="0:WIFIFW"
        size_in_kb="12288"
        type="888d8069-8d27-40a8-95a9-6006e1ce9b3b"
        bootable="false"
        readonly="false"
        image_type = "hlos"
        optional="true"
        filename="wifi_fw_ipq5332_qcn9224_v2_single_dualmac_squashfs.img"
        />

Change-Id: I1b5835b0835f2c05958924ad6ce5f403e934aac4
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-29 07:27:55 -07:00
Linux Build Service Account
e2a8fa4112 Merge "tools: pack_v2: fix wififw image flashing script" 2023-09-28 06:40:09 -07:00
Linux Build Service Account
ad66d83448 Merge "sysupgrade-helper : Fix warnings during compilation" 2023-09-27 18:09:26 -07:00
Linux Build Service Account
d76daa7b87 Merge "arm: dts: Add MI01.2-C2 dts support" 2023-09-27 18:09:24 -07:00
Linux Build Service Account
cba7e5d09e Merge "arch: smem: removed end_magic check in bootconfig" 2023-09-27 15:09:08 -07:00
Linux Build Service Account
2ad630d543 Merge "ipq9574: Add support for AL02-C20" 2023-09-27 11:10:17 -07:00
Gokul Sriram Palanisamy
f52ebe8b10 tools: pack_v2: fix wififw image flashing script
tiny-nor was using ubi volume name "wifi_fw" instead
of partition name "0:WIFIFW". This change fixes the same.

Change-Id: I55dc83a2cc40178ffffdfa25fe20a739f21040ad
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2023-09-27 19:22:42 +05:30
Vijay Balaji
04a18622dd sysupgrade-helper : Fix warnings during compilation
This change will fix warnings occurred during
compilation of sysupgrade source files

Change-Id: I0526da607b383064b4c5cea7462fe4c12c669a3b
Signed-off-by: Vijay Balaji <quic_vijbal@quicinc.com>
(cherry picked from commit 6a7c18c463)
2023-09-27 00:16:00 -07:00
Saahil Tomar
34c2bbf2d8 arm: dts: Add MI01.2-C2 dts support
This change adds MI01.2-C2 (RDP484) which is a derivative of RDP441
with PON SFP connected and ethernet SFP plugged out.

Change-Id: I2075b3a4f09e510bbc5f188209435b97b06e5ba7
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-09-26 02:41:25 -07:00
Ram Kumar D
8104d45265 tools: pack_v2: resolving wifi fw section name mis-match
This patch resolves the wififw section name mis-match for
the nor flash types.

In image info, wififw-SHA-HASH is used, whereas in the scripts
wifi_fw_ipq5332_qcn6432-SHA-HASH is used. It occur on nor-only build.
For nand/nor+nand, wifi usually in the ubi volume. Incase of
emmc, it is properly taken care.

So, handled all nor-only cases (including tiny-nor) as
similar as emmc case.

Change-Id: I3741a8255da487ad0546d9706933d19f1b1a3a93
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-09-25 03:00:54 -07:00
Hariharan K
39bc05eace ipq9574: Add support for AL02-C20
Changing RDP467 to AL02-C20.
Also updating the return machid type
for AL02-C11 similar to AL02-C12,
since AL02-C11 is converted to RDP455
configuration.

Change-Id: I87e3b954d1ea9f38b24504f5b5754f9fef38df83
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>
2023-09-23 18:50:49 +05:30
Gurumoorthy Santhakumar
c61b701c04 arch: smem: removed end_magic check in bootconfig
This patch is to support bootconfig with crc32

Change-Id: I49a7c5e3a578a166d25b8c7387a9a5ffd21652a8
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-09-22 07:18:38 -07:00
Linux Build Service Account
5f169ad23b Merge "ipq5332: TINY NOR: add compressed_art fixup" 2023-09-22 04:10:56 -07:00
Linux Build Service Account
7998e7fb24 Merge "arm: dts: Rename RDP479 to MI01.12 & RDP481 to MI01.14" 2023-09-21 22:39:59 -07:00
Saahil Tomar
2229c3c63c arm: dts: Rename RDP479 to MI01.12 & RDP481 to MI01.14
This change renames all the affect files from rdp479/rdp481 to
mi01.12/mi01.14 respectively

Change-Id: Ia06a17b9c34bf7e49fe43721db1e83bd4f5a7e3e
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-09-21 11:34:08 +05:30
Sridharan S N
884e14bf22 arch: arm: smem: add onfi nand support
Change-Id: Ic603a9bb946fd033e51a8af39cfabe1b64c27d9f
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2023-09-20 22:55:07 +05:30
Linux Build Service Account
1068e67e2a Merge "arch: arm: dts: ipq5332: set default state for SFP TX pins" 2023-09-19 12:12:42 -07:00
Linux Build Service Account
053a0869f6 Merge "armv7: qca: common: smem: skip printing the partition info if it exceeds flash size" 2023-09-19 04:11:46 -07:00