This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi,
We saw the code is mentioned about power rails and may I know how to setup these rails in the code?
Thanks and Best regards,
Tiger
Hi Tiger,
These names for the rails are used in the setup of the device, like in the device tree file. The driver would read the rail from the device tree and then set up the device accordingly. Unfortunately we do not have a Linux expert on the team, so no guarantees that I will be able to assist if you need more specifics, but if you are trying to include the rails in your device tree file, please send it over and I can take a look. I will need some more details about what you are specifically trying to do to help you. Let me know about this.
Best,
Mir
Thanks for reply Mir.
We want to clarify below parameters if dts is not setting these rails info.
===================================
AVDD-supply = <®ulator>;
IOVDD-supply = <®ulator>;
DRVDD-supply = <®ulator>;
DVDD-supply = <®ulator>;
===================================
Will this cause the problem regarding i2c i2c-1: Failed to register i2c client at 0x18 (-16) ?
Here is current dts relative i2c setting:
tlv320aic3x04: audio-codec@18 {
compatible = "ti,tlv320aic3104";
reg = <0x18>;
clock-names = "mclk";
codec_rst_n-gpio = <&tca9539_2 6 GPIO_ACTIVE_HIGH>;
};
[ 1.881918] DDD ==> aic3x_i2c_probe:39
[ 1.885865] DDD ==> aic3x_probe:1817 start
[ 1.890080] DDD ==> aic3x_probe:1889 gpio_reset
[ 1.894626] tlv320aic3x 1-0018: nonexclusive access to GPIO for codec_rst_n
[ 1.901592] tlv320aic3x 1-0018: supply IOVDD not found, using dummy regulator
[ 1.908823] tlv320aic3x 1-0018: supply DVDD not found, using dummy regulator
[ 1.915930] tlv320aic3x 1-0018: supply AVDD not found, using dummy regulator
[ 1.922991] tlv320aic3x 1-0018: supply DRVDD not found, using dummy regulator
[ 1.930148] DDD ==> aic3x_configure_ocmv:1764
[ 1.934592] tlv320aic3x 1-0018: Invalid supply voltage(s) AVDD: -22, DVDD: -22
[ 1.941823] DDD ==> aic3x_probe:1959 finish
[ 1.946463] i2c-ds90ub954 1-0030: ds90ub954_probe: start
[ 1.951785] i2c-ds90ub954 1-0030: ds90ub954_parse_dt: deserializer:
[ 1.958044] i2c-ds90ub954 1-0030: pass-gpio not found, ignoring
[ 1.963960] i2c-ds90ub954 1-0030: lock-gpio not found, ignoring
[ 1.969870] i2c-ds90ub954 1-0030: pdb-gpio not found, ignoring
[ 1.975691] i2c-ds90ub954 1-0030: ds90ub954_parse_dt: - csi-lane-count 2
[ 1.982424] i2c-ds90ub954 1-0030: ds90ub954_parse_dt: - csi-lane-speed 800
[ 1.989304] i2c-ds90ub954 1-0030: ds90ub954_parse_dt: - test-pattern disabled
[ 1.996431] i2c-ds90ub954 1-0030: ds90ub954_parse_dt: - discontinuous clock used
[ 2.003855] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: parsing serializers device tree:
[ 2.011765] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - serializer rx-channel: 0
[ 2.019148] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: -test-pattern disabled
[ 2.026183] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - csi-lane-count 1
[ 2.032874] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - gpio0-output-enable property not found
[ 2.041470] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: gpio0-output-enable to default val: 0
[ 2.049813] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - gpio1-output-enable property not found
[ 2.058407] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: gpio1-output-enable to default val: 0
[ 2.066743] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - gpio2-output-enable property not found
[ 2.075340] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: gpio2-output-enable to default val: 0
[ 2.083677] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - gpio3-output-enable property not found
[ 2.092274] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: gpio3-output-enable to default val: 0
[ 2.100616] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - gpio0-control property not found
[ 2.108689] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: gpio0-control to default val: 0b1000
[ 2.116943] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - gpio1-control property not found
[ 2.125017] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: gpio1-control to default val: 0b1000
[ 2.133269] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - gpio2-control property not found
[ 2.141345] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: gpio2-control to default val: 0b1000
[ 2.149596] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - gpio3-control property not found
[ 2.157674] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: gpio3-control to default val: 0b1000
[ 2.165923] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - hs-clk-div property not found
[ 2.173742] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - hs-clk-div set to default val: 0x2 (div by 4)
[ 2.182949] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - div-m-val property not found
[ 2.190676] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - div-m-val set to default val: 1
[ 2.198667] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - div-n-val property not found
[ 2.206399] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - div-n-val set to default val: 0x28
[ 2.214649] i2c-ds90ub954 1-0030: ds90ub953_parse_dt: - i2c-address: 0x18
[ 2.221524] i2c i2c-1: Failed to register i2c client at 0x18 (-16)
[ 2.227779] i2c-ds90ub954 1-0030: ds90ub953_i2c_client init client done
[ 2.234389] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
[ 2.243164] Mem abort info:
[ 2.245951] ESR = 0x0000000096000004
[ 2.249696] EC = 0x25: DABT (current EL), IL = 32 bits
Thanks and Best regards,
Tiger
Hi Tiger,
Can you attach your whole dts file? I can't see a part about where you register the sound card, or set the supplies. It seems like the issue is not just about the power supply rails but also the device is not registering, likely from something else wrong in the dts configuration.
Best,
Mir