Add Qualcomm APQ8084 SoC support
Subsystems (6)
v2 cover Add Qualcomm APQ8084 SoC support
This patchset adds basic support for the Qualcomm Snapdragon 805 APQ8084 SoC.
The first two patches add device-tree files for the SoC and the board, the third adds a board compatible string to the DT machine descriptor. The last one adds information about the low-level debug UART base address to the DEBUG_QCOM_UARTDM Kconfig help section introduced by [1].
Tested on APQ8084-MTP board.
Changes from v1:
- Remove the interrupts property from the l2-cache node as it is still not accepted (suggested by Stephen Boyd)
- Move the timer node out of the soc container (suggested by Stephen Boyd)
- Add just "qcom,apq8084" in the board machine descriptors to cover other future boards based on apq8084 (suggested by Kumar Gala)
- Change the last patch (debug UART) to just add info about the SoC PHYS/VIRT addresses. Requires [1]. (suggestions by Arnd Bergmann and Ivan Ivanov)
[1] https://lkml.org/lkml/2014/4/14/312
Georgi Djakov (4):
ARM: dts: qcom: Add APQ8084 SoC support
ARM: dts: qcom: Add APQ8084-MTP board support
ARM: qcom: Add APQ8084 to mach-qcom
ARM: debug: qcom: add UART addresses to Kconfig help
arch/arm/Kconfig.debug | 1 + arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/qcom-apq8084-mtp.dts | 6 ++ arch/arm/boot/dts/qcom-apq8084.dtsi | 179 ++++++++++++++++++++++++++++++++ arch/arm/mach-qcom/board.c | 1 + 5 files changed, 189 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/qcom-apq8084-mtp.dts create mode 100644 arch/arm/boot/dts/qcom-apq8084.dtsi
Signature · 1 line
1.7.9.5
PATCH v2 1/4 ARM: dts: qcom: Add APQ8084 SoC support
Add support for the Qualcomm Snapdragon 805 APQ8084 SoC. It is used on APQ8084-MTP and other boards.
--- arch/arm/boot/dts/qcom-apq8084.dtsi | 179 +++++++++++++++++++++++++++++++++++ 1 file changed, 179 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-apq8084.dtsi
arch/arm/boot/dts/qcom-apq8084.dtsi new file +179 -0
@@ -0,0 +1,179 @@ +/dts-v1/; + +#include "skeleton.dtsi" + +/ { + model = "Qualcomm APQ 8084"; + compatible = "qcom,apq8084"; + interrupt-parent = <&intc>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu at 0 { + device_type = "cpu"; + compatible = "qcom,krait"; + reg = <0>; + enable-method = "qcom,kpss-acc-v2"; + next-level-cache = <&L2>; + qcom,acc = <&acc0>; + }; + + cpu at 1 { + device_type = "cpu"; + compatible = "qcom,krait"; + reg = <1>; + enable-method = "qcom,kpss-acc-v2"; + next-level-cache = <&L2>; + qcom,acc = <&acc1>; + }; + + cpu at 2 { + device_type = "cpu"; + compatible = "qcom,krait"; + reg = <2>; + enable-method = "qcom,kpss-acc-v2"; + next-level-cache = <&L2>; + qcom,acc = <&acc2>; + }; + + cpu at 3 { + device_type = "cpu"; + compatible = "qcom,krait"; + reg = <3>; + enable-method = "qcom,kpss-acc-v2"; + next-level-cache = <&L2>; + qcom,acc = <&acc3>; + }; + + L2: l2-cache { + compatible = "qcom,arch-cache"; + cache-level = <2>; + qcom,saw = <&saw_l2>; + }; + }; + + cpu-pmu { + compatible = "qcom,krait-pmu"; + interrupts = <1 7 0xf04>; + }; + + timer { + compatible = "arm,armv7-timer"; + interrupts = <1 2 0xf08>, + <1 3 0xf08>, + <1 4 0xf08>, + <1 1 0xf08>; + clock-frequency = <19200000>; + }; + + soc: soc { + #address-cells = <1>; + #size-cells = <1>; + ranges; + compatible = "simple-bus"; + + intc: interrupt-controller at f9000000 { + compatible = "qcom,msm-qgic2"; + interrupt-controller; + #interrupt-cells = <3>; + reg = <0xf9000000 0x1000>, + <0xf9002000 0x1000>; + }; + + timer at f9020000 { + #address-cells = <1>; + #size-cells = <1>; + ranges; + compatible = "arm,armv7-timer-mem"; + reg = <0xf9020000 0x1000>; + clock-frequency = <19200000>; + + frame at f9021000 { + frame-number = <0>; + interrupts = <0 8 0x4>, + <0 7 0x4>; + reg = <0xf9021000 0x1000>, + <0xf9022000 0x1000>; + }; + + frame at f9023000 { + frame-number = <1>; + interrupts = <0 9 0x4>; + reg = <0xf9023000 0x1000>; + status = "disabled"; + }; + + frame at f9024000 { + frame-number = <2>; + interrupts = <0 10 0x4>; + reg = <0xf9024000 0x1000>; + status = "disabled"; + }; + + frame at f9025000 { + frame-number = <3>; + interrupts = <0 11 0x4>; + reg = <0xf9025000 0x1000>; + status = "disabled"; + }; + + frame at f9026000 { + frame-number = <4>; + interrupts = <0 12 0x4>; + reg = <0xf9026000 0x1000>; + status = "disabled"; + }; + + frame at f9027000 { + frame-number = <5>; + interrupts = <0 13 0x4>; + reg = <0xf9027000 0x1000>; + status = "disabled"; + }; + + frame at f9028000 { + frame-number = <6>; + interrupts = <0 14 0x4>; + reg = <0xf9028000 0x1000>; + status = "disabled"; + }; + }; + + saw_l2: regulator at f9012000 { + compatible = "qcom,saw2"; + reg = <0xf9012000 0x1000>; + regulator; + }; + + acc0: clock-controller at f9088000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0xf9088000 0x1000>, + <0xf9008000 0x1000>; + }; + + acc1: clock-controller at f9098000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0xf9098000 0x1000>, + <0xf9008000 0x1000>; + }; + + acc2: clock-controller at f90a8000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0xf90a8000 0x1000>, + <0xf9008000 0x1000>; + }; + + acc3: clock-controller at f90b8000 { + compatible = "qcom,kpss-acc-v2"; + reg = <0xf90b8000 0x1000>, + <0xf9008000 0x1000>; + }; + + restart at fc4ab000 { + compatible = "qcom,pshold"; + reg = <0xfc4ab000 0x4>; + }; + }; +};
Signature · 1 line
1.7.9.5
PATCH v2 2/4 ARM: dts: qcom: Add APQ8084-MTP board support
In reply to Georgi DjakovAdd device-tree file for APQ8084-MTP board, which belongs to the Snapdragon 805 family.
--- arch/arm/boot/dts/Makefile | 3 ++- arch/arm/boot/dts/qcom-apq8084-mtp.dts | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/qcom-apq8084-mtp.dts
arch/arm/boot/dts/Makefile +2 -1
@@ -293,7 +293,8 @@ dtb-$(CONFIG_ARCH_ORION5X) += orion5x-lacie-ethernet-disk-mini-v2.dtb dtb-$(CONFIG_ARCH_PRIMA2) += prima2-evb.dtb dtb-$(CONFIG_ARCH_QCOM) += qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \ - qcom-apq8074-dragonboard.dtb + qcom-apq8074-dragonboard.dtb \ + qcom-apq8084-mtp.dtb dtb-$(CONFIG_ARCH_S3C24XX) += s3c2416-smdk2416.dtb dtb-$(CONFIG_ARCH_S3C64XX) += s3c6410-mini6410.dtb \ s3c6410-smdk6410.dtb
arch/arm/boot/dts/qcom-apq8084-mtp.dts new file +6 -0
@@ -0,0 +1,6 @@ +#include "qcom-apq8084.dtsi" + +/ { + model = "Qualcomm APQ 8084-MTP"; + compatible = "qcom,apq8084-mtp", "qcom,apq8084"; +};
Signature · 1 line
1.7.9.5
PATCH v2 3/4 ARM: qcom: Add APQ8084 to mach-qcom
In reply to Georgi DjakovAdd the SoC compatibility string to the board machine descriptors.
--- arch/arm/mach-qcom/board.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-qcom/board.c +1 -0
@@ -18,6 +18,7 @@ static const char * const qcom_dt_match[] __initconst = {"qcom,msm8660-surf" ,"qcom,msm8960-cdp" ,"qcom,apq8074-dragonboard" , +"qcom,apq8084" , NULL };
Signature · 1 line
1.7.9.5
PATCH v2 4/4 ARM: debug: qcom: add UART addresses to Kconfig help
In reply to Georgi DjakovAdd information about the APQ8084 debug UART physical and virtual addresses in the DEBUG_QCOM_UARTDM Kconfig help section.
Requires: https://lkml.org/lkml/2014/4/14/312
--- arch/arm/Kconfig.debug | 1 + 1 file changed, 1 insertion(+)
arch/arm/Kconfig.debug +1 -0
@@ -376,6 +376,7 @@ choice their output to the serial port on Qualcomm devices. ARCH DEBUG_UART_PHYS DEBUG_UART_BASE + APQ8084 0xf995e000 0xfa75e000 MSM8X60 0x19c40000 0xf0040000 MSM8960 0x16440000 0xf0040000 MSM8974 0xf991e000 0xfa71e000
Signature · 1 line
1.7.9.5
Re: [PATCH v2 4/4] ARM: debug: qcom: add UART addresses to Kconfig help
2014-05-23 17:12 GMT+02:00 Georgi Djakov <[email protected]>:
Quoted 14 lines
Add information about the APQ8084 debug UART physical and virtual addresses in the
DEBUG_QCOM_UARTDMKconfighelp section.
Requires: https://lkml.org/lkml/2014/4/14/312Signed-off-by Georgi Djakov <[email protected]>--- arch/arm/Kconfig.debug | 1 + 1 file changed, 1 insertion(+)arch/arm/Kconfig.debug +0
-0
arch/arm/Kconfig.debug choice · line 382
Quoted 7 lines
arch/arm/Kconfig.debug +1
-0@@ -376,6 +376,7 @@ choice their output to the serial port on Qualcomm devices. ARCH DEBUG_UART_PHYS DEBUG_UART_BASE + APQ8084 0xf995e000 0xfa75e000 MSM8X60 0x19c40000 0xf0040000 MSM8960 0x16440000 0xf0040000 MSM8974 0xf991e000 0xfa71e000
You don't have any uart defined in your dts. You should add them before any adding low level debug support.
Otherwise there might be problems in booting a multi-platform kernel.
Regards,
Matthias
Quoted 8 lines
--
1.7.9.5_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Signature · 1 line
motzblog.wordpress.com
Re: [PATCH v2 4/4] ARM: debug: qcom: add UART addresses to Kconfig help
Quoted 17 lines · Matthias Brugger
2014-05-23 17:12 GMT+02:00 Georgi Djakov <[email protected]>:
Quoted 16 lines
Add information about the APQ8084 debug UART physical and virtual addresses in the
DEBUG_QCOM_UARTDMKconfighelp section.
Requires: https://lkml.org/lkml/2014/4/14/312Signed-off-by Georgi Djakov <[email protected]>--- arch/arm/Kconfig.debug | 1 + 1 file changed, 1 insertion(+)arch/arm/Kconfig.debug +0
-0@@ -376,6 +376,7 @@ choice their output to the serial port on Qualcomm devices.
Quoted 10 lines
arch/arm/Kconfig.debug choice · line 382
Quoted 5 lines
arch/arm/Kconfig.debug +1
-0ARCH DEBUG_UART_PHYS DEBUG_UART_BASE + APQ8084 0xf995e000 0xfa75e000 MSM8X60 0x19c40000 0xf0040000 MSM8960 0x16440000 0xf0040000 MSM8974 0xf991e000 0xfa71e000You don't have any uart defined in your dts. You should add them before any adding low level debug support.
Otherwise there might be problems in booting a multi-platform kernel.
Thanks for the comment! As the uart depends on clocks, i am adding it to the dts as part of my global clock controller patchset [1]. In this patch i am just adding some information to the help section.
Do you see any problem with this?
[1] https://lkml.org/lkml/2014/5/22/422
Thanks,
Georgi
Re: [PATCH v2 4/4] ARM: debug: qcom: add UART addresses to Kconfig help
2014-05-26 15:45 GMT+02:00 Georgi Djakov <[email protected]>:
Quoted 32 lines · Matthias Brugger
Quoted 19 lines
2014-05-23 17:12 GMT+02:00 Georgi Djakov <[email protected]>:
Quoted 17 lines
Add information about the APQ8084 debug UART physical and virtual addresses in the
DEBUG_QCOM_UARTDMKconfighelp section.
Requires: https://lkml.org/lkml/2014/4/14/312Signed-off-by Georgi Djakov <[email protected]>--- arch/arm/Kconfig.debug | 1 + 1 file changed, 1 insertion(+)arch/arm/Kconfig.debug +0
-0@@ -376,6 +376,7 @@ choice their output to the serial port on Qualcomm devices.Quoted 11 lines
arch/arm/Kconfig.debug choice · line 382
Quoted 5 lines
arch/arm/Kconfig.debug +1
-0ARCH DEBUG_UART_PHYS DEBUG_UART_BASE + APQ8084 0xf995e000 0xfa75e000 MSM8X60 0x19c40000 0xf0040000 MSM8960 0x16440000 0xf0040000 MSM8974 0xf991e000 0xfa71e000You don't have any uart defined in your dts. You should add them before any adding low level debug support.
Otherwise there might be problems in booting a multi-platform kernel.
Quoted 4 lines
Thanks for the comment! As the uart depends on clocks, i am adding it to the dts as part of my global clock controller patchset [1].
In this patch i am just adding some information to the help section. Do you see any problem with this?
Are the patches for the clock controller applied already? If not, I would consider to add this patch to clock controller series.
Cheers,
Matthias
Quoted 5 lines
[1] https://lkml.org/lkml/2014/5/22/422
Thanks,
Georgi
Signature · 1 line
motzblog.wordpress.com
Re: [PATCH v2 4/4] ARM: debug: qcom: add UART addresses to Kconfig help
Quoted 33 lines · Matthias Brugger
2014-05-26 15:45 GMT+02:00 Georgi Djakov <[email protected]>:
Quoted 32 lines · Matthias Brugger
Quoted 30 lines
2014-05-23 17:12 GMT+02:00 Georgi Djakov <[email protected]>:
Quoted 15 lines
Add information about the APQ8084 debug UART physical and virtual addresses in the
DEBUG_QCOM_UARTDMKconfighelp section.
Requires: https://lkml.org/lkml/2014/4/14/312Signed-off-by Georgi Djakov <[email protected]>--- arch/arm/Kconfig.debug | 1 + 1 file changed, 1 insertion(+)arch/arm/Kconfig.debug +0
-0arch/arm/Kconfig.debug choice · line 382
Quoted 7 lines
arch/arm/Kconfig.debug +1
-0@@ -376,6 +376,7 @@ choice their output to the serial port on Qualcomm devices. ARCH DEBUG_UART_PHYS DEBUG_UART_BASE + APQ8084 0xf995e000 0xfa75e000 MSM8X60 0x19c40000 0xf0040000 MSM8960 0x16440000 0xf0040000 MSM8974 0xf991e000 0xfa71e000You don't have any uart defined in your dts. You should add them before any adding low level debug support.
Otherwise there might be problems in booting a multi-platform kernel.
Quoted 8 lines
Quoted 4 lines
Thanks for the comment! As the uart depends on clocks, i am adding it to the dts as part of my global clock controller patchset [1].
In this patch i am just adding some information to the help section. Do you see any problem with this?Are the patches for the clock controller applied already? If not, I would consider to add this patch to clock controller series.
No, they are not applied yet. The uart dts definition depends on clocks, but the DEBUG_LL support does not. And the DEBUG_LL support is already there as it is common with other SoCs. I am sorry, but i don't see dependency between the dts definition and this patch. Could you explain please?
Thanks,
Georgi
Re: [PATCH v2 4/4] ARM: debug: qcom: add UART addresses to Kconfig help
2014-05-27 14:05 GMT+02:00 Georgi Djakov <[email protected]>:
Quoted 39 lines · Matthias Brugger
Quoted 38 lines
2014-05-26 15:45 GMT+02:00 Georgi Djakov <[email protected]>:
Quoted 36 lines · Matthias Brugger
Quoted 19 lines
2014-05-23 17:12 GMT+02:00 Georgi Djakov <[email protected]>:
Quoted 17 lines
Add information about the APQ8084 debug UART physical and virtual addresses in the
DEBUG_QCOM_UARTDMKconfighelp section.
Requires: https://lkml.org/lkml/2014/4/14/312Signed-off-by Georgi Djakov <[email protected]>--- arch/arm/Kconfig.debug | 1 + 1 file changed, 1 insertion(+)arch/arm/Kconfig.debug +0
-0@@ -376,6 +376,7 @@ choice their output to the serial port on Qualcomm devices.Quoted 11 lines
arch/arm/Kconfig.debug choice · line 382
Quoted 5 lines
arch/arm/Kconfig.debug +1
-0ARCH DEBUG_UART_PHYS DEBUG_UART_BASE + APQ8084 0xf995e000 0xfa75e000 MSM8X60 0x19c40000 0xf0040000 MSM8960 0x16440000 0xf0040000 MSM8974 0xf991e000 0xfa71e000You don't have any uart defined in your dts. You should add them before any adding low level debug support.
Otherwise there might be problems in booting a multi-platform kernel.Thanks for the comment! As the uart depends on clocks, i am adding it to the dts as part of my global clock controller patchset [1].
In this patch i am just adding some information to the help section. Do you see any problem with this?
Quoted 8 lines
Quoted 3 lines
Are the patches for the clock controller applied already? If not, I would consider to add this patch to clock controller series.
No, they are not applied yet. The uart dts definition depends on clocks, but the
DEBUG_LLsupport does not. And theDEBUG_LLsupport is already there as it is common with other SoCs. I am sorry, but i don't see dependency between the dts definition and this patch. Could you explain please?
IMHO the dependancy is that DEBUG_LL uses the uart device, and this is added when you add the dts.
AFAIK there can arise problems with multi-platform kernels if the uart is not present.
Quoted 4 lines
Thanks,
Georgi
Signature · 1 line
motzblog.wordpress.com
Re: [PATCH v2 4/4] ARM: debug: qcom: add UART addresses to Kconfig help
Quoted 4 lines · Matthias Brugger
IMHO the dependancy is that
DEBUG_LLuses the uart device, and this is added when you add the dts.
AFAIK there can arise problems with multi-platform kernels if the uart is not present.
Once DEBUG_LL is enabled you don't have multi-platform kernel anymore, so this should not be an issue here.
Regards,
Ivan