From patchwork Wed Aug 14 12:50:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 171299 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp793024ily; Wed, 14 Aug 2019 05:53:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzeMihfNM2w6U0Mkl4owXPKcu1u2E7wCJeif1lfEWFOLRxLoqOfWr33bqSlYt+TIPxgW/ri X-Received: by 2002:a65:6093:: with SMTP id t19mr7883118pgu.79.1565787190037; Wed, 14 Aug 2019 05:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565787190; cv=none; d=google.com; s=arc-20160816; b=HSovbS39YSohSaR0vVW9n/OEIteUk2tui+d2wAftrL/z6sbKMy9Dg3VTMs3TyI/nHV s+Xt5vT/Fo/EcpNtpeE7WG9cJIueX47v/te7xZBWHTivhNkQ8qHbyMbTC7tCF6GCjiIF jXcWIp07n+wU/1aVwHJRCQsdefILp8ZAimU83CdnTT9SR9HuD0ViKP+zJ8WTZNJJHNdv ARZ55Ua2hDf9BxuxGJSXQadHU0rwJF3Box48IpwZkE7LwZqWDIO/8F9VF2FdfoXBs4d6 AXncZpIQZhyqCRdXpSph62U2NRBVuW6aQlsPLaWsZ6l8CXftUvDiBdcty16WPS7SMiwU hJXQ== 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=zKqus9DvXhC3fxgqZvSnVicO4CUrjDKOvrjSG6FDRk8=; b=LL9m07IpSdagf6SX+53EwTsyNTHaiAxl9991uHLq7PF9QmEPZQw6Rb7MT3V234gB3u kRN/gJiCtrqr7LxZR/+omxfxt3Us0W8wvi11RxATchiz2hTiFRCzGDQFregQzarOCoi2 LkA37pqWnBSOCKifjVeCZTZ7Zn4yBnpr1mab1ApyU/gJwlRz5vUWbvXkW2BSVT3RDh9q 4cOnccrtuy5wVf9hyPhnl5smdFHwO6JSC4lWGu8ZG/F5ydzvrU3rYJajLaJigynALmtM YE465s0mC/BNlmDUJFsWAARbv5wbCECC5OKXzqDaO2GIWJH9E3kEK5NYuNqJ6IzdYWdW kxLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RlsOWELG; 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 i188si67561845pfe.96.2019.08.14.05.53.09; Wed, 14 Aug 2019 05:53:10 -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=RlsOWELG; 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 S1728325AbfHNMxJ (ORCPT + 8 others); Wed, 14 Aug 2019 08:53:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:36414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728313AbfHNMxJ (ORCPT ); Wed, 14 Aug 2019 08:53:09 -0400 Received: from localhost.localdomain (unknown [171.76.115.97]) (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 F22AB21721; Wed, 14 Aug 2019 12:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565787188; bh=gs8YwW4FIVXjeU76YzcChMtnH93LCEseIpUWycteCh0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RlsOWELGOULQK3kmo+9knvtqVjgvu4r/sYHN3jTQmh0nmRRWaUoQ8Xrr+g074nMrJ 9EcKCg1g0z+XouTFqAkDreqwzLHs4oLNEaO3IN3fHMQaNIjmTJWkhZ89G4qB9FJIY0 J16mQWO6XQ84N25yp0faKH2/2Lpf8wPvJUWUqJfw= From: Vinod Koul To: Andy Gross Cc: linux-arm-msm@vger.kernel.org, Bjorn Andersson , sibis@codeaurora.org, Rob Herring , Mark Rutland , Stephen Boyd , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH 21/22] arm64: dts: qcom: sm8150: Add SMEM nodes Date: Wed, 14 Aug 2019 18:20:11 +0530 Message-Id: <20190814125012.8700-22-vkoul@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190814125012.8700-1-vkoul@kernel.org> References: <20190814125012.8700-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 From: Sibi Sankar Add the necessary dt nodes to support SMEM on SM8150 SoC. Signed-off-by: Sibi Sankar Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 19be87dc893f..5df3f335272a 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -142,6 +142,12 @@ }; }; + 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 */ @@ -269,6 +275,12 @@ }; }; + smem { + compatible = "qcom,smem"; + memory-region = <&smem_mem>; + hwlocks = <&tcsr_mutex 3>; + }; + soc: soc@0 { #address-cells = <1>; #size-cells = <1>; @@ -306,6 +318,11 @@ }; }; + tcsr_mutex_regs: syscon@1f40000 { + compatible = "syscon"; + reg = <0x01f40000 0x40000>; + }; + tlmm: pinctrl@3100000 { compatible = "qcom,sm8150-pinctrl"; reg = <0x03100000 0x300000>,