// SPDX-License-Identifier: BSD-3-Clause /* * Copyright (c) 2023, Hacker1245 */ /dts-v1/; #include #include #include #include "msm8937.dtsi" #include "pm8937.dtsi" #include "pmi8950.dtsi" / { model = "Motorola Moto G5 (cedric)"; compatible = "qcom,msm8937-cedric", "qcom,msm8937-moto", "qcom,msm8937"; qcom,msm-id = <294 66 0 0x10000>; chassis-type = "handset"; aliases { serial0 = &blsp1_uart2; panel = &panel; }; reserved-memory { /delete-node/ reserved@85b00000; /* QSEECOM */ qseecom_mem: qseecom@84300000 { reg = <0x0 0x84300000 0x0 0x2000000>; no-map; }; framebuffer_mem: memory@90001000 { reg = <0x0 0x90001000 0x0 (1080*1920*3)>; no-map; }; tzlog_bck_mem@ae400000 { no-map; reg = <0x00 0xae400000 0x00 0x2000>; }; wdog_cpuctx_mem@ae800000 { no-map; reg = <0x00 0xae800000 0x00 0x2c000>; }; }; ramoops@ae000000 { compatible = "ramoops"; reg = <0x0 0xae000000 0x0 0x80000>; console-size = <0x40000>; pmsg-size = <0x40000>; record-size = <0x3f800>; }; vph_pwr: vph-pwr-regulator { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; regulator-min-microvolt = <3700000>; regulator-max-microvolt = <3700000>; regulator-always-on; regulator-boot-on; }; vdda_touch_vreg: vdda_touch_vreg { compatible = "regulator-fixed"; regulator-name = "vdda_touch"; gpio = <&msmgpio 59 0>; startup-delay-us = <300>; enable-active-high; }; gpio-keys { compatible = "gpio-keys"; btn-volup { label = "Volume Up"; linux,code = ; gpios = <&msmgpio 73 GPIO_ACTIVE_LOW>; debounce-interval = <15>; }; }; }; &blsp_i2c3 { status = "okay"; touchscreen@20 { reg = <0x20>; compatible = "syna,rmi4-i2c"; interrupt-parent = <&msmgpio>; interrupts = <65 IRQ_TYPE_EDGE_FALLING>; pinctrl-names = "default"; pinctrl-0 = <&ts_reset>; vdd-supply = <&vdda_touch_vreg>; vio-supply = <&pm8937_l6>; syna,reset-delay-ms = <200>; syna,startup-delay-ms = <500>; }; }; &dsi0 { panel: panel@0 { compatible = "tianma,497-v0"; reg = <0>; reset-gpios = <&msmgpio 60 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&mdss_dsi_active>; port { panel_in: endpoint { remote-endpoint = <&dsi0_out>; }; }; }; }; &dsi0_out { data-lanes = <0 1 2 3>; remote-endpoint = <&panel_in>; }; &blsp1_uart2 { status = "okay"; }; &pm8937_spmi_regulators { /* PM8937 S5 + S6 = VDD_APC supply */ pm8937_s5: s5 { regulator-min-microvolt = <1050000>; regulator-max-microvolt = <1350000>; regulator-always-on; regulator-boot-on; }; }; &rpm_requests { regulators-0 { compatible = "qcom,rpm-pm8937-regulators"; vdd_s1-supply = <&vph_pwr>; vdd_s2-supply = <&vph_pwr>; vdd_s3-supply = <&vph_pwr>; vdd_s4-supply = <&vph_pwr>; vdd_l1_l19-supply = <&pm8937_s3>; vdd_l2_l23-supply = <&pm8937_s3>; vdd_l3-supply = <&pm8937_s3>; vdd_l4_l5_l6_l7_l16-supply = <&pm8937_s4>; vdd_l8_l11_l12_l17_l22-supply = <&vph_pwr>; vdd_l9_l10_l13_l14_l15_l18-supply = <&vph_pwr>; pm8937_s1: s1 { regulator-min-microvolt = <1000000>; regulator-max-microvolt = <1225000>; }; /* S2: VDD_CX */ pm8937_s3: s3 { regulator-min-microvolt = <1300000>; regulator-max-microvolt = <1300000>; }; pm8937_s4: s4 { regulator-min-microvolt = <2050000>; regulator-max-microvolt = <2050000>; }; pm8937_l2: l2 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; }; /* L3: VDD_MX */ pm8937_l5: l5 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; pm8937_l6: l6 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; }; pm8937_l7: l7 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; pm8937_l8: l8 { regulator-min-microvolt = <2850000>; regulator-max-microvolt = <2900000>; }; pm8937_l9: l9 { regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3300000>; }; pm8937_l10: l10 { regulator-min-microvolt = <2800000>; regulator-max-microvolt = <3000000>; }; pm8937_l11: l11 { regulator-min-microvolt = <2950000>; regulator-max-microvolt = <2950000>; }; pm8937_l12: l12 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <2950000>; }; pm8937_l13: l13 { regulator-min-microvolt = <3075000>; regulator-max-microvolt = <3075000>; }; pm8937_l14: l14 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; }; pm8937_l15: l15 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; }; pm8937_l16: l16 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; }; pm8937_l17: l17 { regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2900000>; }; pm8937_l19: l19 { regulator-min-microvolt = <1225000>; regulator-max-microvolt = <1350000>; }; pm8937_l22: l22 { regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; }; pm8937_l23: l23 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; }; }; }; &sdhc_1 { status = "okay"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on &sdc1_rclk_on>; pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off &sdc1_rclk_off>; }; &sdhc_2 { status = "okay"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; cd-gpios = <&msmgpio 67 GPIO_ACTIVE_LOW>; }; &sdc2_cmd_on { drive-strength = <12>; }; &sdc2_data_on { drive-strength = <12>; }; &msmgpio { ts_reset: ts-reset-state { pins = "gpio64"; function = "gpio"; drive-strength = <2>; bias-pull-down; }; };