Commit graph

37344 commits

Author SHA1 Message Date
Vandhiadevan Karunamoorthy
bd47dbed37 drivers: net: ipq9574: update uniphy SGMII config
This change set SGMII mode and force mode based on
dts entries.

Change-Id: Ideaa1bb77fe8fb37a7e6b907a987f6dcac54917f
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-06 13:26:38 +05:30
Vandhiadevan Karunamoorthy
72b0604461 drivers: net: ipq9574: update QCA8084 config
This changes enable both PHY and switch configure
simultaneously and also switch can be configure
to any port.

And also these changes enable dual MDIO bus support.

Change-Id: Ib86c8a15abb9a7a35aa86d87cef78ad917dd1a00
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-06 10:09:20 +05:30
Vandhiadevan Karunamoorthy
b0e133d937 drivers: mdio: add bitbangmii support
Change-Id: Ieb6e05a462451e1d2c28b43cc7a761344742df15
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-01 21:16:50 -08:00
Vandhiadevan Karunamoorthy
1a4b370d2e drivers: net: add MDIO clause 45 support
Change-Id: Iba47a99967bed745083097a11a767062b26d21e3
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-01 20:59:50 -08:00
Vandhiadevan Karunamoorthy
0012c3f879 drivers: net: add ipq bit bang support
Change-Id: I65272bf187c11ca72425f9a29d1f29d62e139436
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-01 20:58:57 -08:00
Linux Build Service Account
2a18527a0f Merge "board: qca: arm: ipq5332: Fix to reduce the noise in High Speed TX Eye" 2023-03-01 02:58:48 -08:00
Linux Build Service Account
4ab7918f90 Merge "drivers: net: ipq5332: enable active port support" 2023-03-01 02:58:47 -08:00
Linux Build Service Account
bd0de257a7 Merge "pci: ipq9574: Fix PCIe single lane PHY configuration" 2023-02-28 05:28:44 -08:00
Linux Build Service Account
072ff40ca8 Merge "board: ipq5332: Added read SOC HW version support" 2023-02-28 05:28:42 -08:00
Timple Raj M
c3c600f120 board: qca: arm: ipq5332: Fix to reduce the noise in High Speed TX Eye
This patch adds the XCFG configuration in HS PHY sequence
to reduce the noise in High Speed TX Eye

Change-Id: Iac430aa8bbd9ccc9a84c164578a1b6e35b3771f8
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-02-28 14:47:55 +05:30
Vandhiadevan Karunamoorthy
27112d3edc drivers: net: ipq5332: enable active port support
Change-Id: I0b8dcbd0386d89d4c4a2e7f525051a11c2423cdd
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-02-27 19:09:50 -08:00
Linux Build Service Account
f7147676d3 Merge "board: qca: ipq9574: Added support for RDP469 AL02-C17 variant" 2023-02-27 10:26:19 -08:00
Gurumoorthy Santhakumar
0ff128d69f board: ipq5332: Added read SOC HW version support
Change-Id: I8d86189047cda9753d08b1e708046e5ce0421a3e
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-02-27 10:18:53 -08:00
Praveenkumar I
4a2716fc06 pci: ipq9574: Fix PCIe single lane PHY configuration
Change-Id: Ie4f6f92a1cdb91b4cd97ec6ff1a80cef5780f162
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-02-27 22:59:45 +05:30
Saahil Tomar
0110877a49 board: qca: ipq9574: Added support for RDP469 AL02-C17 variant
AL02-C17 is based on AL02-C4. This variant
enables PCie0 and PCie2.

Change-Id: I67aa500bd13ec661a43b17c4cbcd56c9a6db8abc
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-02-23 11:43:39 +05:30
Timple Raj M
002f2d429e arm: dts: ipq5332: Remove the AP-MI01.7 dts file
Change-Id: I62fdad68a450dbb95d0c415b6bbc58a116ccd8b6
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-02-23 11:41:43 +05:30
Ram Chandra Jangir
90c4bba23c sysupgrade: Add support to authenticate rootfs image
Add rootfs section to authenticate signed rootfs image
Parse the hlos elf header and get the rootfs metadata offset
Reads metadata available at the end of hlos image and write to /tmp/metadata.bin
Calculate sha384 and write to /tmp/sha384_XXXXX file
Use /tmp/metadata.bin and /tmp/sha384_XXXXX to get rootfs auth by TZ

Change-Id: Iaa4bf6b0cfbae4f4a56187f80f2873cb69550051
Signed-off-by: Ram Chandra Jangir <quic_rjangir@quicinc.com>
2023-02-20 13:09:06 +05:30
Timple Raj M
b34a049617 arm: dts: ipq5332: update pci configuration
This patch updates the pci configuration for AP-MI01.3 and AP-MI04.1

AP-MI01.3
PCIE0    - Pebble 5G
PCIE1_x1 - Pebble 6G
PCIE2    - Unused

AP-MI04.1
PCIE0    - Pebble 6G
PCIE1_x1 - Pebble 5G
PCIE2    - Unused

Change-Id: Ic667167840dd5d0a6c904c6b17521183121dd87f
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-02-17 10:58:37 +05:30
Linux Build Service Account
e2c7914736 Merge "arm: dts: ipq5332: RDP name change AP-MI01.1 to AP-MI01.6" 2023-02-16 13:48:30 -08:00
Timple Raj M
77a65d79a7 arm: dts: ipq5332: RDP name change AP-MI01.1 to AP-MI01.6
Change-Id: Id2dfeeb77a9a1caeae3737ab87f5b98ad8376d42
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-02-16 12:56:42 +05:30
Timple Raj M
63ab0ab42e board: qca: arm: ipq5332: Add PCIE reset sequence
Change-Id: I42c60e8c91a361b81ac99e435081cec953b13834
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-02-15 21:20:59 -08:00
Timple Raj M
b4cb7484a7 arm: dts: ipq5332: Add AP-MI04.1 RDP support
IPQ5332-AP-MI04.1
	Flash: NAND
	Features:
	512 MB DDR4
	1 USB 2.0

Change-Id: Ib2570c23f1316dd791f67f803e3ae776eb8c5c73
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-02-14 22:02:04 -08:00
Priyanka MA
95375f5fe9 arm: qca: Add support to set CRASHDUMP RESET bit
The CRASHDUMP RESET bit of TCSR_BOOT_MISC_DETECT Register
has to be set in the crashdump collection path before reset
from u-boot for the  TZ to differentiate between the
normal reset and crashdump reset from u-boot and
to retain the crash reason.

Change-Id: Ic74cec02bf749925e599ee12205257480a234064
Signed-off-by: Priyanka MA <quic_priyma@quicnic.com>
2023-02-09 21:30:25 -08:00
Timple Raj M
448f8eeb38 board: qca: arm: ipq5332: Enable long cable support for USB SSD
Change-Id: I255d34f3b104b85e1180b2b46a7f86ddc32c253c
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-02-08 15:04:25 +05:30
Nitheesh Sekar
113a960b50 ipq9574: Add 1 sec delay during SDX power cycle
Change-Id: I7b25b6e84b8cab6f402b0dfe126660b6fafae4c0
Signed-off-by: Nitheesh Sekar <quic_nsekar@quicinc.com>
2023-02-06 02:12:13 -08:00
Nitheesh Sekar
e520f6cd3a ipq9574: power cycle SDX during IPQ crash
This patch adds support to power cycle the SDX device during
the IPQ crash scenario by toggling the full_power_on and reset
gpios.

Change-Id: Ifac2db5480c13456ef50b6d779691c5bf41f21b2
Signed-off-by: Nitheesh Sekar <quic_nsekar@quicinc.com>
2023-02-04 04:43:11 -08:00
Timple Raj M
236b230dda arm: dts: Add AP-MI01.3 RDP support
IPQ5332-AP-MI01.3
	Flash: NOR and NAND / emmc (option)
	Features:
	1GB DDR4
	2 Lane PCIe Gen3 [pci1]
	1 USB 2.0

Change-Id: I5ba6318e7f84666510672b49a7c5fee80f47a929
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-02-03 14:37:40 +05:30
Philipp Skadorov
5593ba9b9f fat: fatwrite: fix the command for FAT12
The u-boot command fatwrite empties FAT clusters from the beginning
till the end of the file.
Specifically for FAT12 it fails to detect the end of the file and goes
beyond the file bounds thus corrupting the file system.

Additionally, FAT entry chaining-up into a file is not implemented
for FAT12.

The users normally workaround this by re-formatting the partition as
FAT16/FAT32, like here:
https://github.com/FEDEVEL/openrex-uboot-v2015.10/issues/1

The patch fixes the bounds of a file and FAT12 entries chaining into
a file, including EOF markup.

Signed-off-by: Philipp Skadorov <philipp.skadorov@savoirfairelinux.com>
(cherry picked from commit 49abbd9cc3)
Signed-off-by: Hariharan K <quic_harihk@quicinc.com>

Change-Id: Ib9c75d4553ea576cbc592f3291cfdebc45b8376b
2023-01-29 21:18:01 -08:00
Linux Build Service Account
a04c25d601 Merge "pci: Add environment varibale to skip pci enumeration" 2023-01-28 10:23:30 -08:00
Amandeep Singh
19be16d2f7 pci: Add environment varibale to skip pci enumeration
Add skip_pci_mask environment variable to skip pci enumeration
based on the bitmask. Also, removing the pci3 dts entry from
the RDP437 & RDP461 to skip pci3 enumeration.

Example - setenv skip_pci_mask 0xc
The above command will skip pci enumeration of bus 2 & 3.

Change-Id: Iff50acca07ffc026bed84a0d2372e6de0a3ba3a9
Signed-off-by: Amandeep Singh <quic_amansing@quicinc.com>
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2023-01-27 12:42:32 +05:30
Saahil Tomar
98d032f124 ipq: fdt_fixup: Add condition for dload_dis check
This change adds an additional condition to check for empty string as
env variable

Change-Id: Ica847b7af6d28094df54677fa7423e606699f5fe
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-01-25 01:33:52 -08:00
Linux Build Service Account
aaa3325003 Merge "ipq5332: update kernel and roots info" 2023-01-24 11:58:16 -08:00
Linux Build Service Account
4c7768e2c9 Merge "pci: ipq9574: Update QCN9224 fuse read" 2023-01-23 23:01:21 -08:00
Linux Build Service Account
29d4e13d7f Merge "pack_v2: fix for emmc apps image" 2023-01-23 23:01:20 -08:00
Linux Build Service Account
c94d1ac518 Merge "ipq: crashdump: Support for prefix while storing crashdump" 2023-01-23 23:01:17 -08:00
Timple Raj M
781bc31f61 ipq5332: update kernel and roots info
After mibib reload kernel and rootfs info have to be reloaded using
get_kernel_fs_part_details function otherwise partitions
will be marked as bad offset

Change-Id: I9a0ec847b65ff10ec7b54b65929efd034a25d278
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-24 10:11:21 +05:30
Praveenkumar I
9006866f9f pci: ipq9574: Update QCN9224 fuse read
Added JTAG ID, Serial number and Part type read.

Change-Id: Ia03724116230a157fc33406a97c641e3b5750d6a
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-01-23 16:46:52 +05:30
Timple Raj M
6915087e2a pack_v2: fix for emmc apps image
This patch provides the fix for emmc apps image generation.
The partition variable value has to be marked as null
for the partitions to be skipped in apps image generation.

Change-Id: I0067c527f0de38eb513e27fadfeee2accb69f3d3
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-23 14:17:27 +05:30
Vandhiadevan Karunamoorthy
f3b375939f board: ipq5332: skip cap in & cap out in recovery
Change-Id: I91b7c5520a67ba7f5265d3a600452439682608b8
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-20 17:51:26 +05:30
Linux Build Service Account
519a9280be Merge "ipq9574: Drive PCIe GPIOs to Low in deinit" 2023-01-18 05:21:42 -08:00
Saahil Tomar
664fabb120 ipq: crashdump: Support for prefix while storing crashdump
With this change, Add option to support
prefixing crash dump files with timestamp prefix

Change-Id: I30343e6d7dc58376264dd34a4a3cd25bb34e65c6
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2023-01-18 16:16:49 +05:30
Timple Raj M
429235530a ipq5332: Increase the file name size
This patch increases the filename size to avoid truncation while
running flash script in verbose mode

Change-Id: I245f4ee0ae83fc88de4833a178b1e1e96107f486
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-17 17:48:35 +05:30
Linux Build Service Account
bb1322745c Merge "ipq5332: Added support to apply caldata in u-boot" 2023-01-14 10:14:11 -08:00
Linux Build Service Account
fcba86d915 Merge "net: ipq5332: update sgmii+ mode for bypass port" 2023-01-13 09:59:26 -08:00
Linux Build Service Account
ed95202ae6 Merge "tools: pack_v2: ipq5332: Add NOR support for wifi_fw flash" 2023-01-13 02:20:39 -08:00
Gurumoorthy Santhakumar
092065500b ipq5332: Added support to apply caldata in u-boot
This change will read calibration data from the 0:ART partition and
apply it to the appropriate registers.

Change-Id: Ic9360c0fce229c1d1867ee897b811abc56d2b1c7
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-01-13 15:42:51 +05:30
Linux Build Service Account
4e15ee3aba Merge "arm: dts: ipq5332: Add DB-MI03.1 RDP support" 2023-01-12 04:25:36 -08:00
Vandhiadevan Karunamoorthy
6d133d5019 net: ipq5332: update sgmii+ mode for bypass port
This change configure sgmii+ mode if linkup at 2.5Gbps
speed.

Change-Id: I6570c9ee34cfb4d5d9208766135d429795beebaf
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-01-11 22:32:47 +05:30
Timple Raj M
e35288bf0a tools: pack_v2: ipq5332: Add NOR support for wifi_fw flash
This patch adds the additional conditional check to filter
out wififw images for nor flash type

Change-Id: Iba078721fbfc5ed4cd3bd74689e9ba6352a69130
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-01-11 01:24:17 -08:00
Praveenkumar I
de6ff2e382 ipq9574: Drive PCIe GPIOs to Low in deinit
Change-Id: I0a2d02f7cd712d3d52082903fd352708c58c6e88
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-01-09 18:56:48 +05:30