Commit graph

9845 commits

Author SHA1 Message Date
Vandhiadevan Karunamoorthy
2623231c0b board: devsoc: Enable crashdump feature support
This change allows autoboot to check if the app is crashed or not.
If the Kernel crashes, a crash dump is generated.
And also, with these changes, check if crash dump is disabled or not.

Change-Id: I35b0a20c6a245702ed0adcfbaa37add21a73400a
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-06-28 16:51:05 +05:30
Vandhiadevan Karunamoorthy
b2da1813de board: arm: devsoc: update USB PHY & Clk config
Change-Id: Ie1216d3b191aef1f221df91ec254e162e57e099a
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-06-22 22:24:36 +05:30
Ram Kumar D
db2b02a241 board: devsoc: initialized requried ethernet clocks
Change-Id: I5a0e976b75e736bd42f1f7e154be30e2e02e42d2
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-06-16 03:04:59 -07:00
Saahil Tomar
f1f8a39e27 arm64: dts: ipq9574: Add AL02-C12 RDP support
This RDP is based on AL02-C6.
The extra feature is W5GL-4 in Pcie 1.
In U-boot, RDP is based on AL02-C4 as Interface enablement
is same as AL02-C12.

Change-Id: If81b5950d02b47c021aea3d52fdf5feb3fcb7035
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-06-13 21:42:58 -07:00
Ram Kumar D
8b79b10ca8 arm: dts: ipq9574: Add AP-AL02-C10 RDP
AL02-C10 is based on AL02-C8.
C8 enables QCA8084 PHY mode, C10 is for Switch mode

Change-Id: Idbd154c66437357b5c2dbd636031af564c121cdf
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-06-13 12:43:16 +05:30
Praveenkumar I
b5d3586939 ipq9574: Add support for AP-AL02-C11
This is RDP is based on AL02-C4. The extra feature is Alder 2G.

Change-Id: I175938c886c0ebd8f39659ba28be2a946d5b7494
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-06-07 17:43:09 +05:30
Ram Kumar D
a95cba141c drivers: net: devsoc: added eth support for devsoc
Change-Id: I4d646c1a89d90febd573ae92980e0c665b1dc060
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-31 23:52:34 +05:30
Vandhiadevan Karunamoorthy
6761f6cf0d board: devsoc: Enable reset support
Change-Id: I989316b3f6f663f6b446208cf4054a1757c2161a
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-30 23:03:03 -07:00
Vandhiadevan Karunamoorthy
9f914ab484 board: devsoc: Enable crashdump support
These changes add crashdump support in devsoc platform.

Change-Id: Ifdb9e1e65a4e93407506e987201b4ddeac753927
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-30 23:02:44 -07:00
Linux Build Service Account
ae383ebf24 Merge "Revert "ipq9574: Power collapse UBI32 Cores"" 2022-05-25 17:38:21 -07:00
Selvam Sathappan Periakaruppan
18d2b93ab3 drivers: net: Add support for QCA8084 PHY
This patch adds initial support for qca8084 PHY
which is based on qca8081 PHY.

qca8084 PHY has support for 4x2.5G.

Change-Id: Ic767c19fad050e5ee9a97ad7fa50c1b6b27893dd
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-05-25 04:08:31 -07:00
Vandhiadevan Karunamoorthy
5837a5e6c6 board: arm: devsoc: Add USB support
This changes enable usb support.

Change-Id: Id75f3dbbe538a99bd4290463ed468b5575491edd
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-22 23:18:23 -07:00
Vandhiadevan Karunamoorthy
e2d76a1c7a board: arm: devsoc: Enable PCIE support
The PCIE node is disabled by default in
the emulation platform

Change-Id: I51041186a57d08b58c1f7c85dd1a90fbeb24aac9
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-19 12:32:40 +05:30
Linux Build Service Account
6ac309e7bd Merge "devsoc: Add dummy handler to fixup the USB device mode" 2022-05-17 12:20:07 -07:00
Ram Kumar D
b900c8242b devsoc: Add dummy handler to fixup the USB device mode
Change-Id: Id68da6161eaabb867de0cd00e5a8c455e24df2c3
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-17 13:19:43 +05:30
Ram Kumar D
4ffb97c394 fdt_fixup: Add support to patch up cpu_type and soc version
Change-Id: Iaf24075cf532997993c0bf6a8d6add90b812db77
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-17 13:19:16 +05:30
Ram Kumar D
9b49d9c097 fdt_fixup: Add devsoc nand compatible to fdt fixup
Change-Id: I2d3f0ad48528554ed93c5aa89c25dd8e69a073a3
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-17 13:18:41 +05:30
Ram Kumar D
88f81ffced drivers: i2c: qup: add multi I2C support for all IPQ chipsets
This change adds support to enable multiple I2C bus on all IPQ
platforms. Removed the device specific changes and updated in
a generic way to support multiple I2C on all the IPQ platforms.

Change-Id: Ie13dd744c6317fc9245bc88781e79a9fb3621a62
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-05-16 07:46:51 -07:00
Vandhiadevan Karunamoorthy
270d1e7245 board: arm: devsoc: Add eMMC support
This changes add 4-Bit eMMC flash support

Change-Id: Iad789ba44aaa0e11da5f8c16dd0a07d2e80de682
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-10 17:18:31 +05:30
Vandhiadevan Karunamoorthy
107bdb49b0 board: arm: ipq5018: Add atf crypto fixup support
This changes fixup to '0' in "qcom,controlled-remotely"
property and '2' in "qti,config-pipe-trust-reg" property
in the crypto bam node if ATF is enabled. This will enable
the kernel to do complete bam pipe initialization.

And also this change update the ATF fixup api to
generic name so which will be common for all other
fixup releated to ATF.

Change-Id: I10b2e712883f419433220547a0d7bc6bdf4e125d
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-08 04:13:59 -07:00
Vandhiadevan Karunamoorthy
6a97589d96 board: arm: devsoc: Add ubi command support
This changes enable UBI command support in
devsoc platform.

Change-Id: I2dade2f7ab232f6ae3f2a800437e1543e6a85909
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-05-05 23:30:10 -07:00
Gokul Sriram Palanisamy
08c3332f34 drivers: i2c: qup: Add multiple I2C bus support
Added support for multiple i2c alias in device-tree
so as to enable multiple qup i2c modules.

Change-Id: I58b1b91c66e3b42cc5d603ce29f94e90b6d86ae1
Signed-off-by: Gokul Sriram Palanisamy <quic_gokulsri@quicinc.com>
2022-05-01 22:20:59 -07:00
Vandhiadevan Karunamoorthy
018618939e board: devsoc: enable dcache
This changes enable dcache enable and disable support
and also enable dcache command.

Change-Id: I7a11a923c1f87168e9cb519c5dedfcfac2dbc610
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-04-26 05:03:41 -07:00
Linux Build Service Account
0cdbe1f6d1 Merge "ipq: ported uart_wait_tx_empty function to wait until TX FIFO is emptied" 2022-04-26 01:20:23 -07:00
devi priya
ea029c9d1c ipq: ported uart_wait_tx_empty function to wait until TX FIFO is emptied
Ported uart_wait_tx_empty function from ipq806x to wait until the TX FIFO is emptied
to avoid FIFO corruption during serial init after relocation

Change-Id: Id95627c791c1159fdd3392e6aa35738e7561d489
Signed-off-by: devi priya <quic_devipriy@quicinc.com>
2022-04-25 19:37:07 +05:30
Vandhiadevan Karunamoorthy
9f81944daa board: devsoc: enable QSPI NAND
Change-Id: Ibfaea936f2e611b31f3fa0946b8fc0fac08cb1be
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-04-24 22:10:48 -07:00
Timple Raj M
682197e0ec ipq9574: Add support for AP-AL02-C10
break statement to be added to take correct config value

Change-Id: Ie02479fd20901a3c7d79c5b86e81cdea1411609a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-04-20 17:19:44 +05:30
Timple Raj M
a49fbe815c ipq9574: Add support for AP-AL02-C10
Same as AL02-C1 RDP with NSS enabled.

Change-Id: I5ffcb93721d16db4d598fb82e17fa18c25a9d861
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-04-18 21:51:56 -07:00
Timple Raj M
8be38d2865 ipq9574: Add support for AP-AL02-C9
AL02-C9 is similar to AL02-C6 without internal radio

Features: Split Phy WKK (2G + 5G), Split Phy WKK (5G + 6G)

Change-Id: I637123bc133243f20dfc0fddb7353caad8650c3a
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-04-12 12:32:36 +05:30
Linux Build Service Account
01a22539b5 Merge "bootqca: clear the MBN header information only if authentication is successful" 2022-04-06 12:21:05 -07:00
Kathiravan T
d8e6350603 bootqca: clear the MBN header information only if authentication is successful
During secure boot, after the kernel image authentication, before knowing
the authentication status, we are clearing out the MBN information in the DDR.

When we try to boot the unsigned kernel image on secure board, since
there is no MBN header available, we try to access the invalid memory
region (or) size which leads to data abort (or) system reset without any failure message.

So clear the MBN information only if the image authentication is successful.
If the image authentication is failed, corresponding failure message will be
printed and system will go for reset.

Change-Id: I2cf8e098cdb7e0fc11d0b563d4a0d6a5f0d44ee8
Signed-off-by: Kathiravan T <quic_kathirav@quicinc.com>
2022-04-06 17:16:51 +05:30
Linux Build Service Account
3c41cd52fb Merge "ipq: Add support to collect CODERAM.BIN during secure crashdump" 2022-04-04 06:38:19 -07:00
Gaurao Chaudhari
02dafe6a94 Revert "ipq9574: Power collapse UBI32 Cores"
This reverts commit 5dfb1b4291.

Change-Id: I61579a05e35a29e3104179b5e917344f4ee375bb
Signed-off-by: Gaurao Chaudhari <quic_gaurchau@quicinc.com>
2022-04-01 11:13:11 -07:00
Linux Build Service Account
2ce1c60aa4 Merge "ipq: dump_to_usb needs some delay before usb stop" 2022-04-01 09:38:30 -07:00
Praveenkumar I
74a56e4feb ipq: dump_to_usb needs some delay before usb stop
Some USB devices taking more time to store the binary file if the
device has multiple partitions. Immediate usb stop can discard the
previously transfered binary. This patch adds delay to overcome the
issue

Change-Id: Iccbf272ebdfc3542ac1474129e07e852e8d7bbaa
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-04-01 11:39:26 +05:30
Ram Kumar D
1675ef903a ipq: Add support to collect CODERAM.BIN during secure crashdump
Add support to collect CODERAM.BIN during secure crashdump in
ipq6018 & ipq9574

Change-Id: I7be8a714170c0c408e8904b0bc376d9d5e7f42bf
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-03-30 08:18:49 +05:30
Linux Build Service Account
ec98947562 Merge "qca: arm: devsoc: add support for devsoc" 2022-03-22 22:07:41 -07:00
Linux Build Service Account
6f46dfc18d Merge "ipq9574: Update AP-AL02-C8 RDP" 2022-03-22 13:07:45 -07:00
Linux Build Service Account
0090f4831b Merge "ipq9574: Skip aq phy init if already done" 2022-03-22 10:08:13 -07:00
Selvam Sathappan Periakaruppan
96e5b7ce49 ipq9574: Skip aq phy init if already done
Change-Id: If370e9bac97bf59f45f53253bce8f11681e1a873
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-22 03:08:44 -07:00
Ram Kumar D
c25f7d9fb9 bootqca: fix for ATF state issue
ATF will not have get_secure_state scm call, use it to check the ATF
status. If get_secure_state scm call is not available means,
is_atf_enabled() call will return 1. This represents that ATF is
enabled.

Change-Id: Id7d96f4e377b2ec596d6bc60c37239118817de1e
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-03-21 14:14:43 +05:30
Vandhiadevan Karunamoorthy
2e8afabbcb qca: arm: devsoc: add support for devsoc
This changes add support for uboot base files.

Change-Id: I5f4b937dec30a27ec6acce6ceada7fbed5d5a41d
Signed-off-by: Vandhiadevan Karunamoorthy <quic_vkarunam@quicinc.com>
2022-03-20 23:02:17 -07:00
Praveenkumar I
be92c58da6 ipq9574: Update AP-AL02-C8 RDP
AL02-C8 is based on AL02-C4. Instead of QCA8075, QCA8084 is used
for Ethernet.

Change-Id: I70e3560461c1a547c40f5b9b839cc94ef2a39520
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
2022-03-21 11:12:02 +05:30
Linux Build Service Account
1ac9a63612 Merge "ipq9574: Add support for AP-AL02-C7 and AP-AL02-C8" 2022-03-17 04:41:15 -07:00
Timple Raj M
3367faaa3b ipq9574: Add support for AP-AL02-C7 and AP-AL02-C8
AP.AL02-C7 is similar to AP.AL02-C4 with emmc boot
Features: WK 2G + WK5G + WK 6G

AP.AL02-C8 is similar to AP.AL02-C6 with emmc boot
Features: Internal 2G +WK 5G + WK 6G

Change-Id: I31d1f65b071dfddc4eee393d292add58d3ddeadc
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
2022-03-16 18:34:33 +05:30
Selvam Sathappan Periakaruppan
a89291cec3 ipq: crashdump: Support for dump_to_flash in nand-4k
Previously the MAX_NAND_PAGE_SIZE was defined as 2K
during when we will face issues when dumping to
flash in nand-4k. This patch updates the max size
to 4K to support the same in nand-4k.

Change-Id: Idcec9998f56df1db21fc03097d0454efd81bbbd3
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
2022-03-15 03:09:30 -07:00
Linux Build Service Account
a8451b0a27 Merge "bootqca: use get_secure_state scm call instead of atf env" 2022-03-08 10:46:16 -08:00
Linux Build Service Account
1bc74c6b9e Merge "drivers : nand : Update Serial training fixup" 2022-03-08 05:12:40 -08:00
Ram Kumar D
b7ca23da1c bootqca: use get_secure_state scm call instead of atf env
Currently, if atf env is set in the secure board. secure boot
sequence gets bypassed. This is not an expected behaviour. So,
removed support the atf env variable. Instead atf enabled status
can be verified using get_secure_state scm call.

Moreover, as per current design get_secure_state scm call will
not be implemented in ATF in future as well. If its implemented,
Bit 7 should be made to 1.

Change-Id: I0adcfac7bbcb10fe6906fd8a3f10a440ec7080ae
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
2022-03-08 17:00:07 +05:30
Saahil Tomar
4c8be9b750 drivers : nand : Update Serial training fixup
This change fixup the magic word (0xBAD0FF5E) instead of zero.
So the uboot will skip setting qcom,training_offset
if the serial training partition is not present in flash.

Change-Id: I0ee8c9475e1153fdbc295691ceb2a4b1d6fdd394
Signed-off-by: Saahil Tomar <quic_saahtoma@quicinc.com>
2022-03-07 14:45:01 +05:30