Commit graph

37364 commits

Author SHA1 Message Date
Timple Raj M
1df70b042e arm: dts: ipq5332: Add AP-MI01.6-QCN9160 RDP support
This patch adds the support for AP-MI01.6-QCN9160 RDP by reusing
the ipq5332-mi01.6.dts for better readabilty

Change-Id: I2776222fd80637f0111dc9074491f351cfb932b3
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-03-22 05:52:02 -07:00
Linux Build Service Account
69e0d84997 Merge "IPQ5332 : Removal of the dumpinfo_s structure" 2023-03-22 01:14:47 -07:00
Linux Build Service Account
6ecca6eb1a Merge "ipq9574: power cycle SDX based on e911 call" 2023-03-21 19:39:59 -07:00
Linux Build Service Account
7dbd65ad1e Merge "pci: ipq53xx: Enable qcn9224 related commands for ipq53xx" 2023-03-21 12:10:48 -07:00
Praveenkumar I
06db42a59d pci: ipq53xx: Enable qcn9224 related commands for ipq53xx
Change-Id: Ib848a70c373269e95c282ba65ad05457af7a777b
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2023-03-21 14:58:25 +05:30
Nitheesh Sekar
00c26ae30f ipq9574: power cycle SDX based on e911 call
This patch adds a condition to power cycle the
SDX based on the current status of the e911 call.

Change-Id: Id3cf50cfb49a26151c98b7d52e18b9c487cfb935
Signed-off-by: Nitheesh Sekar <quic_nsekar@quicinc.com>
2023-03-20 02:34:14 -07:00
Gurumoorthy Santhakumar
9fd9ce73ba ipq5332: dts: Modified mac mode
Change-Id: I38ad2d0d6297912fb4806ecd8628131ae65e819f
Signed-off-by: Gurumoorthy Santhakumar <quic_gsanthak@quicinc.com>
2023-03-17 02:55:11 -07:00
Ram Chandra Jangir
14023645dd sysupgrade: Consider minimum metadata size as 0x1000
When we use root certificate count as four, then metadata
is generated with size as 0x4000, but for single root
certificate, metadata size will be less than 0x4000, hence
consider minimum metadata size as 0x1000

Change-Id: Ib713e5fd4bcfe493cf482efda54d20ca1604939b
Signed-off-by: Ram Chandra Jangir <quic_rjangir@quicinc.com>
2023-03-14 22:24:11 -07:00
Linux Build Service Account
a98648973e Merge "pci: pci_ipq: initialize the index variable to zero" 2023-03-14 06:42:51 -07:00
quic_abilj
76f7c1bf73 IPQ5332 : 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

Change-Id: I0508677f7dbc4040660d7dd122d7a5d79554ce60
Signed-off-by: quic_abilj <quic_abilj@quicinc.com>
2023-03-13 21:01:39 -07:00
Kathiravan T
43442bec19 pci: pci_ipq: initialize the index variable to zero
Change-Id: I0d3582343b7b5dda86548f0dd46dd6e801e820b3
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2023-03-09 21:33:10 +05:30
Vandhiadevan Karunamoorthy
478c1fb1d9 arm: dts: ipq5332: add ethernet support in mi04.1
Change-Id: Ie312c243887db5109710c351c03b723a82eda6de
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-09 14:39:53 +05:30
Vandhiadevan Karunamoorthy
7f962d9e36 drivers: net: ipq5332: update qca8084 & qca8337
This changes update qca8084 & qca8337 init sequence
to support dual mode

Change-Id: I2cb9430fc97145c459ed4e6b58394a22565a9860
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-08 15:03:30 +05:30
Linux Build Service Account
bbb0d79454 Merge "board: ipq9574: skip double eth init" 2023-03-07 05:03:04 -08:00
Linux Build Service Account
c6ba612d29 Merge "drivers: net: qca8084: update clk and bmap config" 2023-03-07 05:03:03 -08:00
Linux Build Service Account
f176341e5f Merge "drivers: net: ipq9574: update uniphy SGMII config" 2023-03-07 05:03:02 -08:00
Linux Build Service Account
ac0d87ec02 Merge "drivers: net: ipq9574: update QCA8084 config" 2023-03-07 05:03:01 -08:00
Timple Raj M
3302b0f865 arm: dts: ipq5332: Remove the pcie2 and usb 3.0 support
This patch removes the pcie2 and usb 3.0 support in AP-MI01.2-QCN9160

Change-Id: I1c2a6c9d27f1d2c75d3be505076626396d4c9d37
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2023-03-06 15:19:45 +05:30
Vandhiadevan Karunamoorthy
58567ec70a drivers: net: qca8084: update clk and bmap config
This changes updates the gcc common clk initialise
steps and adds support for obtaining bitmap
details from dts. 

Change-Id: I55e895989823a4fbb97c638ad937ca48c00519c5
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-06 13:38:42 +05:30
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
01d85d1543 board: ipq9574: skip double eth init
This changes skips the re-initiation of ethernet
if boot fails, preventing ethernet from becoming unstable. 

Change-Id: If46a54839db9986ed158b36bf9efb81c3412c88e
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2023-03-05 22:05:56 -08:00
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