1CS35L35 Boosted Speaker Amplifier 2 3Required properties: 4 5 - compatible : "cirrus,cs35l35" 6 7 - reg : the I2C address of the device for I2C 8 9 - VA-supply, VP-supply : power supplies for the device, 10 as covered in 11 Documentation/devicetree/bindings/regulator/regulator.txt. 12 13 - interrupt-parent : Specifies the phandle of the interrupt controller to 14 which the IRQs from CS35L35 are delivered to. 15 - interrupts : IRQ line info CS35L35. 16 (See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 17 for further information relating to interrupt properties) 18 19Optional properties: 20 - reset-gpios : gpio used to reset the amplifier 21 22 - cirrus,stereo-config : Boolean to determine if there are 2 AMPs for a 23 Stereo configuration 24 25 - cirrus,audio-channel : Set Location of Audio Signal on Serial Port 26 0 = Data Packet received on Left I2S Channel 27 1 = Data Packet received on Right I2S Channel 28 29 - cirrus,advisory-channel : Set Location of Advisory Signal on Serial Port 30 0 = Data Packet received on Left I2S Channel 31 1 = Data Packet received on Right I2S Channel 32 33 - cirrus,shared-boost : Boolean to enable ClassH tracking of Advisory Signal 34 if 2 Devices share Boost BST_CTL 35 36 - cirrus,sp-drv-strength : Value for setting the Serial Port drive strength 37 Table 3-10 of the datasheet lists drive-strength specifications 38 0 = 1x (Default) 39 1 = .5x 40 - cirrus,sp-drv-unused : Determines how unused slots should be driven on the 41 Serial Port. 42 0 - Hi-Z 43 2 - Drive 0's (Default) 44 3 - Drive 1's 45 46 - cirrus,bst-pdn-fet-on : Boolean to determine if the Boost PDN control 47 powers down with a rectification FET On or Off. If VSPK is supplied 48 externally then FET is off. 49 50 - cirrus,boost-ctl-millivolt : Boost Voltage Value. Configures the boost 51 converter's output voltage in mV. The range is from 2600mV to 9000mV with 52 increments of 100mV. 53 (Default) VP 54 55 - cirrus,boost-peak-milliamp : Boost-converter peak current limit in mA. 56 Configures the peak current by monitoring the current through the boost FET. 57 Range starts at 1680mA and goes to a maximum of 4480mA with increments of 58 110mA. 59 (Default) 2.46 Amps 60 61 - cirrus,amp-gain-zc : Boolean to determine if to use Amplifier gain-change 62 zero-cross 63 64Optional H/G Algorithm sub-node: 65 66 The cs35l35 node can have a single "cirrus,classh-internal-algo" sub-node 67 that will disable automatic control of the internal H/G Algorithm. 68 69 It is strongly recommended that the Datasheet be referenced when adjusting 70 or using these Class H Algorithm controls over the internal Algorithm. 71 Serious damage can occur to the Device and surrounding components. 72 73 - cirrus,classh-internal-algo : Sub-node for the Internal Class H Algorithm 74 See Section 4.3 Internal Class H Algorithm in the Datasheet. 75 If not used, the device manages the ClassH Algorithm internally. 76 77Optional properties for the "cirrus,classh-internal-algo" Sub-node 78 79 Section 7.29 Class H Control 80 - cirrus,classh-bst-overide : Boolean 81 - cirrus,classh-bst-max-limit 82 - cirrus,classh-mem-depth 83 84 Section 7.30 Class H Headroom Control 85 - cirrus,classh-headroom 86 87 Section 7.31 Class H Release Rate 88 - cirrus,classh-release-rate 89 90 Section 7.32 Class H Weak FET Drive Control 91 - cirrus,classh-wk-fet-disable 92 - cirrus,classh-wk-fet-delay 93 - cirrus,classh-wk-fet-thld 94 95 Section 7.34 Class H VP Control 96 - cirrus,classh-vpch-auto 97 - cirrus,classh-vpch-rate 98 - cirrus,classh-vpch-man 99 100Optional Monitor Signal Format sub-node: 101 102 The cs35l35 node can have a single "cirrus,monitor-signal-format" sub-node 103 for adjusting the Depth, Location and Frame of the Monitoring Signals 104 for Algorithms. 105 106 See Sections 4.8.2 through 4.8.4 Serial-Port Control in the Datasheet 107 108 -cirrus,monitor-signal-format : Sub-node for the Monitor Signaling Formating 109 on the I2S Port. Each of the 3 8 bit values in the array contain the settings 110 for depth, location, and frame. 111 112 If not used, the defaults for the 6 monitor signals is used. 113 114 Sections 7.44 - 7.53 lists values for the depth, location, and frame 115 for each monitoring signal. 116 117 - cirrus,imon : 3 8 bit values to set the depth, location, and frame 118 of the IMON monitor signal. 119 120 - cirrus,vmon : 3 8 bit values to set the depth, location, and frame 121 of the VMON monitor signal. 122 123 - cirrus,vpmon : 3 8 bit values to set the depth, location, and frame 124 of the VPMON monitor signal. 125 126 - cirrus,vbstmon : 3 8 bit values to set the depth, location, and frame 127 of the VBSTMON monitor signal 128 129 - cirrus,vpbrstat : 3 8 bit values to set the depth, location, and frame 130 of the VPBRSTAT monitor signal 131 132 - cirrus,zerofill : 3 8 bit values to set the depth, location, and frame\ 133 of the ZEROFILL packet in the monitor signal 134 135Example: 136 137cs35l35: cs35l35@20 { 138 compatible = "cirrus,cs35l35"; 139 reg = <0x20>; 140 VA-supply = <&dummy_vreg>; 141 VP-supply = <&dummy_vreg>; 142 reset-gpios = <&axi_gpio 54 0>; 143 interrupt-parent = <&gpio8>; 144 interrupts = <3 IRQ_TYPE_LEVEL_LOW>; 145 cirrus,boost-ctl-millivolt = <9000>; 146 147 cirrus,stereo-config; 148 cirrus,audio-channel = <0x00>; 149 cirrus,advisory-channel = <0x01>; 150 cirrus,shared-boost; 151 152 cirrus,classh-internal-algo { 153 cirrus,classh-bst-overide; 154 cirrus,classh-bst-max-limit = <0x01>; 155 cirrus,classh-mem-depth = <0x01>; 156 cirrus,classh-release-rate = <0x08>; 157 cirrus,classh-headroom-millivolt = <0x0B>; 158 cirrus,classh-wk-fet-disable = <0x01>; 159 cirrus,classh-wk-fet-delay = <0x04>; 160 cirrus,classh-wk-fet-thld = <0x01>; 161 cirrus,classh-vpch-auto = <0x01>; 162 cirrus,classh-vpch-rate = <0x02>; 163 cirrus,classh-vpch-man = <0x05>; 164 }; 165 166 /* Depth, Location, Frame */ 167 cirrus,monitor-signal-format { 168 cirrus,imon = /bits/ 8 <0x03 0x00 0x01>; 169 cirrus,vmon = /bits/ 8 <0x03 0x00 0x00>; 170 cirrus,vpmon = /bits/ 8 <0x03 0x04 0x00>; 171 cirrus,vbstmon = /bits/ 8 <0x03 0x04 0x01>; 172 cirrus,vpbrstat = /bits/ 8 <0x00 0x04 0x00>; 173 cirrus,zerofill = /bits/ 8 <0x00 0x00 0x00>; 174 }; 175 176}; 177