-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm64: dts: qcom: Add support for Sony Xperia 10/10 Plus (Ganges plat…
…form) Add device tree support for the Sony Xperia 10 and 10 Plus smartphones. They are all based on the Sony Ganges platform (sdm630/636) and share a lot of common code. The differences are really minor, so a Ganges-common DTSI has been created to reduce clutter. 10 - Kirin 10 Plus - Mermaid This platform is based on SoMC Nile, but there are some major differences when it comes to pin configuration and panel setup (among others). The boards currently support: * Screen console * SDHCI * I2C * pstore log dump * GPIO keys * PSCI idle states Signed-off-by: Martin Botka <martin.botka1@gmail.com> Signed-off-by: Konrad Dybcio <konradybcio@gmail.com> Tested-by: Martin Botka <martin.botka1@gmail.com> Link: https://lore.kernel.org/r/20200622192558.152828-7-konradybcio@gmail.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
- Loading branch information
Martin Botka
authored and
Bjorn Andersson
committed
Jun 23, 2020
1 parent
e781633
commit 234d7d6
Showing
4 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
arch/arm64/boot/dts/qcom/sdm630-sony-xperia-ganges-kirin.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
/* | ||
* Copyright (c) 2020, Martin Botka | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include "sdm630-sony-xperia-ganges.dtsi" | ||
|
||
/ { | ||
model = "Sony Xperia 10"; | ||
compatible = "sony,kirin-row", "qcom,sdm630"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
/* | ||
* Copyright (c) 2020, Martin Botka | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
/* Ganges is very similar to Nile, but | ||
* there are some differences that will need | ||
* to be addresed when more peripherals are | ||
* enabled upstream. Hence the separate DTSI. | ||
*/ | ||
#include "sdm630-sony-xperia-nile.dtsi" | ||
|
||
/ { | ||
chosen { | ||
framebuffer@9d400000 { | ||
reg = <0 0x9d400000 0 (2520 * 1080 * 4)>; | ||
height = <2520>; | ||
}; | ||
}; | ||
|
||
/* Yes, this is intentional. | ||
* Ganges devices only use gpio-keys for | ||
* Volume Down, but currently there's an | ||
* issue with it that has to be resolved. | ||
* Until then, let's not make the kernel panic | ||
*/ | ||
/delete-node/ gpio-keys; | ||
|
||
soc { | ||
|
||
i2c@c175000 { | ||
status = "okay"; | ||
|
||
/* Novatek touchscreen */ | ||
}; | ||
}; | ||
|
||
}; |
20 changes: 20 additions & 0 deletions
20
arch/arm64/boot/dts/qcom/sdm636-sony-xperia-ganges-mermaid.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
/* | ||
* Copyright (c) 2020, Martin Botka | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
/* Mermaid uses sdm636, but it's different ever so slightly | ||
* that we can ignore it for the time being. Sony also commonizes | ||
* the Ganges platform as a whole in downstream kernels. | ||
*/ | ||
#include "sdm630-sony-xperia-ganges.dtsi" | ||
|
||
/ { | ||
model = "Sony Xperia 10 Plus"; | ||
compatible = "sony,mermaid-row", "qcom,sdm636"; | ||
|
||
qcom,msm-id = <345 0>; | ||
qcom,pmic-id = <0x1001b 0x101011a 0x00 0x00 0x1001b 0x201011a 0x00 0x00 0x1001b 0x102001a 0x00 0x00>; | ||
}; |