Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0+ OR MIT
0002 /*
0003  * Apple M1 Mac mini, MacBook Air/Pro, iMac 24" (M1, 2020/2021)
0004  *
0005  * This file contains parts common to all Apple M1 devices using the t8103.
0006  *
0007  * target-type: J274, J293, J313, J456, J457
0008  *
0009  * Copyright The Asahi Linux Contributors
0010  */
0011 
0012 / {
0013         aliases {
0014                 serial0 = &serial0;
0015                 serial2 = &serial2;
0016                 wifi0 = &wifi0;
0017         };
0018 
0019         chosen {
0020                 #address-cells = <2>;
0021                 #size-cells = <2>;
0022                 ranges;
0023 
0024                 stdout-path = "serial0";
0025 
0026                 framebuffer0: framebuffer@0 {
0027                         compatible = "apple,simple-framebuffer", "simple-framebuffer";
0028                         reg = <0 0 0 0>; /* To be filled by loader */
0029                         /* Format properties will be added by loader */
0030                         status = "disabled";
0031                 };
0032         };
0033 
0034         memory@800000000 {
0035                 device_type = "memory";
0036                 reg = <0x8 0 0x2 0>; /* To be filled by loader */
0037         };
0038 };
0039 
0040 &serial0 {
0041         status = "okay";
0042 };
0043 
0044 &serial2 {
0045         status = "okay";
0046 };
0047 
0048 &i2c0 {
0049         hpm0: usb-pd@38 {
0050                 compatible = "apple,cd321x";
0051                 reg = <0x38>;
0052                 interrupt-parent = <&pinctrl_ap>;
0053                 interrupts = <106 IRQ_TYPE_LEVEL_LOW>;
0054                 interrupt-names = "irq";
0055         };
0056 
0057         hpm1: usb-pd@3f {
0058                 compatible = "apple,cd321x";
0059                 reg = <0x3f>;
0060                 interrupt-parent = <&pinctrl_ap>;
0061                 interrupts = <106 IRQ_TYPE_LEVEL_LOW>;
0062                 interrupt-names = "irq";
0063         };
0064 };
0065 
0066 /*
0067  * Force the bus number assignments so that we can declare some of the
0068  * on-board devices and properties that are populated by the bootloader
0069  * (such as MAC addresses).
0070  */
0071 &port00 {
0072         bus-range = <1 1>;
0073         wifi0: network@0,0 {
0074                 reg = <0x10000 0x0 0x0 0x0 0x0>;
0075                 /* To be filled by the loader */
0076                 local-mac-address = [00 00 00 00 00 00];
0077         };
0078 };