Skip to content

Commit

Permalink
arm64: dts: meson: fix mmc pin bias
Browse files Browse the repository at this point in the history
Clk pin does not require bias, data strobe should be pulled low.
The rest of the pin (data and cmd) are pulled up.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
  • Loading branch information
Jerome Brunet authored and Kevin Hilman committed May 21, 2019
1 parent ffab3fd commit b43033b
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 29 deletions.
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/amlogic/meson-axg-s400.dts
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@

/* emmc storage */
&sd_emmc_c {
status = "disabled";
pinctrl-0 = <&emmc_pins>;
status = "okay";
pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
pinctrl-1 = <&emmc_clk_gate_pins>;
pinctrl-names = "default", "clk-gate";

Expand Down
31 changes: 24 additions & 7 deletions arch/arm64/boot/dts/amlogic/meson-axg.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
};

emmc_pins: emmc {
mux {
mux-0 {
groups = "emmc_nand_d0",
"emmc_nand_d1",
"emmc_nand_d2",
Expand All @@ -308,14 +308,26 @@
"emmc_nand_d5",
"emmc_nand_d6",
"emmc_nand_d7",
"emmc_clk",
"emmc_cmd",
"emmc_ds";
"emmc_cmd";
function = "emmc";
bias-pull-up;
};

mux-1 {
groups = "emmc_clk";
function = "emmc";
bias-disable;
};
};

emmc_ds_pins: emmc_ds {
mux {
groups = "emmc_ds";
function = "emmc";
bias-pull-down;
};
};

emmc_clk_gate_pins: emmc_clk_gate {
mux {
groups = "BOOT_8";
Expand Down Expand Up @@ -559,13 +571,18 @@
};

sdio_pins: sdio {
mux {
mux-0 {
groups = "sdio_d0",
"sdio_d1",
"sdio_d2",
"sdio_d3",
"sdio_cmd",
"sdio_clk";
"sdio_cmd";
function = "sdio";
bias-pull-up;
};

mux-1 {
groups = "sdio_clk";
function = "sdio";
bias-disable;
};
Expand Down
35 changes: 25 additions & 10 deletions arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,15 @@
};

emmc_pins: emmc {
mux {
mux-0 {
groups = "emmc_nand_d07",
"emmc_cmd",
"emmc_clk";
"emmc_cmd";
function = "emmc";
bias-pull-up;
};

mux-1 {
groups = "emmc_clk";
function = "emmc";
bias-disable;
};
Expand All @@ -394,7 +399,7 @@
mux {
groups = "emmc_ds";
function = "emmc";
bias-disable;
bias-pull-down;
};
};

Expand Down Expand Up @@ -436,13 +441,18 @@
};

sdcard_pins: sdcard {
mux {
mux-0 {
groups = "sdcard_d0",
"sdcard_d1",
"sdcard_d2",
"sdcard_d3",
"sdcard_cmd",
"sdcard_clk";
"sdcard_cmd";
function = "sdcard";
bias-pull-up;
};

mux-1 {
groups = "sdcard_clk";
function = "sdcard";
bias-disable;
};
Expand All @@ -457,13 +467,18 @@
};

sdio_pins: sdio {
mux {
mux-0 {
groups = "sdio_d0",
"sdio_d1",
"sdio_d2",
"sdio_d3",
"sdio_cmd",
"sdio_clk";
"sdio_cmd";
function = "sdio";
bias-pull-up;
};

mux-1 {
groups = "sdio_clk";
function = "sdio";
bias-disable;
};
Expand Down
35 changes: 25 additions & 10 deletions arch/arm64/boot/dts/amlogic/meson-gxl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,15 @@
};

emmc_pins: emmc {
mux {
mux-0 {
groups = "emmc_nand_d07",
"emmc_cmd",
"emmc_clk";
"emmc_cmd";
function = "emmc";
bias-pull-up;
};

mux-1 {
groups = "emmc_clk";
function = "emmc";
bias-disable;
};
Expand All @@ -339,7 +344,7 @@
mux {
groups = "emmc_ds";
function = "emmc";
bias-disable;
bias-pull-down;
};
};

Expand Down Expand Up @@ -381,13 +386,18 @@
};

sdcard_pins: sdcard {
mux {
mux-0 {
groups = "sdcard_d0",
"sdcard_d1",
"sdcard_d2",
"sdcard_d3",
"sdcard_cmd",
"sdcard_clk";
"sdcard_cmd";
function = "sdcard";
bias-pull-up;
};

mux-1 {
groups = "sdcard_clk";
function = "sdcard";
bias-disable;
};
Expand All @@ -402,13 +412,18 @@
};

sdio_pins: sdio {
mux {
mux-0 {
groups = "sdio_d0",
"sdio_d1",
"sdio_d2",
"sdio_d3",
"sdio_cmd",
"sdio_clk";
"sdio_cmd";
function = "sdio";
bias-pull-up;
};

mux-1 {
groups = "sdio_clk";
function = "sdio";
bias-disable;
};
Expand Down

0 comments on commit b43033b

Please sign in to comment.