* Re: [PATCH v2 01/16] dt-bindings: power: apple,pmgr-pwrstate: Add t8112 compatible
[not found] ` <20230202-asahi-t8112-dt-v2-1-22926a283d92@jannau.net>
@ 2023-02-14 11:05 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:05 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel
On 14/02/2023 12:03, Janne Grunau wrote:
> From: Hector Martin <marcan@marcan.st>
>
> Add the apple,t8112-pmgr-pwrstate compatible for the Apple M2 SoC.
>
> This goes after t8103. The sort order logic here is having SoC numeric
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 03/16] dt-bindings: watchdog: apple,wdt: Add t8112-wdt compatible
[not found] ` <20230202-asahi-t8112-dt-v2-3-22926a283d92@jannau.net>
@ 2023-02-14 11:05 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:05 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel
On 14/02/2023 12:03, Janne Grunau wrote:
> The block on the Apple M2 SoC is compatible with the existing driver so
> add its per-SoC compatible.
>
> Signed-off-by: Janne Grunau <j@jannau.net>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 05/16] dt-bindings: interrupt-controller: apple,aic2: Add apple,t8112-aic compatible
[not found] ` <20230202-asahi-t8112-dt-v2-5-22926a283d92@jannau.net>
@ 2023-02-14 11:06 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:06 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel, Marc Zyngier
On 14/02/2023 12:03, Janne Grunau wrote:
> The Apple M2 SoC uses AICv2 and is compatible with the existing driver.
> Add its per-SoC compatible.
> Since multi-die versions of the M2 are not expected decrease
> '#interrupt-cells' to 3 for apple,t8112-aic. This is seamlessly handled
> inside the driver.
>
Thank you for your patch. There is something to discuss/improve.
>
> - The 2nd cell contains the die ID.
> + The 2nd cell contains the die ID (only present on apple,t6000-aic).
>
> The next cell contains the interrupt number.
> - HW IRQs: interrupt number
> @@ -110,6 +113,20 @@ additionalProperties: false
> allOf:
> - $ref: /schemas/interrupt-controller.yaml#
>
> +if:
This should be under "allOf" (as next entry so " - if:").
> + properties:
> + compatible:
> + contains:
> + const: apple,t8112-aic
> +then:
> + properties:
> + '#interrupt-cells':
> + const: 3
> +else:
> + properties:
> + '#interrupt-cells':
> + const: 4
> +
> examples:
> - |
> soc {
>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 06/16] dt-bindings: iommu: apple,sart: Add apple,t8112-sart compatible string
[not found] ` <20230202-asahi-t8112-dt-v2-6-22926a283d92@jannau.net>
@ 2023-02-14 11:06 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:06 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel
On 14/02/2023 12:03, Janne Grunau wrote:
> "apple,t8112-sart" as found on the Apple M2 SoC appears to be SART3 as
> well. To allow for later discovered incompatibilities use
> '"apple,t8112-sart", "apple,t6000-sart"' as compatible string.
>
> Signed-off-by: Janne Grunau <j@jannau.net>
> ---
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 07/16] dt-bindings: mailbox: apple,mailbox: Add t8112 compatibles
[not found] ` <20230202-asahi-t8112-dt-v2-7-22926a283d92@jannau.net>
@ 2023-02-14 11:06 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:06 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel
On 14/02/2023 12:03, Janne Grunau wrote:
> The mailbox hardware remains unchanged on M2 SoCs so just add its
> per-SoC compatible.
>
> Signed-off-by: Janne Grunau <j@jannau.net>
> ---
> Documentation/devicetree/bindings/mailbox/apple,mailbox.yaml | 2
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 08/16] dt-bindings: nvme: apple: Add apple,t8112-nvme-ans2 compatible string
[not found] ` <20230202-asahi-t8112-dt-v2-8-22926a283d92@jannau.net>
@ 2023-02-14 11:06 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:06 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel
On 14/02/2023 12:03, Janne Grunau wrote:
> "apple,t8112-nvme-ans2" as found on Apple M2 SoCs is compatible with the
> existing driver. Add its SoC specific compatible string to allow special
> handling if it'll be necessary.
> t8112 uses only 2 power-domains as no 4 and 8 TB configurations are
> offered.
>
> Signed-off-by: Janne Grunau <j@jannau.net>
> ---
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 09/16] dt-bindings: pci: apple,pcie: Add t8112 support
[not found] ` <20230202-asahi-t8112-dt-v2-9-22926a283d92@jannau.net>
@ 2023-02-14 11:07 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:07 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel
On 14/02/2023 12:03, Janne Grunau wrote:
> The block found in the Apple M2 SoC is compatible with the existing
> driver, and supports 4 downstream ports like the t6000 one.
>
> Signed-off-by: Janne Grunau <j@jannau.net>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 10/16] dt-bindings: pinctrl: apple,pinctrl: Add apple,t8112-pinctrl compatible
[not found] ` <20230202-asahi-t8112-dt-v2-10-22926a283d92@jannau.net>
@ 2023-02-14 11:07 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:07 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel, Linus Walleij
On 14/02/2023 12:03, Janne Grunau wrote:
> This new SoC uses the same pinctrl hardware, so just add a new per-SoC
> compatible.
>
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
> Signed-off-by: Janne Grunau <j@jannau.net>
> ---
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 11/16] dt-bindings: i2c: apple,i2c: Add apple,t8112-i2c compatible
[not found] ` <20230202-asahi-t8112-dt-v2-11-22926a283d92@jannau.net>
@ 2023-02-14 11:07 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:07 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel, Wolfram Sang
On 14/02/2023 12:03, Janne Grunau wrote:
> This block on the Apple M2 is compatible with the existing driver so
> just add the per-SoC compatible.
>
> Acked-by: Wolfram Sang <wsa@kernel.org> # for I2C
> Signed-off-by: Janne Grunau <j@jannau.net>
> ---
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 12/16] dt-bindings: clock: apple,nco: Add t8112-nco compatible
[not found] ` <20230202-asahi-t8112-dt-v2-12-22926a283d92@jannau.net>
@ 2023-02-14 11:07 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:07 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel,
Martin Povišer
On 14/02/2023 12:03, Janne Grunau wrote:
> The block found on Apple's M2 SoC is compatible with the existing driver
> so add its per-SoC compatible.
>
> Acked-by: Martin Povišer <povik+lin@cutebit.org>
> Signed-off-by: Janne Grunau <j@jannau.net>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 14/16] dt-bindings: dma: apple,admac: Add t8112-admac compatible
[not found] ` <20230202-asahi-t8112-dt-v2-14-22926a283d92@jannau.net>
@ 2023-02-14 11:08 ` Krzysztof Kozlowski
0 siblings, 0 replies; 14+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-14 11:08 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Sven Peter, Alyssa Rosenzweig,
Rob Herring, Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel, Vinod Koul,
Martin Povišer
On 14/02/2023 12:03, Janne Grunau wrote:
> The block found on Apple's M2 SoC is compatible with the existing driver
> so add its per-SoC compatible.
>
> Acked-by: Vinod Koul <vkoul@kernel.org>
> Acked-by: Martin Povišer <povik+lin@cutebit.org>
> Signed-off-by: Janne Grunau <j@jannau.net>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 16/16] arm64: dts: apple: t8112: Initial t8112 (M2) device trees
[not found] ` <20230202-asahi-t8112-dt-v2-16-22926a283d92@jannau.net>
@ 2023-02-19 12:36 ` Sven Peter
2023-02-19 13:22 ` Janne Grunau
0 siblings, 1 reply; 14+ messages in thread
From: Sven Peter @ 2023-02-19 12:36 UTC (permalink / raw)
To: Janne Grunau, Hector Martin, Alyssa Rosenzweig, Rob Herring,
Krzysztof Kozlowski, Mark Kettenis
Cc: asahi, linux-arm-kernel, devicetree, linux-kernel
Hi,
On Tue, Feb 14, 2023, at 12:03, Janne Grunau wrote:
> From: Hector Martin <marcan@marcan.st>
>
> This adds device trees for the following devices:
> - Macbook Air (M2, 2022)
> - Macbook Pro 13" (M2, 2022)
> - Mac mini (M2, 2023)
>
> Signed-off-by: Hector Martin <marcan@marcan.st>
> Co-developed-by: Janne Grunau <j@jannau.net>
> Signed-off-by: Janne Grunau <j@jannau.net>
> ---
> arch/arm64/boot/dts/apple/Makefile | 3 +
> arch/arm64/boot/dts/apple/t8112-j413.dts | 63 ++
> arch/arm64/boot/dts/apple/t8112-j473.dts | 54 ++
> arch/arm64/boot/dts/apple/t8112-j493.dts | 52 ++
> arch/arm64/boot/dts/apple/t8112-jxxx.dtsi | 81 ++
> arch/arm64/boot/dts/apple/t8112-pmgr.dtsi | 1141 +++++++++++++++++++++++++++++
> arch/arm64/boot/dts/apple/t8112.dtsi | 912 +++++++++++++++++++++++
> 7 files changed, 2306 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/apple/Makefile
> b/arch/arm64/boot/dts/apple/Makefile
> index 5a7506ff5ea3..aec5e29cdfb7 100644
> --- a/arch/arm64/boot/dts/apple/Makefile
> +++ b/arch/arm64/boot/dts/apple/Makefile
> @@ -10,3 +10,6 @@ dtb-$(CONFIG_ARCH_APPLE) += t6000-j316s.dtb
> dtb-$(CONFIG_ARCH_APPLE) += t6001-j316c.dtb
> dtb-$(CONFIG_ARCH_APPLE) += t6001-j375c.dtb
> dtb-$(CONFIG_ARCH_APPLE) += t6002-j375d.dtb
> +dtb-$(CONFIG_ARCH_APPLE) += t8112-j413.dtb
> +dtb-$(CONFIG_ARCH_APPLE) += t8112-j473.dtb
> +dtb-$(CONFIG_ARCH_APPLE) += t8112-j493.dtb
> diff --git a/arch/arm64/boot/dts/apple/t8112-j413.dts
> b/arch/arm64/boot/dts/apple/t8112-j413.dts
> new file mode 100644
> index 000000000000..9e758edeaa82
> --- /dev/null
> +++ b/arch/arm64/boot/dts/apple/t8112-j413.dts
> @@ -0,0 +1,63 @@
> +// SPDX-License-Identifier: GPL-2.0+ OR MIT
> +/*
> + * Apple MacBook Air (M2, 2022)
> + *
> + * target-type: J413
> + *
> + * Copyright The Asahi Linux Contributors
> + */
> +
> +/dts-v1/;
> +
> +#include "t8112.dtsi"
> +#include "t8112-jxxx.dtsi"
> +
> +/ {
> + compatible = "apple,j413", "apple,t8112", "apple,arm-platform";
> + model = "Apple MacBook Air (13-inch, M2, 2022)";
> +
> + aliases {
> + bluetooth0 = &bluetooth0;
> + wifi0 = &wifi0;
> + };
> +};
> +
> +/*
> + * Force the bus number assignments so that we can declare some of the
> + * on-board devices and properties that are populated by the bootloader
> + * (such as MAC addresses).
> + */
> +&port00 {
> + bus-range = <1 1>;
> + wifi0: wifi@0,0 {
> + compatible = "pci14e4,4433";
I'm not sure how these pci compatibles are usually handled. Do they have to
be added to the dt-bindings Documentation as well or is it fine to just have them
here since they're not really used to match anything?
Otherwise this looks good to me,
Reviewed-by: Sven Peter <sven@svenpeter.dev>
Best,
Sven
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 16/16] arm64: dts: apple: t8112: Initial t8112 (M2) device trees
2023-02-19 12:36 ` [PATCH v2 16/16] arm64: dts: apple: t8112: Initial t8112 (M2) device trees Sven Peter
@ 2023-02-19 13:22 ` Janne Grunau
2023-02-19 13:23 ` Sven Peter
0 siblings, 1 reply; 14+ messages in thread
From: Janne Grunau @ 2023-02-19 13:22 UTC (permalink / raw)
To: Sven Peter
Cc: Hector Martin, Alyssa Rosenzweig, Rob Herring,
Krzysztof Kozlowski, Mark Kettenis, asahi, linux-arm-kernel,
devicetree, linux-kernel
On 2023-02-19 13:36:22 +0100, Sven Peter wrote:
> Hi,
>
>
> On Tue, Feb 14, 2023, at 12:03, Janne Grunau wrote:
> > From: Hector Martin <marcan@marcan.st>
> >
> > This adds device trees for the following devices:
> > - Macbook Air (M2, 2022)
> > - Macbook Pro 13" (M2, 2022)
> > - Mac mini (M2, 2023)
> >
> > Signed-off-by: Hector Martin <marcan@marcan.st>
> > Co-developed-by: Janne Grunau <j@jannau.net>
> > Signed-off-by: Janne Grunau <j@jannau.net>
> > ---
> > arch/arm64/boot/dts/apple/Makefile | 3 +
> > arch/arm64/boot/dts/apple/t8112-j413.dts | 63 ++
> > arch/arm64/boot/dts/apple/t8112-j473.dts | 54 ++
> > arch/arm64/boot/dts/apple/t8112-j493.dts | 52 ++
> > arch/arm64/boot/dts/apple/t8112-jxxx.dtsi | 81 ++
> > arch/arm64/boot/dts/apple/t8112-pmgr.dtsi | 1141 +++++++++++++++++++++++++++++
> > arch/arm64/boot/dts/apple/t8112.dtsi | 912 +++++++++++++++++++++++
> > 7 files changed, 2306 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/apple/Makefile
> > b/arch/arm64/boot/dts/apple/Makefile
> > index 5a7506ff5ea3..aec5e29cdfb7 100644
> > --- a/arch/arm64/boot/dts/apple/Makefile
> > +++ b/arch/arm64/boot/dts/apple/Makefile
> > @@ -10,3 +10,6 @@ dtb-$(CONFIG_ARCH_APPLE) += t6000-j316s.dtb
> > dtb-$(CONFIG_ARCH_APPLE) += t6001-j316c.dtb
> > dtb-$(CONFIG_ARCH_APPLE) += t6001-j375c.dtb
> > dtb-$(CONFIG_ARCH_APPLE) += t6002-j375d.dtb
> > +dtb-$(CONFIG_ARCH_APPLE) += t8112-j413.dtb
> > +dtb-$(CONFIG_ARCH_APPLE) += t8112-j473.dtb
> > +dtb-$(CONFIG_ARCH_APPLE) += t8112-j493.dtb
> > diff --git a/arch/arm64/boot/dts/apple/t8112-j413.dts
> > b/arch/arm64/boot/dts/apple/t8112-j413.dts
> > new file mode 100644
> > index 000000000000..9e758edeaa82
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/apple/t8112-j413.dts
> > @@ -0,0 +1,63 @@
> > +// SPDX-License-Identifier: GPL-2.0+ OR MIT
> > +/*
> > + * Apple MacBook Air (M2, 2022)
> > + *
> > + * target-type: J413
> > + *
> > + * Copyright The Asahi Linux Contributors
> > + */
> > +
> > +/dts-v1/;
> > +
> > +#include "t8112.dtsi"
> > +#include "t8112-jxxx.dtsi"
> > +
> > +/ {
> > + compatible = "apple,j413", "apple,t8112", "apple,arm-platform";
> > + model = "Apple MacBook Air (13-inch, M2, 2022)";
> > +
> > + aliases {
> > + bluetooth0 = &bluetooth0;
> > + wifi0 = &wifi0;
> > + };
> > +};
> > +
> > +/*
> > + * Force the bus number assignments so that we can declare some of the
> > + * on-board devices and properties that are populated by the bootloader
> > + * (such as MAC addresses).
> > + */
> > +&port00 {
> > + bus-range = <1 1>;
> > + wifi0: wifi@0,0 {
> > + compatible = "pci14e4,4433";
>
> I'm not sure how these pci compatibles are usually handled. Do they have to
> be added to the dt-bindings Documentation as well or is it fine to just have them
> here since they're not really used to match anything?
I suppose they have to be added (at least for dtb validation) but
"pci14e4,4433" is already in net/wireless/brcm,bcm4329-fmac.yaml. Added
via e2e37224e8b3 ("dt-bindings: net: bcm4329-fmac: Add Apple properties
& chips").
Janne
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH v2 16/16] arm64: dts: apple: t8112: Initial t8112 (M2) device trees
2023-02-19 13:22 ` Janne Grunau
@ 2023-02-19 13:23 ` Sven Peter
0 siblings, 0 replies; 14+ messages in thread
From: Sven Peter @ 2023-02-19 13:23 UTC (permalink / raw)
To: Janne Grunau
Cc: Hector Martin, Alyssa Rosenzweig, Rob Herring,
Krzysztof Kozlowski, Mark Kettenis, asahi, linux-arm-kernel,
devicetree, linux-kernel
On Sun, Feb 19, 2023, at 14:22, Janne Grunau wrote:
> On 2023-02-19 13:36:22 +0100, Sven Peter wrote:
>> Hi,
>>
>>
>> On Tue, Feb 14, 2023, at 12:03, Janne Grunau wrote:
>> > From: Hector Martin <marcan@marcan.st>
>> >
>> > This adds device trees for the following devices:
>> > - Macbook Air (M2, 2022)
>> > - Macbook Pro 13" (M2, 2022)
>> > - Mac mini (M2, 2023)
>> >
>> > Signed-off-by: Hector Martin <marcan@marcan.st>
>> > Co-developed-by: Janne Grunau <j@jannau.net>
>> > Signed-off-by: Janne Grunau <j@jannau.net>
>> > ---
>> > arch/arm64/boot/dts/apple/Makefile | 3 +
>> > arch/arm64/boot/dts/apple/t8112-j413.dts | 63 ++
>> > arch/arm64/boot/dts/apple/t8112-j473.dts | 54 ++
>> > arch/arm64/boot/dts/apple/t8112-j493.dts | 52 ++
>> > arch/arm64/boot/dts/apple/t8112-jxxx.dtsi | 81 ++
>> > arch/arm64/boot/dts/apple/t8112-pmgr.dtsi | 1141 +++++++++++++++++++++++++++++
>> > arch/arm64/boot/dts/apple/t8112.dtsi | 912 +++++++++++++++++++++++
>> > 7 files changed, 2306 insertions(+)
>> >
>> > diff --git a/arch/arm64/boot/dts/apple/Makefile
>> > b/arch/arm64/boot/dts/apple/Makefile
>> > index 5a7506ff5ea3..aec5e29cdfb7 100644
>> > --- a/arch/arm64/boot/dts/apple/Makefile
>> > +++ b/arch/arm64/boot/dts/apple/Makefile
>> > @@ -10,3 +10,6 @@ dtb-$(CONFIG_ARCH_APPLE) += t6000-j316s.dtb
>> > dtb-$(CONFIG_ARCH_APPLE) += t6001-j316c.dtb
>> > dtb-$(CONFIG_ARCH_APPLE) += t6001-j375c.dtb
>> > dtb-$(CONFIG_ARCH_APPLE) += t6002-j375d.dtb
>> > +dtb-$(CONFIG_ARCH_APPLE) += t8112-j413.dtb
>> > +dtb-$(CONFIG_ARCH_APPLE) += t8112-j473.dtb
>> > +dtb-$(CONFIG_ARCH_APPLE) += t8112-j493.dtb
>> > diff --git a/arch/arm64/boot/dts/apple/t8112-j413.dts
>> > b/arch/arm64/boot/dts/apple/t8112-j413.dts
>> > new file mode 100644
>> > index 000000000000..9e758edeaa82
>> > --- /dev/null
>> > +++ b/arch/arm64/boot/dts/apple/t8112-j413.dts
>> > @@ -0,0 +1,63 @@
>> > +// SPDX-License-Identifier: GPL-2.0+ OR MIT
>> > +/*
>> > + * Apple MacBook Air (M2, 2022)
>> > + *
>> > + * target-type: J413
>> > + *
>> > + * Copyright The Asahi Linux Contributors
>> > + */
>> > +
>> > +/dts-v1/;
>> > +
>> > +#include "t8112.dtsi"
>> > +#include "t8112-jxxx.dtsi"
>> > +
>> > +/ {
>> > + compatible = "apple,j413", "apple,t8112", "apple,arm-platform";
>> > + model = "Apple MacBook Air (13-inch, M2, 2022)";
>> > +
>> > + aliases {
>> > + bluetooth0 = &bluetooth0;
>> > + wifi0 = &wifi0;
>> > + };
>> > +};
>> > +
>> > +/*
>> > + * Force the bus number assignments so that we can declare some of the
>> > + * on-board devices and properties that are populated by the bootloader
>> > + * (such as MAC addresses).
>> > + */
>> > +&port00 {
>> > + bus-range = <1 1>;
>> > + wifi0: wifi@0,0 {
>> > + compatible = "pci14e4,4433";
>>
>> I'm not sure how these pci compatibles are usually handled. Do they have to
>> be added to the dt-bindings Documentation as well or is it fine to just have them
>> here since they're not really used to match anything?
>
> I suppose they have to be added (at least for dtb validation) but
> "pci14e4,4433" is already in net/wireless/brcm,bcm4329-fmac.yaml. Added
> via e2e37224e8b3 ("dt-bindings: net: bcm4329-fmac: Add Apple properties
> & chips").
Oh, true, I somehow missed that.
Best,
Sven
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2023-02-19 13:25 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230202-asahi-t8112-dt-v2-0-22926a283d92@jannau.net>
[not found] ` <20230202-asahi-t8112-dt-v2-1-22926a283d92@jannau.net>
2023-02-14 11:05 ` [PATCH v2 01/16] dt-bindings: power: apple,pmgr-pwrstate: Add t8112 compatible Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-3-22926a283d92@jannau.net>
2023-02-14 11:05 ` [PATCH v2 03/16] dt-bindings: watchdog: apple,wdt: Add t8112-wdt compatible Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-5-22926a283d92@jannau.net>
2023-02-14 11:06 ` [PATCH v2 05/16] dt-bindings: interrupt-controller: apple,aic2: Add apple,t8112-aic compatible Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-6-22926a283d92@jannau.net>
2023-02-14 11:06 ` [PATCH v2 06/16] dt-bindings: iommu: apple,sart: Add apple,t8112-sart compatible string Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-7-22926a283d92@jannau.net>
2023-02-14 11:06 ` [PATCH v2 07/16] dt-bindings: mailbox: apple,mailbox: Add t8112 compatibles Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-8-22926a283d92@jannau.net>
2023-02-14 11:06 ` [PATCH v2 08/16] dt-bindings: nvme: apple: Add apple,t8112-nvme-ans2 compatible string Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-9-22926a283d92@jannau.net>
2023-02-14 11:07 ` [PATCH v2 09/16] dt-bindings: pci: apple,pcie: Add t8112 support Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-10-22926a283d92@jannau.net>
2023-02-14 11:07 ` [PATCH v2 10/16] dt-bindings: pinctrl: apple,pinctrl: Add apple,t8112-pinctrl compatible Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-11-22926a283d92@jannau.net>
2023-02-14 11:07 ` [PATCH v2 11/16] dt-bindings: i2c: apple,i2c: Add apple,t8112-i2c compatible Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-12-22926a283d92@jannau.net>
2023-02-14 11:07 ` [PATCH v2 12/16] dt-bindings: clock: apple,nco: Add t8112-nco compatible Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-14-22926a283d92@jannau.net>
2023-02-14 11:08 ` [PATCH v2 14/16] dt-bindings: dma: apple,admac: Add t8112-admac compatible Krzysztof Kozlowski
[not found] ` <20230202-asahi-t8112-dt-v2-16-22926a283d92@jannau.net>
2023-02-19 12:36 ` [PATCH v2 16/16] arm64: dts: apple: t8112: Initial t8112 (M2) device trees Sven Peter
2023-02-19 13:22 ` Janne Grunau
2023-02-19 13:23 ` Sven Peter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox