Rockchip PDM controller

Schema identifier ($id): "http://devicetree.org/schemas/sound/rockchip,pdm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Pulse Density Modulation Interface Controller (PDMC) is a PDM interface controller and decoder that support PDM format. It integrates a clock generator driving the PDM microphone and embeds filters which decimate the incoming bit stream to obtain most common audio rates.

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,pdm", "rockchip,px30-pdm", "rockchip,rk1808-pdm", "rockchip,rk3308-pdm", "rockchip,rk3568-pdm", "rockchip,rv1126-pdm"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

clock for PDM controller

Item 2

clock for PDM BUS

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "pdm_clk"

Item 2

Exact value (const): "pdm_hclk"

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Array item rules (items) #

Item 1

reset for PDM controller

reset-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "pdm-m"

rockchip,path-map — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Defines the mapping of PDM SDIx to PDM PATHx. By default, they are mapped one-to-one.

Maximum number of items (maxItems): 4

Items must be unique (uniqueItems): true

Array item rules (items) #

Allowed values (enum): 0, 1, 2, 3

#sound-dai-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "dmas", "dma-names", "#sound-dai-cells"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3328-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/rockchip.h>

bus {
    #address-cells = <2>;
    #size-cells = <2>;

    pdm@ff040000 {
        compatible = "rockchip,pdm";
        reg = <0x0 0xff040000 0x0 0x1000>;
        interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&cru SCLK_PDM>, <&cru HCLK_PDM>;
        clock-names = "pdm_clk", "pdm_hclk";
        dmas = <&dmac 16>;
        dma-names = "rx";
        #sound-dai-cells = <0>;
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&pdmm0_clk
                     &pdmm0_sdi0
                     &pdmm0_sdi1
                     &pdmm0_sdi2
                     &pdmm0_sdi3>;
        pinctrl-1 = <&pdmm0_clk_sleep
                     &pdmm0_sdi0_sleep
                     &pdmm0_sdi1_sleep
                     &pdmm0_sdi2_sleep
                     &pdmm0_sdi3_sleep>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page