Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ properties:
- qcom,ipq6018-apcs-apps-global
- qcom,msm8996-apcs-hmss-global
- qcom,qcm2290-apcs-hmss-global
- qcom,shikra-apcs-hmss-global

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the entries in sorted alphabetical order

- qcom,sdm845-apss-shared

reg:
Expand Down Expand Up @@ -237,6 +238,7 @@ allOf:
- qcom,msm8994-apcs-kpss-global
- qcom,msm8996-apcs-hmss-global
- qcom,qcm2290-apcs-hmss-global
- qcom,shikra-apcs-hmss-global

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

- qcom,sdm845-apss-shared
then:
properties:
Expand Down
3 changes: 3 additions & 0 deletions arch/arm64/boot/dts/qcom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ dtb-$(CONFIG_ARCH_QCOM) += sdm850-huawei-matebook-e-2019.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm850-lenovo-yoga-c630.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdm850-samsung-w737.dtb
dtb-$(CONFIG_ARCH_QCOM) += sdx75-idp.dtb
dtb-$(CONFIG_ARCH_QCOM) += shikra-cqm-evk.dtb
dtb-$(CONFIG_ARCH_QCOM) += shikra-cqs-evk.dtb
dtb-$(CONFIG_ARCH_QCOM) += shikra-iqs-evk.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm4250-oneplus-billie2.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm4450-qrd.dtb
dtb-$(CONFIG_ARCH_QCOM) += sm6115-fxtec-pro1x.dtb
Expand Down
21 changes: 21 additions & 0 deletions arch/arm64/boot/dts/qcom/shikra-cqm-evk.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/

/dts-v1/;

#include "shikra-cqm-som.dtsi"

/ {
model = "Qualcomm Technologies, Inc. Shikra CQM EVK";
compatible = "qcom,shikra-cqm-evk", "qcom,shikra-cqm-som", "qcom,shikra";
chassis-type = "embedded";

aliases {
};

chosen {
stdout-path = "serial0:115200n8";
};
};
8 changes: 8 additions & 0 deletions arch/arm64/boot/dts/qcom/shikra-cqm-som.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/

#include "shikra.dtsi"

/* Modem, Cocos + Kunlun PMIC */
21 changes: 21 additions & 0 deletions arch/arm64/boot/dts/qcom/shikra-cqs-evk.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/

/dts-v1/;

#include "shikra-cqs-som.dtsi"

/ {
model = "Qualcomm Technologies, Inc. Shikra CQS EVK";
compatible = "qcom,shikra-cqs-evk", "qcom,shikra-cqs-som", "qcom,shikra";
chassis-type = "embedded";

aliases {
};

chosen {
stdout-path = "serial0:115200n8";
};
};
8 changes: 8 additions & 0 deletions arch/arm64/boot/dts/qcom/shikra-cqs-som.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/

#include "shikra.dtsi"

/* APQ (No Modem), Cocos + Kunlun PMIC */
14 changes: 14 additions & 0 deletions arch/arm64/boot/dts/qcom/shikra-evk.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/

/* Common daughter cards nodes to be added:
* QPS615 DC
* MIC DC
* Display DC
* Camera DC
* USB hub DC
* Sensor DC
* NFC DC
*/
21 changes: 21 additions & 0 deletions arch/arm64/boot/dts/qcom/shikra-iqs-evk.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/

/dts-v1/;

#include "shikra-iqs-som.dtsi"

/ {
model = "Qualcomm Technologies, Inc. Shikra IQS EVK";
compatible = "qcom,shikra-iqs-evk", "qcom,shikra-iqs-som", "qcom,shikra";
chassis-type = "embedded";

aliases {
};

chosen {
stdout-path = "serial0:115200n8";
};
};
8 changes: 8 additions & 0 deletions arch/arm64/boot/dts/qcom/shikra-iqs-som.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/

#include "shikra.dtsi"

/* APQ (No Modem), Wailua PMIC */
236 changes: 236 additions & 0 deletions arch/arm64/boot/dts/qcom/shikra.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,236 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
*/

#include <dt-bindings/interrupt-controller/arm-gic.h>

/ {
interrupt-parent = <&intc>;

#address-cells = <2>;
#size-cells = <2>;

cpus {
#address-cells = <2>;
#size-cells = <0>;

cpu0: cpu@0 {
device_type = "cpu";
compatible = "arm,cortex-a55";
reg = <0x0 0x0>;
enable-method = "psci";
next-level-cache = <&l3>;
capacity-dmips-mhz = <1024>;
dynamic-power-coefficient = <100>;
};

cpu1: cpu@100 {
device_type = "cpu";
compatible = "arm,cortex-a55";
reg = <0x0 0x100>;
enable-method = "psci";
next-level-cache = <&l3>;
capacity-dmips-mhz = <1024>;
dynamic-power-coefficient = <100>;
};

cpu2: cpu@200 {
device_type = "cpu";
compatible = "arm,cortex-a55";
reg = <0x0 0x200>;
enable-method = "psci";
next-level-cache = <&l3>;
capacity-dmips-mhz = <1024>;
dynamic-power-coefficient = <100>;
};

cpu3: cpu@300 {
device_type = "cpu";
compatible = "arm,cortex-a78c";
reg = <0x0 0x300>;
enable-method = "psci";
next-level-cache = <&l2_3>;
capacity-dmips-mhz = <1946>;
dynamic-power-coefficient = <486>;

l2_3: l2-cache {
compatible = "cache";
cache-level = <2>;
cache-unified;
next-level-cache = <&l3>;
};
};

cpu-map {
cluster0 {
core0 {
cpu = <&cpu0>;
};

core1 {
cpu = <&cpu1>;
};

core2 {
cpu = <&cpu2>;
};
};

cluster1 {
core0 {
cpu = <&cpu3>;
};
};
};

l3: l3-cache {
compatible = "cache";
cache-level = <3>;
cache-unified;
};
};

memory@a0000000 {
device_type = "memory";
/* We expect the bootloader to fill in the size */
reg = <0x0 0xa0000000 0x0 0x0>;
};

pmu {
compatible = "arm,armv8-pmuv3";
interrupts = <GIC_PPI 5 IRQ_TYPE_LEVEL_HIGH>;
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
};

soc: soc@0 {
compatible = "simple-bus";

#address-cells = <2>;
#size-cells = <2>;
dma-ranges = <0x0 0x0 0x0 0x0 0x10 0x0>;
ranges = <0x0 0x0 0x0 0x0 0x10 0x0>;

sram@c11e000 {
compatible = "qcom,shikra-imem", "mmio-sram";
reg = <0x0 0x0c11e000 0x0 0x1000>;
ranges = <0x0 0x0 0x0c11e000 0x1000>;

#address-cells = <1>;
#size-cells = <1>;

pil-sram@94c {
compatible = "qcom,pil-reloc-info";
reg = <0x94c 0xc8>;
};
};

intc: interrupt-controller@f200000 {
compatible = "arm,gic-v3";
reg = <0x0 0xf200000 0x0 0x10000>, /* GICD */
<0x0 0xf240000 0x0 0x80000>; /* GICR * 4 regions */

interrupts = <GIC_PPI 8 IRQ_TYPE_LEVEL_HIGH>;

#interrupt-cells = <3>;
interrupt-controller;

#redistributor-regions = <1>;
redistributor-stride = <0x0 0x20000>;

#address-cells = <2>;
#size-cells = <2>;
ranges;
};

timer@f420000 {
compatible = "arm,armv7-timer-mem";
reg = <0x0 0x0f420000 0x0 0x1000>;

#address-cells = <2>;
#size-cells = <1>;
ranges = <0x0 0x0 0x0 0x10000000>;

frame@f421000 {
reg = <0x0 0x0f421000 0x1000>,
<0x0 0x0f422000 0x1000>;
frame-number = <0>;
interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
};

frame@f423000 {
reg = <0x0 0x0f423000 0x1000>;
frame-number = <1>;
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};

frame@f425000 {
reg = <0x0 0x0f425000 0x1000>;
frame-number = <2>;
interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};

frame@f427000 {
reg = <0x0 0x0f427000 0x1000>;
frame-number = <3>;
interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};

frame@f429000 {
reg = <0x0 0x0f429000 0x1000>;
frame-number = <4>;
interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};

frame@f42b000 {
reg = <0x0 0x0f42b000 0x1000>;
frame-number = <5>;
interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};

frame@f42d000 {
reg = <0x0 0x0f42d000 0x1000>;
frame-number = <6>;
interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
status = "disabled";
};
};

rpm_msg_ram: memory@45f0000 {
compatible = "qcom,rpm-msg-ram";
reg = <0x45f0000 0x7000>;
};

apcs_glb: mailbox@f400000 {
compatible = "qcom,shikra-apcs-hmss-global";
reg = <0xf400000 0x1000>;
#mbox-cells = <1>;
};

rpm-glink {
compatible = "qcom,glink-rpm";
interrupts = <GIC_SPI 194 IRQ_TYPE_EDGE_RISING>;
qcom,rpm-msg-ram = <&rpm_msg_ram>;
mboxes = <&apcs_glb 0>;
};
};

timer {
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>;
};
};