From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Xingyu Wu <xingyu.wu@starfivetech.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Takashi Iwai <tiwai@suse.com>,
Jaroslav Kysela <perex@perex.cz>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor.dooley@microchip.com>
Cc: Walker Chen <walker.chen@starfivetech.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
alsa-devel@alsa-project.org, linux-sound@vger.kernel.org
Subject: Re: [PATCH v1 1/2] dt-bindings: ASoC: Add PDM controller for the StarFive JH8100 SoC
Date: Thu, 7 Mar 2024 08:59:31 +0100 [thread overview]
Message-ID: <0b92700a-cf79-4f1c-986a-d18fe0151bb8@linaro.org> (raw)
In-Reply-To: <20240307033708.139535-2-xingyu.wu@starfivetech.com>
On 07/03/2024 04:37, Xingyu Wu wrote:
> Add bindings for the PDM controller for the StarFive JH8100 SoC.
Please use subject prefixes matching the subsystem. You can get them for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching.
>
> Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
> ---
> .../bindings/sound/starfive,jh8100-pdm.yaml | 84 +++++++++++++++++++
> 1 file changed, 84 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/starfive,jh8100-pdm.yaml
>
> diff --git a/Documentation/devicetree/bindings/sound/starfive,jh8100-pdm.yaml b/Documentation/devicetree/bindings/sound/starfive,jh8100-pdm.yaml
> new file mode 100644
> index 000000000000..a91b47d39ad3
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/sound/starfive,jh8100-pdm.yaml
> @@ -0,0 +1,84 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/sound/starfive,jh8100-pdm.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: StarFive JH8100 PDM controller
> +
> +description: |
> + The Pulse Density Modulation (PDM) controller is a digital PDM out
> + microphone interface controller and decoder that supports both
> + mono/stereo PDM format, and an Inter-IC Sound (I2S) transmitter that
> + outputs standard stereo audio data to another device. The I2S transmitter
> + can be configured to operate either a master or a slave (default mode).
> + The PDM controller includes two PDM modules, each PDM module can drive
> + one bitstream sampling clock and two bitstream coming data with sampling
> + clock rising and falling edge.
> +
> +maintainers:
> + - Xingyu Wu <xingyu.wu@starfivetech.com>
> + - Walker Chen <walker.chen@starfivetech.com>
> +
> +properties:
> + compatible:
> + const: starfive,jh8100-pdm
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: DMIC output clock
> + - description: Main ICG clock
> +
> + clock-names:
> + items:
> + - const: dmic
> + - const: icg
> +
> + resets:
> + maxItems: 1
> +
> + starfive,syscon:
> + $ref: /schemas/types.yaml#/definitions/phandle-array
> + items:
> + - items:
> + - description: phandle to System Register Controller sys_syscon_ne node.
> + - description: PDM source enabled control offset of SYS_SYSCON_NE register.
> + - description: PDM source enabled control mask
> + description:
> + The phandle to System Register Controller syscon node and the PDM source
> + from I2S enabled control offset and mask of SYS_SYSCON_NE register.
> +
> + starfive,pdm-modulex:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [0, 1]
> + description:
> + The module x will be using in PDM controller. Default use module 0.
This is an index of the block instance? If so, then it's not allowed.
Otherwise I don't understand the description.
Anyway, don't repeat constraints in free form text. default: 0, if this
is going to stay.
> +
> + "#sound-dai-cells":
> + const: 0
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - clock-names
> + - resets
> + - starfive,syscon
> +
> +unevaluatedProperties: false
This is wrong without $ref, which points you to missing $ref to dai-common.
> +
> +examples:
> + - |
> + pdm@12250000 {
> + compatible = "starfive,jh8100-pdm";
> + reg = <0x12250000 0x1000>;
> + clocks = <&syscrg_ne 142>,
> + <&syscrg_ne 171>;
> + clock-names = "dmic", "icg";
> + resets = <&syscrg_ne 44>;
> + starfive,syscon = <&sys_syscon_ne 0xC 0xFF>;
Lowercase hex only.
> + #sound-dai-cells = <0>;
> + };
Best regards,
Krzysztof
next prev parent reply other threads:[~2024-03-07 7:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-07 3:37 [PATCH v1 0/2] Add PDM controller for " Xingyu Wu
2024-03-07 3:37 ` [PATCH v1 1/2] dt-bindings: ASoC: Add PDM controller for the " Xingyu Wu
2024-03-07 7:59 ` Krzysztof Kozlowski [this message]
2024-03-08 7:49 ` 回复: " Xingyu Wu
2024-03-08 7:51 ` Krzysztof Kozlowski
2024-03-08 9:19 ` 回复: " Xingyu Wu
2024-03-08 10:05 ` Krzysztof Kozlowski
2024-03-07 3:37 ` [PATCH v1 2/2] ASoC: starfive: Add PDM controller support Xingyu Wu
2024-03-07 12:52 ` Mark Brown
2024-03-08 8:45 ` 回复: " Xingyu Wu
2024-03-08 12:35 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0b92700a-cf79-4f1c-986a-d18fe0151bb8@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=robh+dt@kernel.org \
--cc=tiwai@suse.com \
--cc=walker.chen@starfivetech.com \
--cc=xingyu.wu@starfivetech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®