arm: dts: apple: Add preliminary device trees
Add preliminary device trees for the Apple M1 mini (2020) and Apple M1 Macbook Pro 13" (2020). Device tree bindings for the Apple M1 SoC are still being formalized and these device trees will be synchronized with the Linux kernel as needed. The device trees in this commit are based on the initial Apple M1 device trees from Linux 5.13, nodes for dart, pcie, pinctrl, pmgr, usb based on bindings on track for inclusion in Linux 5.15 and 5.16 and nodes for i2c, mailbox, nvme, pmu, spmi and watchdog that don't have a proposed binding yet. These device trees are provided as a reference only as U-Boot uses the device tree passed by the m1n1 bootloader. Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
15
include/dt-bindings/interrupt-controller/apple-aic.h
Normal file
15
include/dt-bindings/interrupt-controller/apple-aic.h
Normal file
@@ -0,0 +1,15 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
|
||||
#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_APPLE_AIC_H
|
||||
#define _DT_BINDINGS_INTERRUPT_CONTROLLER_APPLE_AIC_H
|
||||
|
||||
#include <dt-bindings/interrupt-controller/irq.h>
|
||||
|
||||
#define AIC_IRQ 0
|
||||
#define AIC_FIQ 1
|
||||
|
||||
#define AIC_TMR_HV_PHYS 0
|
||||
#define AIC_TMR_HV_VIRT 1
|
||||
#define AIC_TMR_GUEST_PHYS 2
|
||||
#define AIC_TMR_GUEST_VIRT 3
|
||||
|
||||
#endif
|
||||
13
include/dt-bindings/pinctrl/apple.h
Normal file
13
include/dt-bindings/pinctrl/apple.h
Normal file
@@ -0,0 +1,13 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ OR MIT */
|
||||
/*
|
||||
* This header provides constants for Apple pinctrl bindings.
|
||||
*/
|
||||
|
||||
#ifndef _DT_BINDINGS_PINCTRL_APPLE_H
|
||||
#define _DT_BINDINGS_PINCTRL_APPLE_H
|
||||
|
||||
#define APPLE_PINMUX(pin, func) ((pin) | ((func) << 16))
|
||||
#define APPLE_PIN(pinmux) ((pinmux) & 0xffff)
|
||||
#define APPLE_FUNC(pinmux) ((pinmux) >> 16)
|
||||
|
||||
#endif /* _DT_BINDINGS_PINCTRL_APPLE_H */
|
||||
10
include/dt-bindings/spmi/spmi.h
Normal file
10
include/dt-bindings/spmi/spmi.h
Normal file
@@ -0,0 +1,10 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
#ifndef __DT_BINDINGS_SPMI_H
|
||||
#define __DT_BINDINGS_SPMI_H
|
||||
|
||||
#define SPMI_USID 0
|
||||
#define SPMI_GSID 1
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user