]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: mediatek: mt8183-kukui: Move DSI panel node to machine dtsis
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 24 Jul 2025 08:39:09 +0000 (10:39 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Fri, 12 Sep 2025 14:18:03 +0000 (16:18 +0200)
Not all of the kukui machines have got a real DSI panel, infact,
some of those have got a DSI to eDP bridge instead: this means
that the address and size cells are necessary in the first case
but unnecessary in the latter.

Instead of adding a bunch of /delete-node/ which would impact on
human readability, move the entire panel node declaration to each
of the relevant Kukui machine dtsi: even though this introduces
some duplication, the advantages in readability surclass that.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20250724083914.61351-34-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm64/boot/dts/mediatek/mt8183-kukui-jacuzzi.dtsi
arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi
arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi
arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi
arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi

index f2afca63c75a1feed21a96a2236d484f634f6f67..1b74ec171c10cd1095fac94f1007c0c0ac8b0ffa 100644 (file)
        };
 };
 
-&dsi0 {
-       status = "okay";
-       /delete-node/panel@0;
-};
-
 &dsi_out {
        remote-endpoint = <&anx7625_in>;
 };
index 472d4987615acedfcd0ae3beb73593463c1e1554..d71972c94e4287ca7c6565c948c5dbadd9db68df 100644 (file)
        firmware-name = "nvm_00440302_i2s_eu.bin";
 };
 
+&dsi0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+
+       panel: panel@0 {
+               /* compatible will be set in board dts */
+               reg = <0>;
+               enable-gpios = <&pio 45 0>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&panel_pins_default>;
+               avdd-supply = <&ppvarn_lcd>;
+               avee-supply = <&ppvarp_lcd>;
+               pp1800-supply = <&pp1800_lcd>;
+               backlight = <&backlight_lcd0>;
+               rotation = <270>;
+               port {
+                       panel_in: endpoint {
+                               remote-endpoint = <&dsi_out>;
+                       };
+               };
+       };
+};
+
+&dsi_out {
+       remote-endpoint = <&panel_in>;
+};
+
 &i2c0 {
        status = "okay";
 };
index 1b21e39580612891dbc91d4fbb18fadfb9dcb967..b702ff066636e568f230c8c7a1f5801f03aa1dca 100644 (file)
        };
 };
 
+&dsi0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       status = "okay";
+
+       panel: panel@0 {
+               /* compatible will be set in board dts */
+               reg = <0>;
+               enable-gpios = <&pio 45 0>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&panel_pins_default>;
+               avdd-supply = <&ppvarn_lcd>;
+               avee-supply = <&ppvarp_lcd>;
+               pp1800-supply = <&pp1800_lcd>;
+               backlight = <&backlight_lcd0>;
+               rotation = <270>;
+               port {
+                       panel_in: endpoint {
+                               remote-endpoint = <&dsi_out>;
+                       };
+               };
+       };
+};
+
+&dsi_out {
+       remote-endpoint = <&panel_in>;
+};
+
 &i2c0 {
        status = "okay";
 
index a85c73b43195c785f3ded854b0387effe72ffd98..b6cfcafd8b062f9b640775973d767d43c5084973 100644 (file)
        firmware-name = "nvm_00440302_i2s_eu.bin";
 };
 
+&dsi0 {
+       #address-cells = <1>;
+       #size-cells = <0>;
+       status = "okay";
+
+       panel: panel@0 {
+               /* compatible will be set in board dts */
+               reg = <0>;
+               enable-gpios = <&pio 45 0>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&panel_pins_default>;
+               avdd-supply = <&ppvarn_lcd>;
+               avee-supply = <&ppvarp_lcd>;
+               pp1800-supply = <&pp1800_lcd>;
+               backlight = <&backlight_lcd0>;
+               rotation = <270>;
+               port {
+                       panel_in: endpoint {
+                               remote-endpoint = <&dsi_out>;
+                       };
+               };
+       };
+};
+
+&dsi_out {
+       remote-endpoint = <&panel_in>;
+};
+
 &i2c0 {
        status = "okay";
 
index 350b381f780d6febab9840e54dbd2cb5d15fafc6..4b87d4940c8c739869c347698c6545ded62896d2 100644 (file)
 
 &dsi0 {
        status = "okay";
-       #address-cells = <1>;
-       #size-cells = <0>;
-       panel: panel@0 {
-               /* compatible will be set in board dts */
-               reg = <0>;
-               enable-gpios = <&pio 45 0>;
-               pinctrl-names = "default";
-               pinctrl-0 = <&panel_pins_default>;
-               avdd-supply = <&ppvarn_lcd>;
-               avee-supply = <&ppvarp_lcd>;
-               pp1800-supply = <&pp1800_lcd>;
-               backlight = <&backlight_lcd0>;
-               rotation = <270>;
-               port {
-                       panel_in: endpoint {
-                               remote-endpoint = <&dsi_out>;
-                       };
-               };
-       };
-};
-
-&dsi_out {
-       remote-endpoint = <&panel_in>;
 };
 
 &gic {