Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3488573pxv; Mon, 28 Jun 2021 05:49:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykhdacg3gyyS5xribK5n4wlwJ0JaSP+YCq/C588NgC1fn85Pd1B2r7+100FN8v1Epcyyjj X-Received: by 2002:a17:906:dc6:: with SMTP id p6mr24486018eji.283.1624884575899; Mon, 28 Jun 2021 05:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624884575; cv=none; d=google.com; s=arc-20160816; b=wkS/dgDlTONsY5U18+sbc0r6N4MR2pnCdgQYzQ+HdZMb/yH01EhUDHzceRvSJBVlLB rLMM9fSfOpw5VVJOuW/3gi6pRiecRlKDCUQHpljXDZxu0gu/HBj6/9MlSPouZfhWQsRG hGQUBoYLa0w6nC0Uc5w+szHYDupLdP7PRA56QHkMIc5DU6SZvTYDRZWWKNfstVZQ905e 8PXj+zJMqcORBIBK++N0h7C4l/ZfEhFd4bCnx2fWVl6E+ojz5xMWm6TegoOOBz4rRQbA 0ZV1rj+PnZuj8Rzaa86s+oh7G4b1yLliv+VWWO+OsoK5YcfLkw8K4VFbao7vxwk4fR96 xTQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=FGZcwoZwyPYceIqBEn/JL4z0fxH5zp8oJcvt5w3ABb4=; b=cfeUllshswC1CAOrWXamV8SJnWiT+A+pntYNuwIlVp4PybJYUzdOvIILotS/v4UOyN 1pdedkaG1RGRMMv6KObv2DYgwyOtIzhPkBn06mXURTfTzdtKdPQYpQTBXcffAR7DrhgI okdED/0xs0heIJecS+50dOwsg+Tbotu+ml2Sd/2McKOTMlTp6pz5HHjn8lWGlJgyYfrq aJGOAGNyQ5gx8kGN74rqY6CGkFoZPzFHD30ryH3oy+TaJUq8RFTMqtHpImLeBjWCA+FM SxFG5nLcjk64GFc+6bhlhBOG0aBZXPko6n0CMB1cn7UUmUD2UgYrQQp4hXXABPrS2BRC t0HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=XjUIgoto; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=TH3R+UNm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 12si13761901ejh.440.2021.06.28.05.49.11; Mon, 28 Jun 2021 05:49:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=XjUIgoto; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=TH3R+UNm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233015AbhF1MtI (ORCPT + 99 others); Mon, 28 Jun 2021 08:49:08 -0400 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:34451 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232889AbhF1MtD (ORCPT ); Mon, 28 Jun 2021 08:49:03 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 9569E58073B; Mon, 28 Jun 2021 08:46:37 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 28 Jun 2021 08:46:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=FGZcwoZwyPYceIqBEn/JL4z0fxH 5zp8oJcvt5w3ABb4=; b=XjUIgotobppm/S2dYlC7NoZCJ/kNNH0oSeeon95yHoB H9MShuY7w68ElblP8T8S1w7sEfRA1EYmMBGLD9ukAEbNEHH6ba24/RfkjfqvUK7t XOvKskUlGp3k1hsJWVZv75Tt/rhYAm/vj2itcFPiLNuxQxTn5EZAzuxW25krnkQU oLmlnh4qwobducCXpO/lpEtO2QE62N0wLGWGeJdo0nAasd5UJJ4gOIgI2nTR3xoh zkC1xOcEiT7rq6mcEgWaIIy0yPpnRQQSDb5SVhnWWKJE+UmS60lBV3xv4p1XNfuk +QqFIMhz4Osbcgi8du6Mt8NQq7k8PcSjQoKMnI8MqqQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=FGZcwo ZwyPYceIqBEn/JL4z0fxH5zp8oJcvt5w3ABb4=; b=TH3R+UNmoK5PEOZO0SEp/9 NiyHWqi6Z9WkqJHlk3iZ9Cyatb64kvA42MRX1STlR8cAvlQKHFiBD4grIKs8nGUM KCHQK9IgD0RfvIo85eYwgwJ9EfW2C1rT3Khb+iVOUp+sSILxN2cQYSxxcyHleXzd 6YpI04UCgALJtfoBE4Pk/nkld56HRobKfYY0xrEOWPffHrkzuWbu808Cl6IGo23l OgTtd8+lwfgAEgWnLLv+zY/8UkAJKEPwBhiUdUQFUugLsomXRB7fEL7OI+LRbSoC JaVhxa04zZkRyQE+aTlfEnySfIJGwVD+YJImqofDcG5OeYtpINcbOKCiKGowlpzQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeehgedgheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesghdtre ertddtvdenucfhrhhomhepofgrgihimhgvucftihhprghrugcuoehmrgigihhmvgestggv rhhnohdrthgvtghhqeenucggtffrrghtthgvrhhnpeffteetveeijeetuefhffegkeetgf fhieelheehtdduudethffhjedtvddtudelvdenucffohhmrghinhepuggvvhhitggvthhr vggvrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Jun 2021 08:46:36 -0400 (EDT) Date: Mon, 28 Jun 2021 14:46:34 +0200 From: Maxime Ripard To: fengzheng923@gmail.com Cc: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, wens@csie.org, jernej.skrabec@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] ASoC: sun50i-dmic: dt-bindings: add DT bindings for DMIC controller Message-ID: <20210628124634.radw3ywstfdl2fqw@gilmour> References: <20210625090721.6183-1-fengzheng923@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ersryph7t25vlhha" Content-Disposition: inline In-Reply-To: <20210625090721.6183-1-fengzheng923@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ersryph7t25vlhha Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 25, 2021 at 05:07:21AM -0400, fengzheng923@gmail.com wrote: > From: Ban Tao >=20 > DT binding documentation for this new ASoC driver. >=20 > Signed-off-by: Ban Tao > Reviewed-by: Rob Herring >=20 > --- > v1->v2: > 1.Fix some build errors. > --- > v2->v3: > 1.Fix some build errors. > --- > v3->v4: > 1.None. > --- > .../sound/allwinner,sun50i-h6-dmic.yaml | 68 +++++++++++++++++++ > 1 file changed, 68 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/allwinner,sun= 50i-h6-dmic.yaml >=20 > diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-= dmic.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmi= c.yaml > new file mode 100644 > index 000000000000..d9107685b78d > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmic.ya= ml > @@ -0,0 +1,68 @@ > +# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/allwinner,sun50i-h6-dmic.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Allwinner H6 DMIC Device Tree Bindings > + > +maintainers: > + - Ban Tao > + > +properties: > + "#sound-dai-cells": > + const: 0 > + > + compatible: > + const: allwinner,sun50i-h6-dmic > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: Bus Clock > + - description: Module Clock > + > + clock-names: > + items: > + - const: bus > + - const: mod > + > + dmas: > + items: > + - description: RX DMA Channel > + > + dma-names: > + items: > + - const: rx > + > + resets: > + maxItems: 1 > + > +required: > + - "#sound-dai-cells" > + - compatible > + - reg > + - clocks > + - clock-names > + - dmas > + - dma-names > + - resets > + > +additionalProperties: false > + > +examples: > + - | > + dmic: dmic@5095000 { > + #sound-dai-cells =3D <0>; > + compatible =3D "allwinner,sun50i-h6-dmic"; > + reg =3D <0x05095000 0x400>; > + clocks =3D <&ccu 101>, <&ccu 100>; > + clock-names =3D "bus", "mod"; > + dmas =3D <&dma 7>; > + dma-names =3D "rx"; > + resets =3D <&ccu 42>; > + }; You can keep the clock and reset indices, it's more readable that way, you just have to add the headers dt-bindings/clock/sun50i-h6-ccu.h and dt-bindings/reset/sun50i-h6-ccu.h like what Documentation/devicetree/bindings/iommu/allwinner,sun50i-h6-iommu.yaml is doing. Also, this controller has an interrupt. Even if the driver doesn't use it it should be in the binding. Maxime --ersryph7t25vlhha Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYNnEqgAKCRDj7w1vZxhR xae2AP4qPv9ltkegaT6Rdk9GGRXJUgBLvDbFtsYo+bDb8jTrGwD/S+Pb9PvRC7ey moBzsqtqHcl2FG/ce2wg5N3rQ9f7EwU= =c0fk -----END PGP SIGNATURE----- --ersryph7t25vlhha--