Skip to content

Commit

Permalink
disable sdio0 vmmc and enable sound supply
Browse files Browse the repository at this point in the history
  • Loading branch information
geekerlw committed Nov 19, 2016
1 parent 8c6357d commit 5d50103
Showing 1 changed file with 52 additions and 3 deletions.
55 changes: 52 additions & 3 deletions arch/arm/boot/dts/rk3288-firefly.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
*/
reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>;
};

/*
sound {
compatible = "simple-audio-card";
simple-audio-card,name = "SPDIF";
Expand All @@ -149,6 +149,36 @@
compatible = "linux,spdif-dit";
#sound-dai-cells = <0>;
};
*/

sound_i2s {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "rockchip,firefly-codec";
simple-audio-card,mclk-fs = <512>;

/* simple-audio-card,dai-link@0 {
format = "i2s";
cpu {
sound-dai = <&i2s>;
};
codec {
sound-dai = <&hdmi>;
};
};
*/
// simple-audio-card,dai-link@1 {
simple-audio-card,dai-link@0 {
format = "i2s";
cpu {
sound-dai = <&i2s>;
};

codec {
sound-dai = <&es8323>;
};
};
};

vbat_wl: vcc_sys: vsys-regulator {
compatible = "regulator-fixed";
Expand Down Expand Up @@ -243,7 +273,7 @@
BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
status = "okay";
};

/* disable rkwifi
wireless-wlan {
compatible = "wlan-platdata";
rockchip,grf = <&grf>;
Expand All @@ -252,6 +282,7 @@
WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
status = "okay";
};
*/
};

&cpu0 {
Expand Down Expand Up @@ -293,10 +324,18 @@
};

&hdmi {
#address-cells = <1>;
#size-cells = <0>;
#sound-dai-cells = <0>;
ddc-i2c-bus = <&i2c5>;
status = "okay";
};

&i2s {
#sound-dai-cells = <0>;
status = "okay";
};

&i2c0 {
clock-frequency = <400000>;
status = "okay";
Expand Down Expand Up @@ -446,6 +485,16 @@

&i2c2 {
status = "okay";

es8323: es8323@10 {
compatible = "everest,es8323";
reg = <0x10>;
spk-con-gpio = <&gpio0 10 GPIO_ACTIVE_HIGH>;
hp-det-gpio = <&gpio7 15 GPIO_ACTIVE_HIGH>;
clock-names = "mclk";
clocks = <&cru SCLK_I2S0_OUT>;
#sound-dai-cells = <0>;
};
};

&i2c4 {
Expand Down Expand Up @@ -597,7 +646,7 @@
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk &sdio0_int>;
sd-uhs-sdr104;
supports-sdio;
vmmc-supply = <&vbat_wl>;
//vmmc-supply = <&vbat_wl>;
vqmmc-supply = <&vccio_wl>;
status = "okay";
};
Expand Down

0 comments on commit 5d50103

Please sign in to comment.