Mark Kettenis | c918e2c | 2022-01-10 20:58:42 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | /* |
| 3 | * Apple iMac (24-inch, 2x USB-C, M1, 2020) |
| 4 | * |
| 5 | * target-type: J457 |
| 6 | * |
| 7 | * Copyright The Asahi Linux Contributors |
| 8 | */ |
| 9 | |
| 10 | /dts-v1/; |
| 11 | |
| 12 | #include "t8103.dtsi" |
| 13 | #include "t8103-jxxx.dtsi" |
| 14 | |
| 15 | / { |
| 16 | compatible = "apple,j457", "apple,t8103", "apple,arm-platform"; |
| 17 | model = "Apple iMac (24-inch, 2x USB-C, M1, 2020)"; |
| 18 | |
| 19 | aliases { |
| 20 | ethernet0 = ðernet0; |
| 21 | }; |
| 22 | }; |
| 23 | |
| 24 | &wifi0 { |
| 25 | brcm,board-type = "apple,santorini"; |
| 26 | }; |
| 27 | |
| 28 | /* |
| 29 | * Provide labels for the USB type C ports. |
| 30 | */ |
| 31 | |
| 32 | &typec0 { |
| 33 | label = "USB-C Back-right"; |
| 34 | }; |
| 35 | |
| 36 | &typec1 { |
| 37 | label = "USB-C Back-left"; |
| 38 | }; |
| 39 | |
| 40 | /* |
| 41 | * Force the bus number assignments so that we can declare some of the |
| 42 | * on-board devices and properties that are populated by the bootloader |
| 43 | * (such as MAC addresses). |
| 44 | */ |
| 45 | |
| 46 | &port02 { |
| 47 | bus-range = <3 3>; |
| 48 | ethernet0: ethernet@0,0 { |
| 49 | reg = <0x30000 0x0 0x0 0x0 0x0>; |
| 50 | /* To be filled by the loader */ |
| 51 | local-mac-address = [00 10 18 00 00 00]; |
| 52 | }; |
| 53 | }; |
| 54 | |
| 55 | /* |
| 56 | * Remove unused PCIe port and disable the associated DART. |
| 57 | */ |
| 58 | |
| 59 | &pcie0_dart_1 { |
| 60 | status = "disabled"; |
| 61 | }; |
| 62 | |
| 63 | /delete-node/ &port01; |
| 64 | |
| 65 | &i2c1 { |
| 66 | clock-frequency = <50000>; |
| 67 | |
| 68 | jack_codec: codec@48 { |
| 69 | compatible = "cirrus,cs42l83", "cirrus,cs42l42"; |
| 70 | reg = <0x48>; |
| 71 | reset-gpios = <&pinctrl_nub 11 GPIO_ACTIVE_HIGH>; |
| 72 | interrupt-parent = <&pinctrl_ap>; |
| 73 | interrupts = <183 IRQ_TYPE_LEVEL_LOW>; |
| 74 | #sound-dai-cells = <0>; |
| 75 | cirrus,ts-inv = <1>; |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | / { |
| 80 | sound { |
| 81 | compatible = "simple-audio-card"; |
| 82 | simple-audio-card,name = "iMac integrated audio"; |
| 83 | #address-cells = <1>; |
| 84 | #size-cells = <0>; |
| 85 | |
| 86 | simple-audio-card,dai-link@0 { |
| 87 | bitclock-inversion; |
| 88 | frame-inversion; |
| 89 | reg = <0>; |
| 90 | format = "i2s"; |
| 91 | mclk-fs = <64>; |
| 92 | tdm-slot-width = <32>; |
| 93 | |
| 94 | link0_cpu: cpu { |
| 95 | sound-dai = <&mca 2>; |
| 96 | bitclock-master; |
| 97 | frame-master; |
| 98 | }; |
| 99 | |
| 100 | link0_codec: codec { |
| 101 | sound-dai = <&jack_codec>; |
| 102 | }; |
| 103 | }; |
| 104 | }; |
| 105 | }; |