Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp424887lqo; Wed, 8 May 2024 04:16:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6zaD+8wZI6GQLlrX8j3HRzY/4MPlUpTLIfRZ3v3izlZa9qH1VcwF0i9E/sCADeuc8nHH2CbrkjgQOkq5xVpqNDs48vbRdXb2JKFkYmQ== X-Google-Smtp-Source: AGHT+IFWsc/Y24UUOFT8YRChG7XfvFlKSjeQT1vYyKGku9s25RvOy6becG7m+Ph6s08/zx6/du7A X-Received: by 2002:a05:6214:c62:b0:6a0:cc9b:36c9 with SMTP id 6a1803df08f44-6a1514df3a5mr23370516d6.55.1715167002184; Wed, 08 May 2024 04:16:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715167002; cv=pass; d=google.com; s=arc-20160816; b=AfI/QX0pGG1PMyWt3QZNOxGqrY9hew3QyYeYOz3YaUyJdjL6oBzufc0bJMb/8KwonH VDR93ueMznFM1roLrKaLvbSZ0LU+Kyb1jnwgt+HXNj8BDBd6pPiz/urb1gdHXX5PuQ2a DPSUH3ZNswq8sZAZYm92dlMFqIYwlYN4hUvOIfeGzd0DwsewOz9Cx1+kfw5O7bcBiMet JFPuq9B+ezzLSE88ZFavkmZOY7OK8ifDmY2YCMfFuhgqnGQGpZVSgJPf9/VHsRJ3mQsc ++ylkPBiJdg9/oiE6UpO13kntH2X1Oz7tf+cvEivTIcdlKjs+qehxg0meFB8fTPqO1iC lAdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=/V1XrjVIykV/6kKtO7hT6IY0af9h2AXu+LfSqihAnro=; fh=biatpg9up78shAf1RqOUwDnhCmNm/Yg4CW05EYqmMS0=; b=Ys5LnKwT/9hoIDvvL68+lv1421s8XQbgmXN/AkayGQRZLqAgpB6+LM5RYlUI+hoji0 dj8l7u+U9S6D0vv7IKduC7Tioz1oMRnZBcGkVqWZOCVd9ymZem+r7v0lu9LbwdUtscCn epAZOsA01xy+qbp+v9wYO6vOVCRXIEF/TZxJLcQq3vjOOvyC830SFCLZ83RehFqCvqz1 hfnozwhCyswZW8Y5iyFa60CSKD0kjycXFpIsJ4wvov7TuHPRM49fYnJjnLCCFJJqtSbG ukFro7ahW/DjSQ12BlWMtPbYjq+un9HoDAE24FklH8QcXan5H4ZLGN/mHT18QKMPdG0k uGJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=PyklEU2B; 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-173113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173113-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gs14-20020a056214226e00b006a0ae95064asi13838408qvb.378.2024.05.08.04.16.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 04:16:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=PyklEU2B; 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-173113-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173113-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D2BC61C217FA for ; Wed, 8 May 2024 11:16:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0955982897; Wed, 8 May 2024 11:16:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="PyklEU2B" 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 7B84D81ABF for ; Wed, 8 May 2024 11:16:12 +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=1715166974; cv=none; b=eO0nAPPPonUoenbHlsLnK4KgmlE/BztksRft02rDo9ye2DKYXzqdyiB42LCmOJx3NOPm3n0nJiqQDYXBkx++RNbdT9VCDsfcNknHxq2GnS04CPKNgwbXkdy3yNdGdl+O1H0tr5ZzqZQuZA/uwK7NGpjTe+NTBNdL2RXhuAODF9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715166974; c=relaxed/simple; bh=RPie27IklaRFn+/JiKJQkM0UDLWbdd1RvmETEowVFe4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SuWGcFdqWEph4yv8tYoZN6FWApOZ1uJyHZvu22VOu2N0lFTMIMhnjAuhzd3PW2L/A6MEQNIyTmA6+bO3+sMd2JUeevcdzNff3Tr10dTzUNbRLyL+Yvci9N8pyXU0ouU4aaxcXHnkEkQYEbvte+9J1KO+A8zdVCrYNlp9ZRpfcSo= 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=PyklEU2B; 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-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.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 C00B54155E for ; Wed, 8 May 2024 11:16:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1715166968; bh=/V1XrjVIykV/6kKtO7hT6IY0af9h2AXu+LfSqihAnro=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PyklEU2Bvqn/MWrQjPyGVPOXkqC0k4bdPS3TQtKQ5tFwEjOBoE7ACM3bijbJ/5iYu mQKKigRx5vHb9OfcSJQ+58KJ0pRLH/clknRIZCegsahyS/Wy6s5RB2Og7lJi8xzI0O FtyV2+WwdCUzHGUViC2knyXn1Tfs1WS3pynp/nu3nTcUhMD4458kKc15LdFCe/9Azi Hl0Kck9dRzeHUUjbmvgpwsiZp7x+UN+4GCLDBPljH5GuY7mJszMth9/di35JcU8A4O vA/ioTYEr6PDHUp3DZj7mZ68IPkH3bFliIfyG/8Im5jKJ33JgeY98xMTHytw4UjaV/ 6lRs+NZZhu+bQ== Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a59c7586f7cso218874266b.3 for ; Wed, 08 May 2024 04:16:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715166968; x=1715771768; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/V1XrjVIykV/6kKtO7hT6IY0af9h2AXu+LfSqihAnro=; b=A64/sscH6zq/BO3faWM4QGtS8uKtAVII/wygEQmlH/I3FstoPIkLbymuCVJDBu1sR/ 1TJX3R8/YSiw5+zZUAOVweKOG8u/lHskGjyX2yZiYQES1mOSOcl5Xrz1Zczv4faCpfIQ O6ResWiWrH13X1LnwCs5xuCDTsma0far6PSAPiL2uCa0CTGMynorc+xVHEEdoVHCYX25 8BPSkLr/q270X7IB0L8hB4Rx29uyrzh/JOnEXorft3Qx+zDLeITlwqhAjvyzCWmfPyd3 K/nAH2Z4rScjckLNhGLLxx3gwChSG0h7coTLExHOO5dWLzGTHVxlpD0KmmEA4JduoCSb Lq8g== X-Forwarded-Encrypted: i=1; AJvYcCWblj9CV2W9P7JwKBjzc7xkEMPnjsfj9KHza+mDIZErfuQ6PoUzkdOl9Zj9RBJsZPdrz9SpafTcQx+6Qjv10qUYZOAFckcjLShAnmZn X-Gm-Message-State: AOJu0YwD1IslQq1ecT3HnaGt8BztQRUQB4TFKnvHwG6emYU8vBiLmeU9 7AAVdN6SFCuQbprOGeYixfuKF5iH14pEWrM6IwI3rJnVsglU7sTIe1iesUXeOhXdNNtDK/46bm/ j7tVVk4bqYfgPv+y5yMIuBhRG4bHWCe9CzcdMTDP+wM8zKYmZMXAMP/yIqS9cWxUJwDrFkT3Csq Yw8A== X-Received: by 2002:a50:8750:0:b0:571:cb02:418a with SMTP id 4fb4d7f45d1cf-5731daa2c96mr1402047a12.40.1715166968340; Wed, 08 May 2024 04:16:08 -0700 (PDT) X-Received: by 2002:a50:8750:0:b0:571:cb02:418a with SMTP id 4fb4d7f45d1cf-5731daa2c96mr1402037a12.40.1715166968077; Wed, 08 May 2024 04:16:08 -0700 (PDT) Received: from stitch.. ([2a01:4262:1ab:c:8ce6:9eb:cd7b:fcdd]) by smtp.gmail.com with ESMTPSA id co22-20020a0564020c1600b00572a865af10sm7513556edb.44.2024.05.08.04.16.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 04:16:07 -0700 (PDT) From: Emil Renner Berthing To: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Subject: [PATCH v1 2/2] riscv: dts: starfive: Enable Bluetooth on JH7100 boards Date: Wed, 8 May 2024 13:15:55 +0200 Message-ID: <20240508111604.887466-3-emil.renner.berthing@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240508111604.887466-1-emil.renner.berthing@canonical.com> References: <20240508111604.887466-1-emil.renner.berthing@canonical.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Emil Renner Berthing Add pinctrl and UART nodes for the Broadcom Wifi/Bluetooth module on the BeagleV Starlight and StarFive VisionFive V1 boards. Signed-off-by: Emil Renner Berthing --- .../boot/dts/starfive/jh7100-common.dtsi | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi index ae1a6aeb0aea..1f79481bfd96 100644 --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi @@ -289,6 +289,41 @@ GPO_SDIO1_PAD_CDATA_OEN_BIT3, }; }; + uart0_pins: uart0-0 { + rx-pins { + pinmux = ; + bias-pull-up; + drive-strength = <14>; + input-enable; + input-schmitt-enable; + }; + tx-pins { + pinmux = ; + bias-disable; + drive-strength = <35>; + input-disable; + input-schmitt-disable; + }; + cts-pins { + pinmux = ; + bias-pull-down; + drive-strength = <14>; + input-enable; + input-schmitt-enable; + }; + rts-pins { + pinmux = ; + bias-disable; + drive-strength = <35>; + input-disable; + input-schmitt-disable; + }; + }; + uart3_pins: uart3-0 { rx-pins { pinmux = ; + uart-has-rtscts; + status = "okay"; + + bluetooth { + compatible = "brcm,bcm4330-bt"; + max-speed = <4000000>; + device-wakeup-gpios = <&gpio 38 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio 35 GPIO_ACTIVE_LOW>; + }; +}; + &uart3 { pinctrl-names = "default"; pinctrl-0 = <&uart3_pins>; -- 2.43.0