1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 2 # Copyright (C) 2020 Texas Instruments Incorpo 3 # Author: Peter Ujfalusi <peter.ujfalusi@ti.com 4 %YAML 1.2 5 --- 6 $id: http://devicetree.org/schemas/sound/ti,j7 7 $schema: http://devicetree.org/meta-schemas/co 8 9 title: Texas Instruments J721e Common Processo 10 11 maintainers: 12 - Peter Ujfalusi <peter.ujfalusi@gmail.com> 13 14 description: | 15 The audio support on the board is using pcm3 16 serializers in parallel setup. 17 The pcm3168a SCKI clock is sourced from j721 18 In order to support 48KHz and 44.1KHz family 19 clock for AUDIO_REFCLK2 needs to be changed 20 PLL15 (for 44.1KHz). The same PLLs are used 21 different HSDIVIDER. 22 23 Clocking setup for j721e: 24 48KHz family: 25 PLL4 ---> PLL4_HSDIV0 ---> MCASP10_AUXCLK 26 |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2 27 28 44.1KHz family: 29 PLL15 ---> PLL15_HSDIV0 ---> MCASP10_AUXCL 30 |-> PLL15_HSDIV2 ---> AUDIO_REFCLK2 31 32 Clocking setup for j7200: 33 48KHz family: 34 PLL4 ---> PLL4_HSDIV0 ---> MCASP0_AUXCLK - 35 |-> PLL4_HSDIV2 ---> AUDIO_REFCLK2 36 37 properties: 38 compatible: 39 enum: 40 - ti,j721e-cpb-audio 41 - ti,j7200-cpb-audio 42 43 model: 44 $ref: /schemas/types.yaml#/definitions/str 45 description: User specified audio sound ca 46 47 ti,cpb-mcasp: 48 description: phandle to McASP used on CPB 49 $ref: /schemas/types.yaml#/definitions/pha 50 51 ti,cpb-codec: 52 description: phandle to the pcm3168a codec 53 $ref: /schemas/types.yaml#/definitions/pha 54 55 clocks: 56 minItems: 4 57 maxItems: 6 58 59 clock-names: 60 minItems: 4 61 maxItems: 6 62 63 required: 64 - compatible 65 - model 66 - ti,cpb-mcasp 67 - ti,cpb-codec 68 - clocks 69 - clock-names 70 71 additionalProperties: false 72 73 allOf: 74 - if: 75 properties: 76 compatible: 77 contains: 78 const: ti,j721e-cpb-audio 79 80 then: 81 properties: 82 clocks: 83 items: 84 - description: AUXCLK clock for Mc 85 - description: Parent for CPB_McAS 86 - description: Parent for CPB_McAS 87 - description: SCKI clock for the 88 - description: Parent for CPB_SCKI 89 - description: Parent for CPB_SCKI 90 91 clock-names: 92 items: 93 - const: cpb-mcasp-auxclk 94 - const: cpb-mcasp-auxclk-48000 95 - const: cpb-mcasp-auxclk-44100 96 - const: cpb-codec-scki 97 - const: cpb-codec-scki-48000 98 - const: cpb-codec-scki-44100 99 100 - if: 101 properties: 102 compatible: 103 contains: 104 const: ti,j7200-cpb-audio 105 106 then: 107 properties: 108 clocks: 109 items: 110 - description: AUXCLK clock for Mc 111 - description: Parent for CPB_McAS 112 - description: SCKI clock for the 113 - description: Parent for CPB_SCKI 114 115 clock-names: 116 items: 117 - const: cpb-mcasp-auxclk 118 - const: cpb-mcasp-auxclk-48000 119 - const: cpb-codec-scki 120 - const: cpb-codec-scki-48000 121 122 examples: 123 - |+ 124 sound { 125 compatible = "ti,j721e-cpb-audio"; 126 model = "j721e-cpb"; 127 128 ti,cpb-mcasp = <&mcasp10>; 129 ti,cpb-codec = <&pcm3168a_1>; 130 131 clocks = <&k3_clks 184 1>, 132 <&k3_clks 184 2>, <&k3_clks 1 133 <&k3_clks 157 371>, 134 <&k3_clks 157 400>, <&k3_clks 135 clock-names = "cpb-mcasp-auxclk", 136 "cpb-mcasp-auxclk-48000" 137 "cpb-codec-scki", 138 "cpb-codec-scki-48000", 139 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.