Message ID | 20230604145642.200577-1-paul@crapouillou.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2187807vqr; Sun, 4 Jun 2023 08:15:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qgU3GKiu+KCSKHJb0YFeo5z2Z6T9hGZvg/V0gozIx/j8Fejot0tJx9ifT3xE3Bc0YRdov X-Received: by 2002:a05:6a00:39a4:b0:652:e23b:a078 with SMTP id fi36-20020a056a0039a400b00652e23ba078mr7577421pfb.13.1685891724318; Sun, 04 Jun 2023 08:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685891724; cv=none; d=google.com; s=arc-20160816; b=j8KKuOtVlu1opS4A8xkS6xUJ3bFuOKp6XKW/0RA+C4P28979Ooo73plz6PXYRbTwDF KckVnHUFGneo2lNVT4CPt42wEXc3xNE6Dvv0zVtFZtgh6zg0/pd+TE3LRkpsyJbSTZUP jGGRI3o53kJ95fjgewM7D5apr42fa8qLErRP7+A1+co0G1e8ouiyVfKnUfk0l/9oWZXB DB17BXMAmAlWjjheeZ0a8b+pONshlPYf5um/s6Dzy/degUFcNqF3CDY5UdmEXhrHz5/u tzO4lI/1hsVRJWH5UCplJPLFMR9KlBy7/41NX1Nd4xdQ0osLyHX+fuhhJRAX/QKpqiEy kwlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=aUm8nxoMkt5vtIyk2EeQbuAcNEwuQxxePTczf1+Ra6o=; b=mO96R2XAWJ+dsRmGIzm/yOXFvAQcVPFgNajgKEsz9lSf2i5ccMDbRF4jNdW59Yn9jQ 4nzDmcoqv2Ny/DF2xzkiF+1D6rASTXR5GIWDQoN/weasJyoRkjw99Hy4KtVvdXFl4ceO ucpMI1skEuIQ2Gaf+meg6d5OILuvtOaDijGlG/wSbzZ64LugX2CecWBS6RVNY4NA71+p 09l6RRan4k1COH/s5hHBfLBjR7DbN3UEUIbblh/24bzXTlyZ+vAQIu7cQe5lBuJazBHo prjDnZSQEbl9li/oTkjjankn6eDQMl9JvQuAanRRjWP67jAzv+Zlm3m278k728fakNHi 8KVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=giN82oAI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s28-20020a63525c000000b00534897a49a6si4046181pgl.294.2023.06.04.08.15.10; Sun, 04 Jun 2023 08:15:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=giN82oAI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232097AbjFDO4y (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Sun, 4 Jun 2023 10:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231909AbjFDO4w (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 4 Jun 2023 10:56:52 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 235BC83; Sun, 4 Jun 2023 07:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1685890609; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=aUm8nxoMkt5vtIyk2EeQbuAcNEwuQxxePTczf1+Ra6o=; b=giN82oAIH5BKybRITpljyFWW87PlYw3IFJsVU/Wdt9jABVxhXA7zQE5ZuQMC7wPgXqlEbC GmOQmzszVA5nHRq14QisUWI8hiB6nYqJOAjgoL6b4DcX2iIQizd5OEflO8CcY9hAvxWB9z +X7MWAU+zbuJNjg7tLKkfDPixJ7qfrI= From: Paul Cercueil <paul@crapouillou.net> To: Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> Cc: "H . Nikolaus Schaller" <hns@goldelico.com>, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, list@opendingux.net, Paul Cercueil <paul@crapouillou.net> Subject: [PATCH 0/9] MIPS: CI20: Add WiFi / Bluetooth support Date: Sun, 4 Jun 2023 16:56:33 +0200 Message-Id: <20230604145642.200577-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam: Yes X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767785600711409399?= X-GMAIL-MSGID: =?utf-8?q?1767785600711409399?= |
Series |
MIPS: CI20: Add WiFi / Bluetooth support
|
|
Message
Paul Cercueil
June 4, 2023, 2:56 p.m. UTC
Hi, Here's a set of patches to add support for the WiFi / Bluetooth chip on the CI20. WiFi works pretty well, provided it is used with the latest firmware provided by linux-firmware. Bluetooth does not work very well here, as I cannot get my wireless keyboard to pair; but it does detect it, and it does see they key presses when I type the pairing code. I only tested with a somewhat recent (~2022) Buildroot-based userspace. I enabled WEXT compatibility because the CI20 is typically used with a very old userspace, but I did not try to use it with old tools like ifconfig/iwconfig. Cheers, -Paul Paul Cercueil (9): MIPS: DTS: CI20: Fix regulators MIPS: DTS: CI20: Fix ACT8600 regulator node names MIPS: DTS: CI20: Add parent supplies to ACT8600 regulators MIPS: DTS: CI20: Do not force-enable CIM and WiFi regulators MIPS: DTS: CI20: Misc. cleanups MIPS: DTS: CI20: Parent MSCMUX clock to MPLL MIPS: DTS: CI20: Enable support for WiFi / Bluetooth MIPS: configs: CI20: Regenerate defconfig MIPS: configs: CI20: Enable WiFi / Bluetooth arch/mips/boot/dts/ingenic/ci20.dts | 148 +++++++++++++++++++--------- arch/mips/configs/ci20_defconfig | 47 ++++++--- 2 files changed, 133 insertions(+), 62 deletions(-)
Comments
On Sun, Jun 04, 2023 at 04:56:33PM +0200, Paul Cercueil wrote: > Hi, > > Here's a set of patches to add support for the WiFi / Bluetooth chip on > the CI20. > > WiFi works pretty well, provided it is used with the latest firmware > provided by linux-firmware. Bluetooth does not work very well here, as > I cannot get my wireless keyboard to pair; but it does detect it, and it > does see they key presses when I type the pairing code. > > I only tested with a somewhat recent (~2022) Buildroot-based userspace. > I enabled WEXT compatibility because the CI20 is typically used with a > very old userspace, but I did not try to use it with old tools like > ifconfig/iwconfig. > > Cheers, > -Paul > > Paul Cercueil (9): > MIPS: DTS: CI20: Fix regulators > MIPS: DTS: CI20: Fix ACT8600 regulator node names > MIPS: DTS: CI20: Add parent supplies to ACT8600 regulators > MIPS: DTS: CI20: Do not force-enable CIM and WiFi regulators > MIPS: DTS: CI20: Misc. cleanups > MIPS: DTS: CI20: Parent MSCMUX clock to MPLL > MIPS: DTS: CI20: Enable support for WiFi / Bluetooth > MIPS: configs: CI20: Regenerate defconfig > MIPS: configs: CI20: Enable WiFi / Bluetooth > > arch/mips/boot/dts/ingenic/ci20.dts | 148 +++++++++++++++++++--------- > arch/mips/configs/ci20_defconfig | 47 ++++++--- > 2 files changed, 133 insertions(+), 62 deletions(-) > > -- > 2.39.2 series applied to mips-next. Thomas.
Hi Paul, I was in holidays and could not review this series earlier. > Am 04.06.2023 um 16:56 schrieb Paul Cercueil <paul@crapouillou.net>: > > Hi, > > Here's a set of patches to add support for the WiFi / Bluetooth chip on > the CI20. > > WiFi works pretty well, provided it is used with the latest firmware > provided by linux-firmware. Bluetooth does not work very well here, as > I cannot get my wireless keyboard to pair; but it does detect it, and it > does see they key presses when I type the pairing code. > > I only tested with a somewhat recent (~2022) Buildroot-based userspace. > I enabled WEXT compatibility because the CI20 is typically used with a > very old userspace, but I did not try to use it with old tools like > ifconfig/iwconfig. ^^^ great since not everyone is using memory hungry latest user-space and ifconfig/iwconfig is also available on some other OS so users like me can share scripts. But I had quite some issues with this series. 1. I could not boot my CI20 V2a board after applying the full series to v6.4-rc6 2. bisecting failed because vcc_33v is used in a patch preceding its definition leading to DTC compile abort 3. after fixing I could bisect that "MIPS: DTS: CI20: Fix ACT8600 regulator node names" is the first bad commit - although I don't see immediately why So this series seems to be severely broken and I could not even come to a test of WiFi and/or Bluetooth which the series claims to support. Comments to some individual patches follow. Best regards and looking forward to a v2 for testing, Nikolaus > > Cheers, > -Paul > > Paul Cercueil (9): > MIPS: DTS: CI20: Fix regulators > MIPS: DTS: CI20: Fix ACT8600 regulator node names > MIPS: DTS: CI20: Add parent supplies to ACT8600 regulators ^^^ should IMHO be a separate series since it is not directly related to WiFi / Bluetooth > MIPS: DTS: CI20: Do not force-enable CIM and WiFi regulators > MIPS: DTS: CI20: Misc. cleanups ^^^ these two do not compile The Misc. cleanups do not belong to this topic. > MIPS: DTS: CI20: Parent MSCMUX clock to MPLL ^^^ this is only loosely related to Wifi / Bluetooth > MIPS: DTS: CI20: Enable support for WiFi / Bluetooth > MIPS: configs: CI20: Regenerate defconfig > MIPS: configs: CI20: Enable WiFi / Bluetooth > > arch/mips/boot/dts/ingenic/ci20.dts | 148 +++++++++++++++++++--------- > arch/mips/configs/ci20_defconfig | 47 ++++++--- > 2 files changed, 133 insertions(+), 62 deletions(-) > > -- > 2.39.2 >
Hi Thomas, > Am 09.06.2023 um 10:23 schrieb Thomas Bogendoerfer <tsbogend@alpha.franken.de>: > > On Sun, Jun 04, 2023 at 04:56:33PM +0200, Paul Cercueil wrote: >> Hi, >> >> Here's a set of patches to add support for the WiFi / Bluetooth chip on >> the CI20. >> >> WiFi works pretty well, provided it is used with the latest firmware >> provided by linux-firmware. Bluetooth does not work very well here, as >> I cannot get my wireless keyboard to pair; but it does detect it, and it >> does see they key presses when I type the pairing code. >> >> I only tested with a somewhat recent (~2022) Buildroot-based userspace. >> I enabled WEXT compatibility because the CI20 is typically used with a >> very old userspace, but I did not try to use it with old tools like >> ifconfig/iwconfig. >> >> Cheers, >> -Paul >> >> Paul Cercueil (9): >> MIPS: DTS: CI20: Fix regulators >> MIPS: DTS: CI20: Fix ACT8600 regulator node names >> MIPS: DTS: CI20: Add parent supplies to ACT8600 regulators >> MIPS: DTS: CI20: Do not force-enable CIM and WiFi regulators >> MIPS: DTS: CI20: Misc. cleanups >> MIPS: DTS: CI20: Parent MSCMUX clock to MPLL >> MIPS: DTS: CI20: Enable support for WiFi / Bluetooth >> MIPS: configs: CI20: Regenerate defconfig >> MIPS: configs: CI20: Enable WiFi / Bluetooth >> >> arch/mips/boot/dts/ingenic/ci20.dts | 148 +++++++++++++++++++--------- >> arch/mips/configs/ci20_defconfig | 47 ++++++--- >> 2 files changed, 133 insertions(+), 62 deletions(-) >> >> -- >> 2.39.2 > > series applied to mips-next. I think this was a little too early. Please see my review. Best regards, Nikolaus > > Thomas. > > -- > Crap can work. Given enough thrust pigs will fly, but it's not necessarily a > good idea. [ RFC1925, 2.3 ]