// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
 * Mac Studio (M1 Ultra, 2022)
 *
 * target-type: J375d
 *
 * Copyright The Asahi Linux Contributors
 */

/dts-v1/;

#include "t6002.dtsi"
#include "t600x-j375.dtsi"

/ {
	compatible = "apple,j375d", "apple,t6002", "apple,arm-platform";
	model = "Apple Mac Studio (M1 Ultra, 2022)";
};

/* USB Type C */
&i2c0 {
	/* front-right */
	hpm4: usb-pd@39 {
		compatible = "apple,cd321x";
		reg = <0x39>;
		interrupt-parent = <&pinctrl_ap>;
		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
		interrupt-names = "irq";
	};

	/* front-left */
	hpm5: usb-pd@3a {
		compatible = "apple,cd321x";
		reg = <0x3a>;
		interrupt-parent = <&pinctrl_ap>;
		interrupts = <174 IRQ_TYPE_LEVEL_LOW>;
		interrupt-names = "irq";
	};
};

/* delete unused always-on power-domains on die 1 */

/delete-node/ &ps_atc2_usb_aon_die1;
/delete-node/ &ps_atc2_usb_die1;

/delete-node/ &ps_atc3_usb_aon_die1;
/delete-node/ &ps_atc3_usb_die1;

/delete-node/ &ps_disp0_cpu0_die1;
/delete-node/ &ps_disp0_fe_die1;
