xref: /freebsd/sys/contrib/device-tree/src/arm64/qcom/msm8916-samsung-e5.dts (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
17ef62cebSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
27ef62cebSEmmanuel Vadot
37ef62cebSEmmanuel Vadot/dts-v1/;
47ef62cebSEmmanuel Vadot
57ef62cebSEmmanuel Vadot#include "msm8916-samsung-e2015-common.dtsi"
67ef62cebSEmmanuel Vadot
77ef62cebSEmmanuel Vadot/*
87ef62cebSEmmanuel Vadot * NOTE: The original firmware from Samsung can only boot ARM32 kernels on some
97ef62cebSEmmanuel Vadot * variants.
107ef62cebSEmmanuel Vadot * Unfortunately, the firmware is signed and cannot be replaced easily.
117ef62cebSEmmanuel Vadot * There seems to be no way to boot ARM64 kernels on 32-bit devices at the
127ef62cebSEmmanuel Vadot * moment, even though the hardware would support it.
137ef62cebSEmmanuel Vadot *
147ef62cebSEmmanuel Vadot * However, it is possible to use this device tree by compiling an ARM32 kernel
157ef62cebSEmmanuel Vadot * instead. For clarity and build testing this device tree is maintained next
167ef62cebSEmmanuel Vadot * to the other MSM8916 device trees. However, it is actually used through
177ef62cebSEmmanuel Vadot * arch/arm/boot/dts/qcom-msm8916-samsung-e5.dts
187ef62cebSEmmanuel Vadot */
197ef62cebSEmmanuel Vadot
207ef62cebSEmmanuel Vadot/ {
217ef62cebSEmmanuel Vadot	model = "Samsung Galaxy E5";
227ef62cebSEmmanuel Vadot	compatible = "samsung,e5", "qcom,msm8916";
237ef62cebSEmmanuel Vadot	chassis-type = "handset";
247ef62cebSEmmanuel Vadot};
25aa1a8ff2SEmmanuel Vadot
26*0e8011faSEmmanuel Vadot&battery {
27*0e8011faSEmmanuel Vadot	charge-term-current-microamp = <200000>;
28*0e8011faSEmmanuel Vadot	constant-charge-current-max-microamp = <1500000>;
29*0e8011faSEmmanuel Vadot	constant-charge-voltage-max-microvolt = <4350000>;
30*0e8011faSEmmanuel Vadot};
31*0e8011faSEmmanuel Vadot
32aa1a8ff2SEmmanuel Vadot&blsp_i2c5 {
33aa1a8ff2SEmmanuel Vadot	status = "okay";
34aa1a8ff2SEmmanuel Vadot
35aa1a8ff2SEmmanuel Vadot	touchscreen@48 {
36aa1a8ff2SEmmanuel Vadot		compatible = "melfas,mms345l";
37aa1a8ff2SEmmanuel Vadot		reg = <0x48>;
38aa1a8ff2SEmmanuel Vadot
39aa1a8ff2SEmmanuel Vadot		interrupts-extended = <&tlmm 13 IRQ_TYPE_EDGE_FALLING>;
40aa1a8ff2SEmmanuel Vadot
41aa1a8ff2SEmmanuel Vadot		touchscreen-size-x = <720>;
42aa1a8ff2SEmmanuel Vadot		touchscreen-size-y = <1280>;
43aa1a8ff2SEmmanuel Vadot
44aa1a8ff2SEmmanuel Vadot		avdd-supply = <&reg_vdd_tsp_a>;
45aa1a8ff2SEmmanuel Vadot		vdd-supply = <&pm8916_l6>;
46aa1a8ff2SEmmanuel Vadot
47aa1a8ff2SEmmanuel Vadot		pinctrl-0 = <&ts_int_default>;
48aa1a8ff2SEmmanuel Vadot		pinctrl-names = "default";
49aa1a8ff2SEmmanuel Vadot	};
50aa1a8ff2SEmmanuel Vadot};
51