arm64: dts: apple: Add touchbar screen nodes
authorSasha Finkelstein <fnkl.kernel@gmail.com>
Mon, 17 Feb 2025 11:39:34 +0000 (12:39 +0100)
committerSven Peter <sven@svenpeter.dev>
Mon, 3 Mar 2025 19:49:28 +0000 (20:49 +0100)
Adds device tree entries for the touchbar screen

Co-developed-by: Janne Grunau <j@jannau.net>
Signed-off-by: Janne Grunau <j@jannau.net>
Reviewed-by: Nick Chan <towinchenmi@gmail.com>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com>
Link: https://lore.kernel.org/r/20250217-adpdrm-v7-4-ca2e44b3c7d8@gmail.com
Signed-off-by: Sven Peter <sven@svenpeter.dev>
arch/arm64/boot/dts/apple/t8103-j293.dts
arch/arm64/boot/dts/apple/t8103.dtsi
arch/arm64/boot/dts/apple/t8112-j493.dts
arch/arm64/boot/dts/apple/t8112.dtsi

index 0a93d38..2dfe7b8 100644 (file)
                touchscreen-inverted-y;
        };
 };
+
+&display_dfr {
+       status = "okay";
+};
+
+&dfr_mipi_out {
+       dfr_mipi_out_panel: endpoint@0 {
+               reg = <0>;
+               remote-endpoint = <&dfr_panel_in>;
+       };
+};
+
+&displaydfr_mipi {
+       status = "okay";
+
+       dfr_panel: panel@0 {
+               compatible = "apple,j293-summit", "apple,summit";
+               reg = <0>;
+               max-brightness = <255>;
+
+               port {
+                       dfr_panel_in: endpoint {
+                               remote-endpoint = <&dfr_mipi_out_panel>;
+                       };
+               };
+       };
+};
+
+&displaydfr_dart {
+       status = "okay";
+};
index c9b789a..97b6a06 100644 (file)
                        #performance-domain-cells = <0>;
                };
 
+               display_dfr: display-pipe@228200000 {
+                       compatible = "apple,t8103-display-pipe", "apple,h7-display-pipe";
+                       reg = <0x2 0x28200000 0x0 0xc000>,
+                             <0x2 0x28400000 0x0 0x4000>;
+                       reg-names = "be", "fe";
+                       power-domains = <&ps_dispdfr_fe>, <&ps_dispdfr_be>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 502 IRQ_TYPE_LEVEL_HIGH>,
+                                    <AIC_IRQ 506 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "be", "fe";
+                       iommus = <&displaydfr_dart 0>;
+                       status = "disabled";
+
+                       port {
+                               dfr_adp_out_mipi: endpoint {
+                                       remote-endpoint = <&dfr_mipi_in_adp>;
+                               };
+                       };
+               };
+
+               displaydfr_dart: iommu@228304000 {
+                       compatible = "apple,t8103-dart";
+                       reg = <0x2 0x28304000 0x0 0x4000>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 504 IRQ_TYPE_LEVEL_HIGH>;
+                       #iommu-cells = <1>;
+                       power-domains = <&ps_dispdfr_fe>;
+                       status = "disabled";
+               };
+
+               displaydfr_mipi: dsi@228600000 {
+                       compatible = "apple,t8103-display-pipe-mipi", "apple,h7-display-pipe-mipi";
+                       reg = <0x2 0x28600000 0x0 0x100000>;
+                       power-domains = <&ps_mipi_dsi>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               dfr_mipi_in: port@0 {
+                                       reg = <0>;
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       dfr_mipi_in_adp: endpoint@0 {
+                                               reg = <0>;
+                                               remote-endpoint = <&dfr_adp_out_mipi>;
+                                       };
+                               };
+
+                               dfr_mipi_out: port@1 {
+                                       reg = <1>;
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                               };
+                       };
+               };
+
                sio_dart: iommu@235004000 {
                        compatible = "apple,t8103-dart";
                        reg = <0x2 0x35004000 0x0 0x4000>;
index 045bd07..3d73f9e 100644 (file)
        };
 };
 
+&display_dfr {
+       status = "okay";
+};
+
+&dfr_mipi_out {
+       dfr_mipi_out_panel: endpoint@0 {
+               reg = <0>;
+               remote-endpoint = <&dfr_panel_in>;
+       };
+};
+
+&displaydfr_mipi {
+       status = "okay";
+
+       dfr_panel: panel@0 {
+               compatible = "apple,j493-summit", "apple,summit";
+               reg = <0>;
+               max-brightness = <255>;
+
+               port {
+                       dfr_panel_in: endpoint {
+                               remote-endpoint = <&dfr_mipi_out_panel>;
+                       };
+               };
+       };
+};
+
+&displaydfr_dart {
+       status = "okay";
+};
+
 /*
  * Force the bus number assignments so that we can declare some of the
  * on-board devices and properties that are populated by the bootloader
index 271986a..d9b966d 100644 (file)
                        #performance-domain-cells = <0>;
                };
 
+               display_dfr: display-pipe@228200000 {
+                       compatible = "apple,t8112-display-pipe", "apple,h7-display-pipe";
+                       reg = <0x2 0x28200000 0x0 0xc000>,
+                             <0x2 0x28400000 0x0 0x4000>;
+                       reg-names = "be", "fe";
+                       power-domains = <&ps_dispdfr_fe>, <&ps_dispdfr_be>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 614 IRQ_TYPE_LEVEL_HIGH>,
+                                    <AIC_IRQ 618 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "be", "fe";
+                       iommus = <&displaydfr_dart 0>;
+                       status = "disabled";
+
+                       port {
+                               dfr_adp_out_mipi: endpoint {
+                                       remote-endpoint = <&dfr_mipi_in_adp>;
+                               };
+                       };
+               };
+
+               displaydfr_dart: iommu@228304000 {
+                       compatible = "apple,t8110-dart";
+                       reg = <0x2 0x28304000 0x0 0x4000>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 616 IRQ_TYPE_LEVEL_HIGH>;
+                       #iommu-cells = <1>;
+                       power-domains = <&ps_dispdfr_fe>;
+                       status = "disabled";
+               };
+
+               displaydfr_mipi: dsi@228600000 {
+                       compatible = "apple,t8112-display-pipe-mipi", "apple,h7-display-pipe-mipi";
+                       reg = <0x2 0x28600000 0x0 0x100000>;
+                       power-domains = <&ps_mipi_dsi>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+
+                       ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               dfr_mipi_in: port@0 {
+                                       reg = <0>;
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+
+                                       dfr_mipi_in_adp: endpoint@0 {
+                                               reg = <0>;
+                                               remote-endpoint = <&dfr_adp_out_mipi>;
+                                       };
+                               };
+
+                               dfr_mipi_out: port@1 {
+                                       reg = <1>;
+                                       #address-cells = <1>;
+                                       #size-cells = <0>;
+                               };
+                       };
+               };
+
                sio_dart: iommu@235004000 {
                        compatible = "apple,t8110-dart";
                        reg = <0x2 0x35004000 0x0 0x4000>;