Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp498556lqb; Wed, 29 May 2024 01:57:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUm7he0vZHTboOQC5yiHuE6i4wAdcruFc1zBPXPpOEfTwqJM+pko+w0VonX1pV03eOxMRmnNStthdo8q63T/MAT8AL6IRBVLeNrXgEM9w== X-Google-Smtp-Source: AGHT+IHATBm9NGRjBFiUwR4YN8GPGJ5/Ss5MIdkVqu3MuvhiOFxNqEg1pbjqvYXBnXxjjrwnlKsj X-Received: by 2002:a9d:77d9:0:b0:6f0:7f8a:af06 with SMTP id 46e09a7af769-6f8d0afcdd2mr15089847a34.17.1716973034586; Wed, 29 May 2024 01:57:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716973034; cv=pass; d=google.com; s=arc-20160816; b=o/vMhcNTQlPoD5lcswBBaEcMWQet+G+6QXqpKZy0vd+1opgqqkO5kb+MdoeGfz1b+q +alMBpTa2ohBKF8WHhgARmINZv6bQ2v9SyArJMGWQD4B7tGAwKeW5ZzFqbmO7PXwHx+z Eb96Go+CYTSZ+tKI4kt5XjC3pTxYj8Cpqob4okKmqLFUcfD+t9NtUFSHfwfMsmGjWwYl M5KYA/NMWZhfEsZaiKmsKcY5H2RU3XGTjaBP8SG3QUAmDHl4SmxjJ27OicJb88TiZTMf SgiYCIqoTI6Bw/ixB7ymuYpLqQ4yTwCimUvx84zzpWjLkz+993hfVgmnKwuz8TvAX6P8 X8pw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:from :dkim-signature; bh=EJ2t9GtZmp+s6cfLA48Ay8n38h3UwJsqAm7P3XzHLVk=; fh=x+GK4eHdMM78hfTtS2rR+6fcDBtOS8LY7uWLURWYir8=; b=Eb5xFnkJnYWq/pCGwXzt2v7X4Aa5Qpz4/9/FtEgvvZQRQuDUP+xPWbskUVp/+/gKoE b90H19oKEr6kOBDL8vJcgs6OV2lCJVbjOh71mYGEC/WyUm6DVmI+ZBegN+aj+jwoYEeF R5yEHR+WRFUXgeTDVSCcL742rBZ2jg15ksCSpsr6jNNU4SSJdjNMDzlfE0ia3t5im8bh K9rzp8GJr5qS3YA3ZWVukG5W/65XiCugLFXrOBMRthl6/cWR3bOALIFWc8rKEhJPT70Z DxfB/DulgAeCxOpl2fMHLt6qP6u/iNLklm2zoKe7VRlRaycHq5yrXIavWVZ7Lhd0qapD BsTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=a6PKJYhk; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-193798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221b75734si10968701a12.149.2024.05.29.01.57.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 01:57:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=a6PKJYhk; arc=pass (i=1 spf=pass spfdomain=canonical.com dkim=pass dkdomain=canonical.com dmarc=pass fromdomain=canonical.com); spf=pass (google.com: domain of linux-kernel+bounces-193798-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BF21328640C for ; Wed, 29 May 2024 08:52:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 129BC17DE09; Wed, 29 May 2024 08:49:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="a6PKJYhk" Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2311617BB24 for ; Wed, 29 May 2024 08:49:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.188.123 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716972555; cv=none; b=nE40xbzo1FYsLQFdy4CSE0eKMe/hyxCrYdsvZAM1S9OV9BOq/t3u62fDQCVbBSwcVHsp+9/eNGrpwgBqBIovmBk76w34pCXraQp0GvBY5R2FLZ6tpZqoJGaxc+P/oax5NDEBtuYRNQpq0E4kdNWER+7xknUGtst6AsiYE6t3PX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716972555; c=relaxed/simple; bh=kvfZaS196ROsCaxEFEgt3cwBxH3SveUwTDPLo+rZvdc=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=pjYCOVbFhYFaFeW9xYVBBoRneTcohDkoY8SRs1tdqAoJ5WpMwvSrB/7XV+tMLLG7eeOxzzqeihDi06t3lnR5Yo+bgHJIpc9NBcbdASI7YZFRassdkNOMhmg8IPNvkAwekk7kgkClJ0vVjAypoyxzbeNANKZCVT70o/yNyoxfo9A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com; spf=pass smtp.mailfrom=canonical.com; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b=a6PKJYhk; arc=none smtp.client-ip=185.125.188.123 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 2E6453F283 for ; Wed, 29 May 2024 08:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1716972545; bh=EJ2t9GtZmp+s6cfLA48Ay8n38h3UwJsqAm7P3XzHLVk=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=a6PKJYhkSJ2gs7ivVQKba5VYJmA6cbChK9Hq0214I9yun2FU4hOVNV5V2tLxkdQoF DKkAd0lgLcw4Hi1Kp/El+/7a5ntx3MoxNPat7rtcVZathqBtljFJS5V2ifjuuAcE4H nO9OlSlOeqPwErjqwtCagyQBMP7Z+rLAviP4ZO3dyEsDDobFfUrH3zKavIUukAhHZh IXT7r5lJDYexUzoPfR0wlU25H1r093iVXVffNjeWTV5woYQ72AYOVMGRunoqKHuMNF RlCanz2mc/1uV3XMx18wxssI8vITbo8GqYVjLCtBFwduG4h63j3eHHHuZpYgtPeAJF Hh3ZiOOxWx/FA== Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-80a3807d7eeso37282241.1 for ; Wed, 29 May 2024 01:49:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716972544; x=1717577344; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EJ2t9GtZmp+s6cfLA48Ay8n38h3UwJsqAm7P3XzHLVk=; b=US/TQxPWnrf0E0xQIzllbYWHb4kRkqvXArn4lvRkKL9C0nLkyiXanslfSAT8Ta/M2n TF8xNJdztz6iDtBSbaemrd268FvmRRMY91kllWsAEjGkbyuZOuUnPb6O+ZuFQSb47wBH qCuYZ71zKaCjVIkaxe5XRb+iqQI9+rpxvStGwDR0Bq544HGVOLvO4t29Jj9Tf7rxGwIO YtTtGa12CWAAMrDG9EOEvZy5PB++ORbkGOBFIsJcBZ8xZTmuJqCuixUtgtDLvrDnjVK0 jb8kU+gr5NvXs9oyWr/AUx4V3D+10miAUOqYIofzKteIwXut6Py9XTFD0A8j/xzrNj6C AZMA== X-Forwarded-Encrypted: i=1; AJvYcCUK8s1exu78t4YugZbXNofQcKvhsz8seLN6rIwAKuwqAYungBv02WQKGbiqljjNVapA4YLdCHBdfQk1aGPgrMqMIOcD2QpHhQjPKWTA X-Gm-Message-State: AOJu0YzUIOuw7rUhW1tjSviYQQuulQWJIHfuYh6IvAYoRPwj0NXLKjaM 0lcdrOpuxBys5PsfKfDXtGM5aTuAQ3w9XLTLKnTK8M8Y+Y9GKz/x6LbCuzXz/3mU75eRNaSLdD+ tHSs8Ou4dRiqby+Z2gSrWiqaUs8qLOZFKEbDhWPbqPdR2K0hr8G79Jo0rV5Z+DK/UZIakA/oK3/ 0LTDBpGOtr/ouSOWv3SLFmB8fMmxs2xE/0iBnzmunPdvL8Ekx7kWZ3 X-Received: by 2002:a05:6102:512a:b0:48b:8bd6:1a59 with SMTP id ada2fe7eead31-48b8bd61bfdmr7190066137.24.1716972544118; Wed, 29 May 2024 01:49:04 -0700 (PDT) X-Received: by 2002:a05:6102:512a:b0:48b:8bd6:1a59 with SMTP id ada2fe7eead31-48b8bd61bfdmr7190044137.24.1716972543771; Wed, 29 May 2024 01:49:03 -0700 (PDT) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Wed, 29 May 2024 04:49:03 -0400 From: Emil Renner Berthing In-Reply-To: <87zfsy102h.fsf@igel.home> References: <20240508111604.887466-1-emil.renner.berthing@canonical.com> <87wmo2nmee.fsf@linux-m68k.org> <87zfsy102h.fsf@igel.home> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Date: Wed, 29 May 2024 04:49:03 -0400 Message-ID: Subject: Re: [PATCH v1 0/2] riscv: dts: starfive: Enable Bluetooth on JH7100 boards To: Andreas Schwab , Emil Renner Berthing Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Content-Type: text/plain; charset="UTF-8" Andreas Schwab wrote: > On Mai 10 2024, Emil Renner Berthing wrote: > > > You don't include any information useful for debugging this, but if it get's > > far enough to load the firmware could you at least make sure you run the > > version below, so that's at least the same. > > > > https://github.com/esmil/linux/blob/visionfive/firmware/brcm/BCM43430A1.hcd > > That didn't change anything (and there are no messages related to > firmware loading from hci_uart). > > [ +0.879623] Bluetooth: Core ver 2.22 > [ +0.004843] NET: Registered PF_BLUETOOTH protocol family > [ +0.008787] Bluetooth: HCI device and connection manager initialized > [ +0.021944] Bluetooth: HCI socket layer initialized > [ +0.008488] Bluetooth: L2CAP socket layer initialized > [ +0.006333] Bluetooth: SCO socket layer initialized > [ +0.097478] Bluetooth: HCI UART driver ver 2.3 > [ +0.007943] Bluetooth: HCI UART protocol H4 registered > [ +0.006066] Bluetooth: HCI UART protocol BCSP registered > [ +0.006962] Bluetooth: HCI UART protocol LL registered > [ +0.000015] Bluetooth: HCI UART protocol ATH3K registered > [ +0.000084] Bluetooth: HCI UART protocol Three-wire (H5) registered > [ +0.000247] Bluetooth: HCI UART protocol Intel registered > [ +0.000455] Bluetooth: HCI UART protocol Broadcom registered > [ +0.000084] Bluetooth: HCI UART protocol QCA registered > [ +0.000008] Bluetooth: HCI UART protocol AG6XX registered > [ +0.000057] Bluetooth: HCI UART protocol Marvell registered > [ +0.051854] hci_uart_bcm serial0-0: supply vbat not found, using dummy regulator > [ +0.000387] hci_uart_bcm serial0-0: supply vddio not found, using dummy regulator > [ +0.094658] hci_uart_bcm serial0-0: No reset resource, using default baud rate > [ +0.990297] Bluetooth: hci0: command 0x1001 tx timeout > [ +0.022893] Bluetooth: hci0: BCM: Reading local version info failed (-110) > [ +3.306159] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 > [ +0.013336] Bluetooth: BNEP filters: protocol multicast > [ +0.124262] Bluetooth: BNEP socket layer initialized Oddly it doesn't work on my Starlight board either. I was thinking the firmware might set up pinconf differently, but comparing /sys/kernel/debug/pinctrl/11910000.pinctrl-pinctrl-starfive/pinconf-pins on the two boards shows no differences. I've also not been able to spot any differences in how the AP6236 module is connected in the schematics for the two boards, so not really sure how to proceed. If you're also testing on the Starlight board then I can update the patch to just enable Bluetooth on that I guess. /Emil