[PATCH v2 3/5] arm64: dts: imx95-phyflex-libra-rdk: Add overlays

Benjamin Hahn B.Hahn at phytec.de
Tue Nov 17 01:32:25 PST 2026


Am 13.11.26 um 17:32 schrieb Frank Li:
> On Fri, Nov 13, 2026 at 05:00:05PM +0100, Benjamin Hahn wrote:
>
> subject Add overlay for som temperature sensors and ...
>
>> Add overlays for SoM temperature sensors and M.2 Key-E WIFI/BT cards
>> that need the nxp,88w8987-bt compatible in devicetree (tested on
>> IW611/IW612).
>>
>> Signed-off-by: Benjamin Hahn <B.Hahn at phytec.de>
>> ---
>>   arch/arm64/boot/dts/freescale/Makefile             |  9 ++++++++
>>   .../imx95-phyflex-fpsc-g-som-temperature.dtso      | 23 +++++++++++++++++++++
>>   .../imx95-phyflex-libra-rdk-bluetooth-88w8987.dtso | 24 ++++++++++++++++++++++
> which is independ, suggest use two patches to do that.
Will do
>
>>   3 files changed, 56 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
>> index 4eb7508193e7..17b357f4886a 100644
>> --- a/arch/arm64/boot/dts/freescale/Makefile
>> +++ b/arch/arm64/boot/dts/freescale/Makefile
>> @@ -739,7 +739,16 @@ imx95-19x19-evk-pcie1-ep-dtbs += imx95-19x19-evk.dtb imx-pcie1-ep.dtbo
>>   dtb-$(CONFIG_ARCH_MXC) += imx95-19x19-evk-pcie0-ep.dtb imx95-19x19-evk-pcie1-ep.dtb
>>   dtb-$(CONFIG_ARCH_MXC) += imx95-libra-rdk-fpsc.dtb
>>
>> +imx95-phyflex-fpsc-g-som-temperature-dtbs := \
>> +			  imx95-phyflex-libra-rdk.dtb \
>> +			  imx95-phyflex-fpsc-g-som-temperature.dtbo
>> +imx95-phyflex-libra-rdk-bluetooth-88w8987-dtbs := \
>> +			  imx95-phyflex-libra-rdk.dtb \
>> +			  imx95-phyflex-libra-rdk-bluetooth-88w8987.dtbo
>> +
>>   dtb-$(CONFIG_ARCH_MXC) += imx95-phyflex-libra-rdk.dtb
>> +dtb-$(CONFIG_ARCH_MXC) += imx95-phyflex-fpsc-g-som-temperature.dtb
>> +dtb-$(CONFIG_ARCH_MXC) += imx95-phyflex-libra-rdk-bluetooth-88w8987.dtb
>>
>>   dtb-$(CONFIG_ARCH_MXC) += imx95-19x19-verdin-evk.dtb
>>
>> diff --git a/arch/arm64/boot/dts/freescale/imx95-phyflex-fpsc-g-som-temperature.dtso b/arch/arm64/boot/dts/freescale/imx95-phyflex-fpsc-g-som-temperature.dtso
>> new file mode 100644
>> index 000000000000..84afe1ff9f06
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/freescale/imx95-phyflex-fpsc-g-som-temperature.dtso
>> @@ -0,0 +1,23 @@
>> +// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>> +/*
>> + * Copyright (C) 2026 PHYTEC Messtechnik GmbH
>> + */
>> +
>> +/dts-v1/;
>> +/plugin/;
>> +
>> +&dram_sense {
>> +	status = "okay";
>> +};
>> +
>> +&emmc_sense {
>> +	status = "okay";
>> +};
>> +
>> +&ethphy_sense {
>> +	status = "okay";
>> +};
>> +
>> +&pmic_sense {
>> +	status = "okay";
>> +};
>> diff --git a/arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk-bluetooth-88w8987.dtso b/arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk-bluetooth-88w8987.dtso
>> new file mode 100644
>> index 000000000000..1601e04b3940
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk-bluetooth-88w8987.dtso
>> @@ -0,0 +1,24 @@
>> +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
>> +/*
>> + * Copyright (C) 2026 PHYTEC Messtechnik GmbH
>> + */
>> +/dts-v1/;
>> +/plugin/;
>> +
>> +#include <dt-bindings/gpio/gpio.h>
>> +
>> +&lpuart8 {
>> +	bluetooth {
> Can you add label for bluetooth at boards file, so this overlay can
> reuse for other 88w8987-bt module.
This would be technically possible, but I don't think it is the cleanest 
solution.
1. adding an empty bluetooth node into the base dts leads to DTBS_CHECK 
errors:

arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk.dtb: 
serial at 426a0000 (fsl,imx95-lpuart): bluetooth: 'compatible' is a 
required property
         from schema $id: 
http://devicetree.org/schemas/serial/fsl-lpuart.yaml
arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk.dtb: 
serial at 426a0000 (fsl,imx95-lpuart): Unevaluated properties are not 
allowed ('bluetooth', 'uart-has-rtscts' were unexpected)
         from schema $id: 
http://devicetree.org/schemas/serial/fsl-lpuart.yaml
arch/arm64/boot/dts/freescale/imx95-phyflex-libra-rdk.dtb: 
serial at 426a0000 (fsl,imx95-lpuart): bluetooth: 'compatible' is a 
required property
         from schema $id: http://devicetree.org/schemas/serial/serial.yaml

2. I also think this is a bit missleading, as this UART is not used fix 
for bluetooth on M.2 Key-E, but its default is RS232/RS485. It can be 
switched to Key-E by the Multiplexer controlled by UART1_BT_RS_SEL GPIO.

The (default) state of this GPIO also needs to  be switched when 
enabling this overlay. So this leads to the overlay not beeing generic 
anyway.

>
>> +		compatible = "nxp,88w8987-bt";
>> +		fw-init-baudrate = <115200>;
>> +	};
>> +};
>> +
>> +&gpio_expander1 {
>> +	uart1_bt_rs_sel: bt-rs-hog {
>> +		gpios = <14 GPIO_ACTIVE_HIGH>;
>> +		gpio-hog;
> Look like it is pinmux ref gpio-mux
>
> https://lore.kernel.org/imx/20261023-dxl_lcdif-v4-5-4ae8395a4b23@nxp.com/

Looks like a good solution, will do.

Benjamin

>
> Frank
>> +		line-name = "UART1_BT_RS_SEL";
>> +		output-high;
>> +	};
>> +};
>>
>> --
>> 2.53.0
>>
>>



More information about the linux-arm-kernel mailing list