18c2ecf20Sopenharmony_ciTruly model NT35597 DSI display driver
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe Truly NT35597 is a generic display driver, currently only configured
48c2ecf20Sopenharmony_cifor use in the 2K display on the Qualcomm SDM845 MTP board.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciRequired properties:
78c2ecf20Sopenharmony_ci- compatible: should be "truly,nt35597-2K-display"
88c2ecf20Sopenharmony_ci- vdda-supply: phandle of the regulator that provides the supply voltage
98c2ecf20Sopenharmony_ci  Power IC supply
108c2ecf20Sopenharmony_ci- vdispp-supply: phandle of the regulator that provides the supply voltage
118c2ecf20Sopenharmony_ci  for positive LCD bias
128c2ecf20Sopenharmony_ci- vdispn-supply: phandle of the regulator that provides the supply voltage
138c2ecf20Sopenharmony_ci  for negative LCD bias
148c2ecf20Sopenharmony_ci- reset-gpios: phandle of gpio for reset line
158c2ecf20Sopenharmony_ci  This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names
168c2ecf20Sopenharmony_ci  (active low)
178c2ecf20Sopenharmony_ci- mode-gpios: phandle of the gpio for choosing the mode of the display
188c2ecf20Sopenharmony_ci  for single DSI or Dual DSI
198c2ecf20Sopenharmony_ci  This should be low for dual DSI and high for single DSI mode
208c2ecf20Sopenharmony_ci- ports: This device has two video ports driven by two DSIs. Their connections
218c2ecf20Sopenharmony_ci  are modeled using the OF graph bindings specified in
228c2ecf20Sopenharmony_ci  Documentation/devicetree/bindings/graph.txt.
238c2ecf20Sopenharmony_ci  - port@0: DSI input port driven by master DSI
248c2ecf20Sopenharmony_ci  - port@1: DSI input port driven by secondary DSI
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciExample:
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci	dsi@ae94000 {
298c2ecf20Sopenharmony_ci		panel@0 {
308c2ecf20Sopenharmony_ci			compatible = "truly,nt35597-2K-display";
318c2ecf20Sopenharmony_ci			reg = <0>;
328c2ecf20Sopenharmony_ci			vdda-supply = <&pm8998_l14>;
338c2ecf20Sopenharmony_ci			vdispp-supply = <&lab_regulator>;
348c2ecf20Sopenharmony_ci			vdispn-supply = <&ibb_regulator>;
358c2ecf20Sopenharmony_ci			pinctrl-names = "default", "suspend";
368c2ecf20Sopenharmony_ci			pinctrl-0 = <&dpu_dsi_active>;
378c2ecf20Sopenharmony_ci			pinctrl-1 = <&dpu_dsi_suspend>;
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci			reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
408c2ecf20Sopenharmony_ci			mode-gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>;
418c2ecf20Sopenharmony_ci			ports {
428c2ecf20Sopenharmony_ci				#address-cells = <1>;
438c2ecf20Sopenharmony_ci				#size-cells = <0>;
448c2ecf20Sopenharmony_ci				port@0 {
458c2ecf20Sopenharmony_ci					reg = <0>;
468c2ecf20Sopenharmony_ci					panel0_in: endpoint {
478c2ecf20Sopenharmony_ci						remote-endpoint = <&dsi0_out>;
488c2ecf20Sopenharmony_ci					};
498c2ecf20Sopenharmony_ci				};
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci				port@1 {
528c2ecf20Sopenharmony_ci					reg = <1>;
538c2ecf20Sopenharmony_ci					panel1_in: endpoint {
548c2ecf20Sopenharmony_ci						remote-endpoint = <&dsi1_out>;
558c2ecf20Sopenharmony_ci					};
568c2ecf20Sopenharmony_ci				};
578c2ecf20Sopenharmony_ci			};
588c2ecf20Sopenharmony_ci		};
598c2ecf20Sopenharmony_ci	};
60