From patchwork Thu Jan 25 23:55:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Channagoud Kadabi X-Patchwork-Id: 10184937 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A53D5601D2 for ; Thu, 25 Jan 2018 23:55:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96FDA28795 for ; Thu, 25 Jan 2018 23:55:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BEF3287E6; Thu, 25 Jan 2018 23:55:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3B05828795 for ; Thu, 25 Jan 2018 23:55:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xvP3+xguyf5Ql0zkkt353cy5GOgWYLT/QEItKElO+Do=; b=U41swwpP1QfL45wlG3Gd27U8V5 eWgwcjXxEl0j/gMEcaqK3p3GI+rKgLSa80kB5XHyZ9C8nQQVLuMxwBpWeyRbQFOZDjQCP4QBSjcMb uIP4eA/+v/mY9AWnv5/5lGMdUh9ABBcpUNmhIpXbp/7LsSswmeHsD8/3/7ycX05/k/bakshEyq0sX AlE3hqZHJNX6B94q4Spp0ZIsolxCmp5khPhjCICteuvBLBRN8Qszpfde1smZKsfhvVgqCyx88uPl7 alEF8XnmaAT7kwlokHiPnHFmez8hWPraGMXCXyI0aDyen2MLQvR3Y19n/zSago9fVknEe5PBWOY8m VXA0vxrQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eerN5-0004b7-Us; Thu, 25 Jan 2018 23:55:55 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eerMr-0004O8-LT; Thu, 25 Jan 2018 23:55:43 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F2CF860A5F; 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=1516924535; bh=4DaNV3DoCamFI3ha2npG+0Yi0gZkji1DZHOVHxVvfts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LZjyVK0wTwCWvE7yOX27Xmj9PcNnyGzp5sXR4JFRguy8GuGzFoMggByHKzBaaHrxg Xmz4MRERhg/7CLgAjebfovvzOjn8XeVB+LHbEeNBmXrcCCKqfZSAVRdWBvgtEX0TsD HT42S4aphSd0FO5TU1zwaHc0hUFwCAnpT/YnO9fs= 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 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> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tsoni@codeaurora.org, kyan@codeaurora.org, Channagoud Kadabi , sboyd@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; + };