mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 06:39:05 +00:00

The Motorola MSM8916-based smartphones all use UART1 with 2 pins (TX, RX) as debug UART console, so make use of the new &blsp_uart1_console_default template. This applies the needed bias-pull-up to avoid garbage input, bootph-all for U-Boot and avoids having to override the UART pins. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org> Link: https://lore.kernel.org/r/20250422-msm8916-console-pinctrl-v2-4-f345b7a53c91@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
157 lines
2.4 KiB
Plaintext
157 lines
2.4 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#include "msm8916-pm8916.dtsi"
|
|
#include "msm8916-modem-qdsp6.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
/ {
|
|
aliases {
|
|
mmc0 = &sdhc_1; /* eMMC */
|
|
mmc1 = &sdhc_2; /* SD card */
|
|
serial0 = &blsp_uart1;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0";
|
|
};
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
|
|
pinctrl-0 = <&gpio_keys_default>;
|
|
pinctrl-names = "default";
|
|
|
|
label = "GPIO Buttons";
|
|
|
|
volume-up-button {
|
|
label = "Volume Up";
|
|
gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_VOLUMEUP>;
|
|
debounce-interval = <15>;
|
|
};
|
|
};
|
|
|
|
usb_id: usb-id {
|
|
compatible = "linux,extcon-usb-gpio";
|
|
id-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>;
|
|
pinctrl-0 = <&usb_id_default>;
|
|
pinctrl-1 = <&usb_id_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
};
|
|
};
|
|
|
|
&blsp_i2c2 {
|
|
status = "okay";
|
|
|
|
touchscreen: touchscreen@20 {
|
|
compatible = "syna,rmi4-i2c";
|
|
reg = <0x20>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
vio-supply = <&pm8916_l6>;
|
|
|
|
syna,startup-delay-ms = <100>;
|
|
|
|
rmi4-f01@1 {
|
|
reg = <1>;
|
|
syna,nosleep-mode = <1>; /* Allow sleeping */
|
|
};
|
|
|
|
rmi4-f11@11 {
|
|
reg = <11>;
|
|
syna,sensor-type = <1>; /* Touchscreen */
|
|
};
|
|
};
|
|
};
|
|
|
|
&blsp_uart1 {
|
|
pinctrl-0 = <&blsp_uart1_console_default>;
|
|
pinctrl-1 = <&blsp_uart1_console_sleep>;
|
|
pinctrl-names = "default", "sleep";
|
|
status = "okay";
|
|
};
|
|
|
|
&mpss_mem {
|
|
reg = <0x0 0x86800000 0x0 0x5500000>;
|
|
};
|
|
|
|
&pm8916_resin {
|
|
linux,code = <KEY_VOLUMEDOWN>;
|
|
status = "okay";
|
|
};
|
|
|
|
&pm8916_rpm_regulators {
|
|
pm8916_l16: l16 {
|
|
regulator-min-microvolt = <3100000>;
|
|
regulator-max-microvolt = <3300000>;
|
|
};
|
|
};
|
|
|
|
&pm8916_vib {
|
|
status = "okay";
|
|
};
|
|
|
|
&sdhc_1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&sdhc_2 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb {
|
|
extcon = <&usb_id>, <&usb_id>;
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_hs_phy {
|
|
extcon = <&usb_id>;
|
|
};
|
|
|
|
&venus {
|
|
status = "okay";
|
|
};
|
|
|
|
&venus_mem {
|
|
status = "okay";
|
|
};
|
|
|
|
&wcnss {
|
|
status = "okay";
|
|
};
|
|
|
|
&wcnss_iris {
|
|
compatible = "qcom,wcn3620";
|
|
};
|
|
|
|
&wcnss_mem {
|
|
status = "okay";
|
|
};
|
|
|
|
&tlmm {
|
|
gpio_keys_default: gpio-keys-default-state {
|
|
pins = "gpio107";
|
|
function = "gpio";
|
|
drive-strength = <2>;
|
|
bias-pull-up;
|
|
};
|
|
|
|
usb_id_default: usb-id-default-state {
|
|
pins = "gpio91";
|
|
function = "gpio";
|
|
drive-strength = <8>;
|
|
bias-pull-up;
|
|
};
|
|
|
|
usb_id_sleep: usb-id-sleep-state {
|
|
pins = "gpio91";
|
|
function = "gpio";
|
|
drive-strength = <8>;
|
|
bias-disable;
|
|
};
|
|
};
|