diff mbox series

arm64: dts: apple: t8103: Expose PCI node for the WiFi MAC address

Message ID 20211206183817.31964-1-kettenis@openbsd.org (mailing list archive)
State New, archived
Headers show
Series arm64: dts: apple: t8103: Expose PCI node for the WiFi MAC address | expand

Commit Message

Mark Kettenis Dec. 6, 2021, 6:38 p.m. UTC
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(+)

Comments

Marc Zyngier Dec. 6, 2021, 6:55 p.m. UTC | #1
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.
Hector Martin Dec. 7, 2021, 4:36 a.m. UTC | #2
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!
diff mbox series

Patch

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];
+	};
 };