Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7449186rwl; Tue, 10 Jan 2023 00:34:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXtLEGd9+DjghZpncj8uvNf0vAhp5M6wxBSmk9DvPyvd0QDx3u0aLh1fVwEpsuCidyNsgKU1 X-Received: by 2002:a17:906:edd6:b0:84d:138a:316 with SMTP id sb22-20020a170906edd600b0084d138a0316mr14565200ejb.36.1673339684291; Tue, 10 Jan 2023 00:34:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673339684; cv=none; d=google.com; s=arc-20160816; b=lemmk74IapcANbRFWi7wxW2aNUjcgih92IHsqUBCAPQtbw1tS04+0GQkFIjXWx+oI0 cqNRvfRKR2l/9SJ759Q0S66S3zoKgFP3MyyI18QMa16EvFqsayK6wr+EY8SoxTxdIaH1 xH7obWP+F+4JoVip+OU9oDFCM11HyudF9YWhDKtjGXLmOENJuFj7ScKE6YSCHhJc/Snp ++hIk/vi1QoryS7IKGEpKV2nOxh85qbDaTxTCCt1P9q3pvgNdDA4nqL0QwyHfP7v+Jjr zkM/smibig1OveQwy/4lNeA5Be8/hMOs1D3RvtMtdw9CtbTSVX7yR1/O9YN+qNNPM1+O DjFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=7tanCnt41dmd3a1gqbCEA0TYYO9/oTjI6yAv4OQDOAo=; b=I/K4HKYrO7kwSnRHWl5aSev5RdjD3BgNxF3x+aWjg874KSHBhwvo/8n9CdccKoLJ1i CEYmrmFsD67jfXeXZfAQ23G28OXH4lDpTCid9SC+Jk8r/HKr0I8cx82fTaOMQeY3l126 aFDpu5+d3Lh19r/2EfJMUI3wsnnorDZp/hvACtGm/vHayeZHuvU548tarIdWzfxXdE9z iqBb37rqcIIEYO1Kl6Bv0Wq4Wz249FlFtyzPxnckIEerY32IsRwByj6KHnKZCxuMHck/ xmK0ghObxtxo0lLVYFKfWJ1g+cgc/A1t/Ch76PamCNc159kTPpvWg0CuWMuq2wemNZnC OMBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=O1Opaji6; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a056402271200b0048ec0e2d277si13791282edd.618.2023.01.10.00.34.31; Tue, 10 Jan 2023 00:34:44 -0800 (PST) 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=@bootlin.com header.s=gm1 header.b=O1Opaji6; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbjAJIHR (ORCPT + 53 others); Tue, 10 Jan 2023 03:07:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235654AbjAJIG6 (ORCPT ); Tue, 10 Jan 2023 03:06:58 -0500 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CE6843E56; Tue, 10 Jan 2023 00:06:57 -0800 (PST) Received: (Authenticated sender: herve.codina@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 3D5F824000B; Tue, 10 Jan 2023 08:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1673338015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7tanCnt41dmd3a1gqbCEA0TYYO9/oTjI6yAv4OQDOAo=; b=O1Opaji665s44TE1LAeK3X1D4fYZJDuZSpYGeI1q8gABik0Z1kaEh03swno0937SJj0yue 74GZCclMht4rcz4psoZvlBrAchwISnRoslZZufPnjF5IrvTUhHz2LldITerMDLfGFUgTms vHXaY1Ki1l23UicholMhpxt39CFMdnggwaNe0ljcsOiKVXKdvXP2KpthwiBLx9AG+xADXI wI6theO2IKhw2keeah0YYzKanAJEVpCPQbhCl2DFoZDmnrFIHdKhbfqupQ7yd24kqen1xf RUnZhIVGv4EnLnguFl4GNBxmLEakSSnAOCuv1ahzmgXZYkitFZFF9fqzE/f3GA== Date: Tue, 10 Jan 2023 09:06:50 +0100 From: Herve Codina To: Krzysztof Kozlowski Cc: Li Yang , Rob Herring , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Christophe Leroy , Michael Ellerman , Nicholas Piggin , Qiang Zhao , Jaroslav Kysela , Takashi Iwai , Shengjiu Wang , Xiubo Li , Fabio Estevam , Nicolin Chen , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Thomas Petazzoni Subject: Re: [PATCH v2 05/10] dt-bindings: soc: fsl: cpm_qe: Add QMC controller Message-ID: <20230110090650.2138edf0@bootlin.com> In-Reply-To: <76077f5f-fbda-800b-b8d8-6a3f6600f4d1@linaro.org> References: <20230106163746.439717-1-herve.codina@bootlin.com> <20230106163746.439717-6-herve.codina@bootlin.com> <76077f5f-fbda-800b-b8d8-6a3f6600f4d1@linaro.org> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 Hi Krzysztof, On Sun, 8 Jan 2023 16:14:47 +0100 Krzysztof Kozlowski wrote: [...] > > + > > + interrupts: > > + description: SCC interrupt line in the CPM interrupt controller =20 >=20 > Missing constraints. 'maxItems: 1' will be added in v3 >=20 > > + > > + fsl,cpm-command: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + description: Cf. soc/fsl/cpm_qe/cpm.txt =20 >=20 > Missing description. 'fsl,cpm-command' will be removed in v3. The value needed is determined based on other information. This is not needed in the DT. >=20 > > + > > + tsa: > > + $ref: /schemas/types.yaml#/definitions/phandle > > + description: phandle to the TSA =20 >=20 > Missing vendor prefix. Does not look like a generic property. Will be be changed to 'fsl,tsa' and also 'tsa-cell-id' will be changed to 'fsl,tsa-cell-id' >=20 [...] > > + > > +patternProperties: > > + "^channel@([0-9]|[1-5][0-9]|6[0-3])$": > > + description: > > + A channel managed by this controller > > + type: object > > + > > + properties: > > + reg: > > + minimum: 0 > > + maximum: 63 > > + description: > > + The channel number > > + > > + fsl,mode: > > + $ref: /schemas/types.yaml#/definitions/string > > + enum: [transparent, hdlc] > > + default: transparent > > + description: Operational mode =20 >=20 > And what do they mean? I will change with description: | The channel operational mode - hdlc: The channel handles HDLC frames - transparent: The channel handles raw data without any processing >=20 > > + > > + fsl,reverse-data: > > + $ref: /schemas/types.yaml#/definitions/flag > > + description: > > + The bit order as seen on the channels is reversed, > > + transmitting/receiving the MSB of each octet first. > > + This flag is used only in 'transparent' mode. > > + > > + tx-ts-mask: =20 >=20 > Missing vendor prefix. Will be added, also on rx-ts-mask. >=20 > > + $ref: /schemas/types.yaml#/definitions/uint64 > > + description: > > + Channel assigned Tx time-slots within the Tx time-slots rout= ed > > + by the TSA to this cell. > > + > > + rx-ts-mask: > > + $ref: /schemas/types.yaml#/definitions/uint64 > > + description: > > + Channel assigned Rx time-slots within the Rx time-slots rout= ed > > + by the TSA to this cell. > > + > > + required: > > + - reg > > + - tx-ts-mask > > + - rx-ts-mask > > + > > +required: > > + - compatible > > + - reg > > + - reg-names > > + - interrupts > > + - tsa > > + - tsa-cell-id > > + - '#address-cells' > > + - '#size-cells' > > + - '#chan-cells' > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + > > + scc_qmc@a60 { =20 >=20 > No underscores in node names. >=20 > Node names should be generic. > https://devicetree-specification.readthedocs.io/en/latest/chapter2-device= tree-basics.html#generic-names-recommendation Will be changed to qmc@a60 >=20 > > + compatible =3D "fsl,mpc885-scc-qmc", "fsl,cpm1-scc-qmc"; > > + reg =3D <0xa60 0x20>, > > + <0x3f00 0xc0>, > > + <0x2000 0x1000>; > > + reg-names =3D "scc_regs", "scc_pram", "dpram"; > > + interrupts =3D <27>; > > + interrupt-parent =3D <&CPM_PIC>; > > + fsl,cpm-command =3D <0xc0>; > > + > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + #chan-cells =3D <1>; > > + > > + tsa =3D <&tsa>; > > + tsa-cell-id =3D ; > > + > > + channel@16 { > > + /* Ch16 : First 4 even TS from all routed from TSA */ > > + reg =3D <16>; > > + fsl,mode =3D "transparent"; > > + fsl,reverse-data; > > + tx-ts-mask =3D <0x00000000 0x000000AA>; > > + rx-ts-mask =3D <0x00000000 0x000000AA>; =20 >=20 > Keep case consistent. lower-case hex. Will be fixed >=20 > Best regards, > Krzysztof >=20 Thanks for the review, Best regards, Herv=C3=A9 --=20 Herv=C3=A9 Codina, Bootlin Embedded Linux and Kernel engineering https://bootlin.com