2017-03-02 08:51:48

by Chunyan Zhang

[permalink] [raw]
Subject: [PATCH V3 0/4] Add Spreadtrum SP9860G support

SC9860 is a Spreadtrum SoC with eight Cortex A53, which are divided
into 4 Big cores and 4 little cores.

This patch-set provides a basic configuration for SC9860 in device tree
to make it run to console. After this we will continue to submit other
device drivers step by step, which are using on most of Spreadtrum's SoCs.

Changes from v2:
* Addressed comments from Mathieu
- Removed CoreSight devices' lables from DT;
- Added another level of imbrication for ETFs which have more than one port;
* Addressed comments from Rob
- Switched to use SPDX-License-Identifier tag instead;
- Moved the 26m fixed clock node to top level in DT;
- Splited the patch into two, since they were revising two dt-bindings;
- Removed redundant space from sprd-usrt.txt;
- Removed useless property from the sprd_uart example of DT configuration.

Changes from v1:
* Removed useless idle-state node 'deep_sleep' from DT
* Removed useless property 'sc-id' from DT
* Removed 'clock-frequency' property from the node 'timer'
* Added another compatible string '"arm,cortex-a53-pmu"' and property
'interrupt-affinity' for pmu
* Kept using the existed compatible string of sprd_serial driver, and added
a new one for sc9860 in DT.

Thanks,
Chunyan

Chunyan Zhang (2):
dt-bindings: arm: Add bindings for SP9860G
dt-bindings: serial: add a new compatible string for SC9860

Orson Zhai (1):
arm64: dts: Add basic DT to support Spreadtrum's SP9860G

Wei Qiao (1):
serial: sprd: adjust TIMEOUT to a big value

Documentation/devicetree/bindings/arm/sprd.txt | 13 +-
.../devicetree/bindings/serial/sprd-uart.txt | 15 +-
arch/arm64/boot/dts/sprd/Makefile | 3 +-
arch/arm64/boot/dts/sprd/sc9860.dtsi | 545 +++++++++++++++++++++
arch/arm64/boot/dts/sprd/sp9860g-1h10.dts | 56 +++
arch/arm64/boot/dts/sprd/whale2.dtsi | 71 +++
drivers/tty/serial/sprd_serial.c | 2 +-
7 files changed, 697 insertions(+), 8 deletions(-)
create mode 100644 arch/arm64/boot/dts/sprd/sc9860.dtsi
create mode 100644 arch/arm64/boot/dts/sprd/sp9860g-1h10.dts
create mode 100644 arch/arm64/boot/dts/sprd/whale2.dtsi

--
2.7.4


2017-03-02 06:30:28

by Chunyan Zhang

[permalink] [raw]
Subject: [PATCH V3 4/4] serial: sprd: adjust TIMEOUT to a big value

From: Wei Qiao <[email protected]>

SPRD_TIMEOUT was 256, which is too small to wait until the status
switched to workable in a while loop, so that the earlycon could
not work correctly.

Signed-off-by: Wei Qiao <[email protected]>
Signed-off-by: Chunyan Zhang <[email protected]>
---
drivers/tty/serial/sprd_serial.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/sprd_serial.c b/drivers/tty/serial/sprd_serial.c
index 699447a..cc1a55e 100644
--- a/drivers/tty/serial/sprd_serial.c
+++ b/drivers/tty/serial/sprd_serial.c
@@ -36,7 +36,7 @@
#define SPRD_FIFO_SIZE 128
#define SPRD_DEF_RATE 26000000
#define SPRD_BAUD_IO_LIMIT 3000000
-#define SPRD_TIMEOUT 256
+#define SPRD_TIMEOUT 256000

/* the offset of serial registers and BITs for them */
/* data registers */
--
2.7.4