Re: [PATCH 3/3] arm64: dts: allwinner: h6: tanix-tx6: Add compatible bluetooth

From: Krzysztof Kozlowski
Date: Sun May 14 2023 - 05:55:51 EST


On 14/05/2023 09:47, Rudi Heitbaum wrote:
> Tanix TX6 comes either with RTL8822BS or RTL8822CS wifi+bt combo module.
> Add compatible for RTL8822BS as it uses different firmware.
>
> Signed-off-by: Rudi Heitbaum <rudi@xxxxxxxxxxxx>
> ---

Thank you for your patch. There is something to discuss/improve.

> arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts
> index 9a38ff9b3fc7..9460ccbc247d 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix-tx6.dts
> @@ -21,7 +21,7 @@ &uart1 {
> status = "okay";
>
> bluetooth {
> - compatible = "realtek,rtl8822cs-bt";
> + compatible = "realtek,rtl8822bs-bt", "realtek,rtl8822cs-bt";

This neither matches bindings nor your commit msg. If device has
different chips, then you should not stuff all of compatibles together.
Please analyze the case. Maybe you need different boards for different
revisions?

Best regards,
Krzysztof