Mark Brown | d781009 | 2013-03-25 00:11:27 +0000 | [diff] [blame] | 1 | Wolfson Arizona class audio SoCs |
| 2 | |
| 3 | These devices are audio SoCs with extensive digital capabilites and a range |
| 4 | of analogue I/O. |
| 5 | |
| 6 | Required properties: |
| 7 | |
Charles Keepax | 72e6e79 | 2014-03-19 10:18:54 +0000 | [diff] [blame] | 8 | - compatible : One of the following chip-specific strings: |
| 9 | "wlf,wm5102" |
| 10 | "wlf,wm5110" |
Richard Fitzgerald | c4ac3719 | 2015-01-17 15:21:23 +0000 | [diff] [blame] | 11 | "wlf,wm8280" |
Charles Keepax | 72e6e79 | 2014-03-19 10:18:54 +0000 | [diff] [blame] | 12 | "wlf,wm8997" |
Mark Brown | d781009 | 2013-03-25 00:11:27 +0000 | [diff] [blame] | 13 | - reg : I2C slave address when connected using I2C, chip select number when |
| 14 | using SPI. |
| 15 | |
| 16 | - interrupts : The interrupt line the /IRQ signal for the device is |
| 17 | connected to. |
| 18 | - interrupt-controller : Arizona class devices contain interrupt controllers |
| 19 | and may provide interrupt services to other devices. |
| 20 | - interrupt-parent : The parent interrupt controller. |
| 21 | - #interrupt-cells: the number of cells to describe an IRQ, this should be 2. |
| 22 | The first cell is the IRQ number. |
| 23 | The second cell is the flags, encoded as the trigger masks from |
| 24 | Documentation/devicetree/bindings/interrupts.txt |
| 25 | |
| 26 | - gpio-controller : Indicates this device is a GPIO controller. |
| 27 | - #gpio-cells : Must be 2. The first cell is the pin number and the |
| 28 | second cell is used to specify optional parameters (currently unused). |
| 29 | |
Richard Fitzgerald | c4ac3719 | 2015-01-17 15:21:23 +0000 | [diff] [blame] | 30 | - AVDD-supply, DBVDD1-supply, CPVDD-supply : Power supplies for the device, |
| 31 | as covered in Documentation/devicetree/bindings/regulator/regulator.txt |
| 32 | |
| 33 | - DBVDD2-supply, DBVDD3-supply : Additional databus power supplies (wm5102, |
| 34 | wm5110, wm8280) |
| 35 | |
| 36 | - SPKVDDL-supply, SPKVDDR-supply : Speaker driver power supplies (wm5102, |
| 37 | wm5110, wm8280) |
| 38 | |
| 39 | - SPKVDD-supply : Speaker driver power supply (wm8997) |
Mark Brown | d781009 | 2013-03-25 00:11:27 +0000 | [diff] [blame] | 40 | |
| 41 | Optional properties: |
| 42 | |
| 43 | - wlf,reset : GPIO specifier for the GPIO controlling /RESET |
| 44 | - wlf,ldoena : GPIO specifier for the GPIO controlling LDOENA |
| 45 | |
Charles Keepax | 4901033 | 2015-02-25 15:37:13 +0000 | [diff] [blame^] | 46 | - wlf,gpio-defaults : A list of GPIO configuration register values. Defines |
| 47 | for the appropriate values can found in <dt-bindings/mfd/arizona.txt>. If |
| 48 | absent, no configuration of these registers is performed. If any entry has |
| 49 | a value that is out of range for a 16 bit register then the chip default |
| 50 | will be used. If present exactly five values must be specified. |
Mark Brown | d781009 | 2013-03-25 00:11:27 +0000 | [diff] [blame] | 51 | |
Inha Song | dc5193c | 2014-08-30 11:27:19 +0900 | [diff] [blame] | 52 | - wlf,inmode : A list of INn_MODE register values, where n is the number |
| 53 | of input signals. Valid values are 0 (Differential), 1 (Single-ended) and |
| 54 | 2 (Digital Microphone). If absent, INn_MODE registers set to 0 by default. |
| 55 | If present, values must be specified less than or equal to the number of |
| 56 | input singals. If values less than the number of input signals, elements |
| 57 | that has not been specifed are set to 0 by default. |
| 58 | |
Charles Keepax | 819b2dd | 2014-07-10 17:04:09 +0100 | [diff] [blame] | 59 | - DCVDD-supply, MICVDD-supply : Power supplies, only need to be specified if |
| 60 | they are being externally supplied. As covered in |
Charles Keepax | a6d97c1 | 2014-07-10 17:04:08 +0100 | [diff] [blame] | 61 | Documentation/devicetree/bindings/regulator/regulator.txt |
| 62 | |
| 63 | Optional subnodes: |
| 64 | - ldo1 : Initial data for the LDO1 regulator, as covered in |
| 65 | Documentation/devicetree/bindings/regulator/regulator.txt |
Charles Keepax | 819b2dd | 2014-07-10 17:04:09 +0100 | [diff] [blame] | 66 | - micvdd : Initial data for the MICVDD regulator, as covered in |
| 67 | Documentation/devicetree/bindings/regulator/regulator.txt |
Charles Keepax | a6d97c1 | 2014-07-10 17:04:08 +0100 | [diff] [blame] | 68 | |
Mark Brown | d781009 | 2013-03-25 00:11:27 +0000 | [diff] [blame] | 69 | Example: |
| 70 | |
| 71 | codec: wm5102@1a { |
| 72 | compatible = "wlf,wm5102"; |
| 73 | reg = <0x1a>; |
| 74 | interrupts = <347>; |
Charles Keepax | 72e6e79 | 2014-03-19 10:18:54 +0000 | [diff] [blame] | 75 | interrupt-controller; |
Mark Brown | d781009 | 2013-03-25 00:11:27 +0000 | [diff] [blame] | 76 | #interrupt-cells = <2>; |
| 77 | interrupt-parent = <&gic>; |
| 78 | |
| 79 | gpio-controller; |
| 80 | #gpio-cells = <2>; |
| 81 | |
| 82 | wlf,gpio-defaults = < |
Charles Keepax | 4901033 | 2015-02-25 15:37:13 +0000 | [diff] [blame^] | 83 | ARIZONA_GP_FN_TXLRCLK |
| 84 | ARIZONA_GP_DEFAULT |
| 85 | ARIZONA_GP_DEFAULT |
| 86 | ARIZONA_GP_DEFAULT |
| 87 | ARIZONA_GP_DEFAULT |
Mark Brown | d781009 | 2013-03-25 00:11:27 +0000 | [diff] [blame] | 88 | >; |
| 89 | }; |