Received: by 10.192.165.148 with SMTP id m20csp1073777imm; Wed, 2 May 2018 13:39:35 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrS774ugkMqHH39A6Zh/uopsiClrtyX7Ix/Dw02JGh+rVSYVYlYOeZphBlLpWj8EoHZKi2s X-Received: by 2002:a63:7208:: with SMTP id n8-v6mr15065919pgc.420.1525293574942; Wed, 02 May 2018 13:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525293574; cv=none; d=google.com; s=arc-20160816; b=oBcUJWmlF/QxP3GvxjWnM+0k4wiY0QFXVB6D3KmhIh85L5BNKRj3txEbnv8oIV7rTe OtKs2JB/Tm++UlAV6JGxuMSgmMvG3uqBTSBj+sNWMrUoicsiOHnZuxa2hB2n3tvr640s 1ReZTooqsHYaSGEDTb+qYKjnH26MkLirJWgs9IwbCieQjrq0+nggQgmGvdVYX7XzDDP5 3DjsCHWzu60/TvI9MGH3xUJJKd+5Uu+6YBxtVcbJBnhz9KgpR/VHfe5bUF24rqZkGU7O Gr3zsolfZ3Bs8ZJc5Pg+CZumLfQXqvHj7zbxYb9N5auVzlmySPt/76K5bOo7N/sPBrzU BmJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=BZUrI6o6rHXdgGZ6JslpfH2CIk2ICR1M+8sExF+SeaY=; b=lEvx3EXL+TedfC5aZZpdd8dt1eoDapPoVh99L0Zn4S6zVF8+h+ABBgIR1OumydqjqG QzZB8WfcC4k4CGxKwz6+Jem1kTHGfRviFbNnqEU+pq9Eq+XqXAwymjzip17V4GTnkTFM nfRTJLXbHAnnggBP4ZzMmBTIzQ0mJ2oWDuc4poAndOXCr4tvscfLuWFpUdO7h9CHtcI7 AFSGkT5Bbs1o6vRlrwcWWE1jjwBeKPd3iEJK04+CfaGeJ+DPRt5ptWQ5LaeZOR5McHZt nuDN0BZFGCJOloOrxRYzrdGI/3Vvn6jzLf1sE1H8FYcWCL3IKATIqEDV2fehtBZrM49R QNSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YwIGEiVi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g130si7155943pfc.366.2018.05.02.13.39.20; Wed, 02 May 2018 13:39:34 -0700 (PDT) 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=@chromium.org header.s=google header.b=YwIGEiVi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751331AbeEBUh5 (ORCPT + 99 others); Wed, 2 May 2018 16:37:57 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:45075 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751277AbeEBUhz (ORCPT ); Wed, 2 May 2018 16:37:55 -0400 Received: by mail-pf0-f193.google.com with SMTP id c10so12760124pfi.12 for ; Wed, 02 May 2018 13:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:to:from:in-reply-to:cc :references:message-id:user-agent:subject:date; bh=BZUrI6o6rHXdgGZ6JslpfH2CIk2ICR1M+8sExF+SeaY=; b=YwIGEiVi+dOHtkMqi5yPEWInfT4jYtT11C4gzxjxyVQnOl94VIIlVG+W5p5No64Aru 14czPQRjyKt4Mxpyi8jvD31jR11Uysg8LHeQzs7eEg9YXj/QEditrKfL2Ai02SgROk0i p+KSo+o2Auk1S2s5hURttJAzkHWK4MgWdGka0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding:to:from :in-reply-to:cc:references:message-id:user-agent:subject:date; bh=BZUrI6o6rHXdgGZ6JslpfH2CIk2ICR1M+8sExF+SeaY=; b=VHNTeclks6soxr5txSoniz9XApfV9rm2BIB8zo/5/tVblSINkMa91Pz7VRp7EZ3/k7 Ag+UWgVcXA09pQMEXS3KGkj8f28V/JSKNh6QJfREVnoVGtfdCjn1f5Wp+fvup3t9uYE0 9wkhSvaO3d0RTBAC/9AZEJBrhpgECYMdZH7K90kzD1O2CF9D8P2BsDq3AXUWKzdws6AP oizOt9EQIuDDX1NiGzVpakeVGYeWaSSkz4fOZAuJlc0bw7CrJvRB8O/feSdINzel+rew 6CrNNR+tI2ju3AW4rGRmV3rIiDzf/0n8edln3EEdEF6jMXVooXVcVu6CohJnk+FFfnIK OvQQ== X-Gm-Message-State: ALQs6tCIFiTef4a4nFcrFZYtUHWZLWATRe6fIvhCCx9IWfsWF2aIax8U S/eddazgtbgS82wQSpmfUjih/A== X-Received: by 10.98.152.203 with SMTP id d72mr20582301pfk.98.1525293474560; Wed, 02 May 2018 13:37:54 -0700 (PDT) Received: from localhost ([2620:0:1000:1511:d30e:62c6:f82c:ff40]) by smtp.gmail.com with ESMTPSA id b4sm22806697pfa.64.2018.05.02.13.37.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 02 May 2018 13:37:53 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: Lina Iyer , andy.gross@linaro.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org From: Stephen Boyd In-Reply-To: <20180502193749.31004-3-ilina@codeaurora.org> Cc: rnayak@codeaurora.org, bjorn.andersson@linaro.org, linux-kernel@vger.kernel.org, evgreen@chromium.org, dianders@chromium.org, Lina Iyer , devicetree@vger.kernel.org References: <20180502193749.31004-1-ilina@codeaurora.org> <20180502193749.31004-3-ilina@codeaurora.org> Message-ID: <152529347285.138124.5939045845945488373@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v7 02/10] dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs Date: Wed, 02 May 2018 13:37:52 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Lina Iyer (2018-05-02 12:37:41) > diff --git a/Documentation/devicetree/bindings/soc/qcom/rpmh-rsc.txt b/Do= cumentation/devicetree/bindings/soc/qcom/rpmh-rsc.txt > new file mode 100644 > index 000000000000..950d56325284 > --- /dev/null > +++ b/Documentation/devicetree/bindings/soc/qcom/rpmh-rsc.txt > @@ -0,0 +1,132 @@ [...] > + > +- qcom,drv-id: > + Usage: required > + Value type: > + Definition: The id of the DRV in the RSC block that will be used = by > + this controller. used by the OS? instead of by this controller? > + > +- qcom,tcs-config: > + Usage: required > + Value type: > + Definition: The tuple defining the configuration of TCS. > + Must have 2 cells which describe each TCS type. > + . > + The order of the TCS must match the hardware > + configuration. > + - Cell #1 (TCS Type): TCS types to be specified - > + SLEEP_TCS > + WAKE_TCS > + ACTIVE_TCS > + CONTROL_TCS > + - Cell #2 (Number of TCS): > + > +- label: > + Usage: optional > + Value type: > + Definition: Name for the RSC. The name would be used in trace log= s. > + > +Drivers that want to use the RSC to communicate with RPMH must specify t= heir > +bindings as child nodes of the RSC controllers they wish to communicate = with. > + > +Example 1: > + > +For a TCS whose RSC base address is is 0x179C0000 and is at a DRV id of = 2, the > +register offsets for DRV2 start at 0D00, the register calculations are l= ike 0xd00? Instead of what looks like octal. > +this - > +DRV0: 0x179C0000 > +DRV2: 0x179C0000 + 0x10000 =3D 0x179D0000 > +DRV2: 0x179C0000 + 0x10000 * 2 =3D 0x179E0000 > +TCS-OFFSET: 0xD00 > + > + apps_rsc: rsc@179c0000 { > + label =3D "apps_rsc"; > + compatible =3D "qcom,rpmh-rsc"; > + reg =3D <0x179c0000 0x10000>, <0x179d0000 0x10000>, > + <0x179e0000 0x10000>, <0xd00 0>; > + reg-names =3D "drv-0", "drv-1", "drv-2", "tcs-offset"; tcs-offset should be a property, not a reg property value. > + interrupts =3D ; There should be three interrupts? Not 1? > + qcom,drv-id =3D <2>; > + qcom,tcs-config =3D , > + , > + , > + ; > + }; > +