|
| 1 | +// SPDX-License-Identifier: BSD-3-Clause |
| 2 | +/* |
| 3 | + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. |
| 4 | + */ |
| 5 | +/dts-v1/; |
| 6 | +/plugin/; |
| 7 | + |
| 8 | +#include <dt-bindings/gpio/gpio.h> |
| 9 | + |
| 10 | +&{/} { |
| 11 | + backlight: backlight { |
| 12 | + compatible = "gpio-backlight"; |
| 13 | + gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>, |
| 14 | + <&tlmm 115 GPIO_ACTIVE_HIGH>; |
| 15 | + default-on; |
| 16 | + }; |
| 17 | + |
| 18 | + panel-lvds { |
| 19 | + compatible = "auo,g133han01"; |
| 20 | + power-supply = <&vreg_v3p3>; |
| 21 | + |
| 22 | + ports { |
| 23 | + #address-cells = <1>; |
| 24 | + #size-cells = <0>; |
| 25 | + |
| 26 | + /* LVDS A (Odd pixels) */ |
| 27 | + port@0 { |
| 28 | + reg = <0>; |
| 29 | + dual-lvds-odd-pixels; |
| 30 | + |
| 31 | + lvds_panel_out_a: endpoint { |
| 32 | + remote-endpoint = <&sn65dsi84_out_a>; |
| 33 | + }; |
| 34 | + }; |
| 35 | + |
| 36 | + /* LVDS B (Even pixels) */ |
| 37 | + port@1 { |
| 38 | + reg = <1>; |
| 39 | + dual-lvds-even-pixels; |
| 40 | + |
| 41 | + lvds_panel_out_b: endpoint { |
| 42 | + remote-endpoint = <&sn65dsi84_out_b>; |
| 43 | + }; |
| 44 | + }; |
| 45 | + }; |
| 46 | + }; |
| 47 | + |
| 48 | + vreg_v3p3: regulator-v3p3 { |
| 49 | + compatible = "regulator-fixed"; |
| 50 | + regulator-name = "vdd-3v3"; |
| 51 | + regulator-min-microvolt = <3300000>; |
| 52 | + regulator-max-microvolt = <3300000>; |
| 53 | + }; |
| 54 | +}; |
| 55 | + |
| 56 | +&hdmi_connector { |
| 57 | + status = "disabled"; |
| 58 | +}; |
| 59 | + |
| 60 | +&i2c1 { |
| 61 | + clock-frequency = <400000>; |
| 62 | + |
| 63 | + status = "okay"; |
| 64 | + |
| 65 | + hdmi_bridge: bridge@3d { |
| 66 | + status = "disabled"; |
| 67 | + }; |
| 68 | + |
| 69 | + lvds_bridge: bridge@2c { |
| 70 | + compatible = "ti,sn65dsi84"; |
| 71 | + reg = <0x2c>; |
| 72 | + enable-gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>; |
| 73 | + |
| 74 | + ports { |
| 75 | + #address-cells = <1>; |
| 76 | + #size-cells = <0>; |
| 77 | + |
| 78 | + port@0 { |
| 79 | + reg = <0>; |
| 80 | + |
| 81 | + sn65dsi84_in: endpoint { |
| 82 | + data-lanes = <1 2 3 4>; |
| 83 | + remote-endpoint = <&mdss_dsi0_out>; |
| 84 | + }; |
| 85 | + }; |
| 86 | + |
| 87 | + port@2 { |
| 88 | + reg = <2>; |
| 89 | + |
| 90 | + sn65dsi84_out_a: endpoint { |
| 91 | + data-lanes = <1 2 3 4>; |
| 92 | + remote-endpoint = <&lvds_panel_out_a>; |
| 93 | + }; |
| 94 | + }; |
| 95 | + |
| 96 | + port@3 { |
| 97 | + reg = <3>; |
| 98 | + |
| 99 | + sn65dsi84_out_b: endpoint { |
| 100 | + data-lanes = <1 2 3 4>; |
| 101 | + remote-endpoint = <&lvds_panel_out_b>; |
| 102 | + }; |
| 103 | + }; |
| 104 | + }; |
| 105 | + }; |
| 106 | +}; |
| 107 | + |
| 108 | +&mdss_dsi0 { |
| 109 | + vdda-supply = <&vreg_l11a>; |
| 110 | + |
| 111 | + status = "okay"; |
| 112 | +}; |
| 113 | + |
| 114 | +&mdss_dsi0_out { |
| 115 | + remote-endpoint = <&sn65dsi84_in>; |
| 116 | + data-lanes = <0 1 2 3>; |
| 117 | +}; |
| 118 | + |
| 119 | +&tlmm { |
| 120 | + lcd_bklt_en: lcd-bklt-en-state { |
| 121 | + pins = "gpio115"; |
| 122 | + function = "gpio"; |
| 123 | + bias-disable; |
| 124 | + }; |
| 125 | + |
| 126 | + lcd_bklt_pwm: lcd-bklt-pwm-state { |
| 127 | + pins = "gpio59"; |
| 128 | + function = "gpio"; |
| 129 | + bias-disable; |
| 130 | + }; |
| 131 | +}; |
0 commit comments