Skip to content

Commit

Permalink
arm64: dts: meson: fix mmc v2 chips max frequencies
Browse files Browse the repository at this point in the history
According the datasheets, emmc v2 chips (gxbb and gxl) don't support
more that 100Mhz in UHS-1 SD modes and HS in SDIO.

Align the max-frequency to 100MHz for UHS-1 and 50MHz for HS

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 b43033b commit adc52bf
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/amlogic/meson-gx-p23x-q20x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;

non-removable;
disable-wp;
Expand All @@ -184,7 +184,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down
5 changes: 2 additions & 3 deletions arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <200000000>;
max-frequency = <50000000>;

non-removable;
disable-wp;
Expand Down Expand Up @@ -301,8 +301,7 @@
sd-uhs-sdr12;
sd-uhs-sdr25;
sd-uhs-sdr50;
sd-uhs-sdr104;
max-frequency = <200000000>;
max-frequency = <100000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/amlogic/meson-gxbb-nexbox-a95x.dts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;

non-removable;
disable-wp;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;

non-removable;
disable-wp;
Expand All @@ -151,7 +151,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;

non-removable;
disable-wp;
Expand All @@ -208,7 +208,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/amlogic/meson-gxl-s805x-p241.dts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;

non-removable;
disable-wp;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/amlogic/meson-gxl-s905x-p212.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;

non-removable;
disable-wp;
Expand All @@ -134,7 +134,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/amlogic/meson-gxm-khadas-vim2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
#size-cells = <0>;

bus-width = <4>;
max-frequency = <100000000>;
max-frequency = <50000000>;

non-removable;
disable-wp;
Expand All @@ -353,7 +353,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/amlogic/meson-gxm-nexbox-a1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/amlogic/meson-gxm-rbox-pro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;

non-removable;
disable-wp;
Expand All @@ -167,7 +167,7 @@

bus-width = <4>;
cap-sd-highspeed;
max-frequency = <100000000>;
max-frequency = <50000000>;
disable-wp;

cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>;
Expand Down

0 comments on commit adc52bf

Please sign in to comment.