diff --git a/Documentation/devicetree/bindings/crypto/apple,aes.yaml b/Documentation/devicetree/bindings/crypto/apple,aes.yaml index 036749196afce..473925157a180 100644 --- a/Documentation/devicetree/bindings/crypto/apple,aes.yaml +++ b/Documentation/devicetree/bindings/crypto/apple,aes.yaml @@ -24,9 +24,13 @@ properties: - const: apple,aes - items: - enum: - - apple,t8122-aes + - apple,t6020-aes + - apple,t6021-aes + - apple,t6022-aes - apple,t6030-aes - apple,t6031-aes + - apple,t8112-aes + - apple,t8122-aes - const: apple,aes reg: @@ -56,9 +60,13 @@ allOf: compatible: contains: enum: - - apple,t8122-aes + - apple,t6020-aes + - apple,t6021-aes + - apple,t6022-aes - apple,t6030-aes - apple,t6031-aes + - apple,t8112-aes + - apple,t8122-aes then: properties: reg: diff --git a/Documentation/devicetree/bindings/display/apple,dcp.yaml b/Documentation/devicetree/bindings/display/apple,dcp.yaml index 3c9d44f0e1317..316d439781a5d 100644 --- a/Documentation/devicetree/bindings/display/apple,dcp.yaml +++ b/Documentation/devicetree/bindings/display/apple,dcp.yaml @@ -70,6 +70,11 @@ properties: - enum: [disp-5, iop-vbar] - const: iop-vbar + interrupts: + minItems: 7 + maxItems: 16 + description: Optional host display-engine interrupt sources. + mboxes: maxItems: 1 @@ -429,11 +434,18 @@ allOf: items: pattern: '^(dp-xbar|typec[0-9]+)$' - if: - not: - properties: - compatible: - contains: - enum: ['apple,t6031-dcp', 'apple,t8132-dcp', 'apple,t8132-dcpext'] + allOf: + - not: + properties: + compatible: + contains: + enum: ['apple,t6031-dcp', 'apple,t8132-dcp', 'apple,t8132-dcpext'] + - not: + properties: + status: + const: disabled + required: + - status then: required: - apple,bw-scratch diff --git a/Documentation/devicetree/bindings/display/apple,dpin.yaml b/Documentation/devicetree/bindings/display/apple,dpin.yaml index fc9d9b31565c8..f180428acf51c 100644 --- a/Documentation/devicetree/bindings/display/apple,dpin.yaml +++ b/Documentation/devicetree/bindings/display/apple,dpin.yaml @@ -20,9 +20,13 @@ properties: - const: apple,dpin - items: - enum: - - apple,t8122-dpin + - apple,t6020-dpin + - apple,t6021-dpin + - apple,t6022-dpin - apple,t6030-dpin - apple,t6031-dpin + - apple,t8112-dpin + - apple,t8122-dpin - const: apple,dpin reg: diff --git a/Documentation/devicetree/bindings/dma/apple,pcie-piodma.yaml b/Documentation/devicetree/bindings/dma/apple,pcie-piodma.yaml index b65c3b5fcb9e6..e31c545d9e4a4 100644 --- a/Documentation/devicetree/bindings/dma/apple,pcie-piodma.yaml +++ b/Documentation/devicetree/bindings/dma/apple,pcie-piodma.yaml @@ -21,9 +21,13 @@ properties: - const: apple,pcie-piodma - items: - enum: - - apple,t8122-pcie-piodma + - apple,t6020-pcie-piodma + - apple,t6021-pcie-piodma + - apple,t6022-pcie-piodma - apple,t6030-pcie-piodma - apple,t6031-pcie-piodma + - apple,t8112-pcie-piodma + - apple,t8122-pcie-piodma - const: apple,pcie-piodma reg: diff --git a/Documentation/devicetree/bindings/dma/apple,pciec-piodma.yaml b/Documentation/devicetree/bindings/dma/apple,pciec-piodma.yaml index fc81bae2e0cad..913c58a92cff4 100644 --- a/Documentation/devicetree/bindings/dma/apple,pciec-piodma.yaml +++ b/Documentation/devicetree/bindings/dma/apple,pciec-piodma.yaml @@ -21,9 +21,13 @@ properties: - const: apple,pciec-piodma - items: - enum: - - apple,t8122-pciec-piodma + - apple,t6020-pciec-piodma + - apple,t6021-pciec-piodma + - apple,t6022-pciec-piodma - apple,t6030-pciec-piodma - apple,t6031-pciec-piodma + - apple,t8112-pciec-piodma + - apple,t8122-pciec-piodma - const: apple,pciec-piodma reg: diff --git a/Documentation/devicetree/bindings/edac/apple,soc-error-handler.yaml b/Documentation/devicetree/bindings/edac/apple,soc-error-handler.yaml index 19544c7470aa9..93853f3d89d2d 100644 --- a/Documentation/devicetree/bindings/edac/apple,soc-error-handler.yaml +++ b/Documentation/devicetree/bindings/edac/apple,soc-error-handler.yaml @@ -31,28 +31,40 @@ properties: - const: apple,soc-event-log - items: - enum: - - apple,t8122-error-handler + - apple,t6020-error-handler + - apple,t6021-error-handler + - apple,t6022-error-handler - apple,t6030-error-handler - apple,t6031-error-handler + - apple,t8112-error-handler + - apple,t8122-error-handler - const: apple,soc-error-handler - items: - enum: - - apple,t8122-event-log + - apple,t6020-event-log + - apple,t6021-event-log + - apple,t6022-event-log - apple,t6030-event-log - apple,t6031-event-log + - apple,t8112-event-log + - apple,t8122-event-log - const: apple,soc-event-log + power-domains: + maxItems: 1 + description: Power domain needed for the associated error-source registers. + interrupts: minItems: 9 - maxItems: 159 + maxItems: 322 reg: minItems: 10 - maxItems: 123 - description: Status apertures in hardware-description order; native access requires qualification. - - power-domains: - maxItems: 1 + maxItems: 255 + description: | + Status apertures in hardware-description order. T6041 uses qualified + per-source NI status apertures in interrupt order. Native register + access on other variants requires separate qualification. required: - compatible diff --git a/Documentation/devicetree/bindings/iio/light/apple,aop-als.yaml b/Documentation/devicetree/bindings/iio/light/apple,aop-als.yaml new file mode 100644 index 0000000000000..1bfb009fa57ea --- /dev/null +++ b/Documentation/devicetree/bindings/iio/light/apple,aop-als.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/light/apple,aop-als.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple AOP ambient light sensor service + +maintainers: + - Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> + +description: | + The service is supplied by the parent Always-On Processor. Firmware and + calibration handoff determine its availability. It has no independent + application-processor register window or interrupt. + +select: + properties: + compatible: + contains: + enum: + - apple,t6020-aop-als + - apple,t8112-aop-als + required: + - compatible + +properties: + compatible: + items: + - enum: + - apple,t6020-aop-als + - apple,t8112-aop-als + - const: apple,aop-als + +required: + - compatible + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml b/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml new file mode 100644 index 0000000000000..bac004f1ac9b3 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/position/apple,aop-las.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/position/apple,aop-las.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple AOP lid angle sensor service + +maintainers: + - Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> + +description: | + The service is supplied by the parent Always-On Processor. Firmware and + calibration handoff determine its availability. It has no independent + application-processor register window or interrupt. + +select: + properties: + compatible: + contains: + enum: + - apple,t6020-aop-las + - apple,t8112-aop-las + required: + - compatible + +properties: + compatible: + items: + - enum: + - apple,t6020-aop-las + - apple,t8112-aop-las + - const: apple,aop-las + +required: + - compatible + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/media/apple,t6041-isp.yaml b/Documentation/devicetree/bindings/media/apple,isp.yaml similarity index 70% rename from Documentation/devicetree/bindings/media/apple,t6041-isp.yaml rename to Documentation/devicetree/bindings/media/apple,isp.yaml index e66161db7c371..8b3eb242358d6 100644 --- a/Documentation/devicetree/bindings/media/apple,t6041-isp.yaml +++ b/Documentation/devicetree/bindings/media/apple,isp.yaml @@ -1,32 +1,35 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/media/apple,t6041-isp.yaml# +$id: http://devicetree.org/schemas/media/apple,isp.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Apple T604x Image Signal Processor +title: Apple Image Signal Processor maintainers: - Jonathan Goyvaerts description: - The T604x ISP controls the attached camera sensor and processes its frames - through firmware the bootloader loads. The firmware segments are described - as reserved memory mapped at the addresses the firmware runs them at. The - host exchanges commands and image buffers through three DART instances. + The ISP controls the attached camera sensor and processes its frames using + a coprocessor. The host exchanges commands and image buffers through three + DART instances. The memory handoff identifies either the allocation heap or + separate firmware text, data and heap regions. select: properties: compatible: contains: - const: apple,t6041-isp + enum: ['apple,t6020-isp', 'apple,t6041-isp', 'apple,t8112-isp'] required: - compatible properties: compatible: items: - - const: apple,t6041-isp + - enum: + - apple,t6020-isp + - apple,t6041-isp + - apple,t8112-isp - const: apple,isp reg: @@ -53,27 +56,20 @@ properties: - description: Third ISP DART stream power-domains: - items: - - description: ISP system domain - - description: ISP CPU domain - - description: ISP FE domain - - description: ISP DPRX domain - - description: ISP secure domain - - description: ISP BE domain - - description: ISP CLR domain - - description: Camera sensor domain + minItems: 7 + maxItems: 16 + description: Register-backed power domains required by the ISP. memory-region: - items: - - description: Firmware text loaded by the bootloader - - description: Firmware data loaded by the bootloader - - description: Firmware main memory window; host allocations follow it + minItems: 1 + maxItems: 3 + description: Firmware memory and the host allocation heap. memory-region-names: + minItems: 1 + maxItems: 3 items: - - const: text - - const: data - - const: heap + enum: [text, data, heap] apple,dart-vm-size: $ref: /schemas/types.yaml#/definitions/uint64 @@ -142,11 +138,58 @@ required: - interrupts - iommus - power-domains - - memory-region - - memory-region-names - apple,dart-vm-size - - apple,platform-id - - sensor-presets + +allOf: + - if: + properties: + compatible: + contains: + const: apple,t6041-isp + then: + properties: + power-domains: + items: + - description: ISP system domain + - description: ISP CPU domain + - description: ISP FE domain + - description: ISP DPRX domain + - description: ISP secure domain + - description: ISP BE domain + - description: ISP CLR domain + - description: Camera sensor domain + memory-region: + minItems: 3 + memory-region-names: + items: + - const: text + - const: data + - const: heap + required: + - memory-region + - memory-region-names + - apple,platform-id + - sensor-presets + else: + properties: + memory-region: + maxItems: 1 + memory-region-names: + items: + - const: heap + - if: + not: + properties: + status: + const: disabled + required: + - status + then: + required: + - memory-region + - memory-region-names + - apple,platform-id + - sensor-presets additionalProperties: false diff --git a/Documentation/devicetree/bindings/media/apple,jpeg.yaml b/Documentation/devicetree/bindings/media/apple,jpeg.yaml index 5cc05c299f30b..64be1f3e4d074 100644 --- a/Documentation/devicetree/bindings/media/apple,jpeg.yaml +++ b/Documentation/devicetree/bindings/media/apple,jpeg.yaml @@ -27,9 +27,13 @@ properties: - apple,t8140-jpeg - items: - enum: - - apple,t8122-jpeg + - apple,t6020-jpeg + - apple,t6021-jpeg + - apple,t6022-jpeg - apple,t6030-jpeg - apple,t6031-jpeg + - apple,t8112-jpeg + - apple,t8122-jpeg - const: apple,jpeg reg: @@ -84,9 +88,9 @@ allOf: compatible: contains: enum: - - apple,t8122-jpeg - apple,t6030-jpeg - apple,t6031-jpeg + - apple,t8122-jpeg then: properties: power-domains: diff --git a/Documentation/devicetree/bindings/media/apple,prores.yaml b/Documentation/devicetree/bindings/media/apple,prores.yaml index 120b43289bbfe..56a9edc89e13d 100644 --- a/Documentation/devicetree/bindings/media/apple,prores.yaml +++ b/Documentation/devicetree/bindings/media/apple,prores.yaml @@ -18,20 +18,22 @@ properties: compatible: oneOf: - const: apple,t8140-prores - - items: - - const: apple,t6041-prores - - const: apple,prores - items: - enum: - - apple,t8122-prores + - apple,t6020-prores + - apple,t6021-prores + - apple,t6022-prores - apple,t6030-prores - apple,t6031-prores + - apple,t6041-prores + - apple,t8112-prores + - apple,t8122-prores - const: apple,prores reg: minItems: 2 maxItems: 3 - description: Engine, wrapper and (on T6041) auxiliary register windows. + description: Engine, wrapper and generation-specific auxiliary register windows. reg-names: minItems: 2 @@ -76,9 +78,9 @@ allOf: compatible: contains: enum: - - apple,t8122-prores - apple,t6030-prores - apple,t6031-prores + - apple,t8122-prores then: properties: reg: @@ -86,32 +88,54 @@ allOf: maxItems: 3 power-domains: maxItems: 1 - else: - allOf: - - if: - properties: - compatible: - contains: - const: apple,t6041-prores - then: - properties: - reg: - minItems: 3 - maxItems: 3 - reg-names: - minItems: 3 - maxItems: 3 - interrupts: - maxItems: 1 - required: - - resets - else: - properties: - reg: - maxItems: 2 - reg-names: - maxItems: 2 + - if: + properties: + compatible: + contains: + enum: + - apple,t6020-prores + - apple,t6021-prores + - apple,t6022-prores + - apple,t8112-prores + then: + properties: + reg: + maxItems: 2 + reg-names: + maxItems: 2 + - if: + properties: + compatible: + contains: + enum: + - apple,t6041-prores + then: + properties: + reg: + minItems: 3 + maxItems: 3 + reg-names: + minItems: 3 + maxItems: 3 + interrupts: + maxItems: 1 + iommus: + maxItems: 1 + required: + - resets + - reg-names + - if: properties: + compatible: + contains: + enum: + - apple,t8140-prores + then: + properties: + reg: + maxItems: 2 + reg-names: + maxItems: 2 iommus: maxItems: 1 required: diff --git a/Documentation/devicetree/bindings/media/apple,scaler.yaml b/Documentation/devicetree/bindings/media/apple,scaler.yaml index 57fd0cf3989ff..58aa22a9420c6 100644 --- a/Documentation/devicetree/bindings/media/apple,scaler.yaml +++ b/Documentation/devicetree/bindings/media/apple,scaler.yaml @@ -25,9 +25,13 @@ properties: - const: apple,scaler - items: - enum: - - apple,t8122-scaler + - apple,t6020-scaler + - apple,t6021-scaler + - apple,t6022-scaler - apple,t6030-scaler - apple,t6031-scaler + - apple,t8112-scaler + - apple,t8122-scaler - const: apple,scaler reg: @@ -40,7 +44,7 @@ properties: power-domains: minItems: 1 - maxItems: 2 + maxItems: 3 iommus: minItems: 1 @@ -65,15 +69,9 @@ allOf: compatible: contains: enum: - - apple,t8122-scaler - - apple,t6030-scaler - - apple,t6031-scaler + - apple,t6041-scaler + - apple,t8140-scaler then: - properties: - reg: - minItems: 3 - maxItems: 4 - else: properties: reg: minItems: 4 @@ -87,5 +85,35 @@ allOf: required: - resets - clocks + - if: + properties: + compatible: + contains: + enum: + - apple,t6020-scaler + - apple,t6021-scaler + - apple,t6022-scaler + - apple,t8112-scaler + then: + properties: + power-domains: + minItems: 2 + maxItems: 3 + iommus: + minItems: 2 + maxItems: 2 + - if: + properties: + compatible: + contains: + enum: + - apple,t6030-scaler + - apple,t6031-scaler + - apple,t8122-scaler + then: + properties: + power-domains: + minItems: 1 + maxItems: 2 additionalProperties: false diff --git a/Documentation/devicetree/bindings/media/apple,scdc.yaml b/Documentation/devicetree/bindings/media/apple,scdc.yaml new file mode 100644 index 0000000000000..4eee874f12c67 --- /dev/null +++ b/Documentation/devicetree/bindings/media/apple,scdc.yaml @@ -0,0 +1,61 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/apple,scdc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple SCDC coprocessor + +maintainers: + - Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> + +description: | + SCDC coprocessor resources on M2 generation SoCs. The register apertures + follow hardware resource order. Firmware configuration and tuning are + supplied by the bootloader and are not part of this binding. Unqualified + instances must remain disabled. + +select: + properties: + compatible: + contains: + enum: + - apple,t6020-scdc + - apple,t6021-scdc + - apple,t6022-scdc + - apple,t8112-scdc + required: + - compatible + +properties: + compatible: + items: + - enum: + - apple,t6020-scdc + - apple,t6021-scdc + - apple,t6022-scdc + - apple,t8112-scdc + - const: apple,scdc + + reg: + maxItems: 8 + + interrupts: + minItems: 5 + maxItems: 6 + + iommus: + maxItems: 3 + + power-domains: + minItems: 1 + maxItems: 2 + +required: + - compatible + - reg + - interrupts + - iommus + - power-domains + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/media/apple,t8140-ave.yaml b/Documentation/devicetree/bindings/media/apple,t8140-ave.yaml index 17f21360f6ef0..c5a6eb09e9777 100644 --- a/Documentation/devicetree/bindings/media/apple,t8140-ave.yaml +++ b/Documentation/devicetree/bindings/media/apple,t8140-ave.yaml @@ -10,9 +10,9 @@ maintainers: - Miguel Cruz <7362641+Acelogic@users.noreply.github.com> description: | - The T6000, T6041, T8112 and T8140 AVE coprocessors encode video using firmware - preloaded by the bootloader. Its two DART instances translate the same stream. The - bootloader supplies two reserved firmware regions and their IOVA mappings. + The AVE coprocessor encodes video using firmware preloaded by the bootloader. + DART instances translate its DMA streams. The bootloader supplies the firmware + memory handoff and IOVA mappings. properties: compatible: @@ -24,21 +24,27 @@ properties: - apple,t8140-ave - items: - enum: - - apple,t8122-ave + - apple,t6020-ave + - apple,t6021-ave + - apple,t6022-ave - apple,t6030-ave - apple,t6031-ave + - apple,t8122-ave - const: apple,ave reg: minItems: 3 maxItems: 5 - description: Codec, mailbox and coprocessor banks, plus two M3 auxiliary banks. + description: Codec, mailbox, coprocessor and generation-specific auxiliary banks. reg-names: + minItems: 3 items: - const: codec - const: mailbox - const: coproc + - const: power-control + - const: fabric interrupts: items: @@ -67,7 +73,8 @@ properties: PMC). iommus: - maxItems: 2 + minItems: 2 + maxItems: 4 memory-region: items: @@ -87,9 +94,12 @@ allOf: compatible: contains: enum: - - apple,t8122-ave + - apple,t6020-ave + - apple,t6021-ave + - apple,t6022-ave - apple,t6030-ave - apple,t6031-ave + - apple,t8122-ave then: properties: reg: diff --git a/Documentation/devicetree/bindings/net/nfc/apple,spmi-nfc.yaml b/Documentation/devicetree/bindings/net/nfc/apple,spmi-nfc.yaml new file mode 100644 index 0000000000000..7ce5c5c7caebf --- /dev/null +++ b/Documentation/devicetree/bindings/net/nfc/apple,spmi-nfc.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/nfc/apple,spmi-nfc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple SPMI NFC peripheral + +maintainers: + - Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> + +description: | + SPMI NFC peripheral resources. The address is a unique slave identifier on + its parent bus. Register access and protocol support are separate from + describing the peripheral and its interrupt resources. + +select: + properties: + compatible: + contains: + enum: + - apple,t6020-spmi-nfc + - apple,t6021-spmi-nfc + - apple,t6022-spmi-nfc + - apple,t8112-spmi-nfc + required: + - compatible + +properties: + compatible: + items: + - enum: + - apple,t6020-spmi-nfc + - apple,t6021-spmi-nfc + - apple,t6022-spmi-nfc + - apple,t8112-spmi-nfc + - const: apple,spmi-nfc + + reg: + maxItems: 1 + + interrupts: + maxItems: 7 + +required: + - compatible + - reg + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/nvmem/apple,spmi-nvmem.yaml b/Documentation/devicetree/bindings/nvmem/apple,spmi-nvmem.yaml index fa484e773d5a9..d7597e9fcf727 100644 --- a/Documentation/devicetree/bindings/nvmem/apple,spmi-nvmem.yaml +++ b/Documentation/devicetree/bindings/nvmem/apple,spmi-nvmem.yaml @@ -22,6 +22,7 @@ properties: - apple,baku-pmic - apple,chapel-pmic - apple,maverick-pmic + - apple,mirabeau-pmic - apple,monaco-pmic - apple,sera-pmic - apple,stowe-pmic @@ -34,6 +35,9 @@ properties: battery-monitor: $ref: /schemas/power/supply/apple,battery-monitor.yaml# + interrupts: + maxItems: 1 + rtc: $ref: /schemas/rtc/apple,j700-pmu-rtc.yaml# diff --git a/Documentation/devicetree/bindings/pwm/apple,pwm.yaml b/Documentation/devicetree/bindings/pwm/apple,pwm.yaml index 41070fc68212b..af5775a5c2361 100644 --- a/Documentation/devicetree/bindings/pwm/apple,pwm.yaml +++ b/Documentation/devicetree/bindings/pwm/apple,pwm.yaml @@ -12,16 +12,30 @@ maintainers: description: | The timer PWM controller is distinct from the FPWM keyboard-backlight controller. It has one register aperture, one interrupt and a PMGR gate. + No firmware PWM program or board-specific output state is implied. On T6000 the plain-PWM view shares its register bank with FPWM0, but has a distinct gate and interrupt. Ownership must be coordinated before either interface is used alongside the other. +select: + properties: + compatible: + contains: + enum: + - apple,t6000-pwm + - apple,t8103-pwm + - apple,t8112-pwm + - apple,t8122-pwm + required: + - compatible + properties: compatible: oneOf: - items: - enum: - apple,t8103-pwm + - apple,t8112-pwm - apple,t8122-pwm - const: apple,pwm - items: diff --git a/Documentation/devicetree/bindings/serial/apple,dockchannel-uart.yaml b/Documentation/devicetree/bindings/serial/apple,dockchannel-uart.yaml index 07a7f1fc8c71b..dcf49761f719a 100644 --- a/Documentation/devicetree/bindings/serial/apple,dockchannel-uart.yaml +++ b/Documentation/devicetree/bindings/serial/apple,dockchannel-uart.yaml @@ -19,7 +19,15 @@ allOf: properties: compatible: - const: apple,dockchannel-uart + oneOf: + - const: apple,dockchannel-uart + - items: + - enum: + - apple,t8112-dockchannel-uart + - apple,t6020-dockchannel-uart + - apple,t6021-dockchannel-uart + - apple,t6022-dockchannel-uart + - const: apple,dockchannel-uart reg: items: diff --git a/Documentation/devicetree/bindings/soc/apple/apple,aft.yaml b/Documentation/devicetree/bindings/soc/apple/apple,aft.yaml new file mode 100644 index 0000000000000..eaa11136152be --- /dev/null +++ b/Documentation/devicetree/bindings/soc/apple/apple,aft.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/apple/apple,aft.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple fabric trace controller + +maintainers: + - Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> + +description: | + The fabric trace controller exposes a register aperture used by the + processor debug infrastructure. Trace programs and debug sequences are + firmware policy and are not part of this hardware description. + +select: + properties: + compatible: + contains: + enum: ['apple,t8103-aft', 'apple,t8112-aft'] + required: + - compatible + +properties: + compatible: + items: + - enum: + - apple,t8103-aft + - apple,t8112-aft + - const: apple,aft + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/soc/apple/apple,aop.yaml b/Documentation/devicetree/bindings/soc/apple/apple,aop.yaml new file mode 100644 index 0000000000000..ea96d7b290384 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/apple/apple,aop.yaml @@ -0,0 +1,69 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/apple/apple,aop.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple Always-On Processor + +maintainers: + - Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> + +description: | + The Always-On Processor runs firmware that owns audio and sensor services. + The host uses an RTKit mailbox and a DART stream to exchange messages and + buffers. Service nodes do not have independent host MMIO or interrupts. + +select: + properties: + compatible: + items: + - enum: + - apple,t6020-aop + - apple,t8112-aop + required: + - compatible + +properties: + compatible: + enum: + - apple,t6020-aop + - apple,t8112-aop + + reg: + items: + - description: Shared SRAM + - description: Coprocessor registers + + mboxes: + maxItems: 1 + + mbox-names: + const: mbox + + iommus: + maxItems: 1 + + audio: + $ref: /schemas/sound/apple,aop-audio.yaml# + + als: + $ref: /schemas/iio/light/apple,aop-als.yaml# + + las: + $ref: /schemas/iio/position/apple,aop-las.yaml# + + accel: + $ref: /schemas/iio/imu/apple,aop-motion.yaml# + + gyro: + $ref: /schemas/iio/imu/apple,aop-motion.yaml# + +required: + - compatible + - reg + - mboxes + - mbox-names + - iommus + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/soc/apple/apple,dwi.yaml b/Documentation/devicetree/bindings/soc/apple/apple,dwi.yaml index 1fe2463e7e5b5..72a159fb2517c 100644 --- a/Documentation/devicetree/bindings/soc/apple/apple,dwi.yaml +++ b/Documentation/devicetree/bindings/soc/apple/apple,dwi.yaml @@ -24,9 +24,13 @@ properties: - const: apple,dwi - items: - enum: - - apple,t8122-dwi + - apple,t6020-dwi + - apple,t6021-dwi + - apple,t6022-dwi - apple,t6030-dwi - apple,t6031-dwi + - apple,t8112-dwi + - apple,t8122-dwi - const: apple,dwi reg: diff --git a/Documentation/devicetree/bindings/soc/apple/apple,t8140-mcc.yaml b/Documentation/devicetree/bindings/soc/apple/apple,t8140-mcc.yaml index 340191d87e30b..a178b16ee4f03 100644 --- a/Documentation/devicetree/bindings/soc/apple/apple,t8140-mcc.yaml +++ b/Documentation/devicetree/bindings/soc/apple/apple,t8140-mcc.yaml @@ -26,9 +26,13 @@ properties: - const: apple,t8140-mcc - items: - enum: - - apple,t8122-mcc + - apple,t6020-mcc + - apple,t6021-mcc + - apple,t6022-mcc - apple,t6030-mcc - apple,t6031-mcc + - apple,t8112-mcc + - apple,t8122-mcc - const: apple,mcc reg: diff --git a/Documentation/devicetree/bindings/sound/apple,aop-audio.yaml b/Documentation/devicetree/bindings/sound/apple,aop-audio.yaml new file mode 100644 index 0000000000000..5a501c66df767 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/apple,aop-audio.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/apple,aop-audio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple AOP audio service + +maintainers: + - Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> + +description: | + The service is supplied by the parent Always-On Processor. Firmware and + calibration handoff determine its availability. It has no independent + application-processor register window or interrupt. + +select: + properties: + compatible: + contains: + enum: + - apple,t6020-aop-audio + - apple,t8112-aop-audio + required: + - compatible + +properties: + compatible: + items: + - enum: + - apple,t6020-aop-audio + - apple,t8112-aop-audio + - const: apple,aop-audio + + dmas: + maxItems: 1 + + dma-names: + const: dma + + apple,chassis-name: + $ref: /schemas/types.yaml#/definitions/string + description: Board family used to identify the audio configuration. + + apple,machine-kind: + $ref: /schemas/types.yaml#/definitions/string + description: Machine family used for the sound card identity. + +required: + - compatible + - dmas + - dma-names + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/sound/apple,dpaudio.yaml b/Documentation/devicetree/bindings/sound/apple,dpaudio.yaml new file mode 100644 index 0000000000000..a531eb2606128 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/apple,dpaudio.yaml @@ -0,0 +1,93 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/apple,dpaudio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple DisplayPort audio interface + +maintainers: + - Ryan Murray + +description: | + The display processor provides a firmware audio service. Samples arrive + through an SIO DMA channel, and the graph connects the audio interface to + the display processor's audio service. The interface has a PMGR power gate. + + Existing device trees also identify a register window. The firmware audio + transport does not program that window directly. + +select: + properties: + compatible: + contains: + enum: + - apple,t8112-dpaudio + required: + - compatible + +properties: + compatible: + items: + - enum: + - apple,t8112-dpaudio + - const: apple,dpaudio + + reg: + maxItems: 1 + + dmas: + maxItems: 1 + + dma-names: + const: tx + + power-domains: + maxItems: 1 + + reset-domains: + $ref: /schemas/types.yaml#/definitions/phandle-array + maxItems: 1 + items: + maxItems: 1 + description: PMGR provider used to reset the display audio interface. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Connection to the display processor's audio service. + required: + - port@0 + +required: + - compatible + - dmas + - dma-names + - power-domains + - ports + +additionalProperties: false + +examples: + - | + audio-controller { + compatible = "apple,t8112-dpaudio", "apple,dpaudio"; + dmas = <&sio 0x66>; + dma-names = "tx"; + power-domains = <&ps_dpa1>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + endpoint { + remote-endpoint = <&dcpext_audio>; + }; + }; + }; + }; diff --git a/Documentation/devicetree/bindings/spmi/apple,spmi-peripheral.yaml b/Documentation/devicetree/bindings/spmi/apple,spmi-peripheral.yaml new file mode 100644 index 0000000000000..b2e67009a92bb --- /dev/null +++ b/Documentation/devicetree/bindings/spmi/apple,spmi-peripheral.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spmi/apple,spmi-peripheral.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple SPMI peripheral + +maintainers: + - Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> + +description: | + SPMI peripheral resources. The address is a unique slave identifier on + its parent bus. Register access and protocol support are separate from + describing the peripheral and its interrupt resources. + +select: + properties: + compatible: + contains: + enum: + - apple,t6020-spmi-peripheral + - apple,t6021-spmi-peripheral + - apple,t6022-spmi-peripheral + - apple,t8112-spmi-peripheral + required: + - compatible + +properties: + compatible: + items: + - enum: + - apple,t6020-spmi-peripheral + - apple,t6021-spmi-peripheral + - apple,t6022-spmi-peripheral + - apple,t8112-spmi-peripheral + - const: apple,spmi-peripheral + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/spmi/apple,spmi-sideband.yaml b/Documentation/devicetree/bindings/spmi/apple,spmi-sideband.yaml new file mode 100644 index 0000000000000..44771f03efce6 --- /dev/null +++ b/Documentation/devicetree/bindings/spmi/apple,spmi-sideband.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spmi/apple,spmi-sideband.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Apple SPMI sideband + +maintainers: + - Ryan Murray <81541646+RyanTheTide@users.noreply.github.com> + +description: | + SPMI sideband resources on M2 generation SoCs. The register apertures + follow hardware resource order. Firmware configuration and tuning are + supplied by the bootloader and are not part of this binding. Unqualified + instances must remain disabled. + +select: + properties: + compatible: + contains: + enum: + - apple,t6020-spmi-sideband + - apple,t6021-spmi-sideband + - apple,t6022-spmi-sideband + - apple,t8112-spmi-sideband + required: + - compatible + +properties: + compatible: + items: + - enum: + - apple,t6020-spmi-sideband + - apple,t6021-spmi-sideband + - apple,t6022-spmi-sideband + - apple,t8112-spmi-sideband + - const: apple,spmi-sideband + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false diff --git a/Documentation/devicetree/bindings/timer/apple,aic-timebase.yaml b/Documentation/devicetree/bindings/timer/apple,aic-timebase.yaml index 19a606988c907..6b361d798a263 100644 --- a/Documentation/devicetree/bindings/timer/apple,aic-timebase.yaml +++ b/Documentation/devicetree/bindings/timer/apple,aic-timebase.yaml @@ -18,6 +18,13 @@ properties: - items: - const: apple,t6041-aic-timebase - const: apple,aic-timebase + - items: + - enum: + - apple,t8112-aic-timebase + - apple,t6020-aic-timebase + - apple,t6021-aic-timebase + - apple,t6022-aic-timebase + - const: apple,aic-timebase reg: maxItems: 1 diff --git a/arch/arm64/boot/dts/apple/t8112-j415-peripherals.dtsi b/arch/arm64/boot/dts/apple/t8112-j415-peripherals.dtsi new file mode 100644 index 0000000000000..9e7941dd584e0 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8112-j415-peripherals.dtsi @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Additional T8112 hardware resources. Keep unqualified blocks disabled. */ + +&aop_spmi0 { + interrupt-parent = <&aic>; + interrupts = ; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <2>; + status = "disabled"; + + peripheral@e { + compatible = "apple,t8112-spmi-peripheral", + "apple,spmi-peripheral"; + reg = <0xe SPMI_USID>; + status = "disabled"; + }; +}; + +&aop_spmi1 { + interrupt-parent = <&aic>; + interrupts = ; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <2>; + status = "disabled"; + + nfc@8 { + compatible = "apple,t8112-spmi-nfc", + "apple,spmi-nfc"; + reg = <0x8 SPMI_USID>; + interrupt-parent = <&aop_spmi1>; + interrupts = <176 IRQ_TYPE_LEVEL_HIGH>, + <177 IRQ_TYPE_LEVEL_HIGH>, + <178 IRQ_TYPE_LEVEL_HIGH>, + <179 IRQ_TYPE_LEVEL_HIGH>, + <180 IRQ_TYPE_LEVEL_HIGH>, + <181 IRQ_TYPE_LEVEL_HIGH>, + <182 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; +}; + +&nub_spmi1 { + pmic@e { + compatible = "apple,vale-pmic", "apple,spmi-nvmem"; + reg = <0xe SPMI_USID>; + read-only; + status = "disabled"; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t8112-j415.dts b/arch/arm64/boot/dts/apple/t8112-j415.dts index c5e5fdfdda868..7deb680fa69df 100644 --- a/arch/arm64/boot/dts/apple/t8112-j415.dts +++ b/arch/arm64/boot/dts/apple/t8112-j415.dts @@ -318,3 +318,6 @@ &pmp_report_isp_sys { status = "okay"; }; + + +#include "t8112-j415-peripherals.dtsi" diff --git a/arch/arm64/boot/dts/apple/t8112-j473-peripherals.dtsi b/arch/arm64/boot/dts/apple/t8112-j473-peripherals.dtsi new file mode 100644 index 0000000000000..9e7941dd584e0 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8112-j473-peripherals.dtsi @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Additional T8112 hardware resources. Keep unqualified blocks disabled. */ + +&aop_spmi0 { + interrupt-parent = <&aic>; + interrupts = ; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <2>; + status = "disabled"; + + peripheral@e { + compatible = "apple,t8112-spmi-peripheral", + "apple,spmi-peripheral"; + reg = <0xe SPMI_USID>; + status = "disabled"; + }; +}; + +&aop_spmi1 { + interrupt-parent = <&aic>; + interrupts = ; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <2>; + status = "disabled"; + + nfc@8 { + compatible = "apple,t8112-spmi-nfc", + "apple,spmi-nfc"; + reg = <0x8 SPMI_USID>; + interrupt-parent = <&aop_spmi1>; + interrupts = <176 IRQ_TYPE_LEVEL_HIGH>, + <177 IRQ_TYPE_LEVEL_HIGH>, + <178 IRQ_TYPE_LEVEL_HIGH>, + <179 IRQ_TYPE_LEVEL_HIGH>, + <180 IRQ_TYPE_LEVEL_HIGH>, + <181 IRQ_TYPE_LEVEL_HIGH>, + <182 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; +}; + +&nub_spmi1 { + pmic@e { + compatible = "apple,vale-pmic", "apple,spmi-nvmem"; + reg = <0xe SPMI_USID>; + read-only; + status = "disabled"; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t8112-j473.dts b/arch/arm64/boot/dts/apple/t8112-j473.dts index 9f9977efd1d85..84ecd65613567 100644 --- a/arch/arm64/boot/dts/apple/t8112-j473.dts +++ b/arch/arm64/boot/dts/apple/t8112-j473.dts @@ -277,3 +277,6 @@ }; #include "hwmon-mini.dtsi" + + +#include "t8112-j473-peripherals.dtsi" diff --git a/arch/arm64/boot/dts/apple/t8112-j493-peripherals.dtsi b/arch/arm64/boot/dts/apple/t8112-j493-peripherals.dtsi new file mode 100644 index 0000000000000..b7e06632fdf79 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8112-j493-peripherals.dtsi @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Additional T8112 hardware resources. Keep unqualified blocks disabled. */ + +&aop_spmi1 { + interrupt-parent = <&aic>; + interrupts = ; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <2>; + status = "disabled"; + + nfc@c { + compatible = "apple,t8112-spmi-nfc", + "apple,spmi-nfc"; + reg = <0xc SPMI_USID>; + interrupt-parent = <&aop_spmi1>; + interrupts = <160 IRQ_TYPE_LEVEL_HIGH>, + <161 IRQ_TYPE_LEVEL_HIGH>, + <162 IRQ_TYPE_LEVEL_HIGH>, + <163 IRQ_TYPE_LEVEL_HIGH>, + <164 IRQ_TYPE_LEVEL_HIGH>, + <165 IRQ_TYPE_LEVEL_HIGH>, + <166 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; +}; + +&nub_spmi1 { + pmic@e { + compatible = "apple,vale-pmic", "apple,spmi-nvmem"; + reg = <0xe SPMI_USID>; + read-only; + status = "disabled"; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t8112-j493.dts b/arch/arm64/boot/dts/apple/t8112-j493.dts index 9089086c662b2..536010e4a3636 100644 --- a/arch/arm64/boot/dts/apple/t8112-j493.dts +++ b/arch/arm64/boot/dts/apple/t8112-j493.dts @@ -342,3 +342,6 @@ &pmp_report_isp_sys { status = "okay"; }; + + +#include "t8112-j493-peripherals.dtsi" diff --git a/arch/arm64/boot/dts/apple/t8112-peripherals.dtsi b/arch/arm64/boot/dts/apple/t8112-peripherals.dtsi new file mode 100644 index 0000000000000..45e9fea6e3f94 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8112-peripherals.dtsi @@ -0,0 +1,382 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* Additional T8112 hardware resources. Keep unqualified blocks disabled. */ + +&{/soc} { + m2_error_handler: error-handler@200100000 { + compatible = "apple,t8112-error-handler", "apple,soc-error-handler"; + reg = <0x2 0x100000 0x0 0x100000>, + <0x2 0x0 0x0 0x1000>, + <0x2 0x1c000 0x0 0xc000>, + <0x2 0x4000 0x0 0x18000>, + <0x2 0x40000 0x0 0x1000>, + <0x2 0x5c000 0x0 0xc000>, + <0x2 0x44000 0x0 0x18000>, + <0x2 0x80000 0x0 0x1000>, + <0x2 0x9c000 0x0 0xc000>, + <0x2 0x84000 0x0 0x18000>, + <0x2 0xc0000 0x0 0x1000>, + <0x2 0xdc000 0x0 0xc000>, + <0x2 0xc4000 0x0 0x18000>, + <0x2 0x5d440000 0x0 0x40000>, + <0x2 0x5d400000 0x0 0x40000>, + <0x2 0x3b000000 0x0 0x70000>, + <0x2 0x3b728000 0x0 0x4000>, + <0x2 0x1000000 0x0 0x2000000>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + status = "disabled"; + }; + + m2_mcc: memory-controller@200100000 { + compatible = "apple,t8112-mcc", "apple,mcc"; + reg = <0x2 0x100000 0x0 0x80000>, + <0x2 0x0 0x0 0x100000>, + <0x2 0x1000000 0x0 0x2000000>, + <0x2 0xf00000 0x0 0x100000>, + <0x2 0x3b3c0000 0x0 0x20000>; + status = "disabled"; + }; + + m2_aft: fabric-tracker@200110000 { + compatible = "apple,t8112-aft", "apple,aft"; + reg = <0x2 0x110000 0x0 0x10000>; + status = "disabled"; + }; + + m2_aes: aes@23500c000 { + compatible = "apple,t8112-aes", "apple,aes"; + reg = <0x2 0x3500c000 0x0 0x4000>, + <0x2 0x3d2dc000 0x0 0x8000>; + interrupt-parent = <&aic>; + interrupts = ; + iommus = <&sio_dart 1>; + power-domains = <&ps_aes>; + status = "disabled"; + }; + + m2_pwm: pwm@235040000 { + compatible = "apple,t8112-pwm", "apple,pwm"; + reg = <0x2 0x35040000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_fpwm0>; + status = "disabled"; + }; + + m2_aic_timebase: timer@23b0dc000 { + compatible = "apple,t8112-aic-timebase", "apple,aic-timebase"; + reg = <0x2 0x3b0dc000 0x0 0x1000>; + status = "disabled"; + }; + + m2_dwi: dwi@23b200000 { + compatible = "apple,t8112-dwi", "apple,dwi"; + reg = <0x2 0x3b200000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_dwi>; + status = "disabled"; + }; + + m2_event_log_handler: event-log@23b700000 { + compatible = "apple,t8112-event-log", "apple,soc-event-log"; + reg = <0x2 0x3b700000 0x0 0xcc000>, + <0x2 0x3d280000 0x0 0x7c000>, + <0x2 0x3b000000 0x0 0x70000>, + <0x2 0x3d200000 0x0 0x7c000>, + <0x2 0x3b290000 0x0 0x4000>, + <0x2 0x3b294000 0x0 0x4000>, + <0x2 0x3b298000 0x0 0x4000>, + <0x2 0x3b29c000 0x0 0x4000>, + <0x2 0x3b2a0000 0x0 0x4000>, + <0x2 0x3b2a4000 0x0 0x4000>, + <0x2 0x3b28c000 0x0 0x4000>, + <0x2 0x3b280000 0x0 0x8000>, + <0x2 0x6b868000 0x0 0x4000>, + <0x2 0x6b838000 0x0 0x8000>, + <0x2 0x3b340000 0x0 0xc000>, + <0x2 0x3b350000 0x0 0xc000>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + status = "disabled"; + }; + + m2_dockchannel_uart: serial@23d12c000 { + compatible = "apple,t8112-dockchannel-uart", "apple,dockchannel-uart"; + reg-names = "data", "config", "irq"; + reg = <0x2 0x3d12c000 0x0 0x4000>, + <0x2 0x3d128000 0x0 0x4000>, + <0x2 0x3d10c000 0x0 0x1000>; + interrupt-parent = <&aic>; + interrupts = ; + status = "disabled"; + apple,sw-drain; + }; + + m2_nub_spmi0_sideband: spmi-sideband@23d704000 { + compatible = "apple,t8112-spmi-sideband", "apple,spmi-sideband"; + reg = <0x2 0x3d704000 0x0 0x4000>; + status = "disabled"; + }; + + m2_nub_spmi1_sideband: spmi-sideband@23d784000 { + compatible = "apple,t8112-spmi-sideband", "apple,spmi-sideband"; + reg = <0x2 0x3d784000 0x0 0x4000>; + status = "disabled"; + }; + + m2_aop_spmi0_sideband: spmi-sideband@24a884000 { + compatible = "apple,t8112-spmi-sideband", "apple,spmi-sideband"; + reg = <0x2 0x4a884000 0x0 0x4000>; + status = "disabled"; + }; + + m2_aop_spmi1_sideband: spmi-sideband@24a8c4000 { + compatible = "apple,t8112-spmi-sideband", "apple,spmi-sideband"; + reg = <0x2 0x4a8c4000 0x0 0x4000>; + status = "disabled"; + }; + + m2_scaler0: scaler@263000000 { + compatible = "apple,t8112-scaler", "apple,scaler"; + reg = <0x2 0x63000000 0x0 0x28000>, + <0x2 0x63210000 0x0 0x4000>, + <0x2 0x63204000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = , + ; + iommus = <&m2_dart_scaler 0>, <&m2_dart_scaler 1>; + power-domains = <&ps_msr>, <&ps_msr_ase_core>; + status = "disabled"; + }; + + m2_dart_scaler: iommu@263200000 { + compatible = "apple,t8112-dart", "apple,t8110-dart"; + reg = <0x2 0x63200000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_msr>; + #iommu-cells = <1>; + status = "disabled"; + }; + + m2_jpeg0: jpeg@265000000 { + compatible = "apple,t8112-jpeg", "apple,jpeg"; + reg = <0x2 0x65000000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + iommus = <&m2_dart_jpeg0 0>; + power-domains = <&ps_jpg>; + status = "disabled"; + }; + + m2_dart_jpeg0: iommu@265004000 { + compatible = "apple,t8112-dart", "apple,t8110-dart"; + reg = <0x2 0x65004000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_jpg>; + #iommu-cells = <1>; + status = "disabled"; + }; + + m2_jpeg1: jpeg@265008000 { + compatible = "apple,t8112-jpeg", "apple,jpeg"; + reg = <0x2 0x65008000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + iommus = <&m2_dart_jpeg1 0>; + power-domains = <&ps_jpg>; + status = "disabled"; + }; + + m2_dart_jpeg1: iommu@26500c000 { + compatible = "apple,t8112-dart", "apple,t8110-dart"; + reg = <0x2 0x6500c000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_jpg>; + #iommu-cells = <1>; + status = "disabled"; + }; + + m2_dart_ave_2: iommu@267020000 { + compatible = "apple,t8112-dart", "apple,t8110-dart"; + reg = <0x2 0x67020000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_venc_sys>; + #iommu-cells = <1>; + status = "disabled"; + }; + + m2_dart_ave_3: iommu@267044000 { + compatible = "apple,t8112-dart", "apple,t8110-dart"; + reg = <0x2 0x67044000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + power-domains = <&ps_venc_sys>; + #iommu-cells = <1>; + status = "disabled"; + }; + + m2_dart_dispext0_1: iommu@271300000 { + compatible = "apple,t8112-dart", "apple,t8110-dart"; + reg = <0x2 0x71300000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + #iommu-cells = <1>; + status = "disabled"; + }; + + m2_apr: video-codec@27d000000 { + compatible = "apple,t8112-prores", "apple,prores"; + reg-names = "core", "wrapper"; + reg = <0x2 0x7d000000 0x0 0x4000>, + <0x2 0x7c000000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = , + ; + iommus = <&m2_dart_apr_0 0>, <&m2_dart_apr_1 0>; + power-domains = <&ps_scodec>; + status = "disabled"; + }; + + m2_dart_apr_1: iommu@27d024000 { + compatible = "apple,t8112-dart", "apple,t8110-dart"; + reg = <0x2 0x7d024000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + #iommu-cells = <1>; + status = "disabled"; + }; + + m2_dart_apr_0: iommu@27d028000 { + compatible = "apple,t8112-dart", "apple,t8110-dart"; + reg = <0x2 0x7d028000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + #iommu-cells = <1>; + status = "disabled"; + }; + + m2_dart_scdc: iommu@27d02c000 { + compatible = "apple,t8112-dart", "apple,t8110-dart"; + reg = <0x2 0x7d02c000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + #iommu-cells = <1>; + status = "disabled"; + }; + + m2_scdc: coprocessor@27e400000 { + compatible = "apple,t8112-scdc", "apple,scdc"; + reg = <0x2 0x7e400000 0x0 0x6c000>, + <0x2 0x7e050000 0x0 0x4000>, + <0x2 0x7c000000 0x0 0x1000000>, + <0x2 0x7d040000 0x0 0x1c000>, + <0x2 0x7d070000 0x0 0x4000>, + <0x2 0x7d074000 0x0 0x4000>, + <0x2 0x7d100000 0x0 0x3c000>, + <0x2 0x7d140000 0x0 0x20000>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + ; + iommus = <&m2_dart_scdc 0>, <&m2_dart_apr_0 0>, <&m2_dart_apr_1 0>; + power-domains = <&ps_scodec>; + status = "disabled"; + }; + + m2_atc0_dpin0: displayport-input@381e50000 { + compatible = "apple,t8112-dpin", "apple,dpin"; + reg = <0x3 0x81e50000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + status = "disabled"; + }; + + m2_atc0_dpin1: displayport-input@381e58000 { + compatible = "apple,t8112-dpin", "apple,dpin"; + reg = <0x3 0x81e58000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + status = "disabled"; + }; + + m2_apciec0_piodma: dma-controller@3a2000000 { + compatible = "apple,t8112-pciec-piodma", "apple,pciec-piodma"; + reg = <0x3 0xa2000000 0x0 0x4000>, + <0x3 0xa2004000 0x0 0x4000>, + <0x3 0xa2008000 0x0 0x4000>, + <0x3 0xa0008000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + iommus = <&apciec0_dart 15>; + status = "disabled"; + }; + + m2_atc1_dpin0: displayport-input@501e50000 { + compatible = "apple,t8112-dpin", "apple,dpin"; + reg = <0x5 0x1e50000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + status = "disabled"; + }; + + m2_atc1_dpin1: displayport-input@501e58000 { + compatible = "apple,t8112-dpin", "apple,dpin"; + reg = <0x5 0x1e58000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + status = "disabled"; + }; + + m2_apciec1_piodma: dma-controller@522000000 { + compatible = "apple,t8112-pciec-piodma", "apple,pciec-piodma"; + reg = <0x5 0x22000000 0x0 0x4000>, + <0x5 0x22004000 0x0 0x4000>, + <0x5 0x22008000 0x0 0x4000>, + <0x5 0x20008000 0x0 0x4000>; + interrupt-parent = <&aic>; + interrupts = ; + iommus = <&apciec1_dart 15>; + status = "disabled"; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t8112.dtsi b/arch/arm64/boot/dts/apple/t8112.dtsi index 1e916bdbe957e..4855f6aa9595f 100644 --- a/arch/arm64/boot/dts/apple/t8112.dtsi +++ b/arch/arm64/boot/dts/apple/t8112.dtsi @@ -505,9 +505,9 @@ /* Required to get >32-bit DMA via DARTs */ dma-ranges = <0 0 0 0 0xffffffff 0xffffc000>; - ave_dart0: iommu@67030000 { + ave_dart0: iommu@267030000 { compatible = "apple,t8112-dart", "apple,t8110-dart"; - reg = <0 0x67030000 0 0x4000>; + reg = <0x2 0x67030000 0 0x4000>; interrupt-parent = <&aic>; interrupts = ; power-domains = <&ps_venc_sys>; @@ -515,9 +515,9 @@ status = "disabled"; }; - ave_dart1: iommu@67040000 { + ave_dart1: iommu@267040000 { compatible = "apple,t8112-dart", "apple,t8110-dart"; - reg = <0 0x67040000 0 0x4000>; + reg = <0x2 0x67040000 0 0x4000>; interrupt-parent = <&aic>; interrupts = ; power-domains = <&ps_venc_sys>; @@ -525,11 +525,11 @@ status = "disabled"; }; - ave: video-codec@67100000 { + ave: video-codec@267100000 { compatible = "apple,t8112-ave"; - reg = <0 0x67100000 0 0x45c000>, - <0 0x67050000 0 0x8000>, - <0 0x67800000 0 0x800000>; + reg = <0x2 0x67100000 0 0x45c000>, + <0x2 0x67050000 0 0x8000>, + <0x2 0x67800000 0 0x800000>; reg-names = "codec", "mailbox", "coproc"; interrupt-parent = <&aic>; interrupts = , @@ -2648,3 +2648,5 @@ apple,peak-bandwidth-bytes-per-second = /bits/ 64 <102400000000>; apple,bandwidth-class-bytes-per-second = /bits/ 64 <100000000000>; }; + +#include "t8112-peripherals.dtsi"