Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+ OR MIT
0002 /*
0003  * Apple iMac (24-inch, 4x USB-C, M1, 2020)
0004  *
0005  * target-type: J456
0006  *
0007  * Copyright The Asahi Linux Contributors
0008  */
0009 
0010 /dts-v1/;
0011 
0012 #include "t8103.dtsi"
0013 #include "t8103-jxxx.dtsi"
0014 
0015 / {
0016         compatible = "apple,j456", "apple,t8103", "apple,arm-platform";
0017         model = "Apple iMac (24-inch, 4x USB-C, M1, 2020)";
0018 
0019         aliases {
0020                 ethernet0 = &ethernet0;
0021         };
0022 };
0023 
0024 &i2c0 {
0025         hpm2: usb-pd@3b {
0026                 compatible = "apple,cd321x";
0027                 reg = <0x3b>;
0028                 interrupt-parent = <&pinctrl_ap>;
0029                 interrupts = <106 IRQ_TYPE_LEVEL_LOW>;
0030                 interrupt-names = "irq";
0031         };
0032 
0033         hpm3: usb-pd@3c {
0034                 compatible = "apple,cd321x";
0035                 reg = <0x3c>;
0036                 interrupt-parent = <&pinctrl_ap>;
0037                 interrupts = <106 IRQ_TYPE_LEVEL_LOW>;
0038                 interrupt-names = "irq";
0039         };
0040 };
0041 
0042 /*
0043  * Force the bus number assignments so that we can declare some of the
0044  * on-board devices and properties that are populated by the bootloader
0045  * (such as MAC addresses).
0046  */
0047 
0048 &port01 {
0049         bus-range = <2 2>;
0050 };
0051 
0052 &port02 {
0053         bus-range = <3 3>;
0054         ethernet0: ethernet@0,0 {
0055                 reg = <0x30000 0x0 0x0 0x0 0x0>;
0056                 /* To be filled by the loader */
0057                 local-mac-address = [00 10 18 00 00 00];
0058         };
0059 };