From patchwork Sun Jun 4 14:56:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 10275 Return-Path: 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 + 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 ); 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 To: Thomas Bogendoerfer , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: "H . Nikolaus Schaller" , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, list@opendingux.net, Paul Cercueil 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 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: 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?= 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(-)