|
Power management issues with Yocto on Firefly-RK3288 Reload
Posted at 7/20/2017 20:57:56
View:5738
|
Replies:5
Print
Only Author
[Copy Link]
1#
Last edited by kiwor In 7/20/2017 21:00 Editor
Hi !
I have built a tiny linux with Yocto (kernel rockhip_linux v4.4) and added a node for the codec es8388 and another for the rockhip_hdmi_analog driver in rk3288-firefly.dtsi. But during the boot, communications with the codec on the I2C2 end with a timeout 'rk3x-i2c ff660000.i2c: timeout, ipd: 0x00, state: 1'.
Then I measured the voltage on the codec's pins and it appeared that it is not powered.
I didn't change anything in the dtsi concerning the PMU...
Here are the changes I made in the dtsi file :
.
.
.
sound0: sound@0 {
compatible = "simple-audio-card";
simple-audio-card,name = "SPDIF";
simple-audio-card,dai-link@1 {
cpu { sound-dai = <&spdif>; };
codec { sound-dai = <&spdif_out>; };
};
};
sound1: sound@1 {
compatible = "rockchip,rk3288-hdmi-analog";
rockchip,model = "Analog audio output";
rockchip,i2s-controller = <&i2s>;
rockchip,audio-codec = <&codec>;
rockchip,routing = "Analog", "LOUT2",
"Analog", "ROUT2";
rockchip,hp-det-gpios = <&gpio7 15 GPIO_ACTIVE_HIGH>;
rockchip,hp-en-gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&phone_ctl>, <&hp_det>;
};
spdif_out: spdif-out {
compatible = "linux,spdif-dit";
#sound-dai-cells = <0>;
};
.
.
.
&i2c2 {
status = "okay";
codec: es8328@10 {
compatible = "everest,es8328";
DVDD-supply = <&vcca_33>;
AVDD-supply = <&vcca_33>;
PVDD-supply = <&vcca_33>;
HPVDD-supply = <&vcca_33>;
clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>;
clock-names = "i2s_hclk", "i2s_clk";
reg = <0x10>;
};
/*
codec: es8323@10 {
compatible = "everest,es8323";
reg = <0x10>;
spk-con-gpio = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
hp-det-gpio = <&gpio7 RK_PB7 GPIO_ACTIVE_HIGH>;
hp-mic-only = <1>;
clocks = <&cru HCLK_I2S0>, <&cru SCLK_I2S0>;
clock-names = "i2s_hclk", "i2s_clk";
pinctrl-names = "default";
};
*/
};
What did I do wrong ? Did someone manage to have audio working with yocto on this board ?
Any help would be appreciated !
|
|