mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 08:32:55 +00:00

GPIOs 34 and 35 on MT8195 are of type MTK_PULL_PU_PD_RSEL_TYPE, meaning
not only can they be configured as pull-up or pull-down, but the pull
resistance can also be configured.
The current bias setting however doesn't specify a resistance value,
resulting on the following errors:
mt8195-pinctrl 10005000.pinctrl: Not support rsel value 1 Ohm for pin = 34 (GPIO34)
mt8195-pinctrl 10005000.pinctrl: Not support rsel value 1 Ohm for pin = 35 (GPIO35)
Specify the pull resistance for those GPIOs to fix the errors.
Fixes: 5bf7dabe40
("arm64: dts: mediatek: cherry: Document gpios and add default pin config")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20240531-tomato-rsel-gpio34-35-fix-v1-1-64ab2545f182@collabora.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
56 lines
1.1 KiB
Plaintext
56 lines
1.1 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
/*
|
|
* Copyright (C) 2021 MediaTek Inc.
|
|
*/
|
|
/dts-v1/;
|
|
#include "mt8195-cherry.dtsi"
|
|
|
|
/ {
|
|
model = "Acer Tomato (rev3 - 4) board";
|
|
compatible = "google,tomato-rev4", "google,tomato-rev3",
|
|
"google,tomato", "mediatek,mt8195";
|
|
};
|
|
|
|
&audio_codec {
|
|
compatible = "realtek,rt5682s";
|
|
realtek,amic-delay-ms = <250>;
|
|
};
|
|
|
|
&pio_default {
|
|
pins-low-power-hdmi-disable {
|
|
pinmux = <PINMUX_GPIO31__FUNC_GPIO31>,
|
|
<PINMUX_GPIO32__FUNC_GPIO32>,
|
|
<PINMUX_GPIO33__FUNC_GPIO33>;
|
|
input-enable;
|
|
bias-pull-down;
|
|
};
|
|
|
|
pins-low-power-hdmi-rsel-disable {
|
|
pinmux = <PINMUX_GPIO34__FUNC_GPIO34>,
|
|
<PINMUX_GPIO35__FUNC_GPIO35>;
|
|
input-enable;
|
|
bias-pull-down = <75000>;
|
|
};
|
|
|
|
pins-low-power-pcie0-disable {
|
|
pinmux = <PINMUX_GPIO19__FUNC_GPIO19>,
|
|
<PINMUX_GPIO20__FUNC_GPIO20>,
|
|
<PINMUX_GPIO21__FUNC_GPIO21>;
|
|
input-enable;
|
|
bias-pull-down;
|
|
};
|
|
};
|
|
|
|
&sound {
|
|
compatible = "mediatek,mt8195_mt6359_rt1019_rt5682";
|
|
model = "m8195_r1019_5682s";
|
|
};
|
|
|
|
&ts_10 {
|
|
status = "okay";
|
|
};
|
|
|
|
&watchdog {
|
|
/delete-property/ mediatek,disable-extrst;
|
|
};
|