From patchwork Tue Aug 20 17:23:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171827 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp4722844ily; Tue, 20 Aug 2019 10:25:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwc/f1oq/BzA3fU7mVrXb0TWPpJkYJ5quZ+/N2ZBlV2BYhroOokEtTEZSB4ybXVSEqC/LEU X-Received: by 2002:a63:de4c:: with SMTP id y12mr26128199pgi.264.1566321954127; Tue, 20 Aug 2019 10:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566321954; cv=none; d=google.com; s=arc-20160816; b=lcPq+0SFJ5Bt1h9zABroCnkB5Fb4jFPgqIWRhbn9E2/J627VfmQ/fa9j7Wd/uZRLfZ /QaA/W0mcfAPesGF13YJ930flNKIPGbLYESpsXKWDTW/3PQFOY0T48tLp0F63jGjoEpJ 8s06hqlk8bV2OCfZdPoEwmkzN6d6VgkV917/C+NHYO7WN4le7tIQ1/3WUIgAZjIxKeMu Ebs2Cg+Da9onYu6VtoLJj9GCtPtATQSTlZ1uzVMGThTzA8Tmk/XKE/rerxqsKhVThhwT D08HjDh0s/hxf9Lp5mKtQ42zjicIcd6jXp1UTLmxRqVC9TKY2GQfDBG3Dgnhu8QE6Epa 7L4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VHy9FsMf/8xyMNJTFgpmspn/5lo/Fg96TlYDieBOOQ0=; b=sI2IBvCczGNooUbguj37LSakKBwjiKIscxvZWea8dk9u2rHNwhqCUhC2RB7y/uks/s YIbji0D9dn+WIpvVzAcEqgbPDsU08yaqmO6yEexKllbblCX1J5zutBuofV4oo3VawJCW RgQgJ0Gaw8j+CsO1dJ7emHCAEJQcnS5b9uQISFs3+nbV2ZZW3hXCM1f48gCaDVP6yZ84 /UvSClnPvy0iAvbTjYD8G9urPpTV4zzpJXAsW6hghvIGRp+4rJV3XQqWPefQgVbTpaob a81V49Dhe46DjwuKzMVb8Wabo+Qr+uF+xIupE4ec7inNSdE9DCuxfZjlWnLSa/XPwdVQ GCdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UH+hRYux; 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 12si12590413pgu.469.2019.08.20.10.25.53; Tue, 20 Aug 2019 10:25:54 -0700 (PDT) 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=UH+hRYux; 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 S1730685AbfHTRZx (ORCPT + 8 others); Tue, 20 Aug 2019 13:25:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:48956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730638AbfHTRZx (ORCPT ); Tue, 20 Aug 2019 13:25:53 -0400 Received: from localhost.localdomain (unknown [106.201.62.126]) (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 BEC4E22DD6; Tue, 20 Aug 2019 17:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566321952; bh=SxyONdR/tM8eQiXxR1+O2jh66XLn8xoBHmSLNiEyJoU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UH+hRYuxA/8xHKRYzDhDM/7FW60RBTQIcUJ2AScBxRu22Ysq1iHx42YqT6mmVuWfK UM9IQzU32ImfYlEjZcKLMKUFgjSm0TKf0PJS6uT54OtVZ23otlEunbao3py/G81fyu sEQEpuzGjxrsVhQlV9FYZnhxCgHkSeT91AeHPO0w= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , Vinod Koul , Rob Herring , Mark Rutland , Stephen Boyd , Sibi Sankar , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 8/8] arm64: dts: qcom: sm8150: Add apps shared nodes Date: Tue, 20 Aug 2019 22:53:51 +0530 Message-Id: <20190820172351.24145-10-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190820172351.24145-1-vkoul@kernel.org> References: <20190820172351.24145-1-vkoul@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add hwlock, pmu, smem, tcsr_mutex_regs, apss_shared mailbox, apps_rsc including the rpmhcc child nodes to the SM8150 DTSI Co-developed-by: Sibi Sankar Signed-off-by: Sibi Sankar Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 63 ++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 3bed04d60dea..781905e9977a 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -144,12 +144,23 @@ }; }; + tcsr_mutex: hwlock { + compatible = "qcom,tcsr-mutex"; + syscon = <&tcsr_mutex_regs 0 0x1000>; + #hwlock-cells = <1>; + }; + memory@80000000 { device_type = "memory"; /* We expect the bootloader to fill in the size */ reg = <0x0 0x80000000 0x0 0x0>; }; + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = ; + }; + psci { compatible = "arm,psci-1.0"; method = "smc"; @@ -266,6 +277,12 @@ }; }; + smem { + compatible = "qcom,smem"; + memory-region = <&smem_mem>; + hwlocks = <&tcsr_mutex 3>; + }; + soc: soc@0 { #address-cells = <1>; #size-cells = <1>; @@ -305,6 +322,11 @@ }; }; + tcsr_mutex_regs: syscon@1f40000 { + compatible = "syscon"; + reg = <0x01f40000 0x40000>; + }; + tlmm: pinctrl@3100000 { compatible = "qcom,sm8150-pinctrl"; reg = <0x03100000 0x300000>, @@ -320,6 +342,16 @@ #interrupt-cells = <2>; }; + aoss_qmp: power-controller@c300000 { + compatible = "qcom,sm8150-aoss-qmp"; + reg = <0x0c300000 0x100000>; + interrupts = ; + mboxes = <&apss_shared 0>; + + #clock-cells = <0>; + #power-domain-cells = <1>; + }; + intc: interrupt-controller@17a00000 { compatible = "arm,gic-v3"; interrupt-controller; @@ -329,6 +361,12 @@ interrupts = ; }; + apss_shared: mailbox@17c00000 { + compatible = "qcom,sm8150-apss-shared"; + reg = <0x17c00000 0x1000>; + #mbox-cells = <1>; + }; + timer@17c20000 { #address-cells = <1>; #size-cells = <1>; @@ -388,6 +426,31 @@ }; }; + apps_rsc: rsc@18200000 { + label = "apps_rsc"; + compatible = "qcom,rpmh-rsc"; + reg = <0x18200000 0x10000>, + <0x18210000 0x10000>, + <0x18220000 0x10000>; + reg-names = "drv-0", "drv-1", "drv-2"; + interrupts = , + , + ; + qcom,tcs-offset = <0xd00>; + qcom,drv-id = <2>; + qcom,tcs-config = , + , + , + ; + + rpmhcc: clock-controller { + compatible = "qcom,sm8150-rpmh-clk"; + #clock-cells = <1>; + clock-names = "xo"; + clocks = <&xo_board>; + }; + }; + spmi_bus: spmi@c440000 { compatible = "qcom,spmi-pmic-arb"; reg = <0x0c440000 0x0001100>,