Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp674967ybx; Wed, 30 Oct 2019 03:17:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxpU7jrv7uz60Y3KfdpTER8Wh7z1Pyujf8cKKEHm8H+ytlEcCRBGwPrjWTI0WBE1UYk4U/ X-Received: by 2002:a05:6402:2c8:: with SMTP id b8mr8424930edx.241.1572430625125; Wed, 30 Oct 2019 03:17:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572430625; cv=none; d=google.com; s=arc-20160816; b=NGP7UD+RuRwGBSLMfCN3apuv8Uq9FxHInZOKEtkIZBFpbr6o2pRf2H6ao3qcAQQoPl 6y2lyCmzaaLVCtOQMQZBosVbpvEXXtsP+C4YFvb6LSV7ocfGIDokuTSIJIMy7KowiY1S p50t4HRw2wyRAkPRfJbq3+/QA1iL4MHVV9Z82LZQpsYtFOH41hASLr80Yz2dITpDc/Uw /cBvPum6aNdePdGSpYZdM+323CE02rfyU0xMp72ie2ownnkEbpaMgkygUiJbDCIGDRpR UfETAr9psjYOV5lm2rmTKCz5t3zsmap0TPHt4wsfVZ+ngxf6nS/WJ3WCI03iavTKUu0y 6nRg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=bRWjTok3cpmeNtVxH6zc/st7z28BlZWUi3b8mpXF5U0=; b=iydmdlGqd+o8oZ9/scNW4kM+WmvGw6qSiqXZoEmFQWOijGSsqlnddIugWqFNErAHBD coADNynaBoMl7AW0mWSVH1s0XI3pFl+KB8YL6T1ojCX4d9Lu5gBDHRjBaFsTn8wzwHOa 3s4DG1psH7SDqOOoAO3g8tpnGDzlYbOLpUHdlX9EqsARNlw+MaAFi+URibOLnoocEQ4c sTVxKVRTlrceHCbLNn6QIcpgyCtz8Y3lvzWV7NnI4B5hi9RCT8SjvU4vBjqMkHqIwdfZ wTpyYvcZS5YHV7g8bzPaD+iAwm1I8GnHsa/+hjXEoQRHOon0Gc6NqttF2yXCso33Ebfv mtHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dIv/d7gJ"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si1019240ejd.180.2019.10.30.03.16.41; Wed, 30 Oct 2019 03:17:05 -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=@linaro.org header.s=google header.b="dIv/d7gJ"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726046AbfJ3KQA (ORCPT + 99 others); Wed, 30 Oct 2019 06:16:00 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46716 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbfJ3KP7 (ORCPT ); Wed, 30 Oct 2019 06:15:59 -0400 Received: by mail-wr1-f68.google.com with SMTP id n15so1573368wrw.13 for ; Wed, 30 Oct 2019 03:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bRWjTok3cpmeNtVxH6zc/st7z28BlZWUi3b8mpXF5U0=; b=dIv/d7gJcpOEWC1xWTFw2diyMpxZAL9inhvW98xziJlL8S5flMDpFWV0csaWJaWQ92 BluWhytq+fc8o8A6OYpD+dPmPqZ/RkDz+gwLzb6rg3L6DfBajfIvqG4MXsX+nLLvUtoX Qq7uW7o2oFJCa3B55NuhdQHBCUy2z93njyhNj+g/gA88M4LM2iKT83TmZwgs4DkI4y6E mszp4gHs/u7Xkt4g121W4/r2n0cpmNhj0dsEnjaRZ5a22F/08XZbtu2oMfUu0Uba9DDW f7fSczLwYZKyMOv3UeBtHNXg4NMg9MYqVsgPL5eVYLG00x5/vpYa91rBMsO754uf4jji ox6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bRWjTok3cpmeNtVxH6zc/st7z28BlZWUi3b8mpXF5U0=; b=YLbeKPmTApNlcpaye0rJd4p5HUSeAjuxEfKc7UJ1+Ks6SP0wfKMrCoLkAtzQWRKUey UHN7K0VfusKr4wvGSJvmwaxir+drCqgU9i5yRhmJuSKmmn9KsB3Rg3vHOnjSDNu4xGXW Z6XIOVfW7K/X+ylGLHx9HVCubbR45Lo4rLY7HfwAS9tQ92A+KtXI5RKmlEG602iPMLzF sIVBrezpW5izWdDXdkmawKeshzPSv+tUr4skZmIa1v3EHbvUU0FCySg/9WKkvDMxwVU7 oEdPQZsOJ07iR+3McSrJbWlvaqZWhUl5L5oPzDW4kCnjHbt/UYRDqhsnyQqR5xQjBtO3 WYag== X-Gm-Message-State: APjAAAVvpVfjwxYVBY/Wqm+GO3JTyXiD/41F62OfrnT+5zy46VJ3FmpL fyqL6FST8gpjvDvBWuD89zmFCw== X-Received: by 2002:adf:e942:: with SMTP id m2mr2012593wrn.26.1572430556898; Wed, 30 Oct 2019 03:15:56 -0700 (PDT) Received: from localhost.localdomain ([212.45.67.2]) by smtp.googlemail.com with ESMTPSA id u7sm4923842wre.59.2019.10.30.03.15.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Oct 2019 03:15:56 -0700 (PDT) From: Georgi Djakov To: robh+dt@kernel.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, mark.rutland@arm.com, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Georgi Djakov Subject: [PATCH] dt-bindings: interconnect: Convert qcom,qcs404 to DT schema Date: Wed, 30 Oct 2019 12:15:55 +0200 Message-Id: <20191030101555.10955-1-georgi.djakov@linaro.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the qcom,qcs404 interconnect provider binding to DT schema. Signed-off-by: Georgi Djakov --- .../bindings/interconnect/qcom,qcs404.txt | 45 ----------- .../bindings/interconnect/qcom,qcs404.yaml | 77 +++++++++++++++++++ 2 files changed, 77 insertions(+), 45 deletions(-) delete mode 100644 Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,qcs404.yaml diff --git a/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt b/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt deleted file mode 100644 index c07d89812b73..000000000000 --- a/Documentation/devicetree/bindings/interconnect/qcom,qcs404.txt +++ /dev/null @@ -1,45 +0,0 @@ -Qualcomm QCS404 Network-On-Chip interconnect driver binding ------------------------------------------------------------ - -Required properties : -- compatible : shall contain only one of the following: - "qcom,qcs404-bimc" - "qcom,qcs404-pcnoc" - "qcom,qcs404-snoc" -- #interconnect-cells : should contain 1 - -reg : specifies the physical base address and size of registers -clocks : list of phandles and specifiers to all interconnect bus clocks -clock-names : clock names should include both "bus" and "bus_a" - -Example: - -soc { - ... - bimc: interconnect@400000 { - reg = <0x00400000 0x80000>; - compatible = "qcom,qcs404-bimc"; - #interconnect-cells = <1>; - clock-names = "bus", "bus_a"; - clocks = <&rpmcc RPM_SMD_BIMC_CLK>, - <&rpmcc RPM_SMD_BIMC_A_CLK>; - }; - - pnoc: interconnect@500000 { - reg = <0x00500000 0x15080>; - compatible = "qcom,qcs404-pcnoc"; - #interconnect-cells = <1>; - clock-names = "bus", "bus_a"; - clocks = <&rpmcc RPM_SMD_PNOC_CLK>, - <&rpmcc RPM_SMD_PNOC_A_CLK>; - }; - - snoc: interconnect@580000 { - reg = <0x00580000 0x23080>; - compatible = "qcom,qcs404-snoc"; - #interconnect-cells = <1>; - clock-names = "bus", "bus_a"; - clocks = <&rpmcc RPM_SMD_SNOC_CLK>, - <&rpmcc RPM_SMD_SNOC_A_CLK>; - }; -}; diff --git a/Documentation/devicetree/bindings/interconnect/qcom,qcs404.yaml b/Documentation/devicetree/bindings/interconnect/qcom,qcs404.yaml new file mode 100644 index 000000000000..8d65c5f80679 --- /dev/null +++ b/Documentation/devicetree/bindings/interconnect/qcom,qcs404.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interconnect/qcom,qcs404.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QCS404 Network-On-Chip interconnect + +maintainers: + - Georgi Djakov + +description: | + The Qualcomm QCS404 interconnect providers support adjusting the + bandwidth requirements between the various NoC fabrics. + +properties: + reg: + maxItems: 1 + + compatible: + enum: + - qcom,qcs404-bimc + - qcom,qcs404-pcnoc + - qcom,qcs404-snoc + + '#interconnect-cells': + const: 1 + + clock-names: + items: + - const: bus + - const: bus_a + + clocks: + items: + - description: Bus Clock + - description: Bus A Clock + +required: + - compatible + - reg + - '#interconnect-cells' + - clock-names + - clocks + +additionalProperties: false + +examples: + - | + #include + + bimc: interconnect@400000 { + reg = <0x00400000 0x80000>; + compatible = "qcom,qcs404-bimc"; + #interconnect-cells = <1>; + clock-names = "bus", "bus_a"; + clocks = <&rpmcc RPM_SMD_BIMC_CLK>, + <&rpmcc RPM_SMD_BIMC_A_CLK>; + }; + + pnoc: interconnect@500000 { + reg = <0x00500000 0x15080>; + compatible = "qcom,qcs404-pcnoc"; + #interconnect-cells = <1>; + clock-names = "bus", "bus_a"; + clocks = <&rpmcc RPM_SMD_PNOC_CLK>, + <&rpmcc RPM_SMD_PNOC_A_CLK>; + }; + + snoc: interconnect@580000 { + reg = <0x00580000 0x23080>; + compatible = "qcom,qcs404-snoc"; + #interconnect-cells = <1>; + clock-names = "bus", "bus_a"; + clocks = <&rpmcc RPM_SMD_SNOC_CLK>, + <&rpmcc RPM_SMD_SNOC_A_CLK>; + };