Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp334043lqp; Mon, 10 Jun 2024 05:51:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEMPPBeLeWtRqT2nUgcd76TDQ+fQtGkT361eS6zEbTbb0trhk5Xl41ZT4rucD/YlOGmtKo6qKhxRRsAzv44nZ3ZTyaVaTkstIltFJmHg== X-Google-Smtp-Source: AGHT+IGq8jhQjFownjuAHdw0bHkmqO0zBukSbjONRXLdVZ5yC3yM5I3s98Wu7e0o+e/wB+h7zksY X-Received: by 2002:a05:6e02:12c7:b0:375:a15e:d28b with SMTP id e9e14a558f8ab-375a15ed5femr38874035ab.16.1718023887803; Mon, 10 Jun 2024 05:51:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718023887; cv=pass; d=google.com; s=arc-20160816; b=OMH2Rj4Mw2IqsJ0Lj50zRq0nBiMnmi2VmHcazz71uJGZeNeUjQN1PrzArPAjrGnRo0 GEtjXXY/k7NS2zzY6dwJHZuXu/W0O5Se+spZvyU8uIY2TYjkVbu7g1zcu2zz9K2hNGhZ FY5SIF0rlY1Td9r/Aj4Ebl1SwtuKYlvA+aVkLt3sk32S2CgcQv546No894tNNzGxU1um rWthfefk5WQ6nhcBgrekdBBUKLHVr3w5LJlxXEGzu0jyMZtP/NNPYHK6TdZuSbmxCJty f9wwCbGxQNNNEE+9Vb2mtHi97nd7U18AS2GaZhGK5pTtUZ5kUg5iuTyckzxHdEt4ad0y GXSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=WVQZfuaSODSe/detgoN35rqBdnOZD2OV4kbOzoLbpBk=; fh=5/BkBs5HxRFWgjfpwCXwvEfp+Qn46XxaSPGrfcEo4z0=; b=l+BfZtmlPH+o+9yL/PwJ1JtHecNWM7erqZa6XtN35rtYqKPnXfZKFtt6ICmZeadJpb OXFB7QMarcl0GyfObsPQ3wemQz+2Tqyl4mxCf/d9X+JCIQMX252jFFCM0tKmqga8VirA X1/NNyxmfXSKIde4s2HMAHe2JbfbAwYCwt33YwiTQgByjMbe9Tx6tliebP8utWq460eD 30C9B96mBn6M4Fw9oWyz0X4hVd5L3WhIH22efUC3Ja24lj41IOhjpwKI5/veudqjq1nS DVE2myAoAmZURAOtPusrfe2FSLDbCfmKfpmErf4KYZvrcBTdbAKUM67rGiE7ckGVicyk Q8fg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G7Xp9v3Z; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-208181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208181-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de262c0245si7569538a12.321.2024.06.10.05.51.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:51:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G7Xp9v3Z; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-208181-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208181-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 879482848DE for ; Mon, 10 Jun 2024 12:51:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5F807A705; Mon, 10 Jun 2024 12:50:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="G7Xp9v3Z" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1017811E7 for ; Mon, 10 Jun 2024 12:50:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718023846; cv=none; b=kCw2cJbXJ6PCN8te1WNNLljhi3IB2cNvGHp7H3fkfu1R0TU0rj4Qkm6FqmpM8NTyuQTkBwFyV25t6ussAtKrH7OzO051WqATV8nslCIM+roS5nun6O+ajHSBy0XWDTTNXR4FEeIOyRUyyRkBfkzM+Tx5EEeLJKxJ/bAcukxyp3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718023846; c=relaxed/simple; bh=tNmWhx9bghGx/gPDCgODHzV1BqZ/8YYV5lSZvnnr/Xs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=c3Blk6L61QhOc3R49f2eDUb0yKgNSOP9RJbCWZ584+eN2Etie4zAHtjJUp+mZCRf5uX1K/ekkk9IRGc7wPwZOLA//wmRvSr3vcx51nTGZ6VpNS6aHC3UqGpcRt4MZq/2qXkFwzh/6e9KFjmIK5DjARHkLo622CHl3hxJK09LikE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=G7Xp9v3Z; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-421d32fda86so8587305e9.0 for ; Mon, 10 Jun 2024 05:50:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718023843; x=1718628643; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=WVQZfuaSODSe/detgoN35rqBdnOZD2OV4kbOzoLbpBk=; b=G7Xp9v3ZkpTSXWhpMpFryLFr+v6VXvo2Odki/jmZaJogkG57qcHrZKOVcSOfs7luJU s8wwwD21IT8FbJL9mYEYgRC7U543MJJ5ZB7xwfegUCsVxWNxAFYpERs5pkPmSztEJNwS hIuT4hnJEjcLbSoMue5YFobVjTRVspB2xSCRnKDCddCOey0ESwXFADALfecVXnJJnjGD bRFhXMpl2nhpFJNVwSNvXR/MRQaTeHy+TIMdpfrNvuixCdLUHr9CKVUyVxZOXB+MizXr K9daXO7nDLlLFPxMzdL1ALVbnuEANapZkgdSu90CO0Sp5giW+vlzyrBcZZiKkiY4pfy0 lHPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718023843; x=1718628643; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WVQZfuaSODSe/detgoN35rqBdnOZD2OV4kbOzoLbpBk=; b=WsCtqCmaIWc8EQp/ADiuA5XRTHSNCMRUmtmVAcQygJ5VMQYLpahLwOKTx0mpZ9LCAr SmcLUWR0rizEoz/C4uEXdXs/ml0RECN6wSPrAj4qGS4+VE9qr44ofmbtRmKCiFbQlYAC o+bCE39u4PQUPOvgE4x+K60bh+Ers96ceYenbnOzWjvbkQ0JYleO4k0WsBYPdYB2hmt8 5Z0GYtLEQJl5QX2p3fGu4e1xtXJgSkrl+4qO0Cn7U+qiH1KWP/5I9u00xqQU+flVQMum zAUh80EOWqrLfF9rM5Z7g+Rho09HMR6r98WS7cpCRYit1k1PBRtUmSOSWjKy3koC7+dm JQ5Q== X-Forwarded-Encrypted: i=1; AJvYcCWzqCCT2bvCSv85UkBTjM8xItppYwWEnc5zL11DtZqAW8ojKcw4q5SsyCaRxto3sjDb+ta8QiiACjRhoSsYP4VbHEDhB4o5x98HIUvz X-Gm-Message-State: AOJu0Yx5Ijfm1vb2QpZhteksjyMqLna/CKfh410zPB4UlH9LXfhxq3wb pIRJ6uhcYYMUX9r1djllkRbOPJyUt8Ypto5LHgwW1dnyPUFIL6g4H4FO41coVDE= X-Received: by 2002:a05:600c:3b20:b0:421:7e19:5afa with SMTP id 5b1f17b1804b1-4217e196259mr52996295e9.30.1718023843148; Mon, 10 Jun 2024 05:50:43 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4215810242fsm172504585e9.12.2024.06.10.05.50.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Jun 2024 05:50:42 -0700 (PDT) Message-ID: <5e980bfe-c939-478b-833e-d5816c3ed77f@linaro.org> Date: Mon, 10 Jun 2024 14:50:41 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/7] dt-bindings: interconnect: Add Qualcomm MSM8976 DT bindings To: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Andy Gross , Bjorn Andersson , Konrad Dybcio , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240609182112.13032-1-a39.skl@gmail.com> <20240609182112.13032-2-a39.skl@gmail.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8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H6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240609182112.13032-2-a39.skl@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09/06/2024 20:20, Adam Skladowski wrote: > Add bindings for Qualcomm MSM8976 Network-On-Chip interconnect devices. > > Signed-off-by: Adam Skladowski A nit, subject: drop second/last, redundant "DT bindings". The "dt-bindings" prefix is already stating that these are bindings. See also: https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18 > --- > .../bindings/interconnect/qcom,msm8976.yaml | 107 ++++++++++++++++++ > .../dt-bindings/interconnect/qcom,msm8976.h | 97 ++++++++++++++++ > 2 files changed, 204 insertions(+) > create mode 100644 Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml > create mode 100644 include/dt-bindings/interconnect/qcom,msm8976.h > > diff --git a/Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml b/Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml > new file mode 100644 > index 000000000000..bc9d08443e7c > --- /dev/null > +++ b/Documentation/devicetree/bindings/interconnect/qcom,msm8976.yaml > @@ -0,0 +1,107 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/interconnect/qcom,msm8976.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm MSM8976 Network-On-Chip interconnect > + > +maintainers: > + - Konrad Dybcio > + > +description: | Do not need '|' unless you need to preserve formatting. > + The Qualcomm MSM8976 interconnect providers support adjusting the > + bandwidth requirements between the various NoC fabrics. > + > +properties: > + compatible: > + enum: > + - qcom,msm8976-bimc > + - qcom,msm8976-pcnoc > + - qcom,msm8976-snoc > + > + reg: > + maxItems: 1 > + > + clock-names: > + minItems: 1 > + maxItems: 2 > + > + clocks: > + minItems: 1 > + maxItems: 2 I know that other qcom bindings use that order (clock-names -> clocks), but at least for new bindings let's keep it more logical, so please first clocks then clock-names. > + > +patternProperties: > + '^interconnect-[a-z0-9\-]+$': > + type: object > + $ref: qcom,rpm-common.yaml# > + description: > + The interconnect providers do not have a separate QoS register space, > + but share parent's space. > + > + allOf: > + - $ref: qcom,rpm-common.yaml# Drop both lines. > + > + properties: > + compatible: > + const: qcom,msm8976-snoc-mm > + > + required: > + - compatible > + > + unevaluatedProperties: false Put it after $ref (before description). > + > +required: > + - compatible > + - reg > + > +unevaluatedProperties: false This goes after entire allOf section > + > +allOf: > + - $ref: qcom,rpm-common.yaml# > + - if: > + properties: > + compatible: > + const: qcom,msm8976-snoc > + > + then: > + properties: > + clocks: > + items: > + - description: IPA clock from RPMCC > + clock-names: > + const: ipa > + > + required: > + - clocks > + - clock-names Then why do you have two items? And what with clocks for other variants? This is supposed to be fixed/specific for each device/variant. > + > +examples: > + - | > + #include > + #include > + > + bimc: interconnect@400000 { > + compatible = "qcom,msm8976-bimc"; > + reg = <0x00400000 0x62000>; > + #interconnect-cells = <2>; > + }; > + > + pcnoc: interconnect@500000 { > + compatible = "qcom,msm8976-pcnoc"; > + reg = <0x00500000 0x14000>; > + #interconnect-cells = <2>; > + }; Drop both nodes. The node below is enough as an example. Best regards, Krzysztof