Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp249914iob; Wed, 11 May 2022 13:38:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5yps3FjcRNM8PoaQUIEil7TzuPBchtJMKQPxpsj4rFai5zNJ26rdH+L5SC+pqsMGidsb7 X-Received: by 2002:a17:90b:3943:b0:1de:c94e:b8b8 with SMTP id oe3-20020a17090b394300b001dec94eb8b8mr4182187pjb.2.1652301524451; Wed, 11 May 2022 13:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652301524; cv=none; d=google.com; s=arc-20160816; b=j7OSQ5//lrm/svw1SzvZ++GS7etaULx5ZCTA/FmsIf/uKVrZ0O/e+q6JLxVDQdSRsJ DJQPcvEI8+go+RG4h5y5dDVcEAjjsnIWhQeHa/DfrzWNn/qqQk9/gTK3Hwv4XwwnPcvL 4UxVSD05PS6iKoBUVEv8BcsfxEaP79r4Pk8kNapgn7KraXCT3zpAU6x3gKGG1L+vWM+r w3f9q2kSBIJ7gJeyQOSZ3tZH6GLAKHOcQJfP2PWYMGylw88dhM/fu8LBJXBPH40c/ajw VrhjAnTk174aBUi+aMcs52FQOGRP0bI1KMP1x26N9JAB4jrtzYyrZnffNxSeiksZGeqf gOcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=GjjYuooaKya+XTIpInDzfIomDPRmOBZ3nIRxVyRuRmo=; b=OZxd7f9aJ6x0RanZ6WG9RAHgeeiB+vCJjTbuah5X6aEeKkjYLp4h0HgAEmg0L1K6jg m0gH/HHxq6DI5k3mLjBLXMR5/CLQv8isjFp8nn31GkPz1vtBDEwmyvSCeZCbcuoIzDKH pqPW9iQynIul4otVusaLenOT7x6HDdmynvzL4gKmd734X7FL4rgW8KBlYnjZi4cBkhDz psFxS5qejuKiTJeJpgqi0WiITOdDU8TcxUdZxCCBPgYC3V/PrVu+X2VFWL3OIX0183FH 5lQAzWV6c5IOztfAmyudjtKaRBWrVEDuX5KwpmgfWG7/CZBA27C3P3L/bqxsXulB4gh8 ylCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eLdDCwkk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a631749000000b0039854fb2001si789014pgx.496.2022.05.11.13.38.28; Wed, 11 May 2022 13:38:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eLdDCwkk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1346088AbiEKSLR (ORCPT + 99 others); Wed, 11 May 2022 14:11:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346113AbiEKSLA (ORCPT ); Wed, 11 May 2022 14:11:00 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1762A4A916 for ; Wed, 11 May 2022 11:10:58 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id z2so5688165ejj.3 for ; Wed, 11 May 2022 11:10:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=GjjYuooaKya+XTIpInDzfIomDPRmOBZ3nIRxVyRuRmo=; b=eLdDCwkkAb6g4ZtEARDJ8k2Ft40ckz2IAfOuyfc6Q+rJRdlyaEznGMK50/phq7pgDV wUfjyH2B8QMa6rkhxRFz5mAFkUwd0b9pTVZ6sCSheq5yATBwbSRvs9WxZ3Y6MwVym3yy iEopFY/AAp26V8QZdyMr7dut8wevYCzPWACvShtvgdSNVYJFpnR+8RsqP930LBiEgQqb H1H5/UxoIe0n/8hk8LbC8g7txlJkrYcB8WYHKslelCbZQjsxD4uHLc0CyZ9bCGN9QcaO mcupuQvVdRIZGwsO7CkbQisMvjCKdCWddQzlLTyGnzpjy9HBSrqBuupEH2gCyN1eRqZ8 Fx6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=GjjYuooaKya+XTIpInDzfIomDPRmOBZ3nIRxVyRuRmo=; b=jYRBnMFD+ne/rZJtHEFg/AXKwp7GZzzuchVyWGiH4uXhd0wUGd8glUQsYXGGCv7ElT +oMKglwCdJEbfn9WHOxlmSHd/xSqfpFEa9FcHmkNjXf4bKJMo0CvxrSoK0bVCPn9u78z jUGaAHj9wPouVR2L5W58yq0AqNzTl7Mz2Z91oe7MK0XqCFlszFnmdaJvyZs/GeClN57F yjerKkvqcDHXFuCvWCOa2sYf8X5sMKTKMR75Pa9DoX7/175/dUBevTUIm521Hl2BwFF3 Y1HK+Fwww+eQvUREQUWLQzMtrMBWiV8raNH2vVdveqzHFjADP8IU46ISkD4il7nqtwZI g00g== X-Gm-Message-State: AOAM5329hIfL06kih7ZeK0wq8b/wWalL9BKIkKPi9nvz0fYFYklFtKJ7 lDzyaUdgoielU7YqxCFo1Ey/MvaEP6EJerO9 X-Received: by 2002:a17:907:9709:b0:6fd:c0e1:c86b with SMTP id jg9-20020a170907970900b006fdc0e1c86bmr7197430ejc.600.1652292656613; Wed, 11 May 2022 11:10:56 -0700 (PDT) Received: from [192.168.0.155] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id g13-20020aa7c84d000000b0042617ba63b8sm1527196edt.66.2022.05.11.11.10.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 May 2022 11:10:56 -0700 (PDT) Message-ID: <436e497f-b43c-4543-62d4-e7aea3d37ac7@linaro.org> Date: Wed, 11 May 2022 20:10:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v3 2/2] dt-bindings: remoteproc: qcom: Add SC7280 MSS bindings Content-Language: en-US To: Sibi Sankar , bjorn.andersson@linaro.org, robh+dt@kernel.org, Sireesh Kodali Cc: ohad@wizery.com, agross@kernel.org, mathieu.poirier@linaro.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, mka@chromium.org, krzysztof.kozlowski+dt@linaro.org References: <1652257162-23874-1-git-send-email-quic_sibis@quicinc.com> <1652257162-23874-3-git-send-email-quic_sibis@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <1652257162-23874-3-git-send-email-quic_sibis@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/05/2022 10:19, Sibi Sankar wrote: > Add MSS PIL loading bindings for SC7280 SoCs. Why not converting existing bindings? The compatible is already there, so you duplicated its binding. > > Signed-off-by: Sibi Sankar > --- > > v3: > * Re-ordered clock list, fixed pdc_sync typo [Rob/Matthias] > > .../bindings/remoteproc/qcom,sc7280-mss-pil.yaml | 261 +++++++++++++++++++++ > 1 file changed, 261 insertions(+) > create mode 100644 Documentation/devicetree/bindings/remoteproc/qcom,sc7280-mss-pil.yaml > > diff --git a/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-mss-pil.yaml b/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-mss-pil.yaml > new file mode 100644 > index 000000000000..2f95bfd7b3eb > --- /dev/null > +++ b/Documentation/devicetree/bindings/remoteproc/qcom,sc7280-mss-pil.yaml > @@ -0,0 +1,261 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/remoteproc/qcom,sc7280-mss-pil.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm SC7280 MSS Peripheral Image Loader > + > +maintainers: > + - Sibi Sankar > + > +description: > + This document defines the binding for a component that loads and boots firmware > + on the Qualcomm Technology Inc. SC7280 Modem Hexagon Core. s/This document defines the binding for// Instead describe the hardware. Anyway, similar patch was already sent: https://lore.kernel.org/all/20220511161602.117772-7-sireeshkodali1@gmail.com/ Except its several issues, it is much more complete and specific. > + > +properties: > + compatible: > + enum: > + - qcom,sc7280-mss-pil > + > + reg: > + items: > + - description: MSS QDSP6 registers > + - description: RMB registers > + > + reg-names: > + items: > + - const: qdsp6 > + - const: rmb > + > + iommus: > + items: > + - description: MSA Stream 1 > + - description: MSA Stream 2 > + > + interconnects: > + items: > + - description: Path leading to system memory > + > + interrupts: > + items: > + - description: Watchdog interrupt > + - description: Fatal interrupt > + - description: Ready interrupt > + - description: Handover interrupt > + - description: Stop acknowledge interrupt > + - description: Shutdown acknowledge interrupt > + > + interrupt-names: > + items: > + - const: wdog > + - const: fatal > + - const: ready > + - const: handover > + - const: stop-ack > + - const: shutdown-ack > + > + clocks: > + items: > + - description: GCC MSS IFACE clock > + - description: GCC MSS OFFLINE clock > + - description: GCC MSS SNOC_AXI clock > + - description: RPMH PKA clock > + - description: RPMH XO clock > + > + clock-names: > + items: > + - const: iface > + - const: offline > + - const: snoc_axi > + - const: pka > + - const: xo > + > + power-domains: > + items: > + - description: CX power domain > + - description: MSS power domain > + > + power-domain-names: > + items: > + - const: cx > + - const: mss > + > + resets: > + items: > + - description: AOSS restart > + - description: PDC reset > + > + reset-names: > + items: > + - const: mss_restart > + - const: pdc_reset > + > + memory-region: > + $ref: /schemas/types.yaml#/definitions/phandle-array This should be defined by core schema and ref should not be needed. > + description: Phandle reference to the reserved-memory for the MBA region followed > + by the modem region. maxItems > + > + firmware-name: > + $ref: /schemas/types.yaml#/definitions/string > + description: > + The name of the firmware which should be loaded for this remote > + processor. > + > + qcom,halt-regs: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + description: > + Phandle reference to a syscon representing TCSR followed by the > + four offsets within syscon for q6, modem, nc and vq6 halt registers. > + > + qcom,ext-regs: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + description: > + Two phandle references to syscons representing TCSR_REG and TCSR register > + space followed by the two offsets within the syscon to force_clk_en/rscc_disable > + and axim1_clk_off/crypto_clk_off registers respectively. > + > + qcom,qaccept-regs: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + description: > + Phandle reference to a syscon representing TCSR followed by the > + three offsets within syscon for mdm, cx and axi qaccept registers. > + > + qcom,qmp: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: Reference to the AOSS side-channel message RAM. > + > + qcom,smem-states: > + $ref: /schemas/types.yaml#/definitions/phandle-array > + description: States used by the AP to signal the Hexagon core > + items: > + - description: Stop the modem > + > + qcom,smem-state-names: > + $ref: /schemas/types.yaml#/definitions/string For some reason you decided to make the same mistakes as the https://lore.kernel.org/all/20220511161602.117772-7-sireeshkodali1@gmail.com/ even though all other bindings with this property looks correct. Please, re-use existing bindings, do not reinvent things in incorrect way. I'll stop the review, you need to align first. What is weird, your v2 was before Sireesh's patch, and you both made the same mistakes which do not exist in current bindings. All comments from his set apply here. It seems that his patchset came after yours and copied stuff from your bindings, so yours would be FIFO, if you made proper binding conversion. Best regards, Krzysztof