devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: apple: t8103: Expose PCI node for the WiFi MAC address
@ 2021-12-06 18:38 Mark Kettenis
  2021-12-06 18:55 ` Marc Zyngier
  2021-12-07  4:36 ` Hector Martin
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Kettenis @ 2021-12-06 18:38 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: maz, Mark Kettenis, Hector Martin, Sven Peter, Alyssa Rosenzweig,
	Rob Herring, devicetree, linux-kernel

Expose the PCI node corresponding to the WiFi device and give it
a 'local-mac-address' property. The bootloader will update it
(m1n1 already has the required feature).

Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
---

This change is based on the asahi-soc/dt branch since the
t8103-jxxx.dtsi file isn't present in 5.16-rc3 yet.


 arch/arm64/boot/dts/apple/t8103-jxxx.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm64/boot/dts/apple/t8103-jxxx.dtsi b/arch/arm64/boot/dts/apple/t8103-jxxx.dtsi
index 876278fe0afe..acad6afcb1d9 100644
--- a/arch/arm64/boot/dts/apple/t8103-jxxx.dtsi
+++ b/arch/arm64/boot/dts/apple/t8103-jxxx.dtsi
@@ -12,6 +12,7 @@
 / {
 	aliases {
 		serial0 = &serial0;
+		wifi0 = &wifi0;
 	};
 
 	chosen {
@@ -64,4 +65,9 @@ hpm1: usb-pd@3f {
  */
 &port00 {
 	bus-range = <1 1>;
+	wifi0: network@0,0 {
+		reg = <0x10000 0x0 0x0 0x0 0x0>;
+		/* To be filled by the loader */
+		local-mac-address = [00 00 00 00 00 00];
+	};
 };
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: apple: t8103: Expose PCI node for the WiFi MAC address
  2021-12-06 18:38 [PATCH] arm64: dts: apple: t8103: Expose PCI node for the WiFi MAC address Mark Kettenis
@ 2021-12-06 18:55 ` Marc Zyngier
  2021-12-07  4:36 ` Hector Martin
  1 sibling, 0 replies; 3+ messages in thread
From: Marc Zyngier @ 2021-12-06 18:55 UTC (permalink / raw)
  To: Mark Kettenis
  Cc: linux-arm-kernel, Hector Martin, Sven Peter, Alyssa Rosenzweig,
	Rob Herring, devicetree, linux-kernel

On Mon, 06 Dec 2021 18:38:16 +0000,
Mark Kettenis <kettenis@openbsd.org> wrote:
> 
> Expose the PCI node corresponding to the WiFi device and give it
> a 'local-mac-address' property. The bootloader will update it
> (m1n1 already has the required feature).
> 
> Signed-off-by: Mark Kettenis <kettenis@openbsd.org>

Acked-by: Marc Zyngier <maz@kernel.org>

	M.

-- 
Without deviation from the norm, progress is not possible.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: apple: t8103: Expose PCI node for the WiFi MAC address
  2021-12-06 18:38 [PATCH] arm64: dts: apple: t8103: Expose PCI node for the WiFi MAC address Mark Kettenis
  2021-12-06 18:55 ` Marc Zyngier
@ 2021-12-07  4:36 ` Hector Martin
  1 sibling, 0 replies; 3+ messages in thread
From: Hector Martin @ 2021-12-07  4:36 UTC (permalink / raw)
  To: Mark Kettenis, linux-arm-kernel
  Cc: maz, Sven Peter, Alyssa Rosenzweig, Rob Herring, devicetree,
	linux-kernel

On 07/12/2021 03.38, Mark Kettenis wrote:
> Expose the PCI node corresponding to the WiFi device and give it
> a 'local-mac-address' property. The bootloader will update it
> (m1n1 already has the required feature).
> 
> Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
> ---
> 
> This change is based on the asahi-soc/dt branch since the
> t8103-jxxx.dtsi file isn't present in 5.16-rc3 yet.
> 
> 
>   arch/arm64/boot/dts/apple/t8103-jxxx.dtsi | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/apple/t8103-jxxx.dtsi b/arch/arm64/boot/dts/apple/t8103-jxxx.dtsi
> index 876278fe0afe..acad6afcb1d9 100644
> --- a/arch/arm64/boot/dts/apple/t8103-jxxx.dtsi
> +++ b/arch/arm64/boot/dts/apple/t8103-jxxx.dtsi
> @@ -12,6 +12,7 @@
>   / {
>   	aliases {
>   		serial0 = &serial0;
> +		wifi0 = &wifi0;
>   	};
>   
>   	chosen {
> @@ -64,4 +65,9 @@ hpm1: usb-pd@3f {
>    */
>   &port00 {
>   	bus-range = <1 1>;
> +	wifi0: network@0,0 {
> +		reg = <0x10000 0x0 0x0 0x0 0x0>;
> +		/* To be filled by the loader */
> +		local-mac-address = [00 00 00 00 00 00];
> +	};
>   };
> 

Applied to asahi-soc/dt. Thanks!

-- 
Hector Martin (marcan@marcan.st)
Public Key: https://mrcn.st/pub

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-12-07  4:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-06 18:38 [PATCH] arm64: dts: apple: t8103: Expose PCI node for the WiFi MAC address Mark Kettenis
2021-12-06 18:55 ` Marc Zyngier
2021-12-07  4:36 ` Hector Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).