linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes
@ 2016-03-29  1:32 Bjorn Andersson
  2016-03-29  1:32 ` [PATCH 2/4] ARM: dts: msm8974: Split efs in rfsa and rmtfs Bjorn Andersson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bjorn Andersson @ 2016-03-29  1:32 UTC (permalink / raw)
  To: Andy Gross
  Cc: linux-arm-msm, linux-soc, devicetree, linux-arm-kernel,
	linux-kernel, Bjorn Andersson

From: Bjorn Andersson <bjorn.andersson@sonymobile.com>

Add the necessary nodes for USB gadget on MSM8974 and enable these for
Honami.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 .../boot/dts/qcom-msm8974-sony-xperia-honami.dts   |  8 +++++
 arch/arm/boot/dts/qcom-msm8974.dtsi                | 38 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts
index a0398b69f4f2..453eede25a43 100644
--- a/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts
+++ b/arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts
@@ -367,6 +367,14 @@
 		};
 
 	};
+
+	usb-phy@f9a55000 {
+		status = "ok";
+	};
+
+	usb@f9a55000 {
+		status = "ok";
+	};
 };
 
 &spmi_bus {
diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index ef5330578431..927075137b76 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -489,6 +489,44 @@
 			#dma-cells = <1>;
 			qcom,ee = <0>;
 		};
+
+		usb1_phy: usb-phy@f9a55000 {
+			compatible = "qcom,usb-otg-snps";
+
+			reg = <0xf9a55000 0x400>;
+			interrupts-extended = <&intc 0 134 0>, <&intc 0 140 0>,
+				<&spmi_bus 0 0x9 0 0>;
+			interrupt-names = "core_irq", "async_irq", "pmic_id_irq";
+
+			vddcx-supply = <&pm8841_s2>;
+			v3p3-supply = <&pm8941_l24>;
+			v1p8-supply = <&pm8941_l6>;
+
+			dr_mode = "otg";
+			qcom,phy-init-sequence = <0x63 0x81 0xfffffff>;
+			qcom,otg-control = <1>;
+			qcom,phy-num = <0>;
+
+			resets = <&gcc GCC_USB2A_PHY_BCR>, <&gcc GCC_USB_HS_BCR>;
+			reset-names = "phy", "link";
+
+			clocks = <&gcc GCC_XO_CLK>, <&gcc GCC_USB_HS_SYSTEM_CLK>,
+				<&gcc GCC_USB_HS_AHB_CLK>;
+			clock-names = "phy", "core", "iface";
+
+			status = "disabled";
+		};
+
+		usb@f9a55000 {
+			compatible = "qcom,ci-hdrc";
+			reg = <0xf9a55000 0x400>;
+			dr_mode = "otg";
+			interrupts = <0 134 0>, <0 140 0>;
+			interrupt-names = "core_irq", "async_irq";
+			usb-phy = <&usb1_phy>;
+
+			status = "disabled";
+		};
 	};
 
 	smd {
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/4] ARM: dts: msm8974: Split efs in rfsa and rmtfs
  2016-03-29  1:32 [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes Bjorn Andersson
@ 2016-03-29  1:32 ` Bjorn Andersson
  2016-03-29  1:32 ` [PATCH 3/4] ARM: dts: msm8974: Add node for second i2c from blsp1 Bjorn Andersson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2016-03-29  1:32 UTC (permalink / raw)
  To: Andy Gross
  Cc: linux-arm-msm, linux-soc, devicetree, linux-arm-kernel, linux-kernel

One part of the efs memory region is used specifically for sharing file system
buffers between the apps and modem cpus (aka rmtfs), so better reflect this
split.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 arch/arm/boot/dts/qcom-msm8974.dtsi | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index 927075137b76..1afee408a923 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -49,8 +49,13 @@
 			no-map;
 		};
 
-		efs@0fd600000 {
-			reg = <0x0fd60000 0x1a0000>;
+		rfsa@0fd60000 {
+			reg = <0x0fd60000 0x20000>;
+			no-map;
+		};
+
+		rmtfs@0fd80000 {
+			reg = <0x0fd80000 0x180000>;
 			no-map;
 		};
 
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/4] ARM: dts: msm8974: Add node for second i2c from blsp1
  2016-03-29  1:32 [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes Bjorn Andersson
  2016-03-29  1:32 ` [PATCH 2/4] ARM: dts: msm8974: Split efs in rfsa and rmtfs Bjorn Andersson
@ 2016-03-29  1:32 ` Bjorn Andersson
  2016-03-29  1:32 ` [PATCH 4/4] ARM: dts: msm8974: Add modem smp2p and smd nodes Bjorn Andersson
  2016-03-29  3:41 ` [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes kbuild test robot
  3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2016-03-29  1:32 UTC (permalink / raw)
  To: Andy Gross
  Cc: linux-arm-msm, linux-soc, devicetree, linux-arm-kernel, linux-kernel

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 arch/arm/boot/dts/qcom-msm8974.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index 1afee408a923..d872ddc2d190 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -445,6 +445,17 @@
 			interrupts = <0 208 0>;
 		};
 
+		i2c@f9924000 {
+			status = "disabled";
+			compatible = "qcom,i2c-qup-v2.1.1";
+			reg = <0xf9924000 0x1000>;
+			interrupts = <0 96 IRQ_TYPE_NONE>;
+			clocks = <&gcc GCC_BLSP1_QUP2_I2C_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
+			clock-names = "core", "iface";
+			#address-cells = <1>;
+			#size-cells = <0>;
+		};
+
 		blsp_i2c8: i2c@f9964000 {
 			status = "disabled";
 			compatible = "qcom,i2c-qup-v2.1.1";
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 4/4] ARM: dts: msm8974: Add modem smp2p and smd nodes
  2016-03-29  1:32 [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes Bjorn Andersson
  2016-03-29  1:32 ` [PATCH 2/4] ARM: dts: msm8974: Split efs in rfsa and rmtfs Bjorn Andersson
  2016-03-29  1:32 ` [PATCH 3/4] ARM: dts: msm8974: Add node for second i2c from blsp1 Bjorn Andersson
@ 2016-03-29  1:32 ` Bjorn Andersson
  2016-03-29  3:41 ` [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes kbuild test robot
  3 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2016-03-29  1:32 UTC (permalink / raw)
  To: Andy Gross
  Cc: linux-arm-msm, linux-soc, devicetree, linux-arm-kernel, linux-kernel

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
---
 arch/arm/boot/dts/qcom-msm8974.dtsi | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi
index d872ddc2d190..79c9cfcabf77 100644
--- a/arch/arm/boot/dts/qcom-msm8974.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8974.dtsi
@@ -168,6 +168,31 @@
 		hwlocks = <&tcsr_mutex 3>;
 	};
 
+	smp2p-modem {
+		compatible = "qcom,smp2p";
+		qcom,smem = <435>, <428>;
+
+		interrupt-parent = <&intc>;
+		interrupts = <0 27 IRQ_TYPE_EDGE_RISING>;
+
+		qcom,ipc = <&apcs 8 14>;
+
+		qcom,local-pid = <0>;
+		qcom,remote-pid = <1>;
+
+		modem_smp2p_out: master-kernel {
+			qcom,entry-name = "master-kernel";
+			#qcom,state-cells = <1>;
+		};
+
+		modem_smp2p_in: slave-kernel {
+			qcom,entry-name = "slave-kernel";
+
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+	};
+
 	smp2p-wcnss {
 		compatible = "qcom,smp2p";
 		qcom,smem = <451>, <431>;
@@ -548,6 +573,13 @@
 	smd {
 		compatible = "qcom,smd";
 
+		modem {
+			interrupts = <0 25 IRQ_TYPE_EDGE_RISING>;
+
+			qcom,ipc = <&apcs 8 12>;
+			qcom,smd-edge = <0>;
+		};
+
 		rpm {
 			interrupts = <0 168 1>;
 			qcom,ipc = <&apcs 8 0>;
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes
  2016-03-29  1:32 [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes Bjorn Andersson
                   ` (2 preceding siblings ...)
  2016-03-29  1:32 ` [PATCH 4/4] ARM: dts: msm8974: Add modem smp2p and smd nodes Bjorn Andersson
@ 2016-03-29  3:41 ` kbuild test robot
  3 siblings, 0 replies; 5+ messages in thread
From: kbuild test robot @ 2016-03-29  3:41 UTC (permalink / raw)
  To: Bjorn Andersson
  Cc: kbuild-all, Andy Gross, linux-arm-msm, linux-soc, devicetree,
	linux-arm-kernel, linux-kernel, Bjorn Andersson

[-- Attachment #1: Type: text/plain, Size: 959 bytes --]

Hi Bjorn,

[auto build test ERROR on v4.6-rc1]
[also build test ERROR on next-20160329]
[cannot apply to robh/for-next]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Bjorn-Andersson/ARM-dts-qcom-msm8974-Add-USB-gadget-nodes/20160329-093758
config: arm-multi_v7_defconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

All errors (new ones prefixed by >>):

>> Error: arch/arm/boot/dts/qcom-msm8974.dtsi:510.19-20 syntax error
   FATAL ERROR: Unable to parse input tree

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 37213 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-29  3:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-29  1:32 [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes Bjorn Andersson
2016-03-29  1:32 ` [PATCH 2/4] ARM: dts: msm8974: Split efs in rfsa and rmtfs Bjorn Andersson
2016-03-29  1:32 ` [PATCH 3/4] ARM: dts: msm8974: Add node for second i2c from blsp1 Bjorn Andersson
2016-03-29  1:32 ` [PATCH 4/4] ARM: dts: msm8974: Add modem smp2p and smd nodes Bjorn Andersson
2016-03-29  3:41 ` [PATCH 1/4] ARM: dts: qcom: msm8974: Add USB gadget nodes kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).