Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2275249pxp; Mon, 7 Mar 2022 11:49:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUP58VmeUUCRBOXYLheb65Fx7Zy6L9rihaCVgN+CP+JdtFkVO8ny8fIGS4284I9qT1wol3 X-Received: by 2002:a05:6402:1387:b0:416:2747:266e with SMTP id b7-20020a056402138700b004162747266emr11049406edv.409.1646682560992; Mon, 07 Mar 2022 11:49:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646682560; cv=none; d=google.com; s=arc-20160816; b=pVG5WKXwarboZpFioGJ1uGZ3qWSwIGhrTuZHWVrUDGw7i9NB8Td8LLkA1xaEC9NVGm wdicqadzxkMhwXBrlPimhgVay+q3hXvAhtzA9KUl4ucQ+i8rB3hgTh6RFnIv4YUK8doz +A8Acr1SsCIAPyc3aPKXcbKzSRxmuImsCkaCsBitqWCep0T2jowZAFpe6Y6spa4g9Eqx RJez+0MoSxXLX//LOgEbdrbC30iJEg+kUg5Q6XesEKN2ZJra9RaC8jq2tgrNHnCp8vEz xS1wBHkdTJE0UiktjfxYYrcHVcHrsNB7EZsQgqgxEUGCiy5/1kB1feOn24tRDyVy7OZp dcnw== 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=X1MD5pHlAbnbnPImmhEg02VNFqeLp0wIprexgDJRTzI=; b=bP6e65c3sx6b8FwOTsBpkyvSQGTVWK6OKZlpiieGuJlXqAi2SeOBPswkSCSjEzjNit +wq3ouT3NREcAJGp9yMMtjtfGBqhcMrXcBT7J9lu7cQNMCHRsxJ9ooVTU+7LAVi9mH6d zpKyUTxN0d/3rQCR+eDKibi5tzbSC+zBSeOdq4uK17qKWhTFtmI8pXUjKk2CLIay5qx0 ClbazFJ6ax82hNPevuc1xQBJC6NMFS3h/pU7fLgAhzwUvcODM33nxqb79cldoN9QYXPv g4mAeQ7CeSX6JmWJZdNlqI9Qgu0NCS+4kU2STfq6trtpHtGYMcFFB03ur11JZIbSVeEq wvsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=RcxDLkw6; 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=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a170906520800b006b90c613be9si8146359ejm.321.2022.03.07.11.48.57; Mon, 07 Mar 2022 11:49:20 -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=@canonical.com header.s=20210705 header.b=RcxDLkw6; 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=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241988AbiCGLbV (ORCPT + 99 others); Mon, 7 Mar 2022 06:31:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238909AbiCGLbA (ORCPT ); Mon, 7 Mar 2022 06:31:00 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8206E289B1 for ; Mon, 7 Mar 2022 03:18:27 -0800 (PST) Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 3E0E33F1C9 for ; Mon, 7 Mar 2022 11:18:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646651906; bh=X1MD5pHlAbnbnPImmhEg02VNFqeLp0wIprexgDJRTzI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RcxDLkw65ELF4dMRytxRKYiu9GgiZ9/dUvK9SFvdw+JZc1B/x2Q7eb8JeX3SPdinD 3NnFI54fQWFt1awuKGFc7kJ8xoFtrICbZhAHg2gYlBVh5OxGu6Io5llZ8sqMYAR1A0 R5TgSvqsj2bluEwaAsmnw72FBvCtceQiIkerk3b3o7hZqkL0tK2KuDPMjEEValpj04 jEhrqoyF22nYmFlVOdw4uQPyzXSZ5NhD5iXziFZHxrSOS0Bt9ejbtOQhdDqo36/mrL Cc9Xxod83h4PhEjg8aeeMTjcHKv4AxFAvn3WF8Y+Z3S7kqzukKU9bye+Uzuf5y3rvH /ki7EdXhkqwyg== Received: by mail-ed1-f70.google.com with SMTP id bq19-20020a056402215300b0040f276105a4so8433068edb.2 for ; Mon, 07 Mar 2022 03:18:26 -0800 (PST) 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=X1MD5pHlAbnbnPImmhEg02VNFqeLp0wIprexgDJRTzI=; b=XzYx2xveGjWc95Cu1y32Ix1QuZpZDo8SoTs+sfEoUBZvHXjsEWVZwCCXADZVm1td70 DLD3r80+txnhPOq9726RCslTZBufg4nfGNywUTqopQosBy+DodphR2cYOgHz/nenpAmL +IENDb3RSePopcHfbaOf2ReFW+addHKc4WtF1VwRc/6UpmHMtKy53/ZOWjVhMCzUevv5 c9+ql/5ZznwP3qb7alMDeB+AUYo5NbfjBTO/oiFPi4oJ93FWszYkDiO++fpyzWLD+nqw wiZ50IDK2eBqMMiIBeZK43YlYPMajeBHjmUiPg1apGg1nV2ZcuPcgPokUj1WJVI1R2Vd kjjg== X-Gm-Message-State: AOAM5337xP8M0WF5Szn0Ntwsz1dzpziYEV3T1dx401Fgi1PnYw/vxOAA SILMr75Vmz6N6bHpMFetLrAgmAmBayP6p+GsctQG9jzDrwy5A+4EiKZOo3rXptvNfj/EEWbXpsY Elg+tj+ALxRwcFIWF+KDn2/vzTOAzlAQZg1GcdcbjZQ== X-Received: by 2002:a17:907:c012:b0:6d8:ec50:ef9b with SMTP id ss18-20020a170907c01200b006d8ec50ef9bmr8387607ejc.284.1646651905837; Mon, 07 Mar 2022 03:18:25 -0800 (PST) X-Received: by 2002:a17:907:c012:b0:6d8:ec50:ef9b with SMTP id ss18-20020a170907c01200b006d8ec50ef9bmr8387591ejc.284.1646651905618; Mon, 07 Mar 2022 03:18:25 -0800 (PST) Received: from [192.168.0.142] (xdsl-188-155-174-239.adslplus.ch. [188.155.174.239]) by smtp.gmail.com with ESMTPSA id l20-20020a1709062a9400b006ce71a88bf5sm4617071eje.183.2022.03.07.03.18.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Mar 2022 03:18:24 -0800 (PST) Message-ID: <73c49f2b-ef2e-5ed8-f3d5-aa696f9af9e6@canonical.com> Date: Mon, 7 Mar 2022 12:18:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 2/6] ASoC: dt-bindings: Document Microchip's PDMC Content-Language: en-US To: Codrin Ciubotariu , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: lars@metafoo.de, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, robh+dt@kernel.org, nicolas.ferre@microchip.com References: <20220307100428.2227511-1-codrin.ciubotariu@microchip.com> <20220307100428.2227511-3-codrin.ciubotariu@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20220307100428.2227511-3-codrin.ciubotariu@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 07/03/2022 11:04, Codrin Ciubotariu wrote: > Add DT bindings for the new Microchip PDMC embedded in sama7g5 SoCs. > > Signed-off-by: Codrin Ciubotariu > --- > > Changes in v2: > - renamed patch from 'ASoC: add DT bindings for Microchip PDMC' to > 'ASoC: dt-bindings: Document Microchip's PDMC'; > - renamed yaml file from 'mchp,pdmc.yaml' to 'microchip,pdmc.yaml'; > - used imperative mode in commit description; > - renamed mchp,pdmc.h to microchip,pdmc.h; > - fixed 'title' to represent HW; > - made 'compatible' first property; > - s/microhpone/microphone; > - none name in example set to 'sound'; > > .../bindings/sound/microchip,pdmc.yaml | 99 +++++++++++++++++++ > include/dt-bindings/sound/microchip,pdmc.h | 13 +++ > 2 files changed, 112 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/microchip,pdmc.yaml > create mode 100644 include/dt-bindings/sound/microchip,pdmc.h > > diff --git a/Documentation/devicetree/bindings/sound/microchip,pdmc.yaml b/Documentation/devicetree/bindings/sound/microchip,pdmc.yaml > new file mode 100644 > index 000000000000..edfa3cbd318e > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/microchip,pdmc.yaml > @@ -0,0 +1,99 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/microchip,pdmc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microchip Pulse Density Microphone Controller > + > +maintainers: > + - Codrin Ciubotariu > + > +description: > + The Microchip Pulse Density Microphone Controller (PDMC) interfaces up to 4 digital microphones > + having Pulse Density Modulated (PDM) outputs. This exceeds 80 characters. > + > +properties: > + compatible: > + const: microchip,sama7g5-pdmc > + > + "#sound-dai-cells": > + const: 0 > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + items: > + - description: Peripheral Bus Clock > + - description: Generic Clock > + > + clock-names: > + items: > + - const: pclk > + - const: gclk > + > + dmas: > + description: RX DMA Channel > + maxItems: 1 > + > + dma-names: > + const: rx > + > + microchip,mic-pos: > + description: | > + Position of PDM microphones on the DS line and the sampling edge (rising or falling) of the > + CLK line. A microphone is represented as a pair of DS line and the sampling edge. The first > + microphone is mapped to channel 0, the second to channel 1, etc. This is also too long, wrap at 80. > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + items: > + items: > + - description: value for DS line > + - description: value for sampling edge > + anyOf: > + - enum: > + - [0, 0] > + - [0, 1] > + - [1, 0] > + - [1, 1] > + minItems: 1 > + maxItems: 4 > + uniqueItems: true > + > +required: > + - compatible > + - "#sound-dai-cells" > + - reg > + - interrupts > + - clocks > + - clock-names > + - dmas > + - dma-names > + - microchip,mic-pos > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + #include > + > + pdmc: sound@e1608000 { > + compatible = "microchip,sama7g5-pdmc"; > + #sound-dai-cells = <0>; > + reg = <0xe1608000 0x4000>; In DTS sources: compatible then reg. I mentioned it in previous version. Best regards, Krzysztof