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

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: codecs: aw88261: add dvdd-supply property

Merge series from Bharadwaj Raju <bharadwaj.raju@machinesoul.in>:

The AW88261 has a DVDD chip which needs to be powered on for it to
function correctly. The property for this was missing, so this patchset
adds the dvdd-supply property which enables a regulator to be bound
to it in a device tree.

+18
+13
Documentation/devicetree/bindings/sound/awinic,aw88395.yaml
··· 33 33 reset-gpios: 34 34 maxItems: 1 35 35 36 + dvdd-supply: true 37 + 36 38 awinic,audio-channel: 37 39 description: 38 40 It is used to distinguish multiple PA devices, so that different ··· 67 65 then: 68 66 properties: 69 67 reset-gpios: false 68 + - if: 69 + properties: 70 + compatible: 71 + contains: 72 + const: awinic,aw88261 73 + then: 74 + required: 75 + - dvdd-supply 76 + else: 77 + properties: 78 + dvdd-supply: false 70 79 71 80 unevaluatedProperties: false 72 81
+5
sound/soc/codecs/aw88261.c
··· 11 11 #include <linux/i2c.h> 12 12 #include <linux/firmware.h> 13 13 #include <linux/regmap.h> 14 + #include <linux/regulator/consumer.h> 14 15 #include <sound/soc.h> 15 16 #include "aw88261.h" 16 17 #include "aw88395/aw88395_data_type.h" ··· 1190 1189 struct aw_device *aw_dev; 1191 1190 unsigned int chip_id; 1192 1191 int ret; 1192 + 1193 + ret = devm_regulator_get_enable(&i2c->dev, "dvdd"); 1194 + if (ret) 1195 + return dev_err_probe(&i2c->dev, ret, "Failed to enable dvdd supply\n"); 1193 1196 1194 1197 /* read chip id */ 1195 1198 ret = regmap_read(regmap, AW88261_ID_REG, &chip_id);