From patchwork Tue Jan 4 19:37:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikhail Rudenko X-Patchwork-Id: 12703794 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7ED98C433EF for ; Tue, 4 Jan 2022 19:38:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=lZtLAnuzu84d/M0devj1mR0nitT9YtTuclNNW0EvnYQ=; b=GPPGp9hmc3FnzG re/8SYeMWwpumdMWYX4AjNplJlHZ8EBwKFf2lKTb4JrHAf0iPijwKu1r1MHi3dfcpDFAcgb/oC6s7 7Fj+K6jY8Ei5vdq8LAaqvZiSwN1oP0aWfOO381ToWLdEkc7d69yCoxMiJ8PVE913eXEnaToITXWbR +eZ92LRFWrsQdHPctsg7vPL2LJuLuIi65iVdDg/n8DKshqESaSAvVxPT0/bJi9mpze59aEpv2+voq b0zHR0RoEAi6mqYXeH/uFlr/QOogmmzs4KP7baa+GYMoqoaYJSOVakg4GxNoDlTXTWGMNDqT5EgCx S6ST1f6chS6cbHCJ0Mig==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4pcm-00CciL-W5; Tue, 04 Jan 2022 19:37:37 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4pcj-00Cchi-LS for linux-arm-kernel@lists.infradead.org; Tue, 04 Jan 2022 19:37:34 +0000 Received: by mail-lf1-x136.google.com with SMTP id p13so47692362lfh.13 for ; Tue, 04 Jan 2022 11:37:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MqDFLlq3VWxFS0cMOIJ3RThrgRba36XLCT0Etg8h8PA=; b=d22zZX5UQQFvYJz1V0IqyvYKI17zkeJqguw4hTlCsfuc/BeMsTo+0EWw510A+Vl/zh susy9OVa1Il1XZjt2DiB7jcpziadV5Xdb/el0dH+DZbLEsZwyJ9itP1EA2hoawe5d9eU d4zvPjoKhUO8vdj1y80LTYJIh6Er47g/qaaQLewKp/XJlhn8xDGT9F/cPeUWLDAgAFb6 62X+j03BrlNm+5GWJtpuMwnjVzKP0DHqLsXor5OORoWBx/2Avo8UiVJy4MJKRRLRRsnM cxkUrbURJ5l6NkWc8smAbaDwbmR0ip0nIUrMeaWzcXuBLVfhvEoXXQ/ZAS4UEp0Xc1ln KAvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MqDFLlq3VWxFS0cMOIJ3RThrgRba36XLCT0Etg8h8PA=; b=tWd/vtBH90vRa+VVMx9RfEWNmWI9wYPM0pdkk9mKR5BMbcIh8hREMpyyGF2agt10aJ Kw0dNJFG8YUyP7I+gM1x35kFM5FeUqsw9U8mZ7cQDNzAirRUvl1GttPERkGKEUuEgjex DnYRhQzLtbgar6IGabNOgzzco4I2azQhJA0FcIY3C1/nRWBdmyMabZ3r/7wtLrxTQJVc YtZFnpy6e1A4C4DqFcV26d8mkwIoyAW1PgOTqI+JmBVxfnLSI/FYr5+pFV0SN3tWDa8O R/RtRtciwuIJu6cQJJUrWTu7f1+XmqjW4ErmiZK3Xnie66VfCSQ2XT+y3bCURo+PFH0F Po4A== X-Gm-Message-State: AOAM531AN3WX5XFvXUCu1Zp3q6LWsJSPzFkja/04qq02fqn+02y0lwWQ 1MskkGxUyT0FXg/7t1U0Q2Q= X-Google-Smtp-Source: ABdhPJxE1b7joWTMcKyxqd2QwxBmI6VZjwN8/Q3c0BSzizxrMwMPSblooXHp47Nc+gRbdl4accQtQA== X-Received: by 2002:a05:6512:3485:: with SMTP id v5mr28180175lfr.495.1641325050872; Tue, 04 Jan 2022 11:37:30 -0800 (PST) Received: from localhost (93-80-64-103.broadband.corbina.ru. [93.80.64.103]) by smtp.gmail.com with ESMTPSA id bp22sm3643453lfb.150.2022.01.04.11.37.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jan 2022 11:37:30 -0800 (PST) From: Mikhail Rudenko To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec Cc: Mikhail Rudenko , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: nanopi-neo-air: Add eMMC and bluetooth Date: Tue, 4 Jan 2022 22:37:18 +0300 Message-Id: <20220104193719.87091-1-mike.rudenko@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220104_113733_746420_1CEEBB9A X-CRM114-Status: GOOD ( 12.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the bluetooth part of AP6212 chip (connected to UART3) and the onboard eMMC (connected to MMC2) for the NanoPi NEO Air board. Signed-off-by: Mikhail Rudenko --- arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts index be49eabbff94..cd3df12b6573 100644 --- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts @@ -103,12 +103,40 @@ brcmf: bcrmf@1 { }; }; +&mmc2 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_8bit_pins>; + vmmc-supply = <®_vcc3v3>; + vqmmc-supply = <®_vcc3v3>; + bus-width = <8>; + non-removable; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pa_pins>; status = "okay"; }; +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&uart3_pins>, <&uart3_rts_cts_pins>; + uart-has-rtscts; + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&rtc 1>; + clock-names = "lpo"; + vbat-supply = <®_vcc3v3>; + vddio-supply = <®_vcc3v3>; + device-wakeup-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ + host-wakeup-gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */ + shutdown-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */ + }; +}; + &usbphy { /* USB VBUS is always on */ status = "okay";