From patchwork Tue Oct 30 10:10:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149714 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5248643ljp; Tue, 30 Oct 2018 03:11:33 -0700 (PDT) X-Google-Smtp-Source: AJdET5eyDNJFwvJpfWwl/tQuiwkgm6t3WAJU+LXzruC+OHovKfpBnnX3GRdH6JL5WM+nwHH6Mh2r X-Received: by 2002:a17:902:aa8d:: with SMTP id d13-v6mr18259035plr.74.1540894293827; Tue, 30 Oct 2018 03:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894293; cv=none; d=google.com; s=arc-20160816; b=C1KuE17NgPctOi3r/i50TN7OVJzTfDdclWVq7Q4BDHow96oyxhPkA/2n12fEWielM/ d8vbo74JVatRRE428kLAQjEDBPRkg4V2N3oTVXm6agUebJtvZQ9EN4fZm5uRYO5/aiRv XFyoS4PIp9HeGH0LXO6lOoLuJkWoDbqXjQioN4svGfznEA8XDrAbuqkkanLDeSwJixBQ rfzrNLUESmMTnc0HXP7d+74nk/Lmhwsbnt8PaQZfSWVWJIw7zkCQ8WuLgy+O2wgBEz+t ph1cKI7XiVgmdNhEXL6HbbmFo6f/ObRzCc/TWt8aAFKSmh0T8LtAlujr12sgNPQJgFn4 wSew== 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=vBh1eM7mFqj0fB8ic0HsKdHlD1aZE0LIZlSccPzA7kM=; b=o88GuHq+7DL3xjKPxdX+l0h2Nv1LExD8zstD4dkF8dHI/QXvPu9uOFqnDrL6X0Cogt Fts0pE/6pnjvHLPQ3QVMm6vXCrjyXONgYKw0PNoSHrnAK89P0mCtd54UvIj46LWwVUV2 a1NN1MFnbrvXFAKdCH3SP/AxOqdtW8CTOSs+jERbn8ubKoJ8N5d6yMXmUKPZys0Mzv75 VurFtNS9Hlv77kbsjKiD1vIURYHRy7WdZemNEmBSr9+ifNDslAhEH2PxYUS7uNuj7zux nBWRlBU0GkyfhXYsEJZMarp5XKyFqFTxBMbVXMEwDayuyHIc3enxCv9bh2NTEYAP2AnC nGIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dsEdygTe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 y35-v6si19561780pgl.14.2018.10.30.03.11.33; Tue, 30 Oct 2018 03:11:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=dsEdygTe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727240AbeJ3TEV (ORCPT + 32 others); Tue, 30 Oct 2018 15:04:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:42610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbeJ3TEU (ORCPT ); Tue, 30 Oct 2018 15:04:20 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 1E80920831; Tue, 30 Oct 2018 10:11:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894291; bh=pQhNxRhYAK831fNtJ1aV1KR2yptfQes3Nt5An3LbfTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dsEdygTeBW0zTvNav3cK9YM+VpKHT0LY1fkqJckCrTeZZZwJpY8O/Hx/avQEIH9ln esf1gEthZeFOUPWxdbpy+B5gwIHy+AQ6JkTYQqbHLXl1U8wWLbwEAAe2Nly5M7oqOz eiFNlhXjRx5fzVBcrF8jWrW5nmBb1raZ+L7tvp+Y= 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 01/17] arm64: dts: qcom: qcs404: add base dts files Date: Tue, 30 Oct 2018 15:40:52 +0530 Message-Id: <20181030101108.11041-2-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add base dts files for QCS404 chipset along with cpu, timer, gcc and uart2 nodes. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/Makefile | 1 + arch/arm64/boot/dts/qcom/qcs404-evb.dts | 21 ++++ arch/arm64/boot/dts/qcom/qcs404.dtsi | 175 ++++++++++++++++++++++++++++++++ 3 files changed, 197 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/qcs404-evb.dts create mode 100644 arch/arm64/boot/dts/qcom/qcs404.dtsi -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index a658c07652a7..3dffa0f58468 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -8,3 +8,4 @@ dtb-$(CONFIG_ARCH_QCOM) += msm8994-angler-rev-101.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8996-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += msm8998-mtp.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm845-mtp.dtb +dtb-$(CONFIG_ARCH_QCOM) += qcs404-evb.dtb diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dts b/arch/arm64/boot/dts/qcom/qcs404-evb.dts new file mode 100644 index 000000000000..74dc09ddb0d2 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dts @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, Linaro Limited + +// QCS EVB DTS + +/dts-v1/; + +#include "qcs404.dtsi" + +/ { + model = "Qualcomm Technologies, Inc. QCS404 EVB 1000"; + compatible = "qcom,qcs404-evb"; + + aliases { + serial0 = &blsp1_uart2; + }; + + chosen { + stdout-path = "serial0"; + }; +}; diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi new file mode 100644 index 000000000000..1bfc272b70e2 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -0,0 +1,175 @@ +// SPDX-License-Identifier: GPL-2.0 +// Copyright (c) 2018, Linaro Limited + +#include +#include + +/ { + interrupt-parent = <&intc>; + + #address-cells = <2>; + #size-cells = <2>; + + chosen { }; + + memory@80000000 { + device_type = "memory"; + /* We expect the bootloader to fill in the reg */ + reg = <0 0x0 0 0>; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + CPU0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x100>; + enable-method = "psci"; + next-level-cache = <&L2_0>; + }; + + CPU1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x101>; + enable-method = "psci"; + next-level-cache = <&L2_0>; + }; + + CPU2: cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x102>; + enable-method = "psci"; + next-level-cache = <&L2_0>; + }; + + CPU3: cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x100>; + enable-method = "psci"; + next-level-cache = <&L2_0>; + }; + + L2_0: l2-cache { + compatible = "cache"; + cache-level = <2>; + }; + }; + + psci { + compatible = "arm,psci-1.0"; + method = "smc"; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + clocks { + xo_board: xo_board { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <19200000>; + }; + }; + + soc: soc@0 { + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0 0xffffffff>; + compatible = "simple-bus"; + + intc: interrupt-controller@b000000 { + compatible = "qcom,msm-qgic2"; + interrupt-controller; + #interrupt-cells = <3>; + reg = <0x0b000000 0x1000>, + <0x0b002000 0x1000>; + }; + + gcc: clock-controller@1800000 { + compatible = "qcom,gcc-qcs404"; + reg = <0x1800000 0x80000>; + #clock-cells = <1>; + + assigned-clocks = <&gcc GCC_APSS_AHB_CLK_SRC>; + assigned-clock-rates = <19200000>; + }; + + timer@b120000 { + #address-cells = <1>; + #size-cells = <1>; + ranges; + compatible = "arm,armv7-timer-mem"; + reg = <0xb120000 0x1000>; + clock-frequency = <19200000>; + + frame@b121000 { + frame-number = <0>; + interrupts = , + ; + reg = <0xb121000 0x1000>, + <0xb122000 0x1000>; + }; + + frame@b123000 { + frame-number = <1>; + interrupts = ; + reg = <0xb123000 0x1000>; + status = "disabled"; + }; + + frame@b124000 { + frame-number = <2>; + interrupts = ; + reg = <0xb124000 0x1000>; + status = "disabled"; + }; + + frame@b125000 { + frame-number = <3>; + interrupts = ; + reg = <0xb125000 0x1000>; + status = "disabled"; + }; + + frame@b126000 { + frame-number = <4>; + interrupts = ; + reg = <0xb126000 0x1000>; + status = "disabled"; + }; + + frame@b127000 { + frame-number = <5>; + interrupts = ; + reg = <0xb127000 0x1000>; + status = "disabled"; + }; + + frame@b128000 { + frame-number = <6>; + interrupts = ; + reg = <0xb128000 0x1000>; + status = "disabled"; + }; + }; + + blsp1_uart2: serial@78b1000 { + compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; + reg = <0x78b1000 0x200>; + interrupts = ; + clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "core", "iface"; + status = "okay"; + }; + }; +}; From patchwork Tue Oct 30 10:10:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149715 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5248718ljp; Tue, 30 Oct 2018 03:11:38 -0700 (PDT) X-Google-Smtp-Source: AJdET5f0e8r5m97x66Mu4tMgADVZDd812XNX4JUsryqxn4nu2xYbRP/3mPTXVi4fo+UCjPggGqbz X-Received: by 2002:a62:8d92:: with SMTP id p18-v6mr2318790pfk.217.1540894297902; Tue, 30 Oct 2018 03:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894297; cv=none; d=google.com; s=arc-20160816; b=pCj91NnzCSSUJ/o8d8b+Xjqy4Xf0aBQwAgJYDdN85qCccU2LYsmxKti4SPqLoMLwyg So/82hdNllNQHYnlchv9h36FpXOop9sW8uHdPpOmnCpkS8PLi5g0nb7dUfHwlXFL+m4a dVTr09cjWTNhhmSK/UYmnt30nYHY8tnGPl/vaRNhuLNW/YZ/nA8uYkX8HESLFbbmL7AB gJHfd/7P98OcDYtUcGMG4YJsPTYxvWzaiyy1XZUtZ1m5df+zGrZytHW57n05oPHFA8sc nmPvmW/kNkPWm1j4E4TQI1dAtyMKEeb/6cNUg77vEdml1gVRW9lK9bD+v+OR2mID1oHX 7fCQ== 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=6f4i+nbiNmhab027kgDRqFYVHMT6y1HQi+5kgsdwrAg=; b=mzGm8XGFdWm+j28ZONANRhpfinYlL6sBrAjXxZ9/Ti8rSiN0lIDW7IkhvUFDj9tYJ0 JT/vmS7FXffyZGEBNQZlHI+kJpiOWF5KoZrgAq/SllyTwf2vLLMj9au/+ExA1RM86Gnv AB/38qM+EoAGhF8I77RY0b1bvy17xTso7+O4N01R6Hx7NrqTDJufXmsDHqZ48Ppji0jc 2POwlrQC0vS7i6hz4pJncE+IEX7h55K6zzmqLIcAKdqK/X/17kmjkNYnrSobwA5f7co6 FM8FcolX4ZJT6gtXmbQVWkXpfE9UnUbynPeeL7k5jEr/Ou8kPeiouP/aXMccgyYpZvQ4 attw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="YqePLD/E"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 x6-v6si20117958pfn.111.2018.10.30.03.11.37; Tue, 30 Oct 2018 03:11:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="YqePLD/E"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727346AbeJ3TEY (ORCPT + 32 others); Tue, 30 Oct 2018 15:04:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:42656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbeJ3TEY (ORCPT ); Tue, 30 Oct 2018 15:04:24 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 9197E20827; Tue, 30 Oct 2018 10:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894294; bh=R3ytHRTSyKgOw9TgLbuNHckf6iwiLa3tm7fYtUybiNo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YqePLD/E4lU42R6h+Tf+c5LZ+qBta1O22SGOjXU8DXeqY10+Jmjx3wj82kriGnHFz bFkdR7on3+yEjlF/O6uHLCmmoQGJW0yMiQRnv2PLH5MI3DVNksjprpwwz3R9Xp+/Uu FAqkFl+tu57giexCiOUW6qt9yw1SAOC2GdLVydPw= 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 02/17] arm64: dts: qcom: qcs404: Add reserved-memory regions Date: Tue, 30 Oct 2018 15:40:53 +0530 Message-Id: <20181030101108.11041-3-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Andersson Add the reserved memory regions in QCS404 Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 1bfc272b70e2..28e066927b50 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -18,6 +18,47 @@ reg = <0 0x0 0 0>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + memory@85600000 { + reg = <0 0x85600000 0 0x90000>; + no-map; + }; + + smem_region: memory@85f00000 { + reg = <0 0x85f00000 0 0x200000>; + no-map; + }; + + memory@86100000 { + reg = <0 0x86100000 0 0x300000>; + no-map; + }; + + wlan_fw_mem: memory@86400000 { + reg = <0 0x86400000 0 0x1c00000>; + no-map; + }; + + adsp_fw_mem: memory@88000000 { + reg = <0 0x88000000 0 0x1a00000>; + no-map; + }; + + cdsp_fw_mem: memory@89a00000 { + reg = <0 0x89a00000 0 0x600000>; + no-map; + }; + + wlan_msa_mem: memory@8a000000 { + reg = <0 0x8a000000 0 0x100000>; + no-map; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; From patchwork Tue Oct 30 10:10:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149716 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5248770ljp; Tue, 30 Oct 2018 03:11:41 -0700 (PDT) X-Google-Smtp-Source: AJdET5fWxLWuirSHHOuWzWrNuz4kE/MyfmvXgJxrO9JDziphsYdbIFiAocWRSLMkQhii9F/uDHyu X-Received: by 2002:a63:2ad4:: with SMTP id q203-v6mr16985720pgq.356.1540894301254; Tue, 30 Oct 2018 03:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894301; cv=none; d=google.com; s=arc-20160816; b=l+OyURBCUROogm7t7UABibCY0qPDIk4pKlR6xJGgptrfE1Q0f3Qdguy/WpIn084nts hsuXcADfXBysc45vQLwtNwzkaOmACyx0vxLsB/l9xBjUyRmNpkhFTMo8DGpcZJ8qpZ6G +KBYXYFG+rBJyONFXNwcgHjAUpgNrnNB1E1j1/qNyhnLNtMycj0N0hAA4aXS3m2u5Fxi ELmX6RjUt3DF21gz8mDQW5secNpR6oe9bM97Fcp4hea3SCB7pogSHAZMsehCy6SPg/fN i66xJON3Zmkw0eBAJCcHO7eV/4bpdPvf6qXjA57jY1wAUjcjdCKodU/tpvqYAn8/L8UT AIew== 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=QKl2ews1IFAzbJ6lJS6VocFoTP5CkMFda42InBJzIwI=; b=pp6e2Vy2AL+uwD1wAj1pxdsPcsChIg7DLEGu89MoFbYuKbOIZFvYDx1kyAtrvF1gLU T5e8G+zVQQy6DT1p8XTdpDm/Ggozt5VbObxLlyFiK7Z4Vk4VOc5O9TSXpNj4rV8Yyy1i uhkkkHXPc/KiJrwSYHYGCpRdkLQTx3IspBDrpF8pqLhTnWoBA4NwFA6DGnGixrV3SVcM DSWTa2nmuQE8IOj+2817MD3GMydAOuyLgfveK4hnBPugti4sQ2FJ3VeuI+bo8qMf3mBj Wvk/7l3ePdnJyNTeKbsdkP0GaO8O9mA/iSkchBa6tsoRhHuvvv2nqzqMgib+loukVVlu z04w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BJoyJNFw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 x6-v6si20117958pfn.111.2018.10.30.03.11.40; Tue, 30 Oct 2018 03:11:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=BJoyJNFw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727453AbeJ3TE1 (ORCPT + 32 others); Tue, 30 Oct 2018 15:04:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:42708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbeJ3TE1 (ORCPT ); Tue, 30 Oct 2018 15:04:27 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 F147F20848; Tue, 30 Oct 2018 10:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894297; bh=1J8ZFSbaMtkC740kyipo1nmIYU8n6Dy5FSx3lsTjgB0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BJoyJNFw9q7qflfyum0+SHRJ1Z8aP07kf/8gI6lMw2g619RtN9ocacl/MGly1oqvG HARGLuMLcQkYfu830U7Eu4YOtmF0v+6JcML0XAFrfseoizoUCKz4qgKngwAY5C9gaK dPsDGZ44naC3YrM9JTE72IYWq3872KwXXslF2D2A= 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 03/17] arm64: dts: qcom: qcs404: Add RPM GLINK related nodes Date: Tue, 30 Oct 2018 15:40:54 +0530 Message-Id: <20181030101108.11041-4-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 28e066927b50..403d7f2b94f1 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -106,6 +106,34 @@ method = "smc"; }; + 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>; + }; + timer { compatible = "arm,armv8-timer"; interrupts = , @@ -128,6 +156,11 @@ ranges = <0 0 0 0xffffffff>; compatible = "simple-bus"; + rpm_msg_ram: memory@60000 { + compatible = "qcom,rpm-msg-ram"; + reg = <0x60000 0x6000>; + }; + intc: interrupt-controller@b000000 { compatible = "qcom,msm-qgic2"; interrupt-controller; @@ -145,6 +178,11 @@ assigned-clock-rates = <19200000>; }; + tcsr_mutex_regs: syscon@1905000 { + compatible = "syscon"; + reg = <0x1905000 0x20000>; + }; + timer@b120000 { #address-cells = <1>; #size-cells = <1>; @@ -212,5 +250,11 @@ clock-names = "core", "iface"; status = "okay"; }; + + apcs_glb: mailbox@b011000 { + compatible = "qcom,qcs404-apcs-apps-global", "syscon"; + reg = <0xb011000 0x1000>; + #mbox-cells = <1>; + }; }; }; From patchwork Tue Oct 30 10:10:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149717 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5248835ljp; Tue, 30 Oct 2018 03:11:45 -0700 (PDT) X-Google-Smtp-Source: AJdET5cBFFO0+DJTU1PP3PLAeNQMZAHsnGlBHMfMNevbg989Iosnk6vptQYrPq95MjlHxu8j+qnZ X-Received: by 2002:a62:204a:: with SMTP id g71-v6mr2270484pfg.28.1540894305186; Tue, 30 Oct 2018 03:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894305; cv=none; d=google.com; s=arc-20160816; b=t1Audm/XcPyjPUJ6m7y8v0rz27vbVL2xs1FVikuLtZh00eaoHO3VGYMM9kJaUD3puI cem+jsPK8rib4Gseu10xkWeUiiLpVZMHvanibp4V2vOjoc5cEvYe3xzXJUjcdhrv0LEM ZsMpYm//bclaPTQgoOvQxgPly23yJqYmiexUeq1GIpJKztRSJ0NSos3TFaxfL00oGb51 gwlo+3WUPz7xBmgttwDyOjlCFEdzvAluKLodKl0JQodJ1zFR6j95yCZ1HMIstr8PRLdE /vVg+LL+SB0aaL8ncbd1sO2j+xgxW/ZH9tDRAhnaKdf8JztJ4z26Zm8cuvGM0JNwj7nX KpJA== 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=o0xqWN5JrsP6FTbqVKfr6FBOu0n6qvR177DfUUCy3s4=; b=n/2P5uxhwZNjovgnLaP+fHdgg39H5EkHnPR7C1og7KqAYGv/OL07Rm04Dl2Su8+gSN hhLd/TD6iXO48mtlcDUaQz5NkHqhuZ5jYd/RQ67Zpa78ebCM55RntJU9GJoKRQFWpTvZ MD2hv1LGfJXLeZSrVS2d5hanuJc1KzHBLXzVWfR41z+AOyiQK6C95ida4VCUMGbasKh3 PU62Wqe/qzfdeBGBbCea+WHPo6PTb1KFSrkjM+zQR2C6xoKHHz8EWkwt0FxyfkIsQ9UT 71OYIvnfQYTMtNizLb/eycxVkaaLX1ufhd1R90rbrx2F6/jjAMC5TE0UszlASMtQSv9C s2cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E6UK35Ge; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 f12-v6si7079116plo.246.2018.10.30.03.11.44; Tue, 30 Oct 2018 03:11:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=E6UK35Ge; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727520AbeJ3TEb (ORCPT + 32 others); Tue, 30 Oct 2018 15:04:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:42770 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726451AbeJ3TEa (ORCPT ); Tue, 30 Oct 2018 15:04:30 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 5CF5820827; Tue, 30 Oct 2018 10:11:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894301; bh=bSvGs35bRyI0qMJIbSRS31cxasQ/tMjpId6KyoazzYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E6UK35GegZbT1n2fc7l5OakWGGdeDuHPAjvMNjQOfKAK+7qDkB91PYNgTvS2sMBbC RrasPz0CMqM27hKIx9VNSZO0UaxNLno13K9jZdR9j5x01JLnHNtigcMwWg1TKQXwdH GFVH3CUWQOFykMgYHyMJyhmGp82Qs/a7GALZR6nU= 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 04/17] arm64: dts: qcom: qcs404: Add PMS405 RPM regulators Date: Tue, 30 Oct 2018 15:40:55 +0530 Message-Id: <20181030101108.11041-5-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Andersson Add the RPM regulators found in PMS405 which is used in qcs404-evb Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404-evb.dts | 97 +++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404-evb.dts b/arch/arm64/boot/dts/qcom/qcs404-evb.dts index 74dc09ddb0d2..5bae7163a093 100644 --- a/arch/arm64/boot/dts/qcom/qcs404-evb.dts +++ b/arch/arm64/boot/dts/qcom/qcs404-evb.dts @@ -18,4 +18,101 @@ chosen { stdout-path = "serial0"; }; + + vph_pwr: vph-pwr-regulator { + compatible = "regulator-fixed"; + regulator-name = "vph_pwr"; + regulator-always-on; + regulator-boot-on; + }; +}; + +&rpm_requests { + pms405-regulators { + compatible = "qcom,rpm-pms405-regulators"; + + vdd_s1-supply = <&vph_pwr>; + vdd_s2-supply = <&vph_pwr>; + vdd_s3-supply = <&vph_pwr>; + vdd_s4-supply = <&vph_pwr>; + vdd_s5-supply = <&vph_pwr>; + vdd_l1_l2-supply = <&vreg_s5_1p35>; + vdd_l3_l8-supply = <&vreg_s5_1p35>; + vdd_l4-supply = <&vreg_s5_1p35>; + vdd_l5_l6-supply = <&vreg_s4_1p8>; + vdd_l7-supply = <&vph_pwr>; + vdd_l9-supply = <&vreg_s5_1p35>; + vdd_l10_l11_l12_l13-supply = <&vph_pwr>; + + vreg_s4_1p8: s4 { + regulator-min-microvolt = <1728000>; + regulator-max-microvolt = <1920000>; + }; + + vreg_s5_1p35: s5 { + regulator-min-microvolt = <>; + regulator-max-microvolt = <>; + }; + + vreg_l1_1p3: l1 { + regulator-min-microvolt = <1240000>; + regulator-max-microvolt = <1352000>; + }; + + vreg_l2_1p275: l2 { + regulator-min-microvolt = <1048000>; + regulator-max-microvolt = <1280000>; + }; + + vreg_l3_1p05: l3 { + regulator-min-microvolt = <976000>; + regulator-max-microvolt = <1160000>; + }; + + vreg_l4_1p2: l4 { + regulator-min-microvolt = <1144000>; + regulator-max-microvolt = <1256000>; + }; + + vreg_l5_1p8: l5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + + vreg_l6_1p8: l6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + vreg_l7_1p8: l7 { + regulator-min-microvolt = <1616000>; + regulator-max-microvolt = <3000000>; + }; + + vreg_l8_1p2: l8 { + regulator-min-microvolt = <1136000>; + regulator-max-microvolt = <1352000>; + }; + + vreg_l10_3p3: l10 { + regulator-min-microvolt = <2936000>; + regulator-max-microvolt = <3088000>; + }; + + vreg_l11_sdc2: l11 { + regulator-min-microvolt = <2696000>; + regulator-max-microvolt = <3304000>; + }; + + vreg_l12_3p3: l12 { + regulator-min-microvolt = <2968000>; + regulator-max-microvolt = <3300000>; + }; + + vreg_l13_3p3: l13 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + }; + }; }; From patchwork Tue Oct 30 10:11:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149723 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5249137ljp; Tue, 30 Oct 2018 03:12:04 -0700 (PDT) X-Google-Smtp-Source: AJdET5eiHMJSWJNHtquO/Uof5Q1ooqQ9uTEBoi5i8EjFYEqfNIyXmeA66jJP7I7yWzJ3ou6Bhd5d X-Received: by 2002:a17:902:45a5:: with SMTP id n34-v6mr18261442pld.341.1540894324250; Tue, 30 Oct 2018 03:12:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894324; cv=none; d=google.com; s=arc-20160816; b=mcY7rBU9VUVcxnsozScJFA5yk1q3lEAJk9EUgzNAp5X1vUlpAo44bfsrJrFN9aQGr6 ty8iOTpxDqQ4Yt12hXeqV0oqx/aLKwAk3Zfzoh3rra3B/XlL1zpwJdryB1UQpk27oZCM lj6FSH2DRhYrkCIuVg1Gj3d5zsZQU3f0POgCbucIS9al+WpupyXhimSLeQvZgq0bNJIZ jCD4PetcofHUB+6pqgy0rKVZmTDgyb4QN4DAdIyx6dE5WrD/2aR0iGmIQuRukC1L3w8N KeRidrSf/gFIVAsija+p1wiwF1XJRGX+D1SEoBAgsfD1KDinM3H6jYj5ggML9YO4+6B5 ElMg== 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=Cks5wBVx8UbcOug0nnHizlTUN+6iXztAYggJKClyudM=; b=ss/aXjZg90S8qtMWw1X74KL9EFpdpKgkwztXtRN7oUDSKUbgaHaB+pso2jQDzaLnDv AxmCl0xd1g0k6/lvfe4455hKtp7ZnVKRvO2f3C/i2747dvXi+bC6n6+Yhu8MpkO3oNK5 SRvMdGEiE3dtgfmcJn2hXE+xT5CdwpWfa/dwJgkTIzpXxLLVj73PhHNo1aGnn1E99Vc3 j3vuELZ9YlFxvg+ozhIeujShlXWPBMZzlGa2XwD9i6lYuOzkGwqr0lRJuEWLb5a7BtUw 0J8gM1D1fwOEV6xfzr9iKtHllz4QS58MF4NJN4JARleQgTA91MkLnx5pkfhDGoNzKIV2 hKSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dgVu58YI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 w6-v6si24349302pgm.557.2018.10.30.03.12.04; Tue, 30 Oct 2018 03:12:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=dgVu58YI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727693AbeJ3TEv (ORCPT + 32 others); Tue, 30 Oct 2018 15:04:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:43182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbeJ3TEu (ORCPT ); Tue, 30 Oct 2018 15:04:50 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 08FAD2084A; Tue, 30 Oct 2018 10:11:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894320; bh=a143pdS4tIBJr4bly2vl5U/d7jRqA/gvLriVw8cq5Zc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dgVu58YIvGC69xR4RC7xTtzQcs5wIcGIqNaTBN1Coed/0O58/XG04NLXn7l4PvEtI PLXegeYFfRoDSEkzfA2oXyPA+0hyLQWATeua766DN3Br8Rev/Qo8WGXjgLb01G52+p Hk35TokD/TKgRRixBGyS3v9swvx4XkXaBanpkk2k= 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 10/17] arm64: dts: qcom: pms405: add rtc node Date: Tue, 30 Oct 2018 15:41:01 +0530 Message-Id: <20181030101108.11041-11-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RTC is found on PMIC PMS405 and is same as other PMIC used, so add the rtc node with compatible as qcom,pm8941-rtc Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pms405.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi index 8a585180f102..cdb4547c998b 100644 --- a/arch/arm64/boot/dts/qcom/pms405.dtsi +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi @@ -11,5 +11,11 @@ #address-cells = <1>; #size-cells = <0>; + rtc@6000 { + compatible = "qcom,pm8941-rtc"; + reg = <0x6000>; + reg-names = "rtc", "alarm"; + interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; + }; }; }; From patchwork Tue Oct 30 10:11:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149725 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5249265ljp; Tue, 30 Oct 2018 03:12:10 -0700 (PDT) X-Google-Smtp-Source: AJdET5dbkCQWnGEP7mflAz+6lPA+6YczRjifjxs/BqJc/TWuVplAKTtweA/OKNuIJNYjtVWZakay X-Received: by 2002:a17:902:68:: with SMTP id 95-v6mr18109778pla.57.1540894330122; Tue, 30 Oct 2018 03:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894330; cv=none; d=google.com; s=arc-20160816; b=rhVu7CZso9MwvkrjL7wscTjc3z23PsGOVoGIA7TeGIyfjKjClzK6FNze7iKMCgIWy2 46JrTCLOt673AhEgMtlzxWDNPm/NZw6xr4UB1k/SH1iBVfENeJckp/xubuqh12/Jvzc2 x0Q81x21pSOdeHvOiLjZdXO77BF1InWegdJ14LaMV2wOXX9vS5Y5EVPVuV5znFhZqqJ4 /wZyvjE+7s/pnmIPCXjb2RYEns7YRON71TYTMU8XAz8lgHOal1WgLOAyuAufwzDggLvC /vCrmkaygc7uTM52QsqtiZy0OUL56GCPveYSd1sri7YLQ+u5l6cl5SBhTonYNgIbNPwj jymQ== 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=6K0FJKWuedGsDr11uciVRTotjbLlnL0SoAkweIRasmg=; b=XKyCHKYhFaDoaq+hef1vF2abk5N/a7jASex5BiV+yXeomZTLQc9HF7mKhsVn7HzcaH QQ8e1EOz0rVzbvdxvESpedCykh1A046D7GvjJRFiS71r82D/EhNbFthhDO44JGgiij3Z NImJ51MZ5RQRM/bGgiDr2hSpp9NbUWcdDy5QNOSoRDT7fUfToZ0NIQOSKSfpjFSf7Tzb 3MuwAOKjQ9QmafUxWNBBvPF9M4vVPuZ9DFmtPmMIhH6frr7FYNui9hyjmbQBWRkIwCCF htXy/RT+NkUTVusEdbQC8I3GuMUk0NgtkExc+8ji37IGm/z6BhtA9w7P7W6PdnFAvLgg n40w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Lb/lpElY"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 s10-v6si22487224pgo.531.2018.10.30.03.12.09; Tue, 30 Oct 2018 03:12:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="Lb/lpElY"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727736AbeJ3TE5 (ORCPT + 32 others); Tue, 30 Oct 2018 15:04:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:43320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbeJ3TE4 (ORCPT ); Tue, 30 Oct 2018 15:04:56 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 578CF2084A; Tue, 30 Oct 2018 10:12:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894327; bh=XRjDwVt+1Wd+SwcoSE5PovqgFI2ZD4LDsySnP9yhw78=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lb/lpElYibWeo2yMSe1hlkjRgYDiecBglofy+u2ZTzK09aDA6k7PG3Eq6jogGx431 ltPW/WR+4rL/7uyPw5crz1tY4qQwM+hPTHypRRVRhwtHn+hxTHhVQxq0w4bBvGDs5R KHu67vW10zBZYRSKsHyfR6QgtTLmV+iJ6I+q0YIg= 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 12/17] arm64: dts: qcom: qcs404: Add scm firmware node Date: Tue, 30 Oct 2018 15:41:03 +0530 Message-Id: <20181030101108.11041-13-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Andersson Add the scm firmware node to QCS404 Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index a448d5206755..6f66327014ae 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -101,6 +101,13 @@ }; }; + firmware { + scm: scm { + compatible = "qcom,scm-qcs404", "qcom,scm"; + #reset-cells = <1>; + }; + }; + psci { compatible = "arm,psci-1.0"; method = "smc"; From patchwork Tue Oct 30 10:11:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149726 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5249319ljp; Tue, 30 Oct 2018 03:12:14 -0700 (PDT) X-Google-Smtp-Source: AJdET5dNWS9kxScC3iNNMUlT+1xkitbb6ltCE3u1CWWjdIFIJa7nWGwLS6vIi9JPipZm0zBY0och X-Received: by 2002:a63:b30f:: with SMTP id i15mr15129823pgf.240.1540894333859; Tue, 30 Oct 2018 03:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894333; cv=none; d=google.com; s=arc-20160816; b=F6V99SDsoO6yRAbFKxnm+oD+RQXRnDtj/RhIES6TL6BbVxanqbVSn9WJ5ACRGkEexq 7082jXuKdOQjpGMXAdC04O86aqOTd3SzwQolgCH6sKiZChu/j2s9gtm3Ms5s3kiwRbug PMnhmZhhR+BpJ+0ZBH6GZtO6EwC+1kJpWEcc0JKeQVmHul2jNvoH4ObTFkMT3VmLlfQ7 9dplloFbehAmXiFVrcKXVpAiCvx4GlJ0mF2YP7KeDRIR40wRYdlk4GwOumw4zKIDewlt IgWg+j6cgBefBLoSU90RAFu3nCgxbOxQ/PZ7wb0sj8IRPdLAXApQ/WGgn68KtmOuJkRT zb0w== 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=mNUqQFPh5eag1EOxqXNc1KPV83dBKmZShsgR4hEU3ls=; b=c/QqlTwFjtcuYuI8hPgChzBoBvFIsKjWDcip/nnzNKA19B4PtkR9WD+qfptHLk2cSx 7qoPHnc1vvwQ77xpQvxgB74S4gPhM/qMgcTOkEscybDrRj+h1LfuwO3kXpj5Kg94zj9L 5VVOKD++TdQjlxWfOUZfXs4WsKOTbBFYt4BIPoIXNswW2dlLa7K2rQOnYkTZrSy0y2u6 FUFaEmeiYcNGBc5/LgEDQW4KVsL8Db8gdaK0Qrha6iOa+Hv6tzh9dI5QFHjHiXO56sS9 kDpDKgnUMC+c8B4S6lipZPNs+7hMVezXjpmSkZguacGcPk3qAtM1Cr7Wz5mJM35/Qzzw ejig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m9LF2ccG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 s3-v6si23823978pgi.366.2018.10.30.03.12.13; Tue, 30 Oct 2018 03:12:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=m9LF2ccG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727759AbeJ3TFA (ORCPT + 32 others); Tue, 30 Oct 2018 15:05:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:43362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbeJ3TFA (ORCPT ); Tue, 30 Oct 2018 15:05:00 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 B6D2A20831; Tue, 30 Oct 2018 10:12:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894330; bh=RYvlYxlT3Bt0+fgkhXVFLYhUcM9asU6rlWYXD2Xh/Fw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m9LF2ccGOwXFY8BiS9aW1Nvb9s1fIx7Ennuoug0DwX/fXtWT60d3AS2yakatjkkp8 60FPdZF2LBRW/jtgyjgUa8SNGVTfnBlr7JyHJJZWX4ys7x309uMQDLEgvzrjubTPHC Nrp2qQHL6cUYPOc7Uv2ZlvYRPCDFEoevGvAfkD5c= 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 13/17] arm64: dts: qcom: qcs404: Add remoteproc nodes Date: Tue, 30 Oct 2018 15:41:04 +0530 Message-Id: <20181030101108.11041-14-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Andersson Add the TrustZone based remoteproc nodes and their glink edges for adsp, cdsp and wcss. Signed-off-by: Bjorn Andersson Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 87 ++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index 6f66327014ae..c27ec1806d98 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -373,4 +373,91 @@ #interrupt-cells = <2>; }; }; + + remoteproc-adsp { + compatible = "qcom,qcs404-adsp-pas"; + + interrupts-extended = <&intc GIC_SPI 293 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&adsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&xo_board>; + clock-names = "xo"; + + memory-region = <&adsp_fw_mem>; + + qcom,smem-states = <&adsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + + qcom,remote-pid = <2>; + mboxes = <&apcs_glb 8>; + + label = "adsp"; + }; + }; + + remoteproc-cdsp { + compatible = "qcom,qcs404-cdsp-pas"; + + interrupts-extended = <&intc GIC_SPI 229 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&cdsp_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&xo_board>; + clock-names = "xo"; + + memory-region = <&cdsp_fw_mem>; + + qcom,smem-states = <&cdsp_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + + qcom,remote-pid = <5>; + mboxes = <&apcs_glb 12>; + + label = "cdsp"; + }; + }; + + remoteproc-wcss { + compatible = "qcom,qcs404-wcss-pas"; + + interrupts-extended = <&intc GIC_SPI 153 IRQ_TYPE_EDGE_RISING>, + <&wcss_smp2p_in 0 IRQ_TYPE_EDGE_RISING>, + <&wcss_smp2p_in 1 IRQ_TYPE_EDGE_RISING>, + <&wcss_smp2p_in 2 IRQ_TYPE_EDGE_RISING>, + <&wcss_smp2p_in 3 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "wdog", "fatal", "ready", + "handover", "stop-ack"; + + clocks = <&xo_board>; + clock-names = "xo"; + + memory-region = <&wlan_fw_mem>; + + qcom,smem-states = <&wcss_smp2p_out 0>; + qcom,smem-state-names = "stop"; + + glink-edge { + interrupts = ; + + qcom,remote-pid = <1>; + mboxes = <&apcs_glb 16>; + + label = "wcss"; + }; + }; }; From patchwork Tue Oct 30 10:11:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149727 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5249369ljp; Tue, 30 Oct 2018 03:12:16 -0700 (PDT) X-Google-Smtp-Source: AJdET5eAavB16W+rs1RyI1kIrTzEWO9fmMMIgA9lUssyB9tTuyA7yDeTsaxvxQy0gMD5Q1TIyWqg X-Received: by 2002:a17:902:3084:: with SMTP id v4-v6mr17891680plb.326.1540894336835; Tue, 30 Oct 2018 03:12:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894336; cv=none; d=google.com; s=arc-20160816; b=sydbOi2eeEaDjnvMoQSiGMzwapSt1tRsdqQmFYQVZtTITEjubHcjUodF9CNYiV4uIP jc97bkfapYRU/0aEu+E6/jaqfL0TEaq3otWqWryd44a+n36IndYirN3db9I4rjHKyt4O 0g2zfFKTUOlUWyrrdqDgqH2QM81dqgX+xjuAWsujhRPzehc1qT3O+S5CGTDKCJLE89ae iLwsI3urUFTByjn7JKU3HnBiC6GqrGmeNwHl85R8dhMmKVstaUXYrwVeYga9kdmLX4un qP4aYn9Zm8xW24ApwEx1Hp5Ufh7anPt+IX2OJNQkBhzEfQiWfTJVvJ9tcEj35xSW1IS9 mcyA== 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=cOOjp+CKZkUQEIc9ALmCH7RtvphtcrZyLtyB80AK78A=; b=N6gq2pPsNXXQzW7Yx33jusgR8WiMLD0pZfWJzGuj4JRx0rAAVllDvT5YvjuLjcbav2 RigeOe2YS2Ckr+lOVVHLHFMBJcspejVfk7PdPIoFobkBCpBq1mtgfyltf24cpLRyZEtK +H+RxCO9NRL2xS5M6jjOVbgN0Nee0/s89aCdRfeGjiZ1VjSIyKWr0Jyq1/yDGl3bZJuw 6HT3Y8lvAOiF0qxgSLEYBjjn+bTJlXYaFYwotSvsFdPc3O+3r3LANqA0U/eVC3+c9+gt QyjSbMfDJrx/l796CE/kZdHi9G+0TrUutl1/sf2R5kH7oq+OsGnlvH90iQp1PpjJVBMR 7gWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="UM/V/Fmm"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 u7-v6si25630173pfu.143.2018.10.30.03.12.16; Tue, 30 Oct 2018 03:12:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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="UM/V/Fmm"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727783AbeJ3TFD (ORCPT + 32 others); Tue, 30 Oct 2018 15:05:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:43418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbeJ3TFD (ORCPT ); Tue, 30 Oct 2018 15:05:03 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 2238520827; Tue, 30 Oct 2018 10:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894333; bh=i6SoXxOx+9QyqTY2Lq5j0uhqNn9BhBsv6aIrUpngFUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UM/V/FmmarRi3y1VHlBs1jF9a5SBHWMJv3Ka/zx48j8qOFmYlqcC7PTnAn0BLL5QL Cq3sPq8L9Ws6qmKaq4YGXB1C/8TMQwcyMEjpCNIA6t5uXODSnrMVNKVAvGcPD2mBdP TSSF73nDNk5eJ5xBILqHAhhI1fvowyeGYwDC5S1s= 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 14/17] arm64: dts: qcom: qcs404: add prng-ee node Date: Tue, 30 Oct 2018 15:41:05 +0530 Message-Id: <20181030101108.11041-15-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RNG hardware in QCS404 features (Execution Environment) EE for HLOS to use, add the node for prng-ee for QCS404. Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index c27ec1806d98..eb3c03ddaaa7 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -282,6 +282,13 @@ #mbox-cells = <1>; }; + rng: rng@e3000 { + compatible = "qcom,prng-ee"; + reg = <0x000e3000 0x1000>; + clocks = <&gcc GCC_PRNG_AHB_CLK>; + clock-names = "core"; + }; + tlmm: pinctrl@1000000 { compatible = "qcom,qcs404-pinctrl"; reg = <0x01000000 0x200000>, From patchwork Tue Oct 30 10:11:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149728 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5249435ljp; Tue, 30 Oct 2018 03:12:19 -0700 (PDT) X-Google-Smtp-Source: AJdET5fK2ZTFWlJdYWKY7GiQ7+D7+dp9ncAYAe73lBEhTeDKVaVms6LLIDEH0p04MGDr8YJPIEYs X-Received: by 2002:a62:9642:: with SMTP id c63-v6mr2384184pfe.100.1540894339526; Tue, 30 Oct 2018 03:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894339; cv=none; d=google.com; s=arc-20160816; b=0edWYJVOIQXIUIKiSqXX1rNeQq4/KivYaKi5Dk+iMkUj6Ly8v/S0Ka3kssDbHLoSTl ugyieCXZ9JVW+Xh8RlTN0RdwM2/347WcUZGOMBuP4+oduaVQfdDydofRVGN+lSrhLhxj jM1UPAQA8Sx3Od1brmSiy5dgkeHs07hVreaeWnXjSUaKRpdgVal+SYNH5ewXDZYtJxSz bQ1NA3UveC2gUOmWRCVHZFqOrfdDrTgtlrije0anzYPQKqBgZx2I+m0ncUKdzm0Wy9pJ WdG98eCC6CWLr0WLP0X2K01vnYXylOiR5lUOKlJV7MNAlBL4sJp6ey0zy3FoVz6EYCEE QGkg== 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=lDRTO7oa6XzeOYcHzOjYbQfxWv+moJ/jYUu7/OUvDg4=; b=hyFLFq0eWeUEvHcaLug8USDnkG+TjQmkokqwPKoDM9Me40aOH3WKfHwogWAftWRbcF dD/akeTZs02EJmbHxDNnOczh7oNcBtISudOR90Tj1QDHbyXzOx3bP+vM2CbSdxd7Fd+I 7v8XQbiPEaAg/QwRnApgSbygDUZuuikU0TrDjyTClYpgw4YjbHA4cNGKJCjl2IafygkK MX1yML72tY73WFn4uHivZFcHTQFsGVPz1P0HtAiUSitjMITCa0okgi3eRtI5SNUvt3ni J3tVJGsWU9g4r2eo2t9FbWAtBgdb2ACpNs2LRf/mQh/bViraCyDtzbPHs0CicVN+LXhC HhAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Z53kTQLz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 u7-v6si25630173pfu.143.2018.10.30.03.12.19; Tue, 30 Oct 2018 03:12:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=Z53kTQLz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727807AbeJ3TFH (ORCPT + 32 others); Tue, 30 Oct 2018 15:05:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:43478 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbeJ3TFG (ORCPT ); Tue, 30 Oct 2018 15:05:06 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 4773720831; Tue, 30 Oct 2018 10:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894336; bh=eP4IuaRo3Z5Tl0LmNxHcGd0NbKZIi1fvnETUP2jT3QA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z53kTQLznMGgZbmCk3B260CD7Z8qFuTEuETzg2KFRxU2WxQkJXTmSte7AKYNw6nIk b539qtwvfJJTzUcvptemlL3Ejay7SlTxQLkxt1GlES6aC0juDtMD/Y3NdPaYqcsDdD CpRKLpc0rWC4LzBoOPP0sdTbyPaGrS+4Bpeu31Ko= 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 15/17] arm64: dts: qcom: qcs404: Add BAM DMA node Date: Tue, 30 Oct 2018 15:41:06 +0530 Message-Id: <20181030101108.11041-16-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the BAM DMA instance found in BLSP1 node of the QCS404 Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index eb3c03ddaaa7..d568003ee5b6 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -276,6 +276,19 @@ status = "okay"; }; + blsp1_dma: dma@7884000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0x07884000 0x25000>; + interrupts = ; + clocks = <&gcc GCC_BLSP1_AHB_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,controlled-remotely = <1>; + qcom,ee = <0>; + + status = "okay"; + }; + apcs_glb: mailbox@b011000 { compatible = "qcom,qcs404-apcs-apps-global", "syscon"; reg = <0xb011000 0x1000>; From patchwork Tue Oct 30 10:11:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149729 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5249490ljp; Tue, 30 Oct 2018 03:12:23 -0700 (PDT) X-Google-Smtp-Source: AJdET5d96hrjcIQXuS7eBzx3ihP/LqnsMPIFxj9Lll1maRrbT/SAFyRXsmBkL/3XzBM3LeY6ze8u X-Received: by 2002:a65:6295:: with SMTP id f21-v6mr17482482pgv.167.1540894343195; Tue, 30 Oct 2018 03:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894343; cv=none; d=google.com; s=arc-20160816; b=ZMqCOB2WHdLC5GLADDyt7Q4RUu58luAh/klJv52wYy3Up29XptER4HqnCaOclTDAoK 2AQ3Yex2nmPYawHXK7/Be0w0tzzOBbKrT59iWr34jAAU5kw6rZch+4h2n7KEMll3vrgR hqPnpS7Wr+O1FYMLvdz3At9GtzroExQor0meetjLeMjhIfFHMIJsuZKjm3KtFDp80jrS EtN/mZFo+HLVRtp/vfbreIS767IQopY7C4mmMCtPK4QFpNT55Ox+Xl2OlaaJJGftrUce wFHwJm5GwaZexx7yojHx70cARYVswQtgmTycXGCj6Z/d6ubV185pwu8UsiR06wBPDnS3 IidA== 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=kkmKEIGETNtEagELmdRBrp7CMbdmsnKPLP4xI3xHCaI=; b=hNFrtZe//x3pOlGYEpDrpQ1mOA15RJgxbcK30cikxjpDE+JRLaTxhV7gb3x39CWRDk fMj7CkHrlVD185ifrWdT98BCw1cFw1jEtIkKFmpB4ZcAdrifBg3IKvb3CxMcMx16RPkO Mw0j15vBNWKxfNUGhzqUVvAoks5SsV7Xe8SUAJPypNXowazALb1LaOEDYJdNxEKPuchr AAxLc4Qus20gPG1MS1Asl5GXnbjYVcgIc0De868Bl4eFLeZlLS4Up04qV1kkixFc8pku y0Q0nuFUU9y9ciiIii4kFoY9ASvke2n9qFZ4wvDtzZs2Tt0A3D/oSquSIuGL0PCEvxkn +A9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y8JUag8Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 v11-v6si23161660pgl.40.2018.10.30.03.12.22; Tue, 30 Oct 2018 03:12:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=Y8JUag8Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727826AbeJ3TFK (ORCPT + 32 others); Tue, 30 Oct 2018 15:05:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:43520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbeJ3TFJ (ORCPT ); Tue, 30 Oct 2018 15:05:09 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 6F1F520827; Tue, 30 Oct 2018 10:12:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894340; bh=2UV1Z4xE3up/0Q7Ic6fBLtHe5dhMgi2sx/fmdA5bka4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y8JUag8Q2aVsdD8QCvUyFVn5jecJfwSifIlfQJYtlV/PgYSdgnFJJlVd1sBTfQfpD gvAZ3p1oiHftlHKR93Uk/VgppHGzRQ5vV1whIeOolQNXKqx2gmJE+2JUHm/eB9ilPJ rMT7reNWTE+tgKIJbRG+fAOGNCPGIhW6teZSKoIY= 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 16/17] arm64: dts: qcom: qcs404: Use BAM DMA for serial uart2 Date: Tue, 30 Oct 2018 15:41:07 +0530 Message-Id: <20181030101108.11041-17-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We can use BAM DAM for serial UART data transfers, so add it 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 d568003ee5b6..05f9ad63f6e2 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -273,6 +273,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"; }; From patchwork Tue Oct 30 10:11:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 149730 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5249551ljp; Tue, 30 Oct 2018 03:12:26 -0700 (PDT) X-Google-Smtp-Source: AJdET5ecrFaagRCSE3mPA0mjJIb7C7PZ9wt7gbMJvwgOuEL3gnCXkIw9qgWGWN832XaZaIB667MJ X-Received: by 2002:a62:3301:: with SMTP id z1-v6mr2224077pfz.85.1540894345980; Tue, 30 Oct 2018 03:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540894345; cv=none; d=google.com; s=arc-20160816; b=T/08bUyZfoGRDAAr4uDW/14uMHXJhAiZQEOdC9+uHTbekdp14tY8NkxbXO7q9E7DyH xb9pdV85Nwt3bZqhYUVNCOOgMBkr0TtFItb4Usz1YyG6ssPI1PbOgL0dHVQMX8pPJYDO sRaZoJmKm1NKlE5PlYEUC5dzu2oifytReoNP5dCsQgOEoXkStdtD1km7qCdApDcGVPco OSN5/7wma56QIXdku8EqKAW+4MmCXt2wCv8RjORAitsXIXg663gnznSHCOmoJphmHvi5 Uj+p22ebZbXXSo4Q2XVCUHnUlZODGNfXdccdxNpZ2HszOPf47JROg2dyNZrOWJuXgQJy 6qUA== 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=d8dcGrMSnYfGQ8gbexKtzivsz2NrpbuTXPPVkyQ6RCM=; b=ZApoW1yvZfhHxHXvkNz9aWfrwy0ZS63QT9j47YmFhF3VCtNxILKAa+AF72DZ/3oL5P jkGV9ESdq7Zcb8keelSq/O92TTlIn83un0s1+P2AkAi6WyXWn8Ab/QUyuXJDwuMdChzy BVnJhi8tm+IXyoVGT8O6eslSwfqCWyalk4SPqdpswzNjOt3e4qRK7C2vUCGyRAkNeA9e 7CU53otqZcLLbaeFrPSnJTlK2nBEhk2HqAHJxEu/Fuk9Jb0b+z+FTIfO3a2kBrH+PXqm Mg+PQTtsmKF8YKBgDmENOrpa5Uc4npGVjWysXiLcP+Odu0LsJZwBCHtolCsU7m2Z7UO/ iKyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O0ct7Xnu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 y11-v6si22579091pfm.141.2018.10.30.03.12.25; Tue, 30 Oct 2018 03:12:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=O0ct7Xnu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727847AbeJ3TFN (ORCPT + 32 others); Tue, 30 Oct 2018 15:05:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:43572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbeJ3TFM (ORCPT ); Tue, 30 Oct 2018 15:05:12 -0400 Received: from localhost.localdomain (unknown [171.61.91.108]) (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 9E20120831; Tue, 30 Oct 2018 10:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540894343; bh=qya9btpcDrAIMzH+oZCwrNQVox6P1WhnRhKfz4D8+jY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O0ct7XnutGDyY3Dmjo1+FkODkvV44MfbNlzfM7SNtg1JTj4wBKc+voTEsYOmM1+rD DeI4EHFpBZBwyu24qmSpIDLsUZFDYHGBo2NGEocwgvs145n60NkWRzECeDGmwA6gGb Lvz241uoHqp++xW8rSGZbeRcX778xfb8xmXwJznM= 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 17/17] arm64: dts: qcom: pms405: Add pon and pwrkey nodes Date: Tue, 30 Oct 2018 15:41:08 +0530 Message-Id: <20181030101108.11041-18-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20181030101108.11041-1-vkoul@kernel.org> References: <20181030101108.11041-1-vkoul@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PMS405 also features PON block, so add PON and PWRKEY nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/pms405.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.14.4 diff --git a/arch/arm64/boot/dts/qcom/pms405.dtsi b/arch/arm64/boot/dts/qcom/pms405.dtsi index 18410d9f0f8f..2c7cc1e94ff4 100644 --- a/arch/arm64/boot/dts/qcom/pms405.dtsi +++ b/arch/arm64/boot/dts/qcom/pms405.dtsi @@ -2,6 +2,7 @@ // Copyright (c) 2018, Linaro Limited #include +#include &spmi_bus { @@ -18,6 +19,21 @@ interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>; }; + pon@800 { + compatible = "qcom,pms405-pon"; + reg = <0x800>; + mode-bootloader = <0x2>; + mode-recovery = <0x1>; + + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + }; + pms405_gpios: gpios@c000 { compatible = "qcom,pms405-gpio"; reg = <0xc000>;