Received: by 10.223.176.5 with SMTP id f5csp3221286wra; Thu, 1 Feb 2018 12:48:16 -0800 (PST) X-Google-Smtp-Source: AH8x224AIN6Trt9R6iqax9U1krvZP+et6UZJPdDSkZCItOfHk8TH1ap59aQynRIBJX1tYIf0OVwf X-Received: by 2002:a17:902:68cb:: with SMTP id x11-v6mr32666129plm.198.1517518095892; Thu, 01 Feb 2018 12:48:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517518095; cv=none; d=google.com; s=arc-20160816; b=xDQxfQCcipi+uLCD8ZMTsBZdhgGh1R3R1Kwn4KO1m1YvMxWeiJrp5XHNWupDWM6scu GaDK4nop5HRx0h3yEMwjoMj/iuFk+bWlZ7WXJkxss8C77xF+JXWVZFybc1tZOfAUSMOu AWpfokpXfOq93Eag+2whCs+kCDBcD9xitm19UU+BFM+d0cwidiI7akCzEw10BDH6OSus zp8CQll27YHHIFZESOtaZcSfZRde6ixIZUTiSfsWx2VUujQ3C1dbDN4zHcGhWCt8i7Am Oa/3h1DMrk3sPFFv74S004Sv2QCN6u9Y6h/ePZv0j1e0GwJlB7ihr+ocqUm+Hvc2P+8C 20iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=nTa22Qa4iVqJJFRno+cHGdIr67XCpHsF1ALWXpJVHgA=; b=p0nbMLn0VDoXLLhT+IKtKg5fZhDEilUtcPf0vKG9notOrC43O2ZTcREA10JfO1eQGA ma4bE0kFbb2d7TtrlXHiTgp/slNVcX8qFb7X7roN7juIrKAvGfRfrvmpxZEeiPFv7ZAv H/Mvw1MtMamSXhwqpJ0K25FHzeZEIUBYdC3U/yCzNtlbKEEeibWRtBh88STic1Q88BhV 9P3YCIiPh4iIh0WoeGh4a67w3GfG6PDosCMwQ/gi8K6P1q5/mNhpwnixbwLLyzM+AX3r 13eH7sQmF/Qj2NFFNEha+Y8JRDf4CWhwqmHdK/xo4mZco9VZVzNvx6Z0f8AVtKP/L4kC MrOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fl24r8Tw; dkim=pass header.i=@codeaurora.org header.s=default header.b=fl24r8Tw; 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 bh3-v6si315974plb.661.2018.02.01.12.48.01; Thu, 01 Feb 2018 12:48:15 -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=fl24r8Tw; dkim=pass header.i=@codeaurora.org header.s=default header.b=fl24r8Tw; 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 S1751878AbeBAUrI (ORCPT + 99 others); Thu, 1 Feb 2018 15:47:08 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:39438 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751677AbeBAUrC (ORCPT ); Thu, 1 Feb 2018 15:47:02 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F01E16140D; Thu, 1 Feb 2018 20:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517518021; bh=6/fV7u9MVZcTg9Y1Evdv6GqZJ/YWnSw9NGMV2jI/nfA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fl24r8Twgkr9OHk9nKnOHqJTqAuz1ZKlEsneEKF03pzgw6gh2dORHzUhRIOC8r7ES PVwmjgzZHPYJIFxuugDzzWA2a5CL0vhevYbGiXhTeicvN3WjlUZ84M/s9Ydu9hVRb8 sxDV4moOOPMrIiLsgL36KvMylR81eVYIUnzlCmV4= 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 mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 41EE16140D; Thu, 1 Feb 2018 20:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1517518021; bh=6/fV7u9MVZcTg9Y1Evdv6GqZJ/YWnSw9NGMV2jI/nfA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fl24r8Twgkr9OHk9nKnOHqJTqAuz1ZKlEsneEKF03pzgw6gh2dORHzUhRIOC8r7ES PVwmjgzZHPYJIFxuugDzzWA2a5CL0vhevYbGiXhTeicvN3WjlUZ84M/s9Ydu9hVRb8 sxDV4moOOPMrIiLsgL36KvMylR81eVYIUnzlCmV4= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 01 Feb 2018 12:47:01 -0800 From: Channa To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-arm@lists.infradead.org, linux-kernel@vger.kernel.org, tsoni@codeaurora.org, sboyd@codeaurora.org, kyan@codeaurora.org, linux-kernel-owner@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: Documentation for qcom,llcc In-Reply-To: <20180201104808.rxgqcrlsevtotq55@lakrids.cambridge.arm.com> References: <1516924513-20183-1-git-send-email-ckadabi@codeaurora.org> <1516924513-20183-2-git-send-email-ckadabi@codeaurora.org> <20180201104808.rxgqcrlsevtotq55@lakrids.cambridge.arm.com> Message-ID: <2c343b57bf3ee8aeb3338aee0d27dc06@codeaurora.org> X-Sender: ckadabi@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-02-01 02:48, Mark Rutland wrote: > On Thu, Jan 25, 2018 at 03:55:12PM -0800, Channagoud Kadabi wrote: >> 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 >> >> +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>; >> + }; >> + >> + }; > > The "qcom,llcc-ecc" and "qcom,llcc-amon" bindings doesn't seem to be > used by the driver in patch 2, and it's not clear how they are intended > to be used, so I think they should go from the binding for now. Sure I can remove them for now and add them when the I push other drivers for review. > > I don't think you need syscon and simple-mfd, and I think you can I used syscon and simple-mfd because three drivers touch the same address space. Driver 1: system cache core: The purpose of the driver is to partition the system cache and program the settings such as priority, lines to probe while doing a look up in the system cache, low power related settings etc. The driver also provides API for clients to query the cache slice details, activate and deactivate them. Driver 2: ECC to detect single and double bit errors in LLCC memory. Implemented using EDAC framework. Driver 3: AMON: Activity Monitor to detect live lock ups in the HW block. Implemented as SOC driver similar to driver #1. Since the hardware block has multiple functional units the driver is implemented to use syscon/regmap interface. > simplify the binding to a single node like: > > qcom,system-cache@1300000 { > compatible = "qcom,sdm845-llcc"; > reg = <0x1300000 0x50000>; > #cache-slice-cells = <1>; > max-slices = <32>; > } > > If ECC and AMON are option features, we can always add boolean > properties for those later, e.g. "has-ecc". > > Thanks, > Mark. -- -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project