ARM: dts: ipq: updates to enable a few peripherals
Subsystems (4)
v2 cover ARM: dts: ipq: updates to enable a few peripherals
[v2]
* Addressed all comments from Abhishek
* Removed dk01-c2 and dk04-c5 spinand based boards as support for spinand is not complete
* Based all patches on top of Andy's for-next branch
[V1]
* https://www.spinics.net/lists/arm-kernel/msg631318.html
Sricharan R (13):
firmware: qcom: scm: Add ipq4019 soc compatible
ARM: dts: ipq4019: Add a few peripheral nodes
ARM: dts: ipq4019: Change the max opp frequency
ARM: dts: ipq4019: Update ipq4019-dk01.1 board data
ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi
ARM: dts: ipq4019: Add ipq4019-ap.dk04.1-c1 board file
ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk04.1-c3 board file
ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data
ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file
ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c2 board file
ARM: dts: ipq8074: Add peripheral nodes
ARM: dts: ipq8074: Add pcie nodes
ARM: dts: ipq8074: Enable few peripherals for hk01 board
.../devicetree/bindings/firmware/qcom,scm.txt | 3 +- arch/arm/boot/dts/Makefile | 4 + arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 32 ++- arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts | 20 ++ arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts | 8 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 135 +++++++++++ arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 65 +++++ arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts | 26 ++ arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi | 83 +++++++ arch/arm/boot/dts/qcom-ipq4019.dtsi | 136 ++++++++++- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 103 ++++++++ arch/arm64/boot/dts/qcom/ipq8074.dtsi | 262 ++++++++++++++++++++- drivers/firmware/qcom_scm.c | 3 + 13 files changed, 875 insertions(+), 5 deletions(-) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 1/13 firmware: qcom: scm: Add ipq4019 soc compatible
Add the compatible for ipq4019.
This does not need clocks to do scm calls.
--- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 3 ++- drivers/firmware/qcom_scm.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/firmware/qcom,scm.txt +2 -1
@@ -11,9 +11,10 @@ Required properties: * "qcom,scm-msm8660" for MSM8660 platforms * "qcom,scm-msm8690" for MSM8690 platforms * "qcom,scm-msm8996" for MSM8996 platforms + * "qcom,scm-ipq4019" for IPQ4019 platforms * "qcom,scm" for later processors (MSM8916, APQ8084, MSM8974, etc) - clocks: One to three clocks may be required based on compatible. - * No clock required for "qcom,scm-msm8996" + * No clock required for "qcom,scm-msm8996", "qcom,scm-ipq4019" * Only core clock required for "qcom,scm-apq8064", "qcom,scm-msm8660", and "qcom,scm-msm8960" * Core, iface, and bus clocks required for "qcom,scm" - clock-names: Must contain "core" for the core clock, "iface" for the interface
drivers/firmware/qcom_scm.c +3 -0
@@ -603,6 +603,9 @@ static void qcom_scm_shutdown(struct platform_device *pdev) { .compatible = "qcom,scm-msm8996", .data = NULL, /* no clocks */ }, + { .compatible = "qcom,scm-ipq4019", + .data = NULL, /* no clocks */ + }, { .compatible = "qcom,scm", .data = (void *)(SCM_HAS_CORE_CLK | SCM_HAS_IFACE_CLK
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 2/13 ARM: dts: ipq4019: Add a few peripheral nodes
In reply to Sricharan RNow with the driver updates for some peripherals being there, add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available peripheral support.
--- arch/arm/boot/dts/qcom-ipq4019.dtsi | 134 ++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+)
arch/arm/boot/dts/qcom-ipq4019.dtsi +134 -0
@@ -25,7 +25,9 @@ aliases { spi0 = &spi_0; + spi1 = &spi_1; i2c0 = &i2c_0; + i2c1 = &i2c_1; }; cpus {
@@ -104,6 +106,12 @@ }; }; + firmware { + scm { + compatible = "qcom,scm-ipq4019"; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts = <1 2 0xf08>,
@@ -172,6 +180,22 @@ clock-names = "core", "iface"; #address-cells = <1>; #size-cells = <0>; + dmas = <&blsp_dma 5>, <&blsp_dma 4>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + + spi_1: spi at 78b6000 { /* BLSP1 QUP2 */ + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x78b6000 0x600>; + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP2_SPI_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + #address-cells = <1>; + #size-cells = <0>; + dmas = <&blsp_dma 7>, <&blsp_dma 6>; + dma-names = "rx", "tx"; status = "disabled"; };
@@ -184,9 +208,24 @@ clock-names = "iface", "core"; #address-cells = <1>; #size-cells = <0>; + dmas = <&blsp_dma 9>, <&blsp_dma 8>; + dma-names = "rx", "tx"; status = "disabled"; }; + i2c_1: i2c at 78b8000 { /* BLSP1 QUP4 */ + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x78b8000 0x600>; + interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; + clock-names = "iface", "core"; + #address-cells = <1>; + #size-cells = <0>; + dmas = <&blsp_dma 11>, <&blsp_dma 10>; + dma-names = "rx", "tx"; + status = "disabled"; + }; cryptobam: dma at 8e04000 { compatible = "qcom,bam-v1.7.0";
@@ -293,6 +332,101 @@ reg = <0x4ab000 0x4>; }; + pcie0: pci at 40000000 { + compatible = "qcom,pcie-ipq4019", "snps,dw-pcie"; + reg = <0x40000000 0xf1d + 0x40000f20 0xa8 + 0x80000 0x2000 + 0x40100000 0x1000>; + reg-names = "dbi", "elbi", "parf", "config"; + device_type = "pci"; + linux,pci-domain = <0>; + bus-range = <0x00 0xff>; + num-lanes = <1>; + #address-cells = <3>; + #size-cells = <2>; + + ranges = <0x81000000 0 0x40200000 0x40200000 0 0x00100000 + 0x82000000 0 0x48000000 0x48000000 0 0x10000000>; + + interrupts = <GIC_SPI 141 IRQ_TYPE_NONE>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 142 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 143 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 144 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 145 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + clocks = <&gcc GCC_PCIE_AHB_CLK>, + <&gcc GCC_PCIE_AXI_M_CLK>, + <&gcc GCC_PCIE_AXI_S_CLK>; + clock-names = "aux", + "master_bus", + "slave_bus"; + + resets = <&gcc PCIE_AXI_M_ARES>, + <&gcc PCIE_AXI_S_ARES>, + <&gcc PCIE_PIPE_ARES>, + <&gcc PCIE_AXI_M_VMIDMT_ARES>, + <&gcc PCIE_AXI_S_XPU_ARES>, + <&gcc PCIE_PARF_XPU_ARES>, + <&gcc PCIE_PHY_ARES>, + <&gcc PCIE_AXI_M_STICKY_ARES>, + <&gcc PCIE_PIPE_STICKY_ARES>, + <&gcc PCIE_PWR_ARES>, + <&gcc PCIE_AHB_ARES>, + <&gcc PCIE_PHY_AHB_ARES>; + reset-names = "axi_m", + "axi_s", + "pipe", + "axi_m_vmid", + "axi_s_xpu", + "parf", + "phy", + "axi_m_sticky", + "pipe_sticky", + "pwr", + "ahb", + "phy_ahb"; + + status = "disabled"; + }; + + qpic_bam: dma at 7984000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x7984000 0x1a000>; + interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_QPIC_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + status = "disabled"; + }; + + nand: qpic-nand at 79b0000 { + compatible = "qcom,ipq4019-nand"; + reg = <0x79b0000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&gcc GCC_QPIC_CLK>, + <&gcc GCC_QPIC_AHB_CLK>; + clock-names = "core", "aon"; + + dmas = <&qpic_bam 0>, + <&qpic_bam 1>, + <&qpic_bam 2>; + dma-names = "tx", "rx", "cmd"; + status = "disabled"; + + nand at 0 { + reg = <0>; + + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + nand-bus-width = <8>; + }; + }; + wifi0: wifi at a000000 { compatible = "qcom,ipq4019-wifi"; reg = <0xa000000 0x200000>;
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 3/13 ARM: dts: ipq4019: Change the max opp frequency
In reply to Sricharan RThe max opp frequency is 716MHZ. So update that.
--- arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/qcom-ipq4019.dtsi +1 -1
@@ -47,7 +47,7 @@ 48000 1100000 200000 1100000 500000 1100000 - 666000 1100000 + 716000 1100000 >; clock-latency = <256000>; };
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 4/13 ARM: dts: ipq4019: Update ipq4019-dk01.1 board data
In reply to Sricharan RAdds missing memory, reserved-memory nodes.
--- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)
arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi +28 -0
@@ -20,6 +20,34 @@ model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK01.1"; compatible = "qcom,ipq4019"; + memory { + device_type = "memory"; + reg = <0x80000000 0x10000000>; /* 256MB */ + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + rsvd1 at 87000000 { + /* Reserved for other subsystem */ + reg = <0x87000000 0x500000>; + no-map; + }; + + wifi_dump at 87500000 { + reg = <0x87500000 0x600000>; + no-map; + }; + + rsvd2 at 87B00000 { + /* Reserved for other subsystem */ + reg = <0x87B00000 0x500000>; + no-map; + }; + }; + soc { rng at 22000 { status = "ok";
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 5/13 ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi
In reply to Sricharan RAdd the common parts for the dk04 boards.
--- arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 129 ++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi
arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi new file +129 -0
@@ -0,0 +1,129 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019.dtsi" +#include <dt-bindings/input/input.h> +#include <dt-bindings/gpio/gpio.h> + +/ { + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1"; + compatible = "qcom,ipq4019"; + + memory { + device_type = "memory"; + reg = <0x80000000 0x10000000>; /* 256MB */ + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + rsvd1 at 87000000 { + /* Reserved for other subsystem */ + reg = <0x87000000 0x500000>; + no-map; + }; + + wifi_dump at 87500000 { + reg = <0x87500000 0x600000>; + no-map; + }; + + rsvd2 at 87B00000 { + /* Reserved for other subsystem */ + reg = <0x87B00000 0x500000>; + no-map; + }; + }; + + soc { + pinctrl at 1000000 { + serial_0_pins: serial0_pinmux { + mux { + pins = "gpio16", "gpio17"; + function = "blsp_uart0"; + bias-disable; + }; + }; + + serial_1_pins: serial1_pinmux { + mux { + pins = "gpio8", "gpio9", + "gpio10", "gpio11"; + function = "blsp_uart1"; + bias-disable; + }; + }; + + spi_0_pins: spi_0_pinmux { + pinmux { + function = "blsp_spi0"; + pins = "gpio13", "gpio14", "gpio15"; + bias-disable; + }; + pinmux_cs { + function = "gpio"; + pins = "gpio12"; + bias-disable; + output-high; + }; + }; + + i2c_0_pins: i2c_0_pinmux { + mux { + pins = "gpio20", "gpio21"; + function = "blsp_i2c0"; + bias-disable; + }; + }; + + nand_pins: nand_pins { + mux { + pins = "gpio53", "gpio55", "gpio56", + "gpio57", "gpio58", "gpio59", + "gpio60", "gpio62", "gpio63", + "gpio64", "gpio65", "gpio66", + "gpio67", "gpio68", "gpio69"; + function = "qpic"; + }; + }; + }; + + serial at 78af000 { + pinctrl-0 = <&serial_0_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + serial at 78b0000 { + pinctrl-0 = <&serial_1_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + blsp_dma: dma at 7884000 { + status = "ok"; + }; + + spi_0: spi at 78b5000 { /* BLSP1 QUP1 */ + pinctrl-0 = <&spi_0_pins>; + pinctrl-names = "default"; + status = "ok"; + cs-gpios = <&tlmm 12 0>; + + m25p80 at 0 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0>; + compatible = "n25q128a11"; + spi-max-frequency = <24000000>; + }; + }; + + pcie0: pci at 40000000 { + status = "ok"; + perst-gpio = <&tlmm 38 0x1>; + }; + }; +};
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 6/13 ARM: dts: ipq4019: Add ipq4019-ap.dk04.1-c1 board file
In reply to Sricharan R--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -747,6 +747,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-apq8084-ifc6540.dtb \ qcom-apq8084-mtp.dtb \ qcom-ipq4019-ap.dk01.1-c1.dtb \ + qcom-ipq4019-ap.dk04.1-c1.dtb \ qcom-ipq8064-ap148.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \
arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts new file +20 -0
@@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019-ap.dk04.1.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1-C1"; + + soc { + qpic_bam: dma at 7984000 { + status = "ok"; + }; + + nand: qpic-nand at 79b0000 { + pinctrl-0 = <&nand_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + }; +};
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 7/13 ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk04.1-c3 board file
In reply to Sricharan R--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -748,6 +748,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-apq8084-mtp.dtb \ qcom-ipq4019-ap.dk01.1-c1.dtb \ qcom-ipq4019-ap.dk04.1-c1.dtb \ + qcom-ipq4019-ap.dk04.1-c3.dtb \ qcom-ipq8064-ap148.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \
arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts new file +8 -0
@@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019-ap.dk04.1.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1-C3"; +};
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 8/13 ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data
In reply to Sricharan RAdd the common data for all dk07 based boards.
--- arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi | 83 +++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi
arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi new file +83 -0
@@ -0,0 +1,83 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019.dtsi" +#include <dt-bindings/input/input.h> +#include <dt-bindings/gpio/gpio.h> + +/ { + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK07.1"; + compatible = "qcom,ipq4019"; + + memory { + device_type = "memory"; + reg = <0x80000000 0x20000000>; /* 512MB */ + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + rsvd1 at 87000000 { + /* Reserved for other subsystem */ + reg = <0x87000000 0x500000>; + no-map; + }; + + wifi_dump at 87500000 { + reg = <0x87500000 0x600000>; + no-map; + }; + + rsvd2 at 87B00000 { + /* Reserved for other subsystem */ + reg = <0x87B00000 0x500000>; + no-map; + }; + }; + + soc { + pinctrl at 1000000 { + serial_0_pins: serial0_pinmux { + mux { + pins = "gpio16", "gpio17"; + function = "blsp_uart0"; + bias-disable; + }; + }; + + i2c_0_pins: i2c_0_pinmux { + mux { + pins = "gpio20", "gpio21"; + function = "blsp_i2c0"; + bias-disable; + }; + }; + }; + + serial at 78af000 { + pinctrl-0 = <&serial_0_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + blsp_dma: dma at 7884000 { + status = "ok"; + }; + + i2c_0: i2c at 78b7000 { /* BLSP1 QUP2 */ + pinctrl-0 = <&i2c_0_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + qpic_bam: dma at 7984000 { + status = "ok"; + }; + + nand: qpic-nand at 79b0000 { + status = "ok"; + }; + }; +};
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 9/13 ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file
In reply to Sricharan R--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 65 +++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -749,6 +749,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-ipq4019-ap.dk01.1-c1.dtb \ qcom-ipq4019-ap.dk04.1-c1.dtb \ qcom-ipq4019-ap.dk04.1-c3.dtb \ + qcom-ipq4019-ap.dk07.1-c1.dtb \ qcom-ipq8064-ap148.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \
arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts new file +65 -0
65 lines not on this page · raw message
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 10/13 ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c2 board file
In reply to Sricharan R--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts | 26 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -750,6 +750,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-ipq4019-ap.dk04.1-c1.dtb \ qcom-ipq4019-ap.dk04.1-c3.dtb \ qcom-ipq4019-ap.dk07.1-c1.dtb \ + qcom-ipq4019-ap.dk07.1-c2.dtb \ qcom-ipq8064-ap148.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \
arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts new file +26 -0
@@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019-ap.dk07.1.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK07.1-C2"; + + soc { + pinctrl at 1000000 { + serial_1_pins: serial1_pinmux { + mux { + pins = "gpio8", "gpio9"; + function = "blsp_uart1"; + bias-disable; + }; + }; + }; + + serial at 78b0000 { + pinctrl-0 = <&serial_1_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + }; +};
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 11/13 ARM: dts: ipq8074: Add peripheral nodes
In reply to Sricharan RAdd serial, i2c, bam, spi, qpic peripheral nodes.
--- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 105 ++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+)
arch/arm64/boot/dts/qcom/ipq8074.dtsi +105 -0
@@ -124,6 +124,111 @@ clock-names = "core", "iface"; status = "disabled"; }; + + blsp_dma: dma at 7884000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x07884000 0x2b000>; + interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + }; + + serial_blsp0: serial at 78af000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0x78af000 0x200>; + interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + status = "disabled"; + }; + + serial_blsp2: serial at 78B1000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0x78B1000 0x200>; + interrupts = <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp_dma 4>, + <&blsp_dma 5>; + dma-names = "tx", "rx"; + status = "disabled"; + }; + + spi_0: spi at 78b5000 { + compatible = "qcom,spi-qup-v2.2.1"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x78b5000 0x600>; + interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; + spi-max-frequency = <50000000>; + clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp_dma 12>, <&blsp_dma 13>; + dma-names = "tx", "rx"; + status = "disabled"; + }; + + i2c_0: i2c at 78b6000 { + compatible = "qcom,i2c-qup-v2.2.1"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x78b6000 0x600>; + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; + clock-names = "iface", "core"; + clock-frequency = <400000>; + dmas = <&blsp_dma 15>, <&blsp_dma 14>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + + i2c_1: i2c at 78b7000 { + compatible = "qcom,i2c-qup-v2.2.1"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x78b7000 0x600>; + interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>; + clock-names = "iface", "core"; + clock-frequency = <100000>; + dmas = <&blsp_dma 17>, <&blsp_dma 16>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + + qpic_bam: dma at 7984000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x7984000 0x1a000>; + interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_QPIC_AHB_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + status = "disabled"; + }; + + qpic_nand: nand at 79b0000 { + compatible = "qcom,ipq8074-nand"; + reg = <0x79b0000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&gcc GCC_QPIC_CLK>, + <&gcc GCC_QPIC_AHB_CLK>; + clock-names = "core", "aon"; + + dmas = <&qpic_bam 0>, + <&qpic_bam 1>, + <&qpic_bam 2>; + dma-names = "tx", "rx", "cmd"; + status = "disabled"; + }; }; cpus {
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 12/13 ARM: dts: ipq8074: Add pcie nodes
In reply to Sricharan RThe driver/phy support for ipq8074 is available now. So enabling the nodes in DT.
--- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 157 +++++++++++++++++++++++++++++++++- 1 file changed, 156 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/ipq8074.dtsi +156 -1
@@ -24,7 +24,7 @@ ranges = <0 0 0 0xffffffff>; compatible = "simple-bus"; - pinctrl at 1000000 { + tlmm: pinctrl at 1000000 { compatible = "qcom,ipq8074-pinctrl"; reg = <0x1000000 0x300000>; interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;
@@ -229,6 +229,161 @@ dma-names = "tx", "rx", "cmd"; status = "disabled"; }; + + pcie_phy0: phy at 86000 { + compatible = "qcom,ipq8074-qmp-pcie-phy"; + reg = <0x86000 0x1000>; + #phy-cells = <0>; + clocks = <&gcc GCC_PCIE0_PIPE_CLK>; + clock-names = "pipe_clk"; + clock-output-names = "pcie20_phy0_pipe_clk"; + + resets = <&gcc GCC_PCIE0_PHY_BCR>, + <&gcc GCC_PCIE0PHY_PHY_BCR>; + reset-names = "phy", + "common"; + status = "disabled"; + }; + + pcie0: pci at 20000000 { + compatible = "qcom,pcie-ipq8074"; + reg = <0x20000000 0xf1d + 0x20000F20 0xa8 + 0x80000 0x2000 + 0x20100000 0x1000>; + reg-names = "dbi", "elbi", "parf", "config"; + device_type = "pci"; + linux,pci-domain = <0>; + bus-range = <0x00 0xff>; + num-lanes = <1>; + #address-cells = <3>; + #size-cells = <2>; + + phys = <&pcie_phy0>; + phy-names = "pciephy"; + + ranges = <0x81000000 0 0x20200000 0x20200000 + 0 0x00100000 /* downstream I/O */ + 0x82000000 0 0x20300000 0x20300000 + 0 0x00d00000>; /* non-prefetchable memory */ + + interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 75 + IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 78 + IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 79 + IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 83 + IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + + clocks = <&gcc GCC_SYS_NOC_PCIE0_AXI_CLK>, + <&gcc GCC_PCIE0_AXI_M_CLK>, + <&gcc GCC_PCIE0_AXI_S_CLK>, + <&gcc GCC_PCIE0_AHB_CLK>, + <&gcc GCC_PCIE0_AUX_CLK>; + + clock-names = "iface", + "axi_m", + "axi_s", + "ahb", + "aux"; + resets = <&gcc GCC_PCIE0_PIPE_ARES>, + <&gcc GCC_PCIE0_SLEEP_ARES>, + <&gcc GCC_PCIE0_CORE_STICKY_ARES>, + <&gcc GCC_PCIE0_AXI_MASTER_ARES>, + <&gcc GCC_PCIE0_AXI_SLAVE_ARES>, + <&gcc GCC_PCIE0_AHB_ARES>, + <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>; + reset-names = "pipe", + "sleep", + "sticky", + "axi_m", + "axi_s", + "ahb", + "axi_m_sticky"; + status = "disabled"; + }; + + pcie_phy1: phy at 8e000 { + compatible = "qcom,ipq8074-qmp-pcie-phy"; + reg = <0x8e000 0x1000>; + #phy-cells = <0>; + clocks = <&gcc GCC_PCIE1_PIPE_CLK>; + clock-names = "pipe_clk"; + clock-output-names = "pcie20_phy1_pipe_clk"; + + resets = <&gcc GCC_PCIE1_PHY_BCR>, + <&gcc GCC_PCIE1PHY_PHY_BCR>; + reset-names = "phy", + "common"; + status = "disabled"; + }; + + pcie1: pci at 10000000 { + compatible = "qcom,pcie-ipq8074"; + reg = <0x10000000 0xf1d + 0x10000F20 0xa8 + 0x88000 0x2000 + 0x10100000 0x1000>; + reg-names = "dbi", "elbi", "parf", "config"; + device_type = "pci"; + linux,pci-domain = <1>; + bus-range = <0x00 0xff>; + num-lanes = <1>; + #address-cells = <3>; + #size-cells = <2>; + + phys = <&pcie_phy1>; + phy-names = "pciephy"; + + ranges = <0x81000000 0 0x10200000 0x10200000 + 0 0x00100000 /* downstream I/O */ + 0x82000000 0 0x10300000 0x10300000 + 0 0x00d00000>; /* non-prefetchable memory */ + + interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 142 + IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 143 + IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 144 + IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 145 + IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + + clocks = <&gcc GCC_SYS_NOC_PCIE1_AXI_CLK>, + <&gcc GCC_PCIE1_AXI_M_CLK>, + <&gcc GCC_PCIE1_AXI_S_CLK>, + <&gcc GCC_PCIE1_AHB_CLK>, + <&gcc GCC_PCIE1_AUX_CLK>; + clock-names = "iface", + "axi_m", + "axi_s", + "ahb", + "aux"; + resets = <&gcc GCC_PCIE1_PIPE_ARES>, + <&gcc GCC_PCIE1_SLEEP_ARES>, + <&gcc GCC_PCIE1_CORE_STICKY_ARES>, + <&gcc GCC_PCIE1_AXI_MASTER_ARES>, + <&gcc GCC_PCIE1_AXI_SLAVE_ARES>, + <&gcc GCC_PCIE1_AHB_ARES>, + <&gcc GCC_PCIE1_AXI_MASTER_STICKY_ARES>; + reset-names = "pipe", + "sleep", + "sticky", + "axi_m", + "axi_s", + "ahb", + "axi_m_sticky"; + status = "disabled"; + }; }; cpus {
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
PATCH v2 13/13 ARM: dts: ipq8074: Enable few peripherals for hk01 board
In reply to Sricharan R--- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 103 ++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+)
arch/arm64/boot/dts/qcom/ipq8074-hk01.dts +103 -0
@@ -21,6 +21,7 @@ aliases { serial0 = &blsp1_uart5; + serial1 = &serial_blsp2; }; chosen {
@@ -41,6 +42,47 @@ bias-disable; }; }; + + i2c_0_pins: i2c_0_pinmux { + mux { + pins = "gpio42", "gpio43"; + function = "blsp1_i2c"; + drive-strength = <8>; + bias-disable; + }; + }; + + spi_0_pins: spi_0_pins { + mux { + pins = "gpio38", "gpio39", "gpio40", "gpio41"; + function = "blsp0_spi"; + drive-strength = <8>; + bias-disable; + }; + }; + + hsuart_pins: hsuart_pins { + mux { + pins = "gpio46", "gpio47", "gpio48", "gpio49"; + function = "blsp2_uart"; + drive-strength = <8>; + bias-disable; + }; + }; + + qpic_pins: qpic_pins { + mux { + pins = "gpio1", "gpio3", "gpio4", + "gpio5", "gpio6", "gpio7", + "gpio8", "gpio10", "gpio11", + "gpio12", "gpio13", "gpio14", + "gpio15", "gpio16", "gpio17"; + function = "qpic"; + drive-strength = <8>; + bias-disable; + }; + }; + }; serial at 78b3000 {
@@ -48,5 +90,66 @@ pinctrl-names = "default"; status = "ok"; }; + + spi at 78b5000 { + pinctrl-0 = <&spi_0_pins>; + pinctrl-names = "default"; + status = "ok"; + + m25p80 at 0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "n25q128a11", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + }; + }; + + serial at 78B1000 { + pinctrl-0 = <&hsuart_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + i2c_0 at 78b6000 { + pinctrl-0 = <&i2c_0_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + dma at 7984000 { + status = "ok"; + }; + + nand at 79b0000 { + pinctrl-0 = <&qpic_pins>; + pinctrl-names = "default"; + status = "ok"; + + nand at 0 { + reg = <0>; + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + nand-bus-width = <8>; + }; + }; + + phy at 86000 { + status = "ok"; + }; + + phy at 8e000 { + status = "ok"; + }; + + pci at 20000000 { + status = "ok"; + perst-gpio = <&tlmm 58 0x1>; + }; + + pci at 10000000 { + status = "ok"; + perst-gpio = <&tlmm 61 0x1>; + }; }; };
Signature · 1 line
QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH v2 02/13] ARM: dts: ipq4019: Add a few peripheral nodes
In reply to Sricharan RQuoted 5 lines · Sricharan R
Now with the driver updates for some peripherals being there, add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available peripheral support.
Signed-off-by Sricharan R <[email protected]>
Quoted 184 lines
--- arch/arm/boot/dts/qcom-ipq4019.dtsi | 134 ++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+)arch/arm/boot/dts/qcom-ipq4019.dtsi +134
-0@@ -25,7 +25,9 @@ aliases { spi0 = &spi_0; + spi1 = &spi_1; i2c0 = &i2c_0; + i2c1 = &i2c_1; }; cpus {@@ -104,6 +106,12 @@ }; }; + firmware { + scm { + compatible = "qcom,scm-ipq4019"; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts = <1 2 0xf08>,@@ -172,6 +180,22 @@ clock-names = "core", "iface"; #address-cells = <1>; #size-cells = <0>; + dmas = <&blsp_dma 5>, <&blsp_dma 4>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + + spi_1: spi at 78b6000 { /* BLSP1 QUP2 */ + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x78b6000 0x600>; + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP2_SPI_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + #address-cells = <1>; + #size-cells = <0>; + dmas = <&blsp_dma 7>, <&blsp_dma 6>; + dma-names = "rx", "tx"; status = "disabled"; };@@ -184,9 +208,24 @@ clock-names = "iface", "core"; #address-cells = <1>; #size-cells = <0>; + dmas = <&blsp_dma 9>, <&blsp_dma 8>; + dma-names = "rx", "tx"; status = "disabled"; }; + i2c_1: i2c at 78b8000 { /* BLSP1 QUP4 */ + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x78b8000 0x600>; + interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; + clock-names = "iface", "core"; + #address-cells = <1>; + #size-cells = <0>; + dmas = <&blsp_dma 11>, <&blsp_dma 10>; + dma-names = "rx", "tx"; + status = "disabled"; + }; cryptobam: dma at 8e04000 { compatible = "qcom,bam-v1.7.0";@@ -293,6 +332,101 @@ reg = <0x4ab000 0x4>; }; + pcie0: pci at 40000000 { + compatible = "qcom,pcie-ipq4019", "snps,dw-pcie"; + reg = <0x40000000 0xf1d + 0x40000f20 0xa8 + 0x80000 0x2000 + 0x40100000 0x1000>; + reg-names = "dbi", "elbi", "parf", "config"; + device_type = "pci"; + linux,pci-domain = <0>; + bus-range = <0x00 0xff>; + num-lanes = <1>; + #address-cells = <3>; + #size-cells = <2>; + + ranges = <0x81000000 0 0x40200000 0x40200000 0 0x00100000 + 0x82000000 0 0x48000000 0x48000000 0 0x10000000>; + + interrupts = <GIC_SPI 141 IRQ_TYPE_NONE>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 142 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 143 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 144 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 145 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + clocks = <&gcc GCC_PCIE_AHB_CLK>, + <&gcc GCC_PCIE_AXI_M_CLK>, + <&gcc GCC_PCIE_AXI_S_CLK>; + clock-names = "aux", + "master_bus", + "slave_bus"; + + resets = <&gcc PCIE_AXI_M_ARES>, + <&gcc PCIE_AXI_S_ARES>, + <&gcc PCIE_PIPE_ARES>, + <&gcc PCIE_AXI_M_VMIDMT_ARES>, + <&gcc PCIE_AXI_S_XPU_ARES>, + <&gcc PCIE_PARF_XPU_ARES>, + <&gcc PCIE_PHY_ARES>, + <&gcc PCIE_AXI_M_STICKY_ARES>, + <&gcc PCIE_PIPE_STICKY_ARES>, + <&gcc PCIE_PWR_ARES>, + <&gcc PCIE_AHB_ARES>, + <&gcc PCIE_PHY_AHB_ARES>; + reset-names = "axi_m", + "axi_s", + "pipe", + "axi_m_vmid", + "axi_s_xpu", + "parf", + "phy", + "axi_m_sticky", + "pipe_sticky", + "pwr", + "ahb", + "phy_ahb"; + + status = "disabled"; + }; + + qpic_bam: dma at 7984000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x7984000 0x1a000>; + interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_QPIC_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + status = "disabled"; + }; + + nand: qpic-nand at 79b0000 { + compatible = "qcom,ipq4019-nand"; + reg = <0x79b0000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&gcc GCC_QPIC_CLK>, + <&gcc GCC_QPIC_AHB_CLK>; + clock-names = "core", "aon"; + + dmas = <&qpic_bam 0>, + <&qpic_bam 1>, + <&qpic_bam 2>; + dma-names = "tx", "rx", "cmd"; + status = "disabled"; + + nand at 0 { + reg = <0>; + + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + nand-bus-width = <8>; + }; + }; + wifi0: wifi at a000000 { compatible = "qcom,ipq4019-wifi";reg = <
0xa0000000x200000>;
Re: [PATCH v2 03/13] ARM: dts: ipq4019: Change the max opp frequency
In reply to Sricharan RQuoted 3 lines · Sricharan R
The max opp frequency is 716MHZ. So update that.
Signed-off-by Sricharan R <[email protected]>
Quoted 18 lines
--- arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/qcom-ipq4019.dtsi +1
-1@@ -47,7 +47,7 @@ 48000 1100000 200000 1100000 500000 1100000 - 666000 1100000 + 716000 1100000 >; clock-latency = <256000>; };
Re: [PATCH v2 04/13] ARM: dts: ipq4019: Update ipq4019-dk01.1 board data
In reply to Sricharan RQuoted 3 lines · Sricharan R
Adds missing memory, reserved-memory nodes.
Signed-off-by Sricharan R <[email protected]>
Quoted 45 lines
--- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi +28
-0@@ -20,6 +20,34 @@ model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK01.1"; compatible = "qcom,ipq4019"; + memory { + device_type = "memory"; + reg = <0x80000000 0x10000000>; /* 256MB */ + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + rsvd1 at 87000000 { + /* Reserved for other subsystem */ + reg = <0x87000000 0x500000>; + no-map; + }; + + wifi_dump at 87500000 { + reg = <0x87500000 0x600000>; + no-map; + }; + + rsvd2 at 87B00000 { + /* Reserved for other subsystem */ + reg = <0x87B00000 0x500000>; + no-map; + }; + }; + soc { rng at 22000 { status = "ok";
Re: [PATCH v2 05/13] ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi
In reply to Sricharan RQuoted 3 lines · Sricharan R
Add the common parts for the dk04 boards.
Signed-off-by Sricharan R <[email protected]>
Quoted 142 lines
--- arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 129 ++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsiarch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi new file +129
-0@@ -0,0 +1,129 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019.dtsi" +#include <dt-bindings/input/input.h> +#include <dt-bindings/gpio/gpio.h> + +/ { + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1"; + compatible = "qcom,ipq4019"; + + memory { + device_type = "memory"; + reg = <0x80000000 0x10000000>; /* 256MB */ + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + rsvd1 at 87000000 { + /* Reserved for other subsystem */ + reg = <0x87000000 0x500000>; + no-map; + }; + + wifi_dump at 87500000 { + reg = <0x87500000 0x600000>; + no-map; + }; + + rsvd2 at 87B00000 { + /* Reserved for other subsystem */ + reg = <0x87B00000 0x500000>; + no-map; + }; + }; + + soc { + pinctrl at 1000000 { + serial_0_pins: serial0_pinmux { + mux { + pins = "gpio16", "gpio17"; + function = "blsp_uart0"; + bias-disable; + }; + }; + + serial_1_pins: serial1_pinmux { + mux { + pins = "gpio8", "gpio9", + "gpio10", "gpio11"; + function = "blsp_uart1"; + bias-disable; + }; + }; + + spi_0_pins: spi_0_pinmux { + pinmux { + function = "blsp_spi0"; + pins = "gpio13", "gpio14", "gpio15"; + bias-disable; + }; + pinmux_cs { + function = "gpio"; + pins = "gpio12"; + bias-disable; + output-high; + }; + }; + + i2c_0_pins: i2c_0_pinmux { + mux { + pins = "gpio20", "gpio21"; + function = "blsp_i2c0"; + bias-disable; + }; + }; + + nand_pins: nand_pins { + mux { + pins = "gpio53", "gpio55", "gpio56", + "gpio57", "gpio58", "gpio59", + "gpio60", "gpio62", "gpio63", + "gpio64", "gpio65", "gpio66", + "gpio67", "gpio68", "gpio69"; + function = "qpic"; + }; + }; + }; + + serial at 78af000 { + pinctrl-0 = <&serial_0_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + serial at 78b0000 { + pinctrl-0 = <&serial_1_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + blsp_dma: dma at 7884000 { + status = "ok"; + }; + + spi_0: spi at 78b5000 { /* BLSP1 QUP1 */ + pinctrl-0 = <&spi_0_pins>; + pinctrl-names = "default"; + status = "ok"; + cs-gpios = <&tlmm 12 0>; + + m25p80 at 0 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0>; + compatible = "n25q128a11"; + spi-max-frequency = <24000000>; + }; + }; + + pcie0: pci at 40000000 { + status = "ok"; + perst-gpio = <&tlmm 38 0x1>; + }; + }; +};
Re: [PATCH v2 06/13] ARM: dts: ipq4019: Add ipq4019-ap.dk04.1-c1 board file
In reply to Sricharan RQuoted 1 line · Sricharan R
Signed-off-by Sricharan R <[email protected]>
Quoted 46 lines
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dtsarch/arm/boot/dts/Makefile +1
-0@@ -747,6 +747,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-apq8084-ifc6540.dtb \ qcom-apq8084-mtp.dtb \ qcom-ipq4019-ap.dk01.1-c1.dtb \ + qcom-ipq4019-ap.dk04.1-c1.dtb \ qcom-ipq8064-ap148.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts new file +20
-0@@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019-ap.dk04.1.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1-C1"; + + soc { + qpic_bam: dma at 7984000 { + status = "ok"; + }; + + nand: qpic-nand at 79b0000 { + pinctrl-0 = <&nand_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + }; +};
Re: [PATCH v2 07/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk04.1-c3 board file
In reply to Sricharan RQuoted 1 line · Sricharan R
Signed-off-by Sricharan R <[email protected]>
Quoted 33 lines
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dtsarch/arm/boot/dts/Makefile +1
-0@@ -748,6 +748,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-apq8084-mtp.dtb \ qcom-ipq4019-ap.dk01.1-c1.dtb \ qcom-ipq4019-ap.dk04.1-c1.dtb \ + qcom-ipq4019-ap.dk04.1-c3.dtb \ qcom-ipq8064-ap148.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts new file +8
-0@@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019-ap.dk04.1.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1-C3"; +};
Re: [PATCH v2 08/13] ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data
In reply to Sricharan RQuoted 3 lines · Sricharan R
Add the common data for all dk07 based boards.
Signed-off-by Sricharan R <[email protected]>
Quoted 96 lines
--- arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi | 83 +++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsiarch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi new file +83
-0@@ -0,0 +1,83 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019.dtsi" +#include <dt-bindings/input/input.h> +#include <dt-bindings/gpio/gpio.h> + +/ { + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK07.1"; + compatible = "qcom,ipq4019"; + + memory { + device_type = "memory"; + reg = <0x80000000 0x20000000>; /* 512MB */ + }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + rsvd1 at 87000000 { + /* Reserved for other subsystem */ + reg = <0x87000000 0x500000>; + no-map; + }; + + wifi_dump at 87500000 { + reg = <0x87500000 0x600000>; + no-map; + }; + + rsvd2 at 87B00000 { + /* Reserved for other subsystem */ + reg = <0x87B00000 0x500000>; + no-map; + }; + }; + + soc { + pinctrl at 1000000 { + serial_0_pins: serial0_pinmux { + mux { + pins = "gpio16", "gpio17"; + function = "blsp_uart0"; + bias-disable; + }; + }; + + i2c_0_pins: i2c_0_pinmux { + mux { + pins = "gpio20", "gpio21"; + function = "blsp_i2c0"; + bias-disable; + }; + }; + }; + + serial at 78af000 { + pinctrl-0 = <&serial_0_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + blsp_dma: dma at 7884000 { + status = "ok"; + }; + + i2c_0: i2c at 78b7000 { /* BLSP1 QUP2 */ + pinctrl-0 = <&i2c_0_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + qpic_bam: dma at 7984000 { + status = "ok"; + }; + + nand: qpic-nand at 79b0000 { + status = "ok"; + }; + }; +};
Re: [PATCH v2 09/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file
In reply to Sricharan RQuoted 27 lines · Sricharan R
Signed-off-by Sricharan R <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 65 +++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dtsarch/arm/boot/dts/Makefile +1
-0@@ -749,6 +749,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-ipq4019-ap.dk01.1-c1.dtb \ qcom-ipq4019-ap.dk04.1-c1.dtb \ qcom-ipq4019-ap.dk04.1-c3.dtb \ + qcom-ipq4019-ap.dk07.1-c1.dtb \ qcom-ipq8064-ap148.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts new file +0
-0
arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts line 7
Quoted 7 lines
arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts new file +7
-0@@ -0,0 +1,65 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019-ap.dk07.1.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. IPQ40xx/AP-DK07.1-C1";
s/IPQ40xx/IPQ4019
with that.
Quoted 58 lines
arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts new file +58
-0+ + soc { + pcie0: pci at 40000000 { + status = "ok"; + perst-gpio = <&tlmm 38 0x1>; + }; + + spi_1: spi at 78b6000 { /* BLSP1 QUP2 */ + status = "ok"; + }; + + pinctrl at 1000000 { + serial_1_pins: serial1_pinmux { + mux { + pins = "gpio8", "gpio9", + "gpio10", "gpio11"; + function = "blsp_uart1"; + bias-disable; + }; + }; + + spi_0_pins: spi_0_pinmux { + pinmux { + function = "blsp_spi0"; + pins = "gpio13", "gpio14", "gpio15"; + bias-disable; + }; + pinmux_cs { + function = "gpio"; + pins = "gpio12"; + bias-disable; + output-high; + }; + }; + }; + + serial at 78b0000 { + pinctrl-0 = <&serial_1_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + spi_0: spi at 78b5000 { /* BLSP1 QUP1 */ + pinctrl-0 = <&spi_0_pins>; + pinctrl-names = "default"; + status = "ok"; + cs-gpios = <&tlmm 12 0>; + + m25p80 at 0 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0>; + compatible = "n25q128a11"; + spi-max-frequency = <24000000>; + }; + }; + }; +};
Re: [PATCH v2 10/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c2 board file
In reply to Sricharan RQuoted 1 line · Sricharan R
Signed-off-by Sricharan R <[email protected]>
Quoted 52 lines
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts | 26 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dtsarch/arm/boot/dts/Makefile +1
-0@@ -750,6 +750,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ qcom-ipq4019-ap.dk04.1-c1.dtb \ qcom-ipq4019-ap.dk04.1-c3.dtb \ qcom-ipq4019-ap.dk07.1-c1.dtb \ + qcom-ipq4019-ap.dk07.1-c2.dtb \ qcom-ipq8064-ap148.dtb \ qcom-msm8660-surf.dtb \ qcom-msm8960-cdp.dtb \arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts new file +26
-0@@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019-ap.dk07.1.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK07.1-C2"; + + soc { + pinctrl at 1000000 { + serial_1_pins: serial1_pinmux { + mux { + pins = "gpio8", "gpio9"; + function = "blsp_uart1"; + bias-disable; + }; + }; + }; + + serial at 78b0000 { + pinctrl-0 = <&serial_1_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + }; +};
Re: [PATCH v2 11/13] ARM: dts: ipq8074: Add peripheral nodes
In reply to Sricharan RQuoted 14 lines · Sricharan R
Add serial, i2c, bam, spi, qpic peripheral nodes.
Signed-off-by Sricharan R <[email protected]>--- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 105 ++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+)arch/arm64/boot/dts/qcom/ipq8074.dtsi +0
-0
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 130
Quoted 7 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +4
-0@@ -124,6 +124,111 @@ clock-names = "core", "iface"; status = "disabled"; }; + + blsp_dma: dma at 7884000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x07884000 0x2b000>;
we can remove leading zero. s/0x07884000/0x7884000
Quoted 8 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +8
-0+ interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + }; + + serial_blsp0: serial at 78af000 {
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 148
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +10
-0+ compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0x78af000 0x200>; + interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + status = "disabled"; + }; + + serial_blsp2: serial at 78B1000 {
For maintaining uniformity, we can have all address in lower case s/78B1000/78b1000
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 150
Quoted 2 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +2
-0+ compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0x78B1000 0x200>;
same thing, here also
Quoted 25 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +25
-0+ interrupts = <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp_dma 4>, + <&blsp_dma 5>; + dma-names = "tx", "rx"; + status = "disabled"; + }; + + spi_0: spi at 78b5000 { + compatible = "qcom,spi-qup-v2.2.1"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x78b5000 0x600>; + interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; + spi-max-frequency = <50000000>; + clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + dmas = <&blsp_dma 12>, <&blsp_dma 13>; + dma-names = "tx", "rx"; + status = "disabled"; + }; +
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 185
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +10
-0+ i2c_0: i2c at 78b6000 { + compatible = "qcom,i2c-qup-v2.2.1"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x78b6000 0x600>; + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; + clock-names = "iface", "core"; + clock-frequency = <400000>;
remove one extra space. clock-frequency = <400000>;
Quoted 5 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +5
-0+ dmas = <&blsp_dma 15>, <&blsp_dma 14>; + dma-names = "rx", "tx"; + status = "disabled"; + }; +
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 200
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +10
-0+ i2c_1: i2c at 78b7000 { + compatible = "qcom,i2c-qup-v2.2.1"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0x78b7000 0x600>; + interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>; + clock-names = "iface", "core"; + clock-frequency = <100000>;
remove one extra space. clock-frequency = <100000>;
with above changes.
Quoted 34 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +31
-0+ dmas = <&blsp_dma 17>, <&blsp_dma 16>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + + qpic_bam: dma at 7984000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x7984000 0x1a000>; + interrupts = <GIC_SPI 146 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_QPIC_AHB_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + status = "disabled"; + }; + + qpic_nand: nand at 79b0000 { + compatible = "qcom,ipq8074-nand"; + reg = <0x79b0000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&gcc GCC_QPIC_CLK>, + <&gcc GCC_QPIC_AHB_CLK>; + clock-names = "core", "aon"; + + dmas = <&qpic_bam 0>, + <&qpic_bam 1>, + <&qpic_bam 2>; + dma-names = "tx", "rx", "cmd"; + status = "disabled"; + }; }; cpus {
Re: [PATCH v2 13/13] ARM: dts: ipq8074: Enable few peripherals for hk01 board
In reply to Sricharan RQuoted 77 lines · Sricharan R
Signed-off-by Sricharan R <[email protected]>--- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 103 ++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+)arch/arm64/boot/dts/qcom/ipq8074-hk01.dts +48
-0@@ -21,6 +21,7 @@ aliases { serial0 = &blsp1_uart5; + serial1 = &serial_blsp2; }; chosen {@@ -41,6 +42,47 @@ bias-disable; }; }; + + i2c_0_pins: i2c_0_pinmux { + mux { + pins = "gpio42", "gpio43"; + function = "blsp1_i2c"; + drive-strength = <8>; + bias-disable; + }; + }; + + spi_0_pins: spi_0_pins { + mux { + pins = "gpio38", "gpio39", "gpio40", "gpio41"; + function = "blsp0_spi"; + drive-strength = <8>; + bias-disable; + }; + }; + + hsuart_pins: hsuart_pins { + mux { + pins = "gpio46", "gpio47", "gpio48", "gpio49"; + function = "blsp2_uart"; + drive-strength = <8>; + bias-disable; + }; + }; + + qpic_pins: qpic_pins { + mux { + pins = "gpio1", "gpio3", "gpio4", + "gpio5", "gpio6", "gpio7", + "gpio8", "gpio10", "gpio11", + "gpio12", "gpio13", "gpio14", + "gpio15", "gpio16", "gpio17"; + function = "qpic"; + drive-strength = <8>; + bias-disable; + }; + }; + }; serial at 78b3000 {@@ -48,5 +90,66 @@ pinctrl-names = "default"; status = "ok"; }; + + spi at 78b5000 { + pinctrl-0 = <&spi_0_pins>; + pinctrl-names = "default"; + status = "ok"; +
arch/arm64/boot/dts/qcom/ipq8074-hk01.dts line 108
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074-hk01.dts +10
-0+ m25p80 at 0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "n25q128a11", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <50000000>; + }; + }; + + serial at 78B1000 {
s/78B1000/78b1000
With that,
Quoted 47 lines
arch/arm64/boot/dts/qcom/ipq8074-hk01.dts +45
-0+ pinctrl-0 = <&hsuart_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + i2c_0 at 78b6000 { + pinctrl-0 = <&i2c_0_pins>; + pinctrl-names = "default"; + status = "ok"; + }; + + dma at 7984000 { + status = "ok"; + }; + + nand at 79b0000 { + pinctrl-0 = <&qpic_pins>; + pinctrl-names = "default"; + status = "ok"; + + nand at 0 { + reg = <0>; + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + nand-bus-width = <8>; + }; + }; + + phy at 86000 { + status = "ok"; + }; + + phy at 8e000 { + status = "ok"; + }; + + pci at 20000000 { + status = "ok"; + perst-gpio = <&tlmm 58 0x1>; + }; + + pci at 10000000 { + status = "ok"; + perst-gpio = <&tlmm 61 0x1>; + }; }; };
Re: [PATCH v2 12/13] ARM: dts: ipq8074: Add pcie nodes
In reply to Sricharan RQuoted 37 lines · Sricharan R
The driver/phy support for ipq8074 is available now. So enabling the nodes in DT.
Signed-off-by Sricharan R <[email protected]>--- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 157 +++++++++++++++++++++++++++++++++- 1 file changed, 156 insertions(+), 1 deletion(-)arch/arm64/boot/dts/qcom/ipq8074.dtsi +11
-1@@ -24,7 +24,7 @@ ranges = <0 0 0 0xffffffff>; compatible = "simple-bus"; - pinctrl at 1000000 { + tlmm: pinctrl at 1000000 { compatible = "qcom,ipq8074-pinctrl"; reg = <0x1000000 0x300000>; interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;@@ -229,6 +229,161 @@ dma-names = "tx", "rx", "cmd"; status = "disabled"; }; + + pcie_phy0: phy at 86000 { + compatible = "qcom,ipq8074-qmp-pcie-phy"; + reg = <0x86000 0x1000>; + #phy-cells = <0>; + clocks = <&gcc GCC_PCIE0_PIPE_CLK>; + clock-names = "pipe_clk"; + clock-output-names = "pcie20_phy0_pipe_clk"; + + resets = <&gcc GCC_PCIE0_PHY_BCR>,
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 251
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +10
-0+ <&gcc GCC_PCIE0PHY_PHY_BCR>; + reset-names = "phy", + "common"; + status = "disabled"; + }; + + pcie0: pci at 20000000 { + compatible = "qcom,pcie-ipq8074"; + reg = <0x20000000 0xf1d + 0x20000F20 0xa8
s/0x20000F20/0x20000f20
Quoted 5 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +5
-0+ 0x80000 0x2000 + 0x20100000 0x1000>; + reg-names = "dbi", "elbi", "parf", "config"; + device_type = "pci"; + linux,pci-domain = <0>;
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 266
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +10
-0+ bus-range = <0x00 0xff>; + num-lanes = <1>; + #address-cells = <3>; + #size-cells = <2>; + + phys = <&pcie_phy0>; + phy-names = "pciephy"; + + ranges = <0x81000000 0 0x20200000 0x20200000 + 0 0x00100000 /* downstream I/O */
we can remove trailing zeros from address.
s/0x00100000/0x100000
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 268
Quoted 2 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +2
-0+ 0x82000000 0 0x20300000 0x20300000 + 0 0x00d00000>; /* non-prefetchable memory */
s/0x00d00000/0xd00000
Same changes are for PCIE1 also.
With that.
Quoted 121 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +118
-0+ + interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 75 + IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 78 + IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 79 + IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 83 + IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + + clocks = <&gcc GCC_SYS_NOC_PCIE0_AXI_CLK>, + <&gcc GCC_PCIE0_AXI_M_CLK>, + <&gcc GCC_PCIE0_AXI_S_CLK>, + <&gcc GCC_PCIE0_AHB_CLK>, + <&gcc GCC_PCIE0_AUX_CLK>; + + clock-names = "iface", + "axi_m", + "axi_s", + "ahb", + "aux"; + resets = <&gcc GCC_PCIE0_PIPE_ARES>, + <&gcc GCC_PCIE0_SLEEP_ARES>, + <&gcc GCC_PCIE0_CORE_STICKY_ARES>, + <&gcc GCC_PCIE0_AXI_MASTER_ARES>, + <&gcc GCC_PCIE0_AXI_SLAVE_ARES>, + <&gcc GCC_PCIE0_AHB_ARES>, + <&gcc GCC_PCIE0_AXI_MASTER_STICKY_ARES>; + reset-names = "pipe", + "sleep", + "sticky", + "axi_m", + "axi_s", + "ahb", + "axi_m_sticky"; + status = "disabled"; + }; + + pcie_phy1: phy at 8e000 { + compatible = "qcom,ipq8074-qmp-pcie-phy"; + reg = <0x8e000 0x1000>; + #phy-cells = <0>; + clocks = <&gcc GCC_PCIE1_PIPE_CLK>; + clock-names = "pipe_clk"; + clock-output-names = "pcie20_phy1_pipe_clk"; + + resets = <&gcc GCC_PCIE1_PHY_BCR>, + <&gcc GCC_PCIE1PHY_PHY_BCR>; + reset-names = "phy", + "common"; + status = "disabled"; + }; + + pcie1: pci at 10000000 { + compatible = "qcom,pcie-ipq8074"; + reg = <0x10000000 0xf1d + 0x10000F20 0xa8 + 0x88000 0x2000 + 0x10100000 0x1000>; + reg-names = "dbi", "elbi", "parf", "config"; + device_type = "pci"; + linux,pci-domain = <1>; + bus-range = <0x00 0xff>; + num-lanes = <1>; + #address-cells = <3>; + #size-cells = <2>; + + phys = <&pcie_phy1>; + phy-names = "pciephy"; + + ranges = <0x81000000 0 0x10200000 0x10200000 + 0 0x00100000 /* downstream I/O */ + 0x82000000 0 0x10300000 0x10300000 + 0 0x00d00000>; /* non-prefetchable memory */ + + interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 142 + IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 143 + IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 144 + IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 145 + IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + + clocks = <&gcc GCC_SYS_NOC_PCIE1_AXI_CLK>, + <&gcc GCC_PCIE1_AXI_M_CLK>, + <&gcc GCC_PCIE1_AXI_S_CLK>, + <&gcc GCC_PCIE1_AHB_CLK>, + <&gcc GCC_PCIE1_AUX_CLK>; + clock-names = "iface", + "axi_m", + "axi_s", + "ahb", + "aux"; + resets = <&gcc GCC_PCIE1_PIPE_ARES>, + <&gcc GCC_PCIE1_SLEEP_ARES>, + <&gcc GCC_PCIE1_CORE_STICKY_ARES>, + <&gcc GCC_PCIE1_AXI_MASTER_ARES>, + <&gcc GCC_PCIE1_AXI_SLAVE_ARES>, + <&gcc GCC_PCIE1_AHB_ARES>, + <&gcc GCC_PCIE1_AXI_MASTER_STICKY_ARES>; + reset-names = "pipe", + "sleep", + "sticky", + "axi_m", + "axi_s", + "ahb", + "axi_m_sticky"; + status = "disabled"; + }; }; cpus {
Re: [PATCH v2 02/13] ARM: dts: ipq4019: Add a few peripheral nodes
In reply to Sricharan RQuoted 5 lines · Sricharan R
Now with the driver updates for some peripherals being there, add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available peripheral support.
Signed-off-by Sricharan R <[email protected]>
Quoted 184 lines
--- arch/arm/boot/dts/qcom-ipq4019.dtsi | 134 ++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+)arch/arm/boot/dts/qcom-ipq4019.dtsi +134
-0@@ -25,7 +25,9 @@ aliases { spi0 = &spi_0; + spi1 = &spi_1; i2c0 = &i2c_0; + i2c1 = &i2c_1; }; cpus {@@ -104,6 +106,12 @@ }; }; + firmware { + scm { + compatible = "qcom,scm-ipq4019"; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts = <1 2 0xf08>,@@ -172,6 +180,22 @@ clock-names = "core", "iface"; #address-cells = <1>; #size-cells = <0>; + dmas = <&blsp_dma 5>, <&blsp_dma 4>; + dma-names = "rx", "tx"; + status = "disabled"; + }; + + spi_1: spi at 78b6000 { /* BLSP1 QUP2 */ + compatible = "qcom,spi-qup-v2.2.1"; + reg = <0x78b6000 0x600>; + interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_QUP2_SPI_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + #address-cells = <1>; + #size-cells = <0>; + dmas = <&blsp_dma 7>, <&blsp_dma 6>; + dma-names = "rx", "tx"; status = "disabled"; };@@ -184,9 +208,24 @@ clock-names = "iface", "core"; #address-cells = <1>; #size-cells = <0>; + dmas = <&blsp_dma 9>, <&blsp_dma 8>; + dma-names = "rx", "tx"; status = "disabled"; }; + i2c_1: i2c at 78b8000 { /* BLSP1 QUP4 */ + compatible = "qcom,i2c-qup-v2.2.1"; + reg = <0x78b8000 0x600>; + interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_BLSP1_AHB_CLK>, + <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; + clock-names = "iface", "core"; + #address-cells = <1>; + #size-cells = <0>; + dmas = <&blsp_dma 11>, <&blsp_dma 10>; + dma-names = "rx", "tx"; + status = "disabled"; + }; cryptobam: dma at 8e04000 { compatible = "qcom,bam-v1.7.0";@@ -293,6 +332,101 @@ reg = <0x4ab000 0x4>; }; + pcie0: pci at 40000000 { + compatible = "qcom,pcie-ipq4019", "snps,dw-pcie"; + reg = <0x40000000 0xf1d + 0x40000f20 0xa8 + 0x80000 0x2000 + 0x40100000 0x1000>; + reg-names = "dbi", "elbi", "parf", "config"; + device_type = "pci"; + linux,pci-domain = <0>; + bus-range = <0x00 0xff>; + num-lanes = <1>; + #address-cells = <3>; + #size-cells = <2>; + + ranges = <0x81000000 0 0x40200000 0x40200000 0 0x00100000 + 0x82000000 0 0x48000000 0x48000000 0 0x10000000>; + + interrupts = <GIC_SPI 141 IRQ_TYPE_NONE>; + interrupt-names = "msi"; + #interrupt-cells = <1>; + interrupt-map-mask = <0 0 0 0x7>; + interrupt-map = <0 0 0 1 &intc 0 142 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ + <0 0 0 2 &intc 0 143 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ + <0 0 0 3 &intc 0 144 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ + <0 0 0 4 &intc 0 145 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ + clocks = <&gcc GCC_PCIE_AHB_CLK>, + <&gcc GCC_PCIE_AXI_M_CLK>, + <&gcc GCC_PCIE_AXI_S_CLK>; + clock-names = "aux", + "master_bus", + "slave_bus"; + + resets = <&gcc PCIE_AXI_M_ARES>, + <&gcc PCIE_AXI_S_ARES>, + <&gcc PCIE_PIPE_ARES>, + <&gcc PCIE_AXI_M_VMIDMT_ARES>, + <&gcc PCIE_AXI_S_XPU_ARES>, + <&gcc PCIE_PARF_XPU_ARES>, + <&gcc PCIE_PHY_ARES>, + <&gcc PCIE_AXI_M_STICKY_ARES>, + <&gcc PCIE_PIPE_STICKY_ARES>, + <&gcc PCIE_PWR_ARES>, + <&gcc PCIE_AHB_ARES>, + <&gcc PCIE_PHY_AHB_ARES>; + reset-names = "axi_m", + "axi_s", + "pipe", + "axi_m_vmid", + "axi_s_xpu", + "parf", + "phy", + "axi_m_sticky", + "pipe_sticky", + "pwr", + "ahb", + "phy_ahb"; + + status = "disabled"; + }; + + qpic_bam: dma at 7984000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x7984000 0x1a000>; + interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&gcc GCC_QPIC_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + status = "disabled"; + }; + + nand: qpic-nand at 79b0000 { + compatible = "qcom,ipq4019-nand"; + reg = <0x79b0000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&gcc GCC_QPIC_CLK>, + <&gcc GCC_QPIC_AHB_CLK>; + clock-names = "core", "aon"; + + dmas = <&qpic_bam 0>, + <&qpic_bam 1>, + <&qpic_bam 2>; + dma-names = "tx", "rx", "cmd"; + status = "disabled"; + + nand at 0 { + reg = <0>; + + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + nand-bus-width = <8>; + }; + }; + wifi0: wifi at a000000 { compatible = "qcom,ipq4019-wifi";reg = <
0xa0000000x200000>;
Re: [PATCH v2 02/13] ARM: dts: ipq4019: Add a few peripheral nodes
In reply to Sricharan RQuoted 14 lines · Sricharan R
Now with the driver updates for some peripherals being there, add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available peripheral support.
Signed-off-by Sricharan R <[email protected]>--- arch/arm/boot/dts/qcom-ipq4019.dtsi | 134 ++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+)arch/arm/boot/dts/qcom-ipq4019.dtsi +0
-0@@ -25,7 +25,9 @@
[...]
Quoted 8 lines
arch/arm/boot/dts/qcom-ipq4019.dtsi +8
-0+ pcie0: pci at 40000000 { + compatible = "qcom,pcie-ipq4019", "snps,dw-pcie"; + reg = <0x40000000 0xf1d + 0x40000f20 0xa8 + 0x80000 0x2000 + 0x40100000 0x1000>; + reg-names = "dbi", "elbi", "parf", "config"; + device_type = "pci";
arch/arm/boot/dts/qcom-ipq4019.dtsi line 352
Quoted 10 lines
arch/arm/boot/dts/qcom-ipq4019.dtsi +10
-0+ linux,pci-domain = <0>; + bus-range = <0x00 0xff>; + num-lanes = <1>; + #address-cells = <3>; + #size-cells = <2>; + + ranges = <0x81000000 0 0x40200000 0x40200000 0 0x00100000 + 0x82000000 0 0x48000000 0x48000000 0 0x10000000>; + + interrupts = <GIC_SPI 141 IRQ_TYPE_NONE>;
There is no such thing as IRQ_TYPE_NONE. Please replace this with the actual trigger information.
Thanks,
M.
Signature · 1 line
Jazz is not dead. It just smells funny...
Re: [PATCH v2 02/13] ARM: dts: ipq4019: Add a few peripheral nodes
Hi Marc,
Quoted 31 lines · Marc Zyngier
Quoted 14 lines · Sricharan R
Now with the driver updates for some peripherals being there, add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available peripheral support.
Signed-off-by Sricharan R <[email protected]>--- arch/arm/boot/dts/qcom-ipq4019.dtsi | 134 ++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+)arch/arm/boot/dts/qcom-ipq4019.dtsi +0
-0@@ -25,7 +25,9 @@[...]
Quoted 13 lines
arch/arm/boot/dts/qcom-ipq4019.dtsi +13
-0+ pcie0: pci at 40000000 { + compatible = "qcom,pcie-ipq4019", "snps,dw-pcie"; + reg = <0x40000000 0xf1d + 0x40000f20 0xa8 + 0x80000 0x2000 + 0x40100000 0x1000>; + reg-names = "dbi", "elbi", "parf", "config"; + device_type = "pci"; + linux,pci-domain = <0>; + bus-range = <0x00 0xff>; + num-lanes = <1>; + #address-cells = <3>; + #size-cells = <2>;
Quoted 8 lines
arch/arm/boot/dts/qcom-ipq4019.dtsi line 352
Quoted 5 lines
arch/arm/boot/dts/qcom-ipq4019.dtsi +5
-0+ + ranges = <0x81000000 0 0x40200000 0x40200000 0 0x00100000 + 0x82000000 0 0x48000000 0x48000000 0 0x10000000>; + + interrupts = <GIC_SPI 141 IRQ_TYPE_NONE>;There is no such thing as
IRQ_TYPE_NONE. Please replace this with the actual trigger information.
ok, will update this.
Regards,
Sricharan
Signature · 1 line
"QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH v2 12/13] ARM: dts: ipq8074: Add pcie nodes
In reply to Abhishek SahuHi Abhishek,
Quoted 41 lines · Abhishek Sahu
Quoted 40 lines · Sricharan R
The driver/phy support for ipq8074 is available now. So enabling the nodes in DT.
Signed-off-by Sricharan R <[email protected]>---
?arch/arm64/boot/dts/qcom/ipq8074.dtsi | 157 +++++++++++++++++++++++++++++++++- ?1 file changed, 156 insertions(+), 1 deletion(-)arch/arm64/boot/dts/qcom/ipq8074.dtsi +15
-1@@ -24,7 +24,7 @@ ???????? ranges = <0 0 0 0xffffffff>; ???????? compatible = "simple-bus"; -??????? pinctrl at 1000000 { +??????? tlmm: pinctrl at 1000000 { ???????????? compatible = "qcom,ipq8074-pinctrl"; ???????????? reg = <0x1000000 0x300000>; ???????????? interrupts = <GIC_SPI 208 IRQ_TYPE_LEVEL_HIGH>;@@ -229,6 +229,161 @@ ???????????? dma-names = "tx", "rx", "cmd"; ???????????? status = "disabled"; ???????? }; + +??????? pcie_phy0: phy at 86000 { +??????????? compatible = "qcom,ipq8074-qmp-pcie-phy"; +??????????? reg = <0x86000 0x1000>; +??????????? #phy-cells = <0>; +??????????? clocks = <&gcc GCC_PCIE0_PIPE_CLK>; +??????????? clock-names = "pipe_clk"; +??????????? clock-output-names = "pcie20_phy0_pipe_clk"; + +??????????? resets = <&gcc GCC_PCIE0_PHY_BCR>, +??????????????? <&gcc GCC_PCIE0PHY_PHY_BCR>; +??????????? reset-names = "phy", +????????????????????? "common"; +??????????? status = "disabled";
Quoted 8 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 251
Quoted 6 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +6
-0+??????? }; + +??????? pcie0: pci at 20000000 { +??????????? compatible = "qcom,pcie-ipq8074"; +??????????? reg =? <0x20000000 0xf1d +??????????????? 0x20000F20 0xa8?s/0x20000F20/0x20000f20
ok
Quoted 20 lines
Quoted 6 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +5
-0+??????????????? 0x80000 0x2000 +??????????????? 0x20100000 0x1000>; +??????????? reg-names = "dbi", "elbi", "parf", "config"; +??????????? device_type = "pci"; +??????????? linux,pci-domain = <0>;arch/arm64/boot/dts/qcom/ipq8074.dtsi line 266
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +10
-0+??????????? bus-range = <0x00 0xff>; +??????????? num-lanes = <1>; +??????????? #address-cells = <3>; +??????????? #size-cells = <2>; + +??????????? phys = <&pcie_phy0>; +??????????? phy-names = "pciephy"; + +??????????? ranges = <0x81000000 0 0x20200000 0x20200000 +????????????????? 0 0x00100000?? /* downstream I/O */?we can remove trailing zeros from address.
?s/0x00100000/0x100000
Quoted 6 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 268
Quoted 2 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +2
-0+????????????????? 0x82000000 0 0x20300000 0x20300000 +????????????????? 0 0x00d00000>; /* non-prefetchable memory */?s/0x00d00000/0xd00000
?Same changes are for PCIE1 also.
ok
Quoted 4 lines
?With that.
?Reviewed-by: Abhishek Sahu <[email protected]>
Thanks.
Regards,
Sricharan
Signature · 1 line
"QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH v2 13/13] ARM: dts: ipq8074: Enable few peripherals for hk01 board
In reply to Abhishek SahuHi Abhishek,
Quoted 90 lines · Abhishek Sahu
Quoted 76 lines · Sricharan R
Signed-off-by Sricharan R <[email protected]>---
?arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 103 ++++++++++++++++++++++++++++++ ?1 file changed, 103 insertions(+)arch/arm64/boot/dts/qcom/ipq8074-hk01.dts +48
-0@@ -21,6 +21,7 @@ ???? aliases { ???????? serial0 = &blsp1_uart5; +??????? serial1 = &serial_blsp2; ???? }; ???? chosen {@@ -41,6 +42,47 @@ ???????????????????? bias-disable; ???????????????? }; ???????????? }; + +???????????? i2c_0_pins: i2c_0_pinmux { +????????????????? mux { +?????????????????????? pins = "gpio42", "gpio43"; +?????????????????????? function = "blsp1_i2c"; +?????????????????????? drive-strength = <8>; +?????????????????????? bias-disable; +????????????????? }; +???????????? }; + +???????????? spi_0_pins: spi_0_pins { +????????????????? mux { +?????????????????????? pins = "gpio38", "gpio39", "gpio40", "gpio41"; +?????????????????????? function = "blsp0_spi"; +?????????????????????? drive-strength = <8>; +?????????????????????? bias-disable; +????????????????? }; +???????????? }; + +???????????? hsuart_pins: hsuart_pins { +????????????????? mux { +?????????????????????? pins = "gpio46", "gpio47", "gpio48", "gpio49"; +?????????????????????? function = "blsp2_uart"; +?????????????????????? drive-strength = <8>; +?????????????????????? bias-disable; +????????????????? }; +???????????? }; + +???????????? qpic_pins: qpic_pins { +??????????????? mux { +?????????????????????? pins = "gpio1", "gpio3", "gpio4", +????????????????????????? "gpio5", "gpio6", "gpio7", +????????????????????????? "gpio8", "gpio10", "gpio11", +????????????????????????? "gpio12", "gpio13", "gpio14", +????????????????????????? "gpio15", "gpio16", "gpio17"; +?????????????????????? function = "qpic"; +?????????????????????? drive-strength = <8>; +?????????????????????? bias-disable; +????????????????? }; +??????????? }; + ???????? }; ???????? serial at 78b3000 {@@ -48,5 +90,66 @@ ???????????? pinctrl-names = "default"; ???????????? status = "ok"; ???????? }; + +??????? spi at 78b5000 { +???????????? pinctrl-0 = <&spi_0_pins>; +???????????? pinctrl-names = "default"; +???????????? status = "ok"; +arch/arm64/boot/dts/qcom/ipq8074-hk01.dts line 108
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074-hk01.dts +10
-0+???????????? m25p80 at 0 { +????????????????? #address-cells = <1>; +????????????????? #size-cells = <1>; +????????????????? compatible = "n25q128a11", "jedec,spi-nor"; +????????????????? reg = <0>; +????????????????? spi-max-frequency = <50000000>; +???????????? }; +??????? }; + +??????? serial at 78B1000 {?s/78B1000/78b1000
Quoted 3 lines
?With that,
?Reviewed-by: Abhishek Sahu <[email protected]>
ok, Thanks.
Regards,
Sricharan
Signature · 1 line
"QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH v2 11/13] ARM: dts: ipq8074: Add peripheral nodes
In reply to Abhishek SahuQuoted 105 lines · Abhishek Sahu
Quoted 13 lines · Sricharan R
Add serial, i2c, bam, spi, qpic peripheral nodes.
Signed-off-by Sricharan R <[email protected]>---
?arch/arm64/boot/dts/qcom/ipq8074.dtsi | 105 ++++++++++++++++++++++++++++++++++ ?1 file changed, 105 insertions(+)arch/arm64/boot/dts/qcom/ipq8074.dtsi +0
-0arch/arm64/boot/dts/qcom/ipq8074.dtsi line 130
Quoted 7 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +4
-0@@ -124,6 +124,111 @@ ???????????? clock-names = "core", "iface"; ???????????? status = "disabled"; ???????? }; + +??????? blsp_dma: dma at 7884000 { +??????????? compatible = "qcom,bam-v1.7.0"; +??????????? reg = <0x07884000 0x2b000>;?we can remove leading zero. s/0x07884000/0x7884000
Quoted 8 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +8
-0+??????????? interrupts = <GIC_SPI 238 IRQ_TYPE_LEVEL_HIGH>; +??????????? clocks = <&gcc GCC_BLSP1_AHB_CLK>; +??????????? clock-names = "bam_clk"; +??????????? #dma-cells = <1>; +??????????? qcom,ee = <0>; +??????? }; + +??????? serial_blsp0: serial at 78af000 {arch/arm64/boot/dts/qcom/ipq8074.dtsi line 148
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +10
-0+??????????? compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; +??????????? reg = <0x78af000 0x200>; +??????????? interrupts = <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; +??????????? clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>, +???????????????? <&gcc GCC_BLSP1_AHB_CLK>; +??????????? clock-names = "core", "iface"; +??????????? status = "disabled"; +??????? }; + +??????? serial_blsp2: serial at 78B1000 {?For maintaining uniformity, we can have all address in lower case ?s/78B1000/78b1000
arch/arm64/boot/dts/qcom/ipq8074.dtsi line 150
Quoted 2 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +2
-0+??????????? compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; +??????????? reg = <0x78B1000 0x200>;?same thing, here also
Quoted 25 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +25
-0+??????????? interrupts = <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>; +??????????? clocks = <&gcc GCC_BLSP1_UART3_APPS_CLK>, +??????????????? <&gcc GCC_BLSP1_AHB_CLK>; +??????????? clock-names = "core", "iface"; +??????????? dmas = <&blsp_dma 4>, +??????????????? <&blsp_dma 5>; +??????????? dma-names = "tx", "rx"; +??????????? status = "disabled"; +??????? }; + +??????? spi_0: spi at 78b5000 { +??????????? compatible = "qcom,spi-qup-v2.2.1"; +??????????? #address-cells = <1>; +??????????? #size-cells = <0>; +??????????? reg = <0x78b5000 0x600>; +??????????? interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>; +??????????? spi-max-frequency = <50000000>; +??????????? clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>, +??????????????? <&gcc GCC_BLSP1_AHB_CLK>; +??????????? clock-names = "core", "iface"; +??????????? dmas = <&blsp_dma 12>, <&blsp_dma 13>; +??????????? dma-names = "tx", "rx"; +??????????? status = "disabled"; +??????? }; +arch/arm64/boot/dts/qcom/ipq8074.dtsi line 185
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +10
-0+??????? i2c_0: i2c at 78b6000 { +??????????? compatible = "qcom,i2c-qup-v2.2.1"; +??????????? #address-cells = <1>; +??????????? #size-cells = <0>; +??????????? reg = <0x78b6000 0x600>; +??????????? interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; +??????????? clocks = <&gcc GCC_BLSP1_AHB_CLK>, +??????????????? <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>; +??????????? clock-names = "iface", "core"; +??????????? clock-frequency? = <400000>;?remove one extra space. clock-frequency = <400000>;
Quoted 5 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +5
-0+??????????? dmas = <&blsp_dma 15>, <&blsp_dma 14>; +??????????? dma-names = "rx", "tx"; +??????????? status = "disabled"; +??????? }; +arch/arm64/boot/dts/qcom/ipq8074.dtsi line 200
Quoted 10 lines
arch/arm64/boot/dts/qcom/ipq8074.dtsi +10
-0+??????? i2c_1: i2c at 78b7000 { +??????????? compatible = "qcom,i2c-qup-v2.2.1"; +??????????? #address-cells = <1>; +??????????? #size-cells = <0>; +??????????? reg = <0x78b7000 0x600>; +??????????? interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>; +??????????? clocks = <&gcc GCC_BLSP1_AHB_CLK>, +??????????????? <&gcc GCC_BLSP1_QUP3_I2C_APPS_CLK>; +??????????? clock-names = "iface", "core"; +??????????? clock-frequency? = <100000>;
Quoted 6 lines
?remove one extra space. clock-frequency = <100000>;
?with above changes.
?Reviewed-by: Abhishek Sahu <[email protected]>
Sure, will take care of all the above. Thanks
Regards,
Sricharan
Signature · 1 line
"QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
Re: [PATCH v2 09/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file
In reply to Abhishek SahuQuoted 37 lines · Abhishek Sahu
Quoted 26 lines · Sricharan R
Signed-off-by Sricharan R <[email protected]>---
?arch/arm/boot/dts/Makefile????????????????????? |? 1 + ?arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 65 +++++++++++++++++++++++++ ?2 files changed, 66 insertions(+)
?create mode 100644arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dtsarch/arm/boot/dts/Makefile +1
-0@@ -749,6 +749,7 @@ dtb-$(CONFIG_ARCH_QCOM) += \ ???? qcom-ipq4019-ap.dk01.1-c1.dtb \ ???? qcom-ipq4019-ap.dk04.1-c1.dtb \ ???? qcom-ipq4019-ap.dk04.1-c3.dtb \ +??? qcom-ipq4019-ap.dk07.1-c1.dtb \ ???? qcom-ipq8064-ap148.dtb \ ???? qcom-msm8660-surf.dtb \ ???? qcom-msm8960-cdp.dtb \arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts new file +0
-0arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts line 7
Quoted 7 lines
arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts new file +7
-0@@ -0,0 +1,65 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, The Linux Foundation. All rights reserved. + +#include "qcom-ipq4019-ap.dk07.1.dtsi" + +/ { +??? model = "Qualcomm Technologies, Inc. IPQ40xx/AP-DK07.1-C1";?s/IPQ40xx/IPQ4019
Quoted 3 lines
?with that.
?Reviewed-by: Abhishek Sahu <[email protected]>
Thanks, will update
Regards,
Sricharan
Signature · 1 line
"QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation