Commit graph

9284 commits

Author SHA1 Message Date
Linux Build Service Account
ffdeef81a5 Merge "arm: dts: ipq5332: Add mmc node in AP-MI04.1 and AP-MI04.3 RDP" 2024-05-25 04:40:08 -07:00
Ram Kumar D
280e3319b9 arch: arm: dts: add mi01.2 support on tiny profiles
Change-Id: I9326bc6b0007c4ccaabbe8cbce9718adf91a4b4a
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2024-05-24 14:34:02 +05:30
Timple Raj M
610e459475 arm: dts: ipq5332: Add mmc node in AP-MI04.1 and AP-MI04.3 RDP
Change-Id: Ibfafa1e78dbd51cd864da592003765f3ef19ac1c
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-05-24 11:59:09 +05:30
Sridharan S N
6a387e21dc arch: arm: dts: update the config name
Add config names with regex config- for mi01.12,
mi01.13 and mi04.3 rdps.

Change-Id: Ib09ecddc7ba76f9f479cc04b454b9a0ef033c8d9
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2024-04-02 01:01:54 -07:00
Gurumoorthy Santhakumar
cf2f0c3a97 ipqsoc: Skip reset in crash dump path.
Skip reset in crash dump path which give access to user
to perform secure authentication.

in crash path,
	bootipq cmd only authenticate kernel/rootfs.
	booting to kernel is restircted.

Enable CONFIG_SKIP_RESET to skip reset in crashdump path.

Change-Id: I28fdd4dc6475d4d26b20a87aa039cef165db1375
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2024-03-18 12:37:20 +05:30
Timple Raj M
2bb41b0559 board: qca: arm: common: cmd_bootqca: Update config_selection sequence
Instead of updating the config_names in fdt_blob,
the config_names are maintained locally this avoids
the fdt_blob resizing

Change-Id: Ib1d6fecd973394363012564a8fc9e84d36fc7462
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2024-03-07 12:32:38 +05:30
Poovendhan Selvaraj
78d19e2dbb cmd_aes : Increase Context length to 128 from 64 bytes
Add support to increase context length if tz supports
128 bytes context length else fall back to old method.

Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com>
Change-Id: Ieded2c0139152e82011f792e91b875548fd29251
2024-02-27 16:25:20 +05:30
Linux Build Service Account
b34949f16c Merge "arm: dts: Add MI01.3-C3 dts support" 2024-01-23 12:08:55 -08:00
Saahil Tomar
c70ced3786 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-19 13:00:55 +05:30
Poovendhan Selvaraj
e15df34ac8 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>
2024-01-16 09:26:15 +05:30
Atchaya R
1cb16c44de arch: arm: dts: update the config name for all IPQ6018, ipq5018 and ipq807x targets
Signed-off-by: Atchaya R <quic_ratchaya@quicinc.com>
Change-Id: Ib0c78de0e33ab40c927702da777764e300b581c7
2023-12-14 13:20:27 +05:30
Linux Build Service Account
37f9e7e91d Merge "arch: arm: dts: Enable SPI NOR support for MI01.2" 2023-11-24 16:39:51 -08:00
Saahil Tomar
a91b6759b1 arch: arm: dts: Enable SPI NOR support for MI01.2
Change-Id: I3c823cde2dcde912169da878bba0569b5c9b088a
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-11-23 22:25:12 -08:00
Linux Build Service Account
1dbf523fb6 Merge "qca: ipq: fix to correct wrong delay obtained from udelay function" 2023-11-21 12:40:24 -08:00
Timple Raj M
72d8ec613f 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>
2023-11-17 21:01:28 +05:30
Saahil Tomar
881b42a1f7 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-15 15:00:36 +05:30
Saahil Tomar
8696807c64 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-15 14:18:40 +05:30
Saahil Tomar
ea59bdfcf6 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>
2023-11-07 16:51:46 +05:30
Linux Build Service Account
401706e079 Merge "arch: arm: dts: update the config name for all ipq9574 and ipq5332 targets." 2023-10-25 07:39:55 -07:00
ratchaya
c6fd33b70c arch: arm: dts: update the config name for all ipq9574 and
ipq5332 targets.

Change-Id: I8ebafdcd98f68ca2f9287a7c44cadfc77955dff3
Signed-off-by: ratchaya <quic_ratchaya@quicinc.com>
2023-10-19 15:48:16 +05:30
Linux Build Service Account
b3b09c8a1f Merge "arm: dts: Add MI01.7 (RDP473) dts support" 2023-10-18 21:39:20 -07:00
Saahil Tomar
a53e856d8d 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-10-13 02:01:54 -07:00
Ram Kumar D
b66a91afdd 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>
2023-10-05 16:56:04 +05:30
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
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
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
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
Linux Build Service Account
f749e8418c Merge "Revert "armv7: qca: common: smem: skip printing the partition info if it exceeds flash size"" 2023-09-19 04:11:45 -07:00
Ram Kumar D
7f9be61b22 arch: arm: dts: ipq5332: set default state for SFP TX pins
This change force sets the default state for SFP TX pin.

Change-Id: Iaaee73b8c4a6a4abc5fba9b1f88a2225cb1ed39d
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-09-19 15:39:56 +05:30
Sridharan S N
1faa3fe00b armv7: qca: common: smem: skip printing the partition info if it exceeds flash size
skip printing the partition info in smem if it exceeds flash size for
both nand and nor cases.

Change-Id: I446a3300865fbf543b6e585f918f747a1b75a15c
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2023-09-18 22:16:33 -07:00
Sridharan S N
314971f0b9 Revert "armv7: qca: common: smem: skip printing the partition info if it exceeds flash size"
This reverts commit c7c20989ab.

Change-Id: Idc9e56ee2f8eaa65cb2939f05b2cba73f13e65ff
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2023-09-15 21:09:41 +05:30
Gokul Sriram Palanisamy
20dd081414 ipq5332: TINY NOR: disable RAMDISK support
Change-Id: Ib600026b1b5e05e1b3a8c1879e61ea24c5557db2
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-13 20:48:12 -07:00
Gokul Sriram Palanisamy
dc54ad636c ipq5332: TINY NOR: disable exectzt, jump_kernel_64
Disable tzapp and 64-bit kernel support.

Change-Id: I13046276f266a24f4a05c6f39bccc7c2e5a898e2
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-13 20:47:11 -07:00
Gokul Sriram Palanisamy
c9029ee806 ipq5332: TINY NOR: add single dts support with config@1
For mi04.1-c2, add a fallback entry config@1 for
single dts FIT image.

Change-Id: I4f589fd3c8c5ddff28fdebeef81f76bb577a5a5c
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2023-09-13 14:38:13 +05:30
Linux Build Service Account
22722a1097 Merge "ipq5332: TINY NOR: disable unused fdt functions" 2023-09-11 11:11:02 -07:00
Linux Build Service Account
726fbc86aa Merge "ipq5332: TINY NOR: remove unused commands and functions" 2023-09-11 11:11:00 -07:00
Ram Kumar D
20278977d9 board: qca: arm: remove MEM_NOC clock access
Since only Q6/TME/TZ should have access to memnoc clock,
so removing the MEMNOC clock enable sequence.

Change-Id: Iee32a59c340cda794b8ee3c314be871ab749ff79
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-09-08 16:36:42 +05:30
Gokul Sriram Palanisamy
51a8fd3ae4 ipq5332: TINY NOR: disable unused fdt functions
functions disabled
------------------
- arch_fixup_fdt
- boot_setup_fdt, boot_prep_linux
- fdt_getprop_u32_default, fdt_getprop_u32_default_node
  do_fixup_by_path_u32, do_fixup_by_prop, do_fixup_by_prop_u32,
  do_fixup_by_compat, do_fixup_by_compat_u32
- fdt_pci_dma_ranges, __flash_get_bank_size, flash_get_bank_size
- fdt_fixup_nor_flash_size

above functions are disabled as part of image footprint reduction.

Change-Id: Ie7f51a358dc4d9fc10be3a4642883e16621b0916
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-06 09:26:01 +05:30
Gokul Sriram Palanisamy
cdd2ba4fcb ipq5332: TINY NOR: remove unused commands and functions
Below commands and functions are disabled
for reducing image footprint.

Introduced new config CONFIG_REDUCE_FOOTPRINT
to use for non-standard size reductions.

Commands disabled
-----------------
base, bootp, chpart, fdt

Added new configs to control enablement
of above commands respectively.
CONFIG_CMD_DISABLE_BASE
CONFIG_CMD_DISABLE_BOOTP,
CONFIG_CMD_DISABLE_CHPART

Functions disabled
------------------
- remove complete fdt support
- fit_image_print, fit_image_print_data, fit_image_print_verification_data
- fit_image_check_target_arch
- fit_image_get_os, fit_image_get_arch, fit_image_get_type, fit_image_get_comp,
- fit_image_check_os, fit_image_check_arch, fit_image_check_type,
  fit_image_check_comp,
- get_table_entry_id, genimg_get_os_id, genimg_get_arch_id, genimg_get_type_id,
  genimg_get_comp_id

Change-Id: I10259c0b70f6e84c850fd28f551df752b3cba814
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-09-06 09:25:49 +05:30
Saahil Tomar
4a573f00ff arm: dts: Add RDP479 & RDP481 dts support
RDP479 IPQ5332 + QCN6432 + QCN9224 (2+2+4)
	PCIe0 QCN6432-6G
	PCIe1 QCN9224-5G

RDP481 IPQ5332 + QCN6432 + QCN9224 (2+2+4)
	PCIe0 QCN6432-5G
	PCIe1 QCN9224-6G

Change-Id: I5d2e6c123ff8488c560f471789a13a49adfb4a5d
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-08-31 11:16:54 +05:30
Sridharan S N
c7c20989ab armv7: qca: common: smem: skip printing the partition info if it exceeds flash size
skip printing the partition info in smem if it exceeds flash size

Change-Id: Icb13b8d8f0f25f7817dfce2ee42d327081cbbfa6
Signed-off-by: Sridharan S N <quic_sridsn@quicinc.com>
2023-08-16 04:50:56 -07:00
Linux Build Service Account
da8430c5fb Merge "ipq9574: Add support for RDP467" 2023-07-27 13:41:22 -07:00
Ram Kumar D
a884d2f2da arch: arm: dts: updated qca808x PHY mode support in AL06
This patch updates the following ethernet configuration
on ipq9574.
Previously, AL06 has qca8075 PHY attached in the UNIPHY0,
now it has been replaced with qca808x PHY mode.

Change-Id: Ieb5b9ef10bd1ebfd1992cbfa10cb02b2ac4d0534
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-07-26 14:12:01 +05:30