|
| 1 | +/dts-v1/; |
| 2 | +/plugin/; |
| 3 | + |
| 4 | +/ { |
| 5 | + compatible = "brcm,bcm2835"; |
| 6 | + |
| 7 | + fragment@0 { |
| 8 | + target-path = "/"; |
| 9 | + __overlay__ { |
| 10 | + vdd_lcd: fixedregulator_lcd { |
| 11 | + compatible = "regulator-fixed"; |
| 12 | + regulator-name = "vdd_lcd"; |
| 13 | + regulator-max-microvolt = <5000000>; |
| 14 | + regulator-min-microvolt = <5000000>; |
| 15 | + |
| 16 | + gpios = <®_display 4 0>; |
| 17 | + regulator-boot-on; |
| 18 | + enable-active-high; |
| 19 | + }; |
| 20 | + }; |
| 21 | + }; |
| 22 | + |
| 23 | + fragment@1 { |
| 24 | + target = <&dsi1>; |
| 25 | + __overlay__{ |
| 26 | + status = "okay"; |
| 27 | + #address-cells = <1>; |
| 28 | + #size-cells = <0>; |
| 29 | + port { |
| 30 | + dsi_out_port:endpoint { |
| 31 | + remote-endpoint = <&panel_dsi_port>; |
| 32 | + }; |
| 33 | + }; |
| 34 | + |
| 35 | + ili9881c:ili9881c@0 { |
| 36 | + compatible = "rzw,t101p136cq-rpi4"; |
| 37 | + status = "okay"; |
| 38 | + reg = <0>; |
| 39 | + |
| 40 | + reset-gpios = <®_display 2 0>; |
| 41 | + backlight = <®_display>; |
| 42 | + power-supply = <&vdd_lcd>; |
| 43 | + rotation = <270>; |
| 44 | + |
| 45 | + port { |
| 46 | + panel_dsi_port: endpoint { |
| 47 | + remote-endpoint = <&dsi_out_port>; |
| 48 | + }; |
| 49 | + }; |
| 50 | + }; |
| 51 | + }; |
| 52 | + }; |
| 53 | + |
| 54 | + fragment@2 { |
| 55 | + target = <&i2c0if>; |
| 56 | + __overlay__ { |
| 57 | + status = "okay"; |
| 58 | + }; |
| 59 | + }; |
| 60 | + |
| 61 | + fragment@3 { |
| 62 | + target = <&i2c0mux>; |
| 63 | + __overlay__ { |
| 64 | + status = "okay"; |
| 65 | + }; |
| 66 | + }; |
| 67 | + |
| 68 | + fragment@4 { |
| 69 | + target = <&gpio>; |
| 70 | + __overlay__ { |
| 71 | + gt928_pins: gt928_pins { |
| 72 | + brcm,pins = <16>; |
| 73 | + brcm,function = <0>; |
| 74 | + brcm,pull = <2>; |
| 75 | + }; |
| 76 | + }; |
| 77 | + }; |
| 78 | + |
| 79 | + i2c_frag: fragment@5 { |
| 80 | + target = <&i2c_csi_dsi>; |
| 81 | + __overlay__ { |
| 82 | + #address-cells = <1>; |
| 83 | + #size-cells = <0>; |
| 84 | + status = "okay"; |
| 85 | + |
| 86 | + reg_display: reg_display@27 { |
| 87 | + compatible = "edatec,disp-regulator"; |
| 88 | + reg = <0x27>; |
| 89 | + gpio-controller; |
| 90 | + #gpio-cells = <2>; |
| 91 | + }; |
| 92 | + |
| 93 | + gt928:gt928@14 { |
| 94 | + compatible = "goodix,gt928"; |
| 95 | + reg = <0x14>; |
| 96 | + |
| 97 | + reset-gpios = <®_display 3 0>; |
| 98 | + interrupt-parent = <&gpio>; |
| 99 | + interrupts = <16 2>; |
| 100 | + irq-gpios = <&gpio 16 0>; |
| 101 | + }; |
| 102 | + }; |
| 103 | + }; |
| 104 | + |
| 105 | + fragment@6 { |
| 106 | + target = <&ili9881c>; |
| 107 | + __dormant__ { |
| 108 | + compatible = "rzw,t101p136cq-rpi4-lite"; |
| 109 | + }; |
| 110 | + }; |
| 111 | + |
| 112 | + fragment@7 { |
| 113 | + target = <&ili9881c>; |
| 114 | + __dormant__ { |
| 115 | + compatible = "rzw,t101p136cq-rpi5"; |
| 116 | + }; |
| 117 | + }; |
| 118 | + |
| 119 | + __overrides__ { |
| 120 | + interrupt = <>928_pins>,"brcm,pins:0", |
| 121 | + <>928>,"interrupts:0", |
| 122 | + <>928>,"irq-gpios:4"; |
| 123 | + rotation = <&ili9881c>,"rotation:0"; |
| 124 | + |
| 125 | + pi4 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>,<0>, "+6"; |
| 126 | + cm4 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>; |
| 127 | + pi5 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>,<0>, "+7"; |
| 128 | + cm5 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>,<0>, "+7"; |
| 129 | + cm0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi>,<0>, "+6"; |
| 130 | + }; |
| 131 | +}; |
0 commit comments