Skip to content

Commit c68a509

Browse files
author
AngeloGioacchino Del Regno
committed
arm64: dts: mediatek: mt8173: Fix pinctrl node names and cleanup
Fix the pinctrl node names to adhere to the bindings, as the main pin node is supposed to be named like "uart0-pins" and the pinmux node named like "pins-bus". While at it, also cleanup all of the MTK_DRIVE_(x)mA by changing that to just the (x) number. Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
1 parent c3f6d53 commit c68a509

4 files changed

Lines changed: 128 additions & 132 deletions

File tree

arch/arm64/boot/dts/mediatek/mt8173-elm-hana.dtsi

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55

66
#include "mt8173-elm.dtsi"
77

8+
&hdmi_mux_pins {
9+
pins-mux {
10+
pinmux = <MT8173_PIN_98_URTS1__FUNC_GPIO98>;
11+
bias-pull-up;
12+
output-high;
13+
};
14+
};
15+
816
&i2c0 {
917
clock-frequency = <200000>;
1018
};
@@ -67,26 +75,16 @@
6775
};
6876
};
6977

70-
&mmc1 {
71-
wp-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
72-
};
73-
74-
&pio {
75-
hdmi_mux_pins: hdmi_mux_pins {
76-
pins2 {
77-
pinmux = <MT8173_PIN_98_URTS1__FUNC_GPIO98>;
78-
bias-pull-up;
79-
output-high;
80-
};
78+
&mmc1_pins_default {
79+
pins-wp {
80+
pinmux = <MT8173_PIN_42_DSI_TE__FUNC_GPIO42>;
81+
input-enable;
82+
bias-pull-up;
8183
};
84+
};
8285

83-
mmc1_pins_default: mmc1default {
84-
pins_wp {
85-
pinmux = <MT8173_PIN_42_DSI_TE__FUNC_GPIO42>;
86-
input-enable;
87-
bias-pull-up;
88-
};
89-
};
86+
&mmc1 {
87+
wp-gpios = <&pio 42 GPIO_ACTIVE_HIGH>;
9088
};
9189

9290
&touchscreen {

0 commit comments

Comments
 (0)