1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/rockchip,rk3328-codec.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Rockchip rk3328 internal codec 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Heiko Stuebner <heiko@sntech.de> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotproperties: 13c66ec88fSEmmanuel Vadot compatible: 14c66ec88fSEmmanuel Vadot const: rockchip,rk3328-codec 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadot reg: 17c66ec88fSEmmanuel Vadot maxItems: 1 18c66ec88fSEmmanuel Vadot 19c66ec88fSEmmanuel Vadot clocks: 20c66ec88fSEmmanuel Vadot items: 21c66ec88fSEmmanuel Vadot - description: clock for audio codec 22c66ec88fSEmmanuel Vadot - description: clock for I2S master clock 23c66ec88fSEmmanuel Vadot 24c66ec88fSEmmanuel Vadot clock-names: 25c66ec88fSEmmanuel Vadot items: 26c66ec88fSEmmanuel Vadot - const: pclk 27c66ec88fSEmmanuel Vadot - const: mclk 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot rockchip,grf: 30c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 31c66ec88fSEmmanuel Vadot description: 32c66ec88fSEmmanuel Vadot The phandle of the syscon node for the GRF register. 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot spk-depop-time-ms: 35c66ec88fSEmmanuel Vadot default: 200 36c66ec88fSEmmanuel Vadot description: 37c66ec88fSEmmanuel Vadot Speaker depop time in msec. 38c66ec88fSEmmanuel Vadot 39c66ec88fSEmmanuel Vadot mute-gpios: 40c66ec88fSEmmanuel Vadot maxItems: 1 41c66ec88fSEmmanuel Vadot description: 42c66ec88fSEmmanuel Vadot GPIO specifier for external line driver control (typically the 43c66ec88fSEmmanuel Vadot dedicated GPIO_MUTE pin) 44c66ec88fSEmmanuel Vadot 45c66ec88fSEmmanuel Vadot "#sound-dai-cells": 46c66ec88fSEmmanuel Vadot const: 0 47c66ec88fSEmmanuel Vadot 48c66ec88fSEmmanuel Vadotrequired: 49c66ec88fSEmmanuel Vadot - compatible 50c66ec88fSEmmanuel Vadot - reg 51c66ec88fSEmmanuel Vadot - clocks 52c66ec88fSEmmanuel Vadot - clock-names 53c66ec88fSEmmanuel Vadot - rockchip,grf 54c66ec88fSEmmanuel Vadot - "#sound-dai-cells" 55c66ec88fSEmmanuel Vadot 56*6be33864SEmmanuel VadotadditionalProperties: false 57*6be33864SEmmanuel Vadot 58c66ec88fSEmmanuel Vadotexamples: 59c66ec88fSEmmanuel Vadot - | 60c66ec88fSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 61c66ec88fSEmmanuel Vadot #include <dt-bindings/clock/rk3328-cru.h> 62c66ec88fSEmmanuel Vadot codec: codec@ff410000 { 63c66ec88fSEmmanuel Vadot compatible = "rockchip,rk3328-codec"; 64c66ec88fSEmmanuel Vadot reg = <0xff410000 0x1000>; 65c66ec88fSEmmanuel Vadot clocks = <&cru PCLK_ACODECPHY>, <&cru SCLK_I2S1>; 66c66ec88fSEmmanuel Vadot clock-names = "pclk", "mclk"; 67c66ec88fSEmmanuel Vadot rockchip,grf = <&grf>; 68c66ec88fSEmmanuel Vadot mute-gpios = <&grf_gpio 0 GPIO_ACTIVE_LOW>; 69c66ec88fSEmmanuel Vadot spk-depop-time-ms = <100>; 70c66ec88fSEmmanuel Vadot #sound-dai-cells = <0>; 71c66ec88fSEmmanuel Vadot }; 72