arm64: dts: sdm630 SoC and Sony Pioneer (Xperia XA2) support
PATCH 1/1 arm64: dts: sdm630 SoC and Sony Pioneer (Xperia XA2) support
Initial device tree support for Qualcomm SDM630 SoC and Sony Pioneer (Xperia XA2).
SDM630 is based off of the SDM660 soc and all SDM660 specific drivers are compatible with it. SDM660 is also based off of MSM8998 so it uses some of its drivers aswell.
The device tree is based on the CAF 4.4 kernel tree.
The device can be booted into the initrd with a shell over UART.
--- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/sdm630-pins.dtsi | 17 + arch/arm64/boot/dts/qcom/sdm630-pioneer.dts | 16 + arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi | 22 ++ arch/arm64/boot/dts/qcom/sdm630.dtsi | 383 +++++++++++++++++++ 5 files changed, 439 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sdm630-pins.dtsi create mode 100644 arch/arm64/boot/dts/qcom/sdm630-pioneer.dts create mode 100644 arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi create mode 100644 arch/arm64/boot/dts/qcom/sdm630.dtsi
arch/arm64/boot/dts/qcom/Makefile +1 -0
@@ -6,4 +6,5 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8916-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8992-bullhead-rev-101.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8994-angler-rev-101.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8996-mtp.dtb +dtb-$(CONFIG_ARCH_QCOM) += sdm630-pioneer.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-mtp.dtb
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +17 -0
@@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2018, Craig Tatlor. */ + +&tlmm { + blsp1_uart1_default: blsp1_uart1_default { + pinmux { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + function = "gpio"; + }; + + pinconf { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + drive-strength = <2>; + bias-disable; + }; + }; +};
arch/arm64/boot/dts/qcom/sdm630-pioneer.dts new file +16 -0
@@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2018, Craig Tatlor. */ + +/dts-v1/; + +#include "sdm630-pioneer.dtsi" + +/ { + model = "Sony Xperia XA2"; + compatible = "sony,pioneer", "qcom,sdm630"; + + /* required for bootloader to select correct board */ + qcom,board-id = <8 0>; + qcom,pmic-id = <0x0001001b 0x0101011a 0x0 0x0>, + <0x0001001b 0x0201011a 0x0 0x0>; +};
arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi new file +22 -0
@@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2018, Craig Tatlor. */ + +#include "sdm630.dtsi" + +/ { + aliases { + serial0 = &blsp1_uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&soc { + serial at c170000 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&blsp1_uart1_default>; + }; +};
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +383 -0
383 lines not on this page · raw message
Signature · 1 line
2.18.0
kbuild test robot
build botThank you for the patch! Yet something to improve:
Hi Craig,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on agross/for-next]
[also build test ERROR on v4.18-rc8 next-20180810]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Craig-Tatlor/arm64-dts-sdm630-SoC-and-Sony-Pioneer-Xperia-XA2-support/20180812-061913 base: https://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git for-next config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=arm64
All errors (new ones prefixed by >>):
In file included from arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi:4:0,
from arch/arm64/boot/dts/qcom/sdm630-pioneer.dts:6:
>> arch/arm64/boot/dts/qcom/sdm630.dtsi:5:10: fatal error: dt-bindings/clock/qcom,gcc-sdm660.h: No such file or directory
#include <dt-bindings/clock/qcom,gcc-sdm660.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~compilation terminated.
vim +5 arch/arm64/boot/dts/qcom/sdm630.dtsi
3
4 #include <dt-bindings/interrupt-controller/arm-gic.h>
> 5 #include <dt-bindings/clock/qcom,gcc-sdm660.h>
6 ---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 38888 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180812/0c16cf00/attachment-0001.gz>
Oh, yeah, forgot to mention this patch depends on all of these:
https://patchwork.kernel.org/bundle/opendata/Pioneer%20Mainline/
Quoted 46 lines · On Sun, 12 Aug 2018, 03:12 kbuild test robot, <[email protected]> wrote:
Hi Craig,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on agross/for-next]
[also build test ERROR on v4.18-rc8 next-20180810]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]url:
https://github.com/0day-ci/linux/commits/Craig-Tatlor/arm64-dts-sdm630-SoC-and-Sony-Pioneer-Xperia-XA2-support/20180812-061913
base: https://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git
for-next
config: arm64-defconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross
-O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=arm64All errors (new ones prefixed by >>):
In file included from
arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi:4:0,from arch/arm64/boot/dts/qcom/sdm630-pioneer.dts:6:Quoted 1 line
Quoted 1 line
arch/arm64/boot/dts/qcom/sdm630.dtsi:5:10: fatal error:
dt-bindings/clock/qcom,gcc-sdm660.h: No such file or directory#include <dt-bindings/clock/qcom,gcc-sdm660.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~compilation terminated.
vim +5
arch/arm64/boot/dts/qcom/sdm630.dtsi3
4 #include <dt-bindings/interrupt-controller/arm-gic.h>Quoted 1 line
5 #include <
dt-bindings/clock/qcom,gcc-sdm660.h>6---
0-DAY kernel test infrastructure Open Source Technology
Center
https://lists.01.org/pipermail/kbuild-all Intel
Corporation
Quoted 6 lines · Craig Tatlor
Initial device tree support for Qualcomm SDM630 SoC and Sony Pioneer (Xperia XA2).
SDM630 is based off of the SDM660 soc and all SDM660 specific drivers are compatible with it. SDM660 is also based off of MSM8998 so it uses some of its drivers aswell.
Consider adding both sdm630 and sdm660 compatibles to the bindings and drivers and use the right one in the dts, in case we find details that differs in the future.
Quoted 6 lines
The device tree is based on the CAF 4.4 kernel tree.
The device can be booted into the initrd with a shell over UART.
Signed-off-by Craig Tatlor <[email protected]>
[..]
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +0
-0
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi line 8
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +8
-0@@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2018, Craig Tatlor. */ + +&tlmm { + blsp1_uart1_default: blsp1_uart1_default { + pinmux { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + function = "gpio";
Please put these in the sdm630.dtsi directly, rather than spreading the pins out in a separate file.
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi line 14
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +6
-0+ }; + + pinconf { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + drive-strength = <2>; + bias-disable;
Please extend &blsp1_uart1_default in the pioneer dtsi with these "electrical properties".
Quoted 3 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +3
-0+ }; + }; +};
[..]
Quoted 13 lines
arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi new file +7
-0@@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2018, Craig Tatlor. */ + +#include "sdm630.dtsi" + +/ { + aliases {
arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi line 17
Quoted 10 lines
arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi new file +10
-0+ serial0 = &blsp1_uart1; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&soc { + serial@c170000 {
Please reference this by &blsp1_uart1, rather than duplicating the hierarchy.
Quoted 11 lines
arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi new file +5
-0+ status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&blsp1_uart1_default>; + }; +};arch/arm64/boot/dts/qcom/sdm630.dtsi new file +0
-0
arch/arm64/boot/dts/qcom/sdm630.dtsi line 8
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +8
-0@@ -0,0 +1,383 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2018, Craig Tatlor. */ + +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/qcom,gcc-sdm660.h> + +/ { + model = "Qualcomm Technologies, Inc. SDM630";
We expect the board to always override this, so no need to specify it here.
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +7
-0+ + interrupt-parent = <&intc>; + + qcom,msm-id = <318 0x0>; + + #address-cells = <2>; + #size-cells = <2>;
arch/arm64/boot/dts/qcom/sdm630.dtsi line 25
Quoted 10 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +10
-0+ + chosen { }; + + memory { + device_type = "memory"; + /* We expect the bootloader to fill in the reg */ + reg = <0 0 0 0>; + }; + +
Extra empty line.
Quoted 1 line
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +1
-0+ cpus {
[..]
arch/arm64/boot/dts/qcom/sdm630.dtsi
Quoted 2 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +2
-0+ + timer {
Please sort these nodes by name, except for "soc" which is convenient to have last.
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +6
-0+ compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>; + };
[..]
arch/arm64/boot/dts/qcom/sdm630.dtsi line 232
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +7
-0+ firmware { + scm { + compatible = "qcom,scm-sdm660"; + }; + }; + +
Extra empty line.
arch/arm64/boot/dts/qcom/sdm630.dtsi line 240
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +8
-0+ rpm-glink { + compatible = "qcom,glink-rpm"; + + interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>; + + qcom,rpm-msg-ram = <&rpm_msg_ram>; + + mboxes = <&apcs_glb 0>;
Remove a few of these extra empty lines and add the rpm_requests channel here while you're at it:
rpm_requests: glink-channel {
compatible = "qcom,rpm-sdm660";
qcom,glink-channels = "rpm_requests";
};arch/arm64/boot/dts/qcom/sdm630.dtsi
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +9
-0+ }; + + soc: soc { + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0 0xffffffff>; + compatible = "simple-bus"; + + intc: interrupt-controller@17a00000 {
Please sort these nodes by base address.
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +9
-0+ compatible = "arm,gic-v3"; + reg = <0x17a00000 0x10000>, + <0x17b00000 0x100000>; + #interrupt-cells = <3>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + interrupt-controller; + #redistributor-regions = <1>;
arch/arm64/boot/dts/qcom/sdm630.dtsi line 268
Quoted 10 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +10
-0+ redistributor-stride = <0x0 0x20000>; + interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; + }; + + gcc: clock-controller@100000 { + compatible = "qcom,gcc-sdm660"; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + reg = <0x100000 0x94000>;
Please 0-pad addresses in "reg", makes it easier to sort them as well (but keep the @address after the node name unpadded).
Quoted 2 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +2
-0+ }; +
[..]
arch/arm64/boot/dts/qcom/sdm630.dtsi line 374
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +7
-0+ rpm_msg_ram: memory@778000 { + compatible = "qcom,rpm-msg-ram"; + reg = <0x778000 0x7000>; + }; + + apcs_glb: mailbox@17911000 { + compatible = "qcom,msm8998-apcs-hmss-global";
Please update the apcs ipc driver with a sdm660 compatible and update this.
arch/arm64/boot/dts/qcom/sdm630.dtsi line 378
Quoted 4 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +4
-0+ reg = <0x17911000 0x1000>; + + #mbox-cells = <1>; + };
Regards,
Bjorn
Quoted 6 lines · Bjorn Andersson
Quoted 4 lines · Craig Tatlor
Initial device tree support for Qualcomm SDM630 SoC and Sony Pioneer (Xperia XA2).
SDM630 is based off of the SDM660 soc and all SDM660 specific drivers
Quoted 8 lines
are
Quoted 1 line
compatible with it. SDM660 is also based off of MSM8998 so it uses
some
Quoted 1 line
of its drivers aswell.
Consider adding both sdm630 and sdm660 compatibles to the bindings and drivers and use the right one in the dts, in case we find details that differs in the future.
This includes pinctrl and GCC?
Quoted 10 lines
Quoted 7 lines
The device tree is based on the CAF 4.4 kernel tree.
The device can be booted into the initrd with a shell over UART.
Signed-off-by Craig Tatlor <[email protected]>[..]
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/arm64/boot/dts/qcom/sdm630-pins.dtsi
Quoted 17 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi line 8
Quoted 13 lines
new file mode 100644
index 000000000000..78b79c1076f1arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +8
-0@@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2018, Craig Tatlor. */ + +&tlmm { + blsp1_uart1_default: blsp1_uart1_default { + pinmux { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + function = "gpio";Please put these in the
sdm630.dtsidirectly, rather than spreading the pins out in a separate file.
Okay, just followed what 8996 did
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi line 14
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +6
-0+ }; + + pinconf { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + drive-strength = <2>; + bias-disable;Please extend
&blsp1_uart1_defaultin the pioneer dtsi with these "electrical properties".
Are you meaning to put this in the pioneer DTS or just drive strength and bias?
Quoted 24 lines
Quoted 4 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +3
-0+ }; + }; +};[..]
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsiQuoted 17 lines
new file mode 100644
index 000000000000..512792c23369arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi new file +12
-0@@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2018, Craig Tatlor. */ + +#include "sdm630.dtsi" + +/ { + aliases { + serial0 = &blsp1_uart1; + }; + + chosen { + stdout-path = "serial0:115200n8";
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi line 17
Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi new file +5
-0+ }; +}; + +&soc { + serial at c170000 {Please reference this by
&blsp1_uart1, rather than duplicating the hierarchy.
Okay, should the same still apply once more stuff is in soc? Or should I use references for them?
Quoted 8 lines
Review
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm630-pioneer.dtsi new file +5
-0+ status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&blsp1_uart1_default>; + }; +};(quoted diff) +0
-0
b/arch/arm64/boot/dts/qcom/sdm630.dtsi
Quoted 16 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi line 8
Quoted 13 lines
new file mode 100644
index 000000000000..8a544979b7c0arch/arm64/boot/dts/qcom/sdm630.dtsi new file +8
-0@@ -0,0 +1,383 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2018, Craig Tatlor. */ + +#include <dt-bindings/interrupt-controller/arm-gic.h> +#include <dt-bindings/clock/qcom,gcc-sdm660.h> + +/ { + model = "Qualcomm Technologies, Inc. SDM630";We expect the board to always override this, so no need to specify it here.
Yup
Quoted 11 lines
Quoted 11 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +11
-0+ + interrupt-parent = <&intc>; + + qcom,msm-id = <318 0x0>; + + #address-cells = <2>; + #size-cells = <2>; + + chosen { }; + + memory {
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi line 25
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +6
-0+ device_type = "memory"; + /* We expect the bootloader to fill in the reg */ + reg = <0 0 0 0>; + }; + +Extra empty line.
Okay
Quoted 7 lines
Quoted 1 line
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +1
-0+ cpus {[..]
arch/arm64/boot/dts/qcom/sdm630.dtsi
Quoted 2 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +2
-0+ + timer {Please sort these nodes by name, except for "soc" which is convenient to have last.
Okay
Quoted 8 lines
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +6
-0+ compatible = "arm,armv8-timer"; + interrupts = <GIC_PPI 1 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 2 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 3 IRQ_TYPE_LEVEL_LOW>, + <GIC_PPI 0 IRQ_TYPE_LEVEL_LOW>; + };[..]
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi line 232
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +7
-0+ firmware { + scm { + compatible = "qcom,scm-sdm660"; + }; + }; + +Extra empty line.
Okay
Quoted 14 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi line 240
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +8
-0+ rpm-glink { + compatible = "qcom,glink-rpm"; + + interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>; + + qcom,rpm-msg-ram = <&rpm_msg_ram>; + + mboxes = <&apcs_glb 0>;Remove a few of these extra empty lines and add the
rpm_requestschannel
here while you're at it:
Sure
Quoted 5 lines
rpm_requests: glink-channel {
compatible = "qcom,rpm-sdm660";
qcom,glink-channels = "rpm_requests";
};Quoted 12 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi line 249
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +9
-0+ }; + + soc: soc { + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0 0xffffffff>; + compatible = "simple-bus"; + + intc: interrupt-controller at 17a00000 {Please sort these nodes by base address.
Will do
Quoted 14 lines
Quoted 14 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +14
-0+ compatible = "arm,gic-v3"; + reg = <0x17a00000 0x10000>, + <0x17b00000 0x100000>; + #interrupt-cells = <3>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + interrupt-controller; + #redistributor-regions = <1>; + redistributor-stride = <0x0 0x20000>; + interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; + }; + + gcc: clock-controller at 100000 {
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi line 268
Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +5
-0+ compatible = "qcom,gcc-sdm660"; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + reg = <0x100000 0x94000>;Please 0-pad addresses in "reg", makes it easier to sort them as well (but keep the @address after the node name unpadded)
Sure, how much should I pad up to?
Quoted 4 lines
Quoted 3 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +2
-0+ }; +[..]
Quoted 10 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi line 374
Quoted 7 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +7
-0+ rpm_msg_ram: memory at 778000 { + compatible = "qcom,rpm-msg-ram"; + reg = <0x778000 0x7000>; + }; + + apcs_glb: mailbox at 17911000 { + compatible = "qcom,msm8998-apcs-hmss-global";Please update the apcs ipc driver with a sdm660 compatible and update this.
Right
Quoted 8 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi line 378
Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm630.dtsi new file +4
-0+ reg = <0x17911000 0x1000>; + + #mbox-cells = <1>; + };Regards,
Bjorn
Quoted 9 lines · Craig
Quoted 8 lines · Bjorn Andersson
Quoted 4 lines · Craig Tatlor
Initial device tree support for Qualcomm SDM630 SoC and Sony Pioneer (Xperia XA2).
SDM630 is based off of the SDM660 soc and all SDM660 specific drivers
are
Quoted 1 line
compatible with it. SDM660 is also based off of MSM8998 so it uses
Quoted 8 lines
Quoted 6 lines
some
Quoted 1 line
of its drivers aswell.
Consider adding both sdm630 and sdm660 compatibles to the bindings and drivers and use the right one in the dts, in case we find details that differs in the future.
This includes pinctrl and GCC?
Yes
Quoted 27 lines
Quoted 10 lines
Quoted 7 lines
The device tree is based on the CAF 4.4 kernel tree.
The device can be booted into the initrd with a shell over UART.
Signed-off-by Craig Tatlor <[email protected]>[..]
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/arm64/boot/dts/qcom/sdm630-pins.dtsiQuoted 17 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi line 8
Quoted 13 lines
new file mode 100644
index 000000000000..78b79c1076f1arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +8
-0@@ -0,0 +1,17 @@ +// SPDX-License-Identifier: GPL-2.0 +/* Copyright (c) 2018, Craig Tatlor. */ + +&tlmm { + blsp1_uart1_default: blsp1_uart1_default { + pinmux { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + function = "gpio";Please put these in the
sdm630.dtsidirectly, rather than spreading the pins out in a separate file.
Quoted 1 line
Okay, just followed what 8996 did
I have started to rework that based on the last year's discussions, but haven't posted any patches yet.
Quoted 10 lines
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi line 14
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +6
-0+ }; + + pinconf { + pins = "gpio0", "gpio1", "gpio2", "gpio3"; + drive-strength = <2>; + bias-disable;Please extend
&blsp1_uart1_defaultin the pioneer dtsi with these "electrical properties".Are you meaning to put this in the pioneer DTS or just drive strength and bias?
The drive-strength and bias are board-specific properties, so we want to keep those in the board file, so I mean push the pinconf part into the board dtsi.
[..]
Quoted 10 lines
Quoted 9 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi
Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm630-pins.dtsi new file +6
-0+ gcc: clock-controller at 100000 { + compatible = "qcom,gcc-sdm660"; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + reg = <0x100000 0x94000>;Please 0-pad addresses in "reg", makes it easier to sort them as well (but keep the @address after the node name unpadded)
Sure, how much should I pad up to?
reg = <0x00100000 0xb0000>;
Regards,
Bjorn