File Index
Files and directories
Sign in
FILE

msm8916-motorola-common.dtsi

File preview with syntax highlighting.

linux-6.19.14/arch/arm64/boot/dts/qcom/msm8916-motorola-common.dtsi DEVICETREE
  1// SPDX-License-Identifier: GPL-2.0-only
  2
  3#include "msm8916-pm8916.dtsi"
  4#include "msm8916-modem-qdsp6.dtsi"
  5
  6#include <dt-bindings/gpio/gpio.h>
  7#include <dt-bindings/input/input.h>
  8#include <dt-bindings/interrupt-controller/irq.h>
  9
 10/ {
 11	aliases {
 12		mmc0 = &sdhc_1; /* eMMC */
 13		mmc1 = &sdhc_2; /* SD card */
 14		serial0 = &blsp_uart1;
 15	};
 16
 17	chosen {
 18		stdout-path = "serial0";
 19	};
 20
 21	gpio-keys {
 22		compatible = "gpio-keys";
 23
 24		pinctrl-0 = <&gpio_keys_default>;
 25		pinctrl-names = "default";
 26
 27		label = "GPIO Buttons";
 28
 29		volume-up-button {
 30			label = "Volume Up";
 31			gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
 32			linux,code = <KEY_VOLUMEUP>;
 33			debounce-interval = <15>;
 34		};
 35	};
 36
 37	usb_id: usb-id {
 38		compatible = "linux,extcon-usb-gpio";
 39		id-gpios = <&tlmm 91 GPIO_ACTIVE_HIGH>;
 40		pinctrl-0 = <&usb_id_default>;
 41		pinctrl-1 = <&usb_id_sleep>;
 42		pinctrl-names = "default", "sleep";
 43	};
 44};
 45
 46&blsp_i2c2 {
 47	status = "okay";
 48
 49	touchscreen: touchscreen@20 {
 50		compatible = "syna,rmi4-i2c";
 51		reg = <0x20>;
 52		#address-cells = <1>;
 53		#size-cells = <0>;
 54
 55		vio-supply = <&pm8916_l6>;
 56
 57		syna,startup-delay-ms = <100>;
 58
 59		rmi4-f01@1 {
 60			reg = <1>;
 61			syna,nosleep-mode = <1>; /* Allow sleeping */
 62		};
 63
 64		rmi4-f11@11 {
 65			reg = <11>;
 66			syna,sensor-type = <1>; /* Touchscreen */
 67		};
 68	};
 69};
 70
 71&blsp_uart1 {
 72	pinctrl-0 = <&blsp_uart1_console_default>;
 73	pinctrl-1 = <&blsp_uart1_console_sleep>;
 74	pinctrl-names = "default", "sleep";
 75	status = "okay";
 76};
 77
 78&mpss_mem {
 79	reg = <0x0 0x86800000 0x0 0x5500000>;
 80};
 81
 82&pm8916_resin {
 83	linux,code = <KEY_VOLUMEDOWN>;
 84	status = "okay";
 85};
 86
 87&pm8916_rpm_regulators {
 88	pm8916_l16: l16 {
 89		regulator-min-microvolt = <3100000>;
 90		regulator-max-microvolt = <3300000>;
 91	};
 92};
 93
 94&pm8916_vib {
 95	status = "okay";
 96};
 97
 98&sdhc_1 {
 99	status = "okay";
100};
101
102&sdhc_2 {
103	status = "okay";
104};
105
106&usb {
107	extcon = <&usb_id>, <&usb_id>;
108	status = "okay";
109};
110
111&usb_hs_phy {
112	extcon = <&usb_id>;
113};
114
115&venus {
116	status = "okay";
117};
118
119&venus_mem {
120	status = "okay";
121};
122
123&wcnss {
124	status = "okay";
125};
126
127&wcnss_iris {
128	compatible = "qcom,wcn3620";
129};
130
131&wcnss_mem {
132	status = "okay";
133};
134
135&tlmm {
136	gpio_keys_default: gpio-keys-default-state {
137		pins = "gpio107";
138		function = "gpio";
139		drive-strength = <2>;
140		bias-pull-up;
141	};
142
143	usb_id_default: usb-id-default-state {
144		pins = "gpio91";
145		function = "gpio";
146		drive-strength = <8>;
147		bias-pull-up;
148	};
149
150	usb_id_sleep: usb-id-sleep-state {
151		pins = "gpio91";
152		function = "gpio";
153		drive-strength = <8>;
154		bias-disable;
155	};
156};
~/ Read-only file preview.