Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: Add Rockchip rk817 audio CODEC support

Create dt-binding documentation to document rk817 codec.
New property name of rockchip,mic-in-differential added to control if
the microphone is in differential mode or not.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Tested-by: Maciej Matuszczyk <maccraft123mc@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Chris Morgan and committed by
Lee Jones
437faaa6 0d6a04da

+188
+188
Documentation/devicetree/bindings/mfd/rk808.txt
··· 23 23 default output clock name 24 24 - rockchip,system-power-controller: Telling whether or not this pmic is controlling 25 25 the system power. 26 + - wakeup-source: Device can be used as a wakeup source. 26 27 27 28 Optional RK805 properties: 28 29 - vcc1-supply: The input supply for DCDC_REG1 ··· 64 63 - vcc9-supply: The input supply for DCDC_REG5, SWITCH_REG2 65 64 66 65 Optional RK817 properties: 66 + - clocks: The input clock for the audio codec 67 + - clock-names: The clock name for the codec clock. Should be "mclk". 68 + - #sound-dai-cells: Needed for the interpretation of sound dais. Should be 0. 69 + 67 70 - vcc8-supply: The input supply for BOOST 68 71 - vcc9-supply: The input supply for OTG_SWITCH 72 + - codec: The child node for the codec to hold additional properties. 73 + If no additional properties are required for the codec, this 74 + node can be omitted. 75 + 76 + - rockchip,mic-in-differential: Telling if the microphone uses differential 77 + mode. Should be under the codec child node. 69 78 70 79 Optional RK818 properties: 71 80 - vcc1-supply: The input supply for DCDC_REG1 ··· 284 273 regulator-boot-on; 285 274 regulator-name = "vcc_lcd"; 286 275 }; 276 + }; 277 + }; 278 + 279 + rk817: pmic@20 { 280 + compatible = "rockchip,rk817"; 281 + reg = <0x20>; 282 + interrupt-parent = <&gpio0>; 283 + interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>; 284 + clock-output-names = "rk808-clkout1", "xin32k"; 285 + clock-names = "mclk"; 286 + clocks = <&cru SCLK_I2S1_OUT>; 287 + pinctrl-names = "default"; 288 + pinctrl-0 = <&pmic_int>, <&i2s1_2ch_mclk>; 289 + wakeup-source; 290 + #clock-cells = <1>; 291 + #sound-dai-cells = <0>; 292 + 293 + vcc1-supply = <&vccsys>; 294 + vcc2-supply = <&vccsys>; 295 + vcc3-supply = <&vccsys>; 296 + vcc4-supply = <&vccsys>; 297 + vcc5-supply = <&vccsys>; 298 + vcc6-supply = <&vccsys>; 299 + vcc7-supply = <&vccsys>; 300 + 301 + regulators { 302 + vdd_logic: DCDC_REG1 { 303 + regulator-name = "vdd_logic"; 304 + regulator-min-microvolt = <950000>; 305 + regulator-max-microvolt = <1150000>; 306 + regulator-ramp-delay = <6001>; 307 + regulator-always-on; 308 + regulator-boot-on; 309 + 310 + regulator-state-mem { 311 + regulator-on-in-suspend; 312 + regulator-suspend-microvolt = <950000>; 313 + }; 314 + }; 315 + 316 + vdd_arm: DCDC_REG2 { 317 + regulator-name = "vdd_arm"; 318 + regulator-min-microvolt = <950000>; 319 + regulator-max-microvolt = <1350000>; 320 + regulator-ramp-delay = <6001>; 321 + regulator-always-on; 322 + regulator-boot-on; 323 + 324 + regulator-state-mem { 325 + regulator-off-in-suspend; 326 + regulator-suspend-microvolt = <950000>; 327 + }; 328 + }; 329 + 330 + vcc_ddr: DCDC_REG3 { 331 + regulator-name = "vcc_ddr"; 332 + regulator-always-on; 333 + regulator-boot-on; 334 + 335 + regulator-state-mem { 336 + regulator-on-in-suspend; 337 + }; 338 + }; 339 + 340 + vcc_3v3: DCDC_REG4 { 341 + regulator-name = "vcc_3v3"; 342 + regulator-min-microvolt = <3300000>; 343 + regulator-max-microvolt = <3300000>; 344 + regulator-always-on; 345 + regulator-boot-on; 346 + 347 + regulator-state-mem { 348 + regulator-off-in-suspend; 349 + regulator-suspend-microvolt = <3300000>; 350 + }; 351 + }; 352 + 353 + vcc_1v8: LDO_REG2 { 354 + regulator-name = "vcc_1v8"; 355 + regulator-min-microvolt = <1800000>; 356 + regulator-max-microvolt = <1800000>; 357 + regulator-always-on; 358 + regulator-boot-on; 359 + 360 + regulator-state-mem { 361 + regulator-on-in-suspend; 362 + regulator-suspend-microvolt = <1800000>; 363 + }; 364 + }; 365 + 366 + vdd_1v0: LDO_REG3 { 367 + regulator-name = "vdd_1v0"; 368 + regulator-min-microvolt = <1000000>; 369 + regulator-max-microvolt = <1000000>; 370 + regulator-always-on; 371 + regulator-boot-on; 372 + 373 + regulator-state-mem { 374 + regulator-on-in-suspend; 375 + regulator-suspend-microvolt = <1000000>; 376 + }; 377 + }; 378 + 379 + vcc3v3_pmu: LDO_REG4 { 380 + regulator-name = "vcc3v3_pmu"; 381 + regulator-min-microvolt = <3300000>; 382 + regulator-max-microvolt = <3300000>; 383 + regulator-always-on; 384 + regulator-boot-on; 385 + 386 + regulator-state-mem { 387 + regulator-on-in-suspend; 388 + regulator-suspend-microvolt = <3300000>; 389 + }; 390 + }; 391 + 392 + vccio_sd: LDO_REG5 { 393 + regulator-name = "vccio_sd"; 394 + regulator-min-microvolt = <1800000>; 395 + regulator-max-microvolt = <3300000>; 396 + regulator-always-on; 397 + regulator-boot-on; 398 + 399 + regulator-state-mem { 400 + regulator-on-in-suspend; 401 + regulator-suspend-microvolt = <3300000>; 402 + }; 403 + }; 404 + 405 + vcc_sd: LDO_REG6 { 406 + regulator-name = "vcc_sd"; 407 + regulator-min-microvolt = <3300000>; 408 + regulator-max-microvolt = <3300000>; 409 + regulator-boot-on; 410 + 411 + regulator-state-mem { 412 + regulator-on-in-suspend; 413 + regulator-suspend-microvolt = <3300000>; 414 + }; 415 + }; 416 + 417 + vcc_bl: LDO_REG7 { 418 + regulator-name = "vcc_bl"; 419 + regulator-min-microvolt = <3300000>; 420 + regulator-max-microvolt = <3300000>; 421 + 422 + regulator-state-mem { 423 + regulator-off-in-suspend; 424 + regulator-suspend-microvolt = <3300000>; 425 + }; 426 + }; 427 + 428 + vcc_lcd: LDO_REG8 { 429 + regulator-name = "vcc_lcd"; 430 + regulator-min-microvolt = <2800000>; 431 + regulator-max-microvolt = <2800000>; 432 + 433 + regulator-state-mem { 434 + regulator-off-in-suspend; 435 + regulator-suspend-microvolt = <2800000>; 436 + }; 437 + }; 438 + 439 + vcc_cam: LDO_REG9 { 440 + regulator-name = "vcc_cam"; 441 + regulator-min-microvolt = <3000000>; 442 + regulator-max-microvolt = <3000000>; 443 + 444 + regulator-state-mem { 445 + regulator-off-in-suspend; 446 + regulator-suspend-microvolt = <3000000>; 447 + }; 448 + }; 449 + }; 450 + 451 + rk817_codec: codec { 452 + rockchip,mic-in-differential; 287 453 }; 288 454 };