Received: by 10.223.176.46 with SMTP id f43csp2817920wra; Thu, 25 Jan 2018 15:57:40 -0800 (PST) X-Google-Smtp-Source: AH8x224VT52GFWJ8l8hvUBkcvsj9hrPPECWyRh4ov1hAJ2nJ5xbvzeyt3gQZqMoF1h7AkU2mcbTE X-Received: by 2002:a17:902:b7c3:: with SMTP id v3-v6mr3085383plz.307.1516924660090; Thu, 25 Jan 2018 15:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516924660; cv=none; d=google.com; s=arc-20160816; b=ffKf/qETcCX8Vbl/HuaopsFFDxR4HVWr/h+KGcjvwWE8WcL9tx5aceG4zPZErTxQKY L4KcVDdHbWmgDHCgp6ShqWp/AiUzfIQAYGjn7vpg//TQtvh6EFrhjO0NjsRpQm3GDkXb bNcGQ1Bx9TyYV+nKLKjBmSepT8omVjHCc/9PFEW30pc+Y9G3f1l6PPvZdrotRZu+Xujb qDIGp+6o4OvYM1LVjOHhRy8P9wPxUbsi0I889/d01KVqj4s1XrNx/tlzin2W4xU2YJjG Z+M0FN6uFGWiQVukU9QtGULt7dm5EWUsf58Ww17o8RZUer4tvGswtjdhk542ZjsvODcO WKFw== 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:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=SfIpoiyoTd0ZnF4uZgdYZk9JKvAuz1Owe2UY/J1pbk8=; b=fHzb6M/FgIfnFhKMgV/HRNw6cUXx5H+WvUrPrTV5pPWxzQ2webfTmySTw4aBq7GEMd C2Y6br0+DUOmMrHttKXWRRAO6OXkvmyfKV3APNWM3wfGfkUgbh3a/0dS2aA3Zl0fTXLk 4t1sjr7qSUkyOnR6xBNiGBm2edtcoqrrbLi0cMyGkEJHyd8LucTEdLFRAOrmXjTqFc2/ pDI08ISXIqwxMht5fVTIc25fCWdXAeVp7Aulzw6Ra9JosA6EpXcsIyyHO0gnUHoB6gjD uxMno4GWWdLPSMr+pAkOPeHmzlqszCqgyzbK2Z/O21VfxzRY9k8V+7OkLqnt74K89s56 So+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fQQ9obLr; dkim=pass header.i=@codeaurora.org header.s=default header.b=fQQ9obLr; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1si5384820pfk.26.2018.01.25.15.57.25; Thu, 25 Jan 2018 15:57:40 -0800 (PST) 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=@codeaurora.org header.s=default header.b=fQQ9obLr; dkim=pass header.i=@codeaurora.org header.s=default header.b=fQQ9obLr; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751896AbeAYXzj (ORCPT + 99 others); Thu, 25 Jan 2018 18:55:39 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:36930 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751580AbeAYXzf (ORCPT ); Thu, 25 Jan 2018 18:55:35 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id ACADC609D1; Thu, 25 Jan 2018 23:55:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516924534; bh=4DaNV3DoCamFI3ha2npG+0Yi0gZkji1DZHOVHxVvfts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fQQ9obLrfJIBAurp7hxxsn7Q+EBt+/45r7oKhFjB2cNt2eSbhZHS4S3sk5RpVNBjN HTmzHZ32iyJ2WKeB5iih8wtliiaTQWldVWHGnLEgP8FvnTyh6ozxPQGXx0qN1Ng36E LizArp7WH3LOKCmV9K/sp+tur1KJxlUpXUEEtPFg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from ckadabi-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ckadabi@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0ACFF601D9; Thu, 25 Jan 2018 23:55:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1516924534; bh=4DaNV3DoCamFI3ha2npG+0Yi0gZkji1DZHOVHxVvfts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fQQ9obLrfJIBAurp7hxxsn7Q+EBt+/45r7oKhFjB2cNt2eSbhZHS4S3sk5RpVNBjN HTmzHZ32iyJ2WKeB5iih8wtliiaTQWldVWHGnLEgP8FvnTyh6ozxPQGXx0qN1Ng36E LizArp7WH3LOKCmV9K/sp+tur1KJxlUpXUEEtPFg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0ACFF601D9 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ckadabi@codeaurora.org From: Channagoud Kadabi To: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: linux-arm@lists.infradead.org, linux-kernel@vger.kernel.org, tsoni@codeaurora.org, sboyd@codeaurora.org, kyan@codeaurora.org, Channagoud Kadabi Subject: [PATCH 1/2] dt-bindings: Documentation for qcom,llcc Date: Thu, 25 Jan 2018 15:55:12 -0800 Message-Id: <1516924513-20183-2-git-send-email-ckadabi@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516924513-20183-1-git-send-email-ckadabi@codeaurora.org> References: <1516924513-20183-1-git-send-email-ckadabi@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Documentation for last level cache controller device tree bindings, client bindings usage examples. Signed-off-by: Channagoud Kadabi --- .../devicetree/bindings/arm/msm/qcom,llcc.txt | 93 ++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt diff --git a/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt new file mode 100644 index 0000000..d433b0c --- /dev/null +++ b/Documentation/devicetree/bindings/arm/msm/qcom,llcc.txt @@ -0,0 +1,93 @@ +* LLCC (Last Level Cache Controller) + +Properties: +- compatible: + Usage: required + Value type: + Definition: must be "qcom,llcc-core" + +- reg: + Usage: required + Value Type: + Definition: must be addresses and sizes of the LLCC registers + +- llcc-bank-off: + Usage: required + Value Type: + Definition: Offsets of llcc banks from llcc base address starting from + LLCC bank0. + +- llcc-broadcast-off: + Usage: required + Value Type: + Definition: Offset of broadcast register from LLCC bank0 address. + +- #cache-cells: + Usage: required + Value Type: + Definition: Number of cache cells, must be 1 + +- max-slices: + usage: required + Value Type: + Definition: Number of cache slices supported by hardware + +- status: + Usage: optional + Value type: + Definition: Property to enable or disable the driver + +== llcc amon device == + +Properties: +-qcom,fg-cnt : The value of fine grained counter of activity monitor + block. + +compatible devices: + qcom,sdm845-llcc + +Example: + + qcom,system-cache@1300000 { + compatible = "qcom,llcc-core", "syscon", "simple-mfd"; + reg = <0x1300000 0x50000>; + reg-names = "llcc_base"; + + llcc: qcom,sdm845-llcc { + compatible = "qcom,sdm845-llcc"; + #cache-cells = <1>; + max-slices = <32>; + }; + + qcom,llcc-ecc { + compatible = "qcom,llcc-ecc"; + }; + + qcom,llcc-amon { + compatible = "qcom,llcc-amon"; + qcom,fg-cnt = <0x7>; + }; + + }; + +== Client == + +Properties: +- cache-slice-names: + Usage: required + Value type: + Definition: A set of names that identify the usecase names of a client that uses + cache slice. These strings are used to look up the cache slice + entries by name. + +- cache-slices: + Usage: required + Value type: + Definition: The tuple has phandle to llcc device as the first argument and the + second argument is the usecase id of the client. +For example: + + video-decoder-encoder { + cache-slice-names = "vidsc0", "vidsc1"; + cache-slices = <&llcc 2>, <&llcc 3>; + }; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project