* [PATCH 1/4] ARM: dts: qcom: apq8064-ifc6410 Use hardware flow control for GSBI6
2015-12-11 18:26 [PATCH 0/4] arm: dts: qcom-apq8064: add smem and hwspinlock support Srinivas Kandagatla
@ 2015-12-11 18:29 ` Srinivas Kandagatla
2015-12-11 19:24 ` Andy Gross
2015-12-11 18:31 ` [PATCH 2/4] arm: dts: apq8064: add shared memory into dt reserved-memory Srinivas Kandagatla
` (3 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Srinivas Kandagatla @ 2015-12-11 18:29 UTC (permalink / raw)
To: linux-arm-kernel
From: "Ivan T. Ivanov" <ivan.ivanov@linaro.org>
GSBI6 UART module is connected to BT chip, which uses
hardware flow control lines. Enable them on SoC side.
Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org>
---
arch/arm/boot/dts/qcom-apq8064-ifc6410.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
index 11ac608..80c6695 100644
--- a/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
+++ b/arch/arm/boot/dts/qcom-apq8064-ifc6410.dts
@@ -164,7 +164,7 @@
gsbi at 16500000 {
status = "ok";
- qcom,mode = <GSBI_PROT_I2C_UART>;
+ qcom,mode = <GSBI_PROT_UART_W_FC>;
serial at 16540000 {
status = "ok";
--
1.9.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 2/4] arm: dts: apq8064: add shared memory into dt reserved-memory
2015-12-11 18:26 [PATCH 0/4] arm: dts: qcom-apq8064: add smem and hwspinlock support Srinivas Kandagatla
2015-12-11 18:29 ` [PATCH 1/4] ARM: dts: qcom: apq8064-ifc6410 Use hardware flow control for GSBI6 Srinivas Kandagatla
@ 2015-12-11 18:31 ` Srinivas Kandagatla
2015-12-11 19:25 ` Andy Gross
2015-12-11 18:32 ` [PATCH 3/4] arm: dts: apq8064: add hwspinlock nodes Srinivas Kandagatla
` (2 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: Srinivas Kandagatla @ 2015-12-11 18:31 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds the shared memory in the Device tree reserved memory
list so that kernel would not map it as normal memory.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
arch/arm/boot/dts/qcom-apq8064.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi
index a4c1762..09f0e27 100644
--- a/arch/arm/boot/dts/qcom-apq8064.dtsi
+++ b/arch/arm/boot/dts/qcom-apq8064.dtsi
@@ -11,6 +11,17 @@
compatible = "qcom,apq8064";
interrupt-parent = <&intc>;
+ reserved-memory {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ smem:smem at 80000000 {
+ reg = <0x80000000 0x200000>;
+ no-map;
+ };
+ };
+
cpus {
#address-cells = <1>;
#size-cells = <0>;
--
1.9.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/4] arm: dts: apq8064: add hwspinlock nodes
2015-12-11 18:26 [PATCH 0/4] arm: dts: qcom-apq8064: add smem and hwspinlock support Srinivas Kandagatla
2015-12-11 18:29 ` [PATCH 1/4] ARM: dts: qcom: apq8064-ifc6410 Use hardware flow control for GSBI6 Srinivas Kandagatla
2015-12-11 18:31 ` [PATCH 2/4] arm: dts: apq8064: add shared memory into dt reserved-memory Srinivas Kandagatla
@ 2015-12-11 18:32 ` Srinivas Kandagatla
2015-12-11 19:25 ` Andy Gross
2015-12-11 18:33 ` [PATCH 4/4] arm: dts: apq8064: add shared memory node Srinivas Kandagatla
2015-12-12 0:22 ` [PATCH 0/4] arm: dts: qcom-apq8064: add smem and hwspinlock support Bjorn Andersson
4 siblings, 1 reply; 11+ messages in thread
From: Srinivas Kandagatla @ 2015-12-11 18:32 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds support hwspinlock devicetree node.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
arch/arm/boot/dts/qcom-apq8064.dtsi | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi
index 09f0e27..829028a 100644
--- a/arch/arm/boot/dts/qcom-apq8064.dtsi
+++ b/arch/arm/boot/dts/qcom-apq8064.dtsi
@@ -670,5 +670,17 @@
compatible = "qcom,tcsr-apq8064", "syscon";
reg = <0x1a400000 0x100>;
};
+
+ sfpb_syscon:syscon at 01200600 {
+ compatible = "syscon";
+ reg = <0x01200600 0x100>;
+ };
+
+ sfpb_mutex: hwlock {
+ compatible = "qcom,sfpb-mutex";
+ syscon = <&sfpb_syscon 0x4 0x4>;
+ #hwlock-cells = <1>;
+ };
+
};
};
--
1.9.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/4] arm: dts: apq8064: add shared memory node
2015-12-11 18:26 [PATCH 0/4] arm: dts: qcom-apq8064: add smem and hwspinlock support Srinivas Kandagatla
` (2 preceding siblings ...)
2015-12-11 18:32 ` [PATCH 3/4] arm: dts: apq8064: add hwspinlock nodes Srinivas Kandagatla
@ 2015-12-11 18:33 ` Srinivas Kandagatla
2015-12-11 19:23 ` Andy Gross
2015-12-12 0:22 ` [PATCH 0/4] arm: dts: qcom-apq8064: add smem and hwspinlock support Bjorn Andersson
4 siblings, 1 reply; 11+ messages in thread
From: Srinivas Kandagatla @ 2015-12-11 18:33 UTC (permalink / raw)
To: linux-arm-kernel
This patch adds support to qcom,smem device.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
arch/arm/boot/dts/qcom-apq8064.dtsi | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi
index 829028a..40dd6b4 100644
--- a/arch/arm/boot/dts/qcom-apq8064.dtsi
+++ b/arch/arm/boot/dts/qcom-apq8064.dtsi
@@ -682,5 +682,11 @@
#hwlock-cells = <1>;
};
+ smem {
+ compatible = "qcom,smem";
+ memory-region = <&smem>;
+ hwlocks = <&sfpb_mutex 3>;
+ };
+
};
};
--
1.9.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/4] arm: dts: apq8064: add shared memory node
2015-12-11 18:33 ` [PATCH 4/4] arm: dts: apq8064: add shared memory node Srinivas Kandagatla
@ 2015-12-11 19:23 ` Andy Gross
0 siblings, 0 replies; 11+ messages in thread
From: Andy Gross @ 2015-12-11 19:23 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Dec 11, 2015 at 06:33:09PM +0000, Srinivas Kandagatla wrote:
> This patch adds support to qcom,smem device.
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
> arch/arm/boot/dts/qcom-apq8064.dtsi | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi
> index 829028a..40dd6b4 100644
> --- a/arch/arm/boot/dts/qcom-apq8064.dtsi
> +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi
> @@ -682,5 +682,11 @@
> #hwlock-cells = <1>;
> };
>
> + smem {
> + compatible = "qcom,smem";
> + memory-region = <&smem>;
> + hwlocks = <&sfpb_mutex 3>;
> + };
> +
smem needs to be outside the soc as there is no reg entry.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 0/4] arm: dts: qcom-apq8064: add smem and hwspinlock support
2015-12-11 18:26 [PATCH 0/4] arm: dts: qcom-apq8064: add smem and hwspinlock support Srinivas Kandagatla
` (3 preceding siblings ...)
2015-12-11 18:33 ` [PATCH 4/4] arm: dts: apq8064: add shared memory node Srinivas Kandagatla
@ 2015-12-12 0:22 ` Bjorn Andersson
2015-12-12 12:08 ` Srinivas Kandagatla
4 siblings, 1 reply; 11+ messages in thread
From: Bjorn Andersson @ 2015-12-12 0:22 UTC (permalink / raw)
To: linux-arm-kernel
On Fri 11 Dec 10:26 PST 2015, Srinivas Kandagatla wrote:
> Hi Andy,
>
> Here are 3 patches for smem/hwspinlock which I have tested with QDSP on IFC6410.
> Also a fix from Ivan which I think can be taken aswell.
>
As far as I can tell my patch for adding smem and hwmutex are already in
linux-next, via Andy's tree. Am I missing something?
Regards,
Bjorn
^ permalink raw reply [flat|nested] 11+ messages in thread