1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 2 3 /dts-v1/; 3 /dts-v1/; 4 4 5 #include "msm8916-motorola-common.dtsi" 5 #include "msm8916-motorola-common.dtsi" 6 6 7 / { 7 / { 8 model = "Motorola Moto G4 Play"; 8 model = "Motorola Moto G4 Play"; 9 compatible = "motorola,harpia", "qcom, 9 compatible = "motorola,harpia", "qcom,msm8916"; 10 chassis-type = "handset"; 10 chassis-type = "handset"; 11 }; 11 }; 12 12 13 &blsp_i2c1 { 13 &blsp_i2c1 { 14 status = "okay"; 14 status = "okay"; 15 15 16 battery@36 { 16 battery@36 { 17 compatible = "maxim,max17050"; 17 compatible = "maxim,max17050"; 18 reg = <0x36>; 18 reg = <0x36>; 19 19 20 interrupts-extended = <&tlmm 6 20 interrupts-extended = <&tlmm 62 IRQ_TYPE_EDGE_FALLING>; 21 21 22 pinctrl-0 = <&battery_alert_de 22 pinctrl-0 = <&battery_alert_default>; 23 pinctrl-names = "default"; 23 pinctrl-names = "default"; 24 24 25 maxim,rsns-microohm = <10000>; 25 maxim,rsns-microohm = <10000>; 26 maxim,over-heat-temp = <600>; 26 maxim,over-heat-temp = <600>; 27 maxim,cold-temp = <(-200)>; 27 maxim,cold-temp = <(-200)>; 28 maxim,dead-volt = <3200>; 28 maxim,dead-volt = <3200>; 29 maxim,over-volt = <4500>; 29 maxim,over-volt = <4500>; 30 }; 30 }; 31 31 32 /* charger@6b */ 32 /* charger@6b */ 33 }; 33 }; 34 34 35 &blsp_i2c4 { 35 &blsp_i2c4 { 36 status = "okay"; 36 status = "okay"; 37 37 38 accelerometer@19 { 38 accelerometer@19 { 39 compatible = "bosch,bma253"; 39 compatible = "bosch,bma253"; 40 reg = <0x19>; 40 reg = <0x19>; 41 41 42 interrupts-extended = <&tlmm 1 42 interrupts-extended = <&tlmm 115 IRQ_TYPE_EDGE_RISING>, 43 <&tlmm 1 43 <&tlmm 119 IRQ_TYPE_EDGE_RISING>; 44 44 45 vdd-supply = <&pm8916_l17>; 45 vdd-supply = <&pm8916_l17>; 46 vddio-supply = <&pm8916_l6>; 46 vddio-supply = <&pm8916_l6>; 47 47 48 mount-matrix = "1", "0", "0", 48 mount-matrix = "1", "0", "0", 49 "0", "-1", "0", 49 "0", "-1", "0", 50 "0", "0", "1"; 50 "0", "0", "1"; 51 51 52 pinctrl-0 = <&accel_int_defaul 52 pinctrl-0 = <&accel_int_default>; 53 pinctrl-names = "default"; 53 pinctrl-names = "default"; 54 }; 54 }; 55 55 56 /* proximity@49 */ 56 /* proximity@49 */ 57 }; 57 }; 58 58 59 &pm8916_codec { 59 &pm8916_codec { 60 qcom,micbias-lvl = <2800>; 60 qcom,micbias-lvl = <2800>; 61 qcom,mbhc-vthreshold-low = <75 150 237 61 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 62 qcom,mbhc-vthreshold-high = <75 150 23 62 qcom,mbhc-vthreshold-high = <75 150 237 450 500>; 63 qcom,micbias1-ext-cap; 63 qcom,micbias1-ext-cap; 64 }; 64 }; 65 65 66 &pm8916_rpm_regulators { 66 &pm8916_rpm_regulators { 67 pm8916_l17: l17 { 67 pm8916_l17: l17 { 68 regulator-min-microvolt = <285 68 regulator-min-microvolt = <2850000>; 69 regulator-max-microvolt = <285 69 regulator-max-microvolt = <2850000>; 70 }; 70 }; 71 }; 71 }; 72 72 73 &sdhc_2 { 73 &sdhc_2 { 74 pinctrl-0 = <&sdc2_default &sdc2_cd_de 74 pinctrl-0 = <&sdc2_default &sdc2_cd_default>; 75 pinctrl-1 = <&sdc2_sleep &sdc2_cd_defa 75 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>; 76 pinctrl-names = "default", "sleep"; 76 pinctrl-names = "default", "sleep"; 77 77 78 cd-gpios = <&tlmm 118 GPIO_ACTIVE_LOW> 78 cd-gpios = <&tlmm 118 GPIO_ACTIVE_LOW>; 79 }; 79 }; 80 80 81 &sound { 81 &sound { 82 audio-routing = 82 audio-routing = 83 "AMIC1", "MIC BIAS External1", 83 "AMIC1", "MIC BIAS External1", 84 "AMIC2", "MIC BIAS Internal2", 84 "AMIC2", "MIC BIAS Internal2", 85 "AMIC3", "MIC BIAS External1"; 85 "AMIC3", "MIC BIAS External1"; 86 86 87 pinctrl-0 = <&cdc_pdm_default &headset 87 pinctrl-0 = <&cdc_pdm_default &headset_switch_supply_en 88 &headset_switch_in>; 88 &headset_switch_in>; 89 pinctrl-1 = <&cdc_pdm_sleep &headset_s 89 pinctrl-1 = <&cdc_pdm_sleep &headset_switch_supply_en 90 &headset_switch_in>; 90 &headset_switch_in>; 91 pinctrl-names = "default", "sleep"; 91 pinctrl-names = "default", "sleep"; 92 }; 92 }; 93 93 94 &touchscreen { 94 &touchscreen { 95 interrupts-extended = <&tlmm 13 IRQ_TY 95 interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>; 96 96 97 vdd-supply = <&pm8916_l16>; 97 vdd-supply = <&pm8916_l16>; 98 98 99 pinctrl-0 = <&ts_int_default>; 99 pinctrl-0 = <&ts_int_default>; 100 pinctrl-names = "default"; 100 pinctrl-names = "default"; 101 }; 101 }; 102 102 103 &tlmm { 103 &tlmm { 104 accel_int_default: accel-int-default-s 104 accel_int_default: accel-int-default-state { 105 pins = "gpio115", "gpio119"; 105 pins = "gpio115", "gpio119"; 106 function = "gpio"; 106 function = "gpio"; 107 drive-strength = <2>; 107 drive-strength = <2>; 108 bias-disable; 108 bias-disable; 109 }; 109 }; 110 110 111 battery_alert_default: battery-alert-d 111 battery_alert_default: battery-alert-default-state { 112 pins = "gpio62"; 112 pins = "gpio62"; 113 function = "gpio"; 113 function = "gpio"; 114 drive-strength = <2>; 114 drive-strength = <2>; 115 bias-pull-up; 115 bias-pull-up; 116 }; 116 }; 117 117 118 headset_switch_in: headset-switch-in-s 118 headset_switch_in: headset-switch-in-state { 119 pins = "gpio112"; 119 pins = "gpio112"; 120 function = "gpio"; 120 function = "gpio"; 121 drive-strength = <2>; 121 drive-strength = <2>; 122 bias-disable; 122 bias-disable; 123 output-low; 123 output-low; 124 }; 124 }; 125 125 126 headset_switch_supply_en: headset-swit 126 headset_switch_supply_en: headset-switch-supply-en-state { 127 pins = "gpio111"; 127 pins = "gpio111"; 128 function = "gpio"; 128 function = "gpio"; 129 drive-strength = <2>; 129 drive-strength = <2>; 130 bias-disable; 130 bias-disable; 131 output-high; 131 output-high; 132 }; 132 }; 133 133 134 sdc2_cd_default: sdc2-cd-default-state 134 sdc2_cd_default: sdc2-cd-default-state { 135 pins = "gpio118"; 135 pins = "gpio118"; 136 function = "gpio"; 136 function = "gpio"; 137 drive-strength = <2>; 137 drive-strength = <2>; 138 bias-disable; 138 bias-disable; 139 }; 139 }; 140 140 141 ts_int_default: ts-int-default-state { 141 ts_int_default: ts-int-default-state { 142 pins = "gpio13"; 142 pins = "gpio13"; 143 function = "gpio"; 143 function = "gpio"; 144 drive-strength = <2>; 144 drive-strength = <2>; 145 bias-disable; 145 bias-disable; 146 }; 146 }; 147 }; 147 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.