Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1021063ybv; Thu, 20 Feb 2020 11:34:46 -0800 (PST) X-Google-Smtp-Source: APXvYqzhb1jkQY2XoMv51de5PK5Gh298Vwz2DSAXc1nLsHt2kMKBk6ehHK6b1IX94aQSoRKONAaB X-Received: by 2002:a9d:7a56:: with SMTP id z22mr23489886otm.201.1582227286234; Thu, 20 Feb 2020 11:34:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582227286; cv=none; d=google.com; s=arc-20160816; b=oIVUkLVGrcgGHF4ulPnnxVSsVstbzSvgbavu9FTDRPQjIzTzixsK5hd8Tu9/+WS/pW G0SQNH//C2JHV1L9RfstSXkbThx6wVyYmH2X5AbjtAXjz4nheJLHtyn7CqJs4+GhNzF2 /fJUXKYsWfkZ3Vj2Wabcv9ZXrsaw7mW92+c4TgiEVbe23jX5ieQnI9TQ76/ALTbdJjSQ /H/HUP8XzApjVw3dEH5hyhgyoAqlWXctOAiTCvbLg2wHbvEWaEoIXRqPVsW1cLCLx6Gq 2WP3ft5dx/XgPB3lr52onuFdMwgy77JLme8fkA2xyjyTgtScGX5sfNwGPSEePPZftXJ7 ETVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=F0Cy0Vy+jBqvUUHtbtw+hW+S8I/87EQbSDTyPFMtb5A=; b=Bj1CY5eolDLvjq8oqVbRPvwfv/cYgJJVG8kvlRWj1fEApxG27uwPW7Lpd++NFyFr7D QMF0twFhVFEUuJqx/NTe1ccezs2fHrxEGsprWk4AapGWOUAJ2XPeNFbGaboxxoFIWlDY WFcr0awemXfDn56qedr0xQu2uC727ING+PlrsjucZFte2vlsrAQNBKWrX+EA1DMr1chz ZsJ9cGNrfCZwPKjPNxxSXsOMhdfByfJDXOksoS2D4u1NqZms2Y4nRsPZ1HqKtXZhWNC7 6azrTtnXi+sf8jan/deNaU/1qxFSkgGTanMc2C0xLscseE1Uy0tGLpnWxuO+Z/sSwYEf mCSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qxTA3Vvx; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si180936otp.108.2020.02.20.11.34.33; Thu, 20 Feb 2020 11:34:46 -0800 (PST) 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=@kernel.org header.s=default header.b=qxTA3Vvx; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728932AbgBTTeK (ORCPT + 99 others); Thu, 20 Feb 2020 14:34:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:38384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728248AbgBTTeJ (ORCPT ); Thu, 20 Feb 2020 14:34:09 -0500 Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9ACBC24673; Thu, 20 Feb 2020 19:34:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582227248; bh=uJ4t90MUcm2Rs3FUpUGNuH1fKRXquVW7B2vhx0KhfMc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qxTA3VvxXPxLF8Z2nqApQ9qHnQdlmBUcFu3dBI0dKwcTOaHsUssHFCENSeiXExcMD RztnMpZQh2syWiSgH59T3s9impKBC0BYqa/3jxG6aPRhopVYSQyVxqFSQeXw9sB5Gc 52LzkLvlE5/o6kPHHuoHnRLL2A5GrRTJATosoAXc= Received: by mail-qt1-f172.google.com with SMTP id t13so3745164qto.3; Thu, 20 Feb 2020 11:34:08 -0800 (PST) X-Gm-Message-State: APjAAAX/LRx38IbhQIKeeLsiD/+nmBIICv0S9+Ir7ZAoF2D9rLxlMtgZ GEM5bWhJPcCuRiARIFAFA96/9mA63aRVw91wBQ== X-Received: by 2002:ac8:5513:: with SMTP id j19mr28394295qtq.143.1582227247582; Thu, 20 Feb 2020 11:34:07 -0800 (PST) MIME-Version: 1.0 References: <87d0ahzr9d.wl-kuninori.morimoto.gx@renesas.com> <20200219161732.GB25095@bogus> <874kvmt355.wl-kuninori.morimoto.gx@renesas.com> In-Reply-To: <874kvmt355.wl-kuninori.morimoto.gx@renesas.com> From: Rob Herring Date: Thu, 20 Feb 2020 13:33:56 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] ASoC: dt-bindings: renesas,rsnd: switch to yaml base Documentation To: Kuninori Morimoto Cc: Liam Girdwood , Mark Brown , Mark Rutland , Linux-ALSA , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 8:16 PM Kuninori Morimoto wrote: > > > Hi Rob > > Thank you for your review > > > > From: Kuninori Morimoto > > > > > > This patch switches from .txt base to .yaml base Document. > > > It is still keeping detail explanations at .txt > > > > > > Signed-off-by: Kuninori Morimoto > > > --- > (snip) > > > + compatible: > > > + oneOf: > > > + # for Gen1 SoC > > > + - items: > > > + - enum: > > > > nit: Should be indented 2 more spaces. > > I couldn't understand this. > Do you mean like this ?? > > compatible: > oneOf: > # for Gen1 SoC > - items: > => - enum: Yes. > > > > + clock-frequency: > > > + description: for audio_clkout0/1/2/3 > > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > > > This already has a common definition and this conflicts with that. > > 'clock-frequency' is a single uint32 or uint64. > > This needs clock array. Like this > > clock-frequency = <12288000 11289600>; Sorry, but the type is already defined in the spec. You'll still get warnings from the common schema and you can't override that here. Not sure what to suggest. Leave it with a fixme or move to assigned-clocks-rates instead? > > > + # For OF-graph > > > + port: > > > + description: OF-Graph subnode > > > + type: object > > > + properties: > > > + reg: > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > > > No unit-address for 'port', so you don't need 'reg' here. > > But I got warning without reg ? Yeah, because of your $ref from ports. > And, renesas,rsnd and/or simple-card sometimes needs reg for port > to handle sound path. > > > > + # For multi OF-graph > > > + ports: > > > + description: multi OF-Graph subnode > > > + type: object > > > + patternProperties: > > > + "port(@.*)?": > > > > ^port(@[0-9a-f])?$" > > > > Perhaps there's max number of ports that's less than 0xf? > > > > > + $ref: "#properties/port" > > > > Would be more simple to just always have 'ports'. > > Having "ports" or "port" are case-by-case, not always. Why? This: port {}; and this: ports { port {}; }; Are treated the same. It's perfectly valid to have 'ports' with a single port. Rob