From patchwork Thu Nov 8 17:50:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 150544 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1131264ljp; Thu, 8 Nov 2018 09:51:59 -0800 (PST) X-Google-Smtp-Source: AJdET5fmcuI/+bzbNzIYqDqcjFvaQEanh9pYhWL2jA83o9tf9UKnntKMQZwPf7aTsYJM06vwFbAG X-Received: by 2002:a63:d70e:: with SMTP id d14mr4576583pgg.159.1541699518930; Thu, 08 Nov 2018 09:51:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541699518; cv=none; d=google.com; s=arc-20160816; b=ofsWcXk9Qq0FJHWYpuIz6GVe0DHEGWvWICruKj9/1azDltwYq4kfVX1K51J9wixDhH k4vw9DYjzCR2EvsVmoIR0aAqQF/6Bkxri6v+QahMc0rs5yetvJlivNBpkR2Mwc1Dxjau 8NEFX3yYaCoGALVy0BQGPyTDi8RYGkY9MhX6HO5q0QWgiaBCPb4PRVdKS/UC+FBT9f/6 7oMBY/RzgYYfLEu4O0mqwl/53i/V8SvYqo2YFVCpPp+xnHFuv2VxS3HKpgqnHDYtN+oA kTREgz+qgQq4wLw0jjAR17QO2SbBkD9EVDNpClyn8HFSoVywkRAZhJyVqQ5XOLkN0dXL D41Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=dBZh1Fy3b7e9kyJC0GfwlgdeE/vQi5KVgHO/Tc2bStw=; b=Ut1sXFSlEvWl0IumdYRDa711lu36b1N8PI1oj3SonKGqU5mixh3KVyQzxkdcI4AJ3w YQRCDInlml6bNK4O1wX+DvWk2TJF1y5AS3Yfefsk+DI3SZ0k4xLR0LZRJ1EjZSRCZru0 31nb7JM2WtJh+jvp6u/p73LysEo0pDrUzKOPpjgnXYLIGgXqGR43yycETCMd9NbxXaZ5 ao/W+ajgHNpHnRrl5xvxI3XDSzqJhdZQqQ7S4xnKSBPi88Y3iJrTepaSu/CSAG16wFyw Q4KRyXyvuXt5gWnaceJaAcqBES4kzO3KOXE0DFJeRMDLtJFoIFh9eH0V/MSfXpyLU8pY 5dvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="mKHI/Eno"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ba2-v6si4794107plb.88.2018.11.08.09.51.58; Thu, 08 Nov 2018 09:51:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="mKHI/Eno"; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727409AbeKID2c (ORCPT + 6 others); Thu, 8 Nov 2018 22:28:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:40410 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbeKID2b (ORCPT ); Thu, 8 Nov 2018 22:28:31 -0500 Received: from localhost.localdomain (unknown [171.76.98.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EE4E920817; Thu, 8 Nov 2018 17:51:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541699515; bh=j02WZI3ikVXnVLlObiEjwEHtq082QKo839BSlKlwFLs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mKHI/EnoKlgIACO/8+6nqI1zRK8Luk3nEFS1Bsk9a5If3/Sno1HYib0Bw8agLQARY pAGtPsKDOzpNc9LkGBE69rJy04xvPZksHj4tDTkDQRdlNvP9PNJaZo6FLEvsr23PPf uUsEO4aFkj/wcBsdymkmtrHvwRtuuDW23EDGQNc4= From: Vinod Koul To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Vinod Koul Subject: [PATCH v3 04/18] arm64: dts: qcom: qcs404: Add RPM GLINK related nodes Date: Thu, 8 Nov 2018 23:20:35 +0530 Message-Id: <20181108175049.7090-5-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181108175049.7090-1-vkoul@kernel.org> References: <20181108175049.7090-1-vkoul@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Bjorn Andersson Add RPM GLINK node and the RPM message ram, hwspinlock, APCS apps global and smem nodes it depends on. Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 58aa1f989089..e21b4a549e75 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -114,12 +114,45 @@ }; }; + rpm-glink { + compatible = "qcom,glink-rpm"; + + interrupts = ; + qcom,rpm-msg-ram = <&rpm_msg_ram>; + mboxes = <&apcs_glb 0>; + + rpm_requests: glink-channel { + compatible = "qcom,rpm-qcs404"; + qcom,glink-channels = "rpm_requests"; + }; + }; + + smem { + compatible = "qcom,smem"; + + memory-region = <&smem_region>; + qcom,rpm-msg-ram = <&rpm_msg_ram>; + + hwlocks = <&tcsr_mutex 3>; + }; + + tcsr_mutex: hwlock { + compatible = "qcom,tcsr-mutex"; + syscon = <&tcsr_mutex_regs 0 0x1000>; + #hwlock-cells = <1>; + }; + soc: soc@0 { #address-cells = <1>; #size-cells = <1>; ranges = <0 0 0 0xffffffff>; compatible = "simple-bus"; + rpm_msg_ram: memory@60000 { + compatible = "qcom,rpm-msg-ram"; + reg = <0x00060000 0x6000>; + }; + gcc: clock-controller@1800000 { compatible = "qcom,gcc-qcs404"; reg = <0x01800000 0x80000>; @@ -129,6 +162,11 @@ assigned-clock-rates = <19200000>; }; + tcsr_mutex_regs: syscon@1905000 { + compatible = "syscon"; + reg = <0x01905000 0x20000>; + }; + blsp1_uart2: serial@78b1000 { compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; reg = <0x078b1000 0x200>; @@ -146,6 +184,12 @@ <0x0b002000 0x1000>; }; + apcs_glb: mailbox@b011000 { + compatible = "qcom,qcs404-apcs-apps-global", "syscon"; + reg = <0x0b011000 0x1000>; + #mbox-cells = <1>; + }; + timer@b120000 { #address-cells = <1>; #size-cells = <1>; From patchwork Thu Nov 8 17:50:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 150557 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1132416ljp; Thu, 8 Nov 2018 09:52:59 -0800 (PST) X-Google-Smtp-Source: AJdET5cetJoITFnBhxPRbGPr9v1PCZg4puMuK9i7D2ogAj1m18F4PNgBY7aDwxwr7vhdvJuBgoIC X-Received: by 2002:a65:4683:: with SMTP id h3mr4325405pgr.225.1541699579809; Thu, 08 Nov 2018 09:52:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541699579; cv=none; d=google.com; s=arc-20160816; b=hKg5+gB3/lrwo/kWakb8/EbtLNTEkmCrMDoZBCKbSPxhhvCieCRF6oPmSEN4xJOPTD qvMj30ZLXOth2cMdPXGOi6G55V5PInW5FWcfcpKdqDGd3T9wHUzrKSxmqEOsFo7QCD+p 542mrurk5m9Zqh7OWcldzHvwY7YnhlT6LYiNG3KvX5oMMa8pcePDcyFmUnFhVkhFdM4Z 7I92XvotYTev7rFNkVY9RLyJ/Ig9lJ/ER51O3lupHuc16CKhsBO1Qqt+edQm2f2vyvRa hxDA5QpKJsocgRe5FeRGdNr5NzWEZHYYdInfevgDSoxl6SG02+fGG+8u+R6B8jZEJ21H xdyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=iFeZRpVUYa97gX1szD9hFSUbxEaMHjdaZB1R1I9dVaA=; b=QZhwVUmsvNEF9UOBu/3vtKK0PCFMI/R5R9OyjGQ5w2Ks23mi9sBKpaWeBgONHiJpTI 8o/RGTDPuXGJMgCV5UJbHk8ACYUau/td+agv62/ejyR05Gm5DAuouP43wFkNGQHs86Ho Rxx99GTzmDVb242+d7rww2iMiLFDxX+EUp3ORF7tNSNuRdYhSuT9iZ30yvzgsDPgoQcu vo726rVsLrgZs7mDh82F6kDFhVZqmZz25Q84MS7FLivf8oMy9uGu0NK4KQa55mcG0TIZ yaCqHsHnxzseD5pnuyU+OdwO66L9K2d6a/NNrTfRVK3AtxjLl4iLfOAC4AZkYHs/Hpio ErIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rQkkWxy4; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4-v6si5030808pla.189.2018.11.08.09.52.59; Thu, 08 Nov 2018 09:52:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rQkkWxy4; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727946AbeKID3d (ORCPT + 6 others); Thu, 8 Nov 2018 22:29:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:41196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727327AbeKID3d (ORCPT ); Thu, 8 Nov 2018 22:29:33 -0500 Received: from localhost.localdomain (unknown [171.76.98.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A6B320827; Thu, 8 Nov 2018 17:52:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541699576; bh=4mVvOGmLoK/j1UzTtWFxubzoeCORtdwIjv0ieSA0yzI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rQkkWxy4kDaxdvWOtEAs1HlfA9PBKlPutHX7HpSFZguEQx5nZl28O/3s9OjF3Adzk YwkLDSbD0zhVEUZNAKywh/vdA/vNvX/UflT9goPrqGVMl8/T0qdekOMKys1N3789LQ clImcd6RYlSnqL2K4CbEw24d/es8YK7+mkvSCHGw= From: Vinod Koul To: Andy Gross , David Brown Cc: Rob Herring , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH v3 17/18] arm64: dts: qcom: qcs404: Use BAM DMA for serial uart2 Date: Thu, 8 Nov 2018 23:20:48 +0530 Message-Id: <20181108175049.7090-18-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181108175049.7090-1-vkoul@kernel.org> References: <20181108175049.7090-1-vkoul@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org We can use BAM DAM for serial UART data transfers, so add it Reviewed-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 2 ++ 1 file changed, 2 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index f7ac3d0662b4..46a4608db214 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -341,6 +341,8 @@ interrupts = ; clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>; clock-names = "core", "iface"; + dmas = <&blsp1_dma 5>, <&blsp1_dma 4>; + dma-names = "rx", "tx"; status = "okay"; };