Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-luckfox-lyra-plus-spi0-1cs-spidev.dtbo \
rockchip-luckfox-lyra-plus-spi0-2cs-spidev.dtbo \
rockchip-luckfox-lyra-ultra-w-spi0-1cs-spidev.dtbo \
rockchip-luckfox-lyra-zero-w-ipex-antenna.dtbo \
rockchip-luckfox-lyra-zero-w-spi0-1cs-spidev.dtbo \
rockchip-luckfox-lyra-zero-w-spi0-2cs-spidev.dtbo \
rockchip-luckfox-lyra-zero-w-spi1-1cs-spidev.dtbo \
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/boot/dts/overlay/README.rockchip-overlays
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ for Luckfox Lyra Ultra W:
- spi0-1cs-spidev

for Luckfox Lyra Zero W:
- ipex-antenna
- spi0-1cs-spidev
- spi0-2cs-spidev
- spi1-1cs-spidev
Expand Down Expand Up @@ -73,6 +74,9 @@ Retains pin-compatibility with Luckfox Pico Plus.
Enables SPI0 spidev on luckfox-lyra-ultra-w with one chipselect.
Retains pin-compatibility with Luckfox Pico Ultra.

### luckfox-lyra-zero-w-ipex-antenna
Switches wifi/bluetooth from the onboard antenna to the external IPEX connector.

### luckfox-lyra-zero-w-spi0-1cs-spidev
Enables SPI0 spidev on luckfox-lyra-zero-w with one chipselect.
Compatible with Raspberry Pi 'spi0-1cs' hats.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Switch wifi/bluetooth antenna from onboard to external IPEX connector
* on Luckfox Lyra Zero W.
*/

/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable IPEX antenna on luckfox-lyra-zero-w";
compatible = "rockchip,rk3506b-lyra-zero";
category = "misc";
description = "Switch wifi/bluetooth from onboard antenna to external IPEX connector (GPIO1_C7 low).";
};
};

&gpio1 {
ant-sel-hog {
output-low;
};
};
15 changes: 15 additions & 0 deletions arch/arm/boot/dts/rk3506b-luckfox-lyra-zero-w-sd.dts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,21 @@
status = "okay";
};

/**********gpio**********/
&gpio1 {
/*
* Antenna selection GPIO
* output-high = Onboard antenna selected
* output-low = External (ipex) antenna selected
*/
ant-sel-hog {
gpio-hog;
gpios = <RK_PC7 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "ant-sel";
};
};

/**********pinctrl**********/
&pinctrl {
lcd {
Expand Down
Loading