Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2996128pxv; Mon, 12 Jul 2021 07:00:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaIMmQtXC2c7SiJLOhSAaxq/oZSX+BMQNDzbdHY1+nPvDZxWpNaqz7C27x73I2IVsGWPni X-Received: by 2002:a05:6e02:1142:: with SMTP id o2mr4364823ill.277.1626098413432; Mon, 12 Jul 2021 07:00:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626098413; cv=none; d=google.com; s=arc-20160816; b=kIB9NFCo3UYdR0mG1/DWGzwADzL8Q1EW/0cPHrKul9rfix6DtWlMmNzO8Srmx3Tc7L qcuvaE9HyHo5aPiRQ486aVYK3oZZVsMpB3iAB6jI0upKLNQxwZqAniDNO5u64CFVZCij +BRpI2dFXhKZMrreewOLiDGKYKeMDlmwUfBOXQI7iZDXCeDDwbmeqZor4W790MnXY15b WZPh4UXL+WtjiIWrVeC6C7I5PcrhNwfTL64m6yRLM32iWagzYbKeaEMT03XL+Wczp8m0 lhUHQaAV4gh6FHogkuyOwg0geeYoKDviWX5ywMDgGZWkpK6Pfvhq5hYmdzoE+DdPI1nS 8LFw== 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=qiIMQzfyO2TRaVGpKuwXpcGUEkGcAsfhamjqY+QlnLk=; b=lRUjawOtgqf3Ho/QuX8MPXgV7rToM7hJXi9Yplbp8HxQrXqiIu4s6BHoZbdsYxEK9J jv9xlpw7uIil7VhTNVq2gowI6ZmTyot5EGQbS3jz52gaDGOZOPvSirbHmdRhLzFQ78YG G4N+2A4aqVtU2SES3ugu9BvetOQvGxwLlPl2sKlj1TuOIn2KkWvt49EndEpKMNIaZg6r tpgnYTHa6wGHT/efn8IExZ6wePDjL3i1duTVPuRUato/X6XeixkjLOlsU5rFxW1XXcxx NelSnpkjmzgn7X2KmifuyjTxYTRp8nR29ucbL4To6ZOLIsogqgnyvR8LQuKQ3X+ckQw2 PmTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eJHp1t8b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si3590324ilj.24.2021.07.12.07.00.01; Mon, 12 Jul 2021 07:00:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eJHp1t8b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231967AbhGLOCM (ORCPT + 99 others); Mon, 12 Jul 2021 10:02:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:57380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbhGLOCM (ORCPT ); Mon, 12 Jul 2021 10:02:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D27A761003; Mon, 12 Jul 2021 13:59:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626098364; bh=CVa9mOdD4iVXL47LeMVBbUqVDOCPCuh6G06o/IBjVAA=; h=From:To:Cc:Subject:Date:From; b=eJHp1t8b22M7dLCIWLFl17xaWR15lVo7pZYTSPilqbsKK3p20ZKV5cZOpNiFrE8EA dJvqwhFEHtJOti1SFV/srwm7dqfSTSTnsnadZaj20J7dAyxsb84Cthp2dTLPutvSub 09q5U1ZT0VrlVrGqUwOInsQGubij6R/78hVJxjzeOTpEqHMtyVqGTzskdEAUFJqxR4 jVX/yLUzQfszVTV2eRpCfxRnSaSeLBhhZ/u2dlP9VQmzsywn9aecO0Iqx49AxBIfGR h9vvcK6IM+SsRQUi1zH5jyXbvRsUQpReIcv9YYx6YDZlxVrUuK9cdX/Z6+FOxLtF/E rYPfjJa3EKWzQ== Received: by wens.tw (Postfix, from userid 1000) id B0BF15FBF5; Mon, 12 Jul 2021 21:59:21 +0800 (CST) From: Chen-Yu Tsai To: Kevin Hilman , Neil Armstrong , Jerome Brunet , Martin Blumenstingl Cc: Chen-Yu Tsai , devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] arm64: dts: meson-gxbb: nanopi-k2: Enable Bluetooth Date: Mon, 12 Jul 2021 21:59:19 +0800 Message-Id: <20210712135919.32059-1-wens@kernel.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai The NanoPi K2 has a AP6212 WiFi+BT combo module. The WiFi portion is already enabled. The BT part is connected via UART and I2S. Enable the UART and add a device node describing the Bluetooth portion of the module. Reviewed-by: Martin Blumenstingl Signed-off-by: Chen-Yu Tsai --- Changes since v2: - dropped alias for uart_A - added Martin's reviewed-by Changes since v1: - added uart-has-rtscts property - added alias for uart_A --- .../arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts index 7273eed5292c..7d94160f5802 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts @@ -385,9 +385,20 @@ &uart_AO { /* Bluetooth on AP6212 */ &uart_A { - status = "disabled"; + status = "okay"; pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; pinctrl-names = "default"; + uart-has-rtscts; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&wifi_32k>; + clock-names = "lpo"; + vbat-supply = <&vddio_ao3v3>; + vddio-supply = <&vddio_ao18>; + host-wakeup-gpios = <&gpio GPIOX_21 GPIO_ACTIVE_HIGH>; + shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>; + }; }; /* 40-pin CON1 */ -- 2.31.1