Commit 44db68de authored by Sasha Finkelstein's avatar Sasha Finkelstein Committed by Sven Peter
Browse files

arm64: dts: apple: Add touchbar digitizer nodes



Adds device tree entries for the touchbar digitizer

Co-developed-by: default avatarJanne Grunau <j@jannau.net>
Signed-off-by: default avatarJanne Grunau <j@jannau.net>
Reviewed-by: default avatarNeal Gompa <neal@gompa.dev>
Acked-by: default avatarSven Peter <sven@svenpeter.dev>
Signed-off-by: default avatarSasha Finkelstein <fnkl.kernel@gmail.com>
Link: https://lore.kernel.org/r/20250225-z2-dts-v1-1-df101a7c17c8@gmail.com


Signed-off-by: default avatarSven Peter <sven@svenpeter.dev>
parent 3febe9de
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
@@ -17,6 +17,14 @@ / {
	compatible = "apple,j293", "apple,t8103", "apple,arm-platform";
	model = "Apple MacBook Pro (13-inch, M1, 2020)";

	/*
	 * All of those are used by the bootloader to pass calibration
	 * blobs and other device-specific properties
	 */
	aliases {
		touchbar0 = &touchbar0;
	};

	led-controller {
		compatible = "pwm-leds";
		led-0 {
@@ -49,3 +57,22 @@ &i2c4 {
&fpwm1 {
	status = "okay";
};

&spi0 {
	cs-gpios = <&pinctrl_ap 109 GPIO_ACTIVE_LOW>;
	status = "okay";

	touchbar0: touchbar@0 {
		compatible = "apple,j293-touchbar";
		reg = <0>;
		spi-max-frequency = <11500000>;
		spi-cs-setup-delay-ns = <2000>;
		spi-cs-hold-delay-ns = <2000>;
		reset-gpios = <&pinctrl_ap 139 GPIO_ACTIVE_LOW>;
		interrupts-extended = <&pinctrl_ap 194 IRQ_TYPE_EDGE_FALLING>;
		firmware-name = "apple/dfrmtfw-j293.bin";
		touchscreen-size-x = <23045>;
		touchscreen-size-y = <640>;
		touchscreen-inverted-y;
	};
};
+23 −0
Original line number Diff line number Diff line
@@ -17,8 +17,13 @@ / {
	compatible = "apple,j493", "apple,t8112", "apple,arm-platform";
	model = "Apple MacBook Pro (13-inch, M2, 2022)";

	/*
	 * All of those are used by the bootloader to pass calibration
	 * blobs and other device-specific properties
	 */
	aliases {
		bluetooth0 = &bluetooth0;
		touchbar0 = &touchbar0;
		wifi0 = &wifi0;
	};

@@ -67,3 +72,21 @@ &i2c4 {
&fpwm1 {
	status = "okay";
};

&spi3 {
	status = "okay";

	touchbar0: touchbar@0 {
		compatible = "apple,j493-touchbar";
		reg = <0>;
		spi-max-frequency = <8000000>;
		spi-cs-setup-delay-ns = <2000>;
		spi-cs-hold-delay-ns = <2000>;
		reset-gpios = <&pinctrl_ap 170 GPIO_ACTIVE_LOW>;
		interrupts-extended = <&pinctrl_ap 174 IRQ_TYPE_EDGE_FALLING>;
		firmware-name = "apple/dfrmtfw-j493.bin";
		touchscreen-size-x = <23045>;
		touchscreen-size-y = <640>;
		touchscreen-inverted-y;
	};
};
+1 −1
Original line number Diff line number Diff line
@@ -499,7 +499,7 @@ spi3: spi@23510c000 {
			power-domains = <&ps_spi3>;
			#address-cells = <1>;
			#size-cells = <0>;
			status = "disabled";
			status = "disabled"; /* only used in J493 */
		};

		serial0: serial@235200000 {