mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 10:57:46 +00:00
ARM: dts: imx51-babbage: Pass a real clock to the codec
On imx51_babbage the codec clock is activated via GPIO4_26. Provide a real clock to the sgtl5000 codec via device tree. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
This commit is contained in:
parent
15968f1bd4
commit
84bb084725
1 changed files with 12 additions and 1 deletions
|
@ -61,6 +61,16 @@ sound {
|
||||||
mux-int-port = <2>;
|
mux-int-port = <2>;
|
||||||
mux-ext-port = <3>;
|
mux-ext-port = <3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
clocks {
|
||||||
|
clk_26M: codec_clock {
|
||||||
|
compatible = "fixed-clock";
|
||||||
|
reg=<0>;
|
||||||
|
#clock-cells = <0>;
|
||||||
|
clock-frequency = <26000000>;
|
||||||
|
gpios = <&gpio4 26 1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&esdhc1 {
|
&esdhc1 {
|
||||||
|
@ -229,6 +239,7 @@ MX51_PAD_GPIO1_6__GPIO1_6 0x100
|
||||||
MX51_PAD_EIM_A27__GPIO2_21 0x5
|
MX51_PAD_EIM_A27__GPIO2_21 0x5
|
||||||
MX51_PAD_CSPI1_SS0__GPIO4_24 0x85
|
MX51_PAD_CSPI1_SS0__GPIO4_24 0x85
|
||||||
MX51_PAD_CSPI1_SS1__GPIO4_25 0x85
|
MX51_PAD_CSPI1_SS1__GPIO4_25 0x85
|
||||||
|
MX51_PAD_CSPI1_RDY__GPIO4_26 0x80000000
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -255,7 +266,7 @@ &i2c2 {
|
||||||
sgtl5000: codec@0a {
|
sgtl5000: codec@0a {
|
||||||
compatible = "fsl,sgtl5000";
|
compatible = "fsl,sgtl5000";
|
||||||
reg = <0x0a>;
|
reg = <0x0a>;
|
||||||
clock-frequency = <26000000>;
|
clocks = <&clk_26M>;
|
||||||
VDDA-supply = <&vdig_reg>;
|
VDDA-supply = <&vdig_reg>;
|
||||||
VDDIO-supply = <&vvideo_reg>;
|
VDDIO-supply = <&vvideo_reg>;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue