From patchwork Fri Sep 13 10:48:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 13803278 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 8F25BFA3741 for ; Fri, 13 Sep 2024 10:50:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=JgVVClL/nl81iGMgJH6Or+qEABIgBR2m9kRyKGMQOxs=; b=t2QrsF4OQTyLAa0tsdqiTKjui2 295yq96kTemrxJD2c6kWW2pLwmsDSuheNJpAYi3X89qtUteMK9gztwfNTWfzE+W8vP5OpdBQCmZM4 u6LDRoX17A6g2q9lGgBxZZiF3y+30Cws+GDHrPWVn+o8kkciZkaS7JPrBmKEBwalMgm27w2BB4mXD OtJ6Jo4Oiplyo+/by6Y76VDoMhwvfUzQ+VrTo0/7VyWuX5h+O1vWzaQRgW2kTp3IsCEMu+hvbDfuq NTprrAveBDptfeELvmFGKPKApbDW4sTIE205ZDP1lMi1N1rmCWcm8+GDF5LR4DeT5+u3sYtv+DBlx q7z+nkxQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sp3sX-0000000FfmW-3c6e; Fri, 13 Sep 2024 10:50:17 +0000 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sp3rR-0000000FfVy-261n for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2024 10:49:10 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1726224544; cv=none; d=zohomail.com; s=zohoarc; b=JgCHy26J5RTuZfALei11p0LhFB2xQIpGjsbqbvN9xv7ak/7OkkOAcXpS7EI5ZITdMYpf/oM3Xj/hui9a07q6BtSa1OYcb0b/n3BubOu93V8x/hD3BVGVfDnnO+DzLm8R7iFz//EBM77fiWXTIlwEtM52wHmIXMzZbXUUA7xoF1M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1726224544; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=JgVVClL/nl81iGMgJH6Or+qEABIgBR2m9kRyKGMQOxs=; b=EkrO2d2Y0f9JOBlm+Ef1G5O9iV7x7U9rPwWWjsqLr9iKX1Fymcx8NjQyoGuCMG2vu+tsX1A5Hw8yAK7fR6fLEZ67HetLbHSdtsXvWUIgCbbrJLf5py2GqtsQ2iep+CQAKDMsVu9C/Sasw26mKNS8EchPsicMz7A07znK1f4cY5M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1726224544; s=zmail2; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=JgVVClL/nl81iGMgJH6Or+qEABIgBR2m9kRyKGMQOxs=; b=qZtLeqwmL+sYAKut+OP6DssmODsfmsiVnRMD5/zrlLlQ6dL0H4LVkD5rBelNi6/R vGjHGyRed5k1EaXuUVf1y9gcGrCmCdE0uetObtqmH5rluSOXFvMe0vv4RfmNh8CBeDU QBgpmV8D0WOFEk1ETLqsCHzifCyD/pjijuy3L1QB3Fon4t0Miv0vEvh9Z3/655n8BmK liAle6a9bdd9PM0kbns3EzfvfEvCVLnzvJ3iP+4Mo++vOE2OjmXmoAeRwh08Q7pnbfd zClLtfNicvVWgNjPM29aKSxdw4Lfq6y3CjTjLmSPfnFQxgGQXPv/kboF4wcCqHObGqm 80xC5+IgwA== Received: by mx.zohomail.com with SMTPS id 1726224543413872.8186395558075; Fri, 13 Sep 2024 03:49:03 -0700 (PDT) From: Icenowy Zheng To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara , Maxime Ripard Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 1/2] dt-bindings: arm: sunxi: document RerVision A33-Vstar board Date: Fri, 13 Sep 2024 18:48:44 +0800 Message-ID: <20240913104845.4112986-1-uwu@icenowy.me> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240913_034909_612023_E435840C X-CRM114-Status: UNSURE ( 8.42 ) X-CRM114-Notice: Please train this message. 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 RerVision A33-Vstar is an evaluation board of their A33-Core1 SoM. Add its compatible (with the SoM compatible) to the sunxi board DT binding file. Signed-off-by: Icenowy Zheng Acked-by: Conor Dooley --- Documentation/devicetree/bindings/arm/sunxi.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml index 09dc6f4249866..6e56530d02439 100644 --- a/Documentation/devicetree/bindings/arm/sunxi.yaml +++ b/Documentation/devicetree/bindings/arm/sunxi.yaml @@ -841,6 +841,12 @@ properties: - const: allwinner,sun50i-h64 - const: allwinner,sun50i-a64 + - description: RerVision A33-Vstar (with A33-Core1 SoM) + items: + - const: rervision,a33-vstar + - const: rervision,a33-core1 + - const: allwinner,sun8i-a33 + - description: RerVision H3-DVK items: - const: rervision,h3-dvk From patchwork Fri Sep 13 10:48:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 13803279 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 DD712FA3743 for ; Fri, 13 Sep 2024 10:51:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EWnTyuD2fMx+jwMT39s2xGJQlqa3vGIChnqgiCSMePw=; b=Q6hSj7TEOLfB1KubPPOnty8cZH 0+MoX2XC6kF6CxtqJft4QZ5qRdsPWK+8CHntJe8aizepc5hIc3TqpOS/7kw/6nLxtuvL5tqj1eXzl sL+m+98xzjOFWWqu0NGeo+cURrvuRBS3JEg56QkXs/zJJ5P0TKtxkPnTH1NvIzaodbXAytB5WVvYn VqTdCbJhXyG9O9IjV5nYCPTAFfu0KaAP6Tt/stbAhXuQ41lV8O6gzmIkCQkWB0kBC8PkHL+iXnv29 wOijbPk1cVNT3VpiSFT/kBt47IzFWdMpiJpqR+/C+xEhhPvrHQTkarXfEqUUpwjEX+WZLKjsx6yaA NFTGnaLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sp3tZ-0000000Ffvj-20Wo; Fri, 13 Sep 2024 10:51:21 +0000 Received: from sender4-op-o15.zoho.com ([136.143.188.15]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sp3rY-0000000FfXn-1CTt for linux-arm-kernel@lists.infradead.org; Fri, 13 Sep 2024 10:49:17 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1726224552; cv=none; d=zohomail.com; s=zohoarc; b=RsJNCxXgqu5XCW3rIYjetfSBHsWrOn7kkCmFq45cmPJ6r7zVjXXfatzFD/PyLD3K9TDrcv5p2ckGhVh2uLVdklAuh+atBCrXE9PKGJMMxJqrfqOwO6CKgvgKfIf8HJVjEAbi1YlqqLA01TNDdCX9dlNDXW2fvXJPIybcARYFXI4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1726224552; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=EWnTyuD2fMx+jwMT39s2xGJQlqa3vGIChnqgiCSMePw=; b=EOyLuOTMmnUTf57taphBb50b3yn7BUwDKHHOWSaamWgLQjqd6pWp6FK2XKslAxWVfJhTJ6BU2SxDduat5vVPFyNrJk8FMbm8kvDUrWVoF9hjdCTn+l/mGLos9WPaL6I9PlIQMzUAgLYCxHJPfVQzzAm6xsO/pnia895dgJzcKTE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1726224552; s=zmail2; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=EWnTyuD2fMx+jwMT39s2xGJQlqa3vGIChnqgiCSMePw=; b=hzKaGpa7lhrgfMywoTSJkg3Zo8nMifFgsodI5GY+yKrpQXtpVAtYQTEJurRIAiFC prn4FQ320PYK+uwCqB/uaEckARvTkT6pF7E0Y8vx4KMEljmH3iw5/mrrHPvlg4y7QXB HLhz/0GN6jI1EVEy1w5O46YQjerA3xZVVu6Ci33wlaIi7JSyQ+fU6hCDw91u616kfWA uF4ooenoTGPuGOzAtVhZzSxS5IDTNs699IL7RpjuedNDND5NuCRiv6EQi6r3fXBR9jh SJlRwnyqAxna1S6boxOfM+ZsckqFei9vQdMZqXTI50jKxN8n09l5NLIPBlkXSX4efIs aFmsdsKXzQ== Received: by mx.zohomail.com with SMTPS id 1726224550870839.822556791798; Fri, 13 Sep 2024 03:49:10 -0700 (PDT) From: Icenowy Zheng To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Andre Przywara , Maxime Ripard Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 2/2] ARM: dts: sunxi: add support for RerVision A33-Vstar board Date: Fri, 13 Sep 2024 18:48:45 +0800 Message-ID: <20240913104845.4112986-2-uwu@icenowy.me> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240913104845.4112986-1-uwu@icenowy.me> References: <20240913104845.4112986-1-uwu@icenowy.me> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240913_034916_382997_C5F04CC1 X-CRM114-Status: GOOD ( 20.35 ) 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 RerVision A33-Vstar board is a board based on their A33-Core1 SoM (A33 SoC + 512MiB DRAM + 4GiB eMMC + AXP223 PMIC), with multiple peripherals: - MicroSD card slot - 4.0mm/1.7mm DC jack connected to ACIN of AXP223 (and a XH2.54 2-pin connector for alternative 5V DC IN) - OTG-capable microUSB port - Reserved pads for soldering Li-ion battery and/or 3V RTC battery - 3 LRADC-attached keys and 2 fixed function power/reset keys - AP6212 Wi-Fi/BT combo module - On-board GL850G hub attached to the USB host port of A33, and a RTL8152 USB Ethernet chip at the downstream of the hub - Onboard microphone (not supported yet) and headphone jack - 3 UART ports as PH2.0 3-pin connectors (UART2 one is currently used as debug output and others are ignored yet) Signed-off-by: Icenowy Zheng --- arch/arm/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun8i-a33-vstar-core1.dtsi | 96 ++++++++ .../boot/dts/allwinner/sun8i-a33-vstar.dts | 205 ++++++++++++++++++ 3 files changed, 302 insertions(+) create mode 100644 arch/arm/boot/dts/allwinner/sun8i-a33-vstar-core1.dtsi create mode 100644 arch/arm/boot/dts/allwinner/sun8i-a33-vstar.dts diff --git a/arch/arm/boot/dts/allwinner/Makefile b/arch/arm/boot/dts/allwinner/Makefile index cd0d044882cf8..d548f4a2621a1 100644 --- a/arch/arm/boot/dts/allwinner/Makefile +++ b/arch/arm/boot/dts/allwinner/Makefile @@ -215,6 +215,7 @@ dtb-$(CONFIG_MACH_SUN8I) += \ sun8i-a33-olinuxino.dtb \ sun8i-a33-q8-tablet.dtb \ sun8i-a33-sinlinx-sina33.dtb \ + sun8i-a33-vstar.dtb \ sun8i-a83t-allwinner-h8homlet-v2.dtb \ sun8i-a83t-bananapi-m3.dtb \ sun8i-a83t-cubietruck-plus.dtb \ diff --git a/arch/arm/boot/dts/allwinner/sun8i-a33-vstar-core1.dtsi b/arch/arm/boot/dts/allwinner/sun8i-a33-vstar-core1.dtsi new file mode 100644 index 0000000000000..ba794b842ec4e --- /dev/null +++ b/arch/arm/boot/dts/allwinner/sun8i-a33-vstar-core1.dtsi @@ -0,0 +1,96 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2024 Icenowy Zheng + */ + +#include "sun8i-a33.dtsi" + +&mmc2 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_8bit_pins>; + vmmc-supply = <®_dcdc1>; + bus-width = <8>; + non-removable; + cap-mmc-hw-reset; + status = "okay"; +}; + +&mmc2_8bit_pins { + /* Increase drive strength for DDR modes */ + drive-strength = <40>; +}; + +&r_rsb { + status = "okay"; + + axp22x: pmic@3a3 { + compatible = "x-powers,axp223"; + reg = <0x3a3>; + interrupt-parent = <&r_intc>; + interrupts = ; + eldoin-supply = <®_dcdc1>; + x-powers,drive-vbus-en; + }; +}; + +#include "axp223.dtsi" + +®_aldo1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-io"; +}; + +®_aldo2 { + regulator-always-on; + regulator-min-microvolt = <2350000>; + regulator-max-microvolt = <2650000>; + regulator-name = "vdd-dll"; +}; + +®_aldo3 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-avcc"; +}; + +®_dc5ldo { + regulator-always-on; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd-cpus"; +}; + +®_dcdc1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-3v3"; +}; + +®_dcdc2 { + regulator-always-on; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd-sys"; +}; + +®_dcdc3 { + regulator-always-on; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd-cpu"; +}; + +®_dcdc5 { + regulator-always-on; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + regulator-name = "vcc-dram"; +}; + +®_rtc_ldo { + regulator-name = "vcc-rtc"; +}; diff --git a/arch/arm/boot/dts/allwinner/sun8i-a33-vstar.dts b/arch/arm/boot/dts/allwinner/sun8i-a33-vstar.dts new file mode 100644 index 0000000000000..9f5c29b3df46d --- /dev/null +++ b/arch/arm/boot/dts/allwinner/sun8i-a33-vstar.dts @@ -0,0 +1,205 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (C) 2024 Icenowy Zheng + */ + +/dts-v1/; +#include "sun8i-a33-vstar-core1.dtsi" + +#include +#include + +/ { + model = "Rervision A33-Vstar"; + compatible = "rervision,a33-vstar", + "rervision,a33-core1", + "allwinner,sun8i-a33"; + + aliases { + serial0 = &uart0; + ethernet0 = &r8152; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + reg_usb1_vbus: regulator-usb1-vbus { + compatible = "regulator-fixed"; + regulator-name = "usb1-vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + enable-active-high; + gpio = <&pio 1 2 GPIO_ACTIVE_HIGH>; /* PB2 */ + }; + + wifi_pwrseq: pwrseq { + compatible = "mmc-pwrseq-simple"; + reset-gpios = <&r_pio 0 6 GPIO_ACTIVE_LOW>; /* PL6 */ + clocks = <&rtc CLK_OSC32K_FANOUT>; + clock-names = "ext_clock"; + }; +}; + +&ac_power_supply { + status = "okay"; +}; + +&codec { + status = "okay"; +}; + +&dai { + status = "okay"; +}; + +&ehci0 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + hub@1 { + /* Onboard GL850G hub which needs no extra power sequence */ + compatible = "usb5e3,608"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + r8152: ethernet@4 { + /* + * Onboard Realtek RTL8152 USB Ethernet, + * with no MAC address programmed + */ + compatible = "usbbda,8152"; + reg = <4>; + }; + }; +}; + +&lradc { + vref-supply = <®_aldo3>; + status = "okay"; + + button-191 { + label = "V+"; + linux,code = ; + channel = <0>; + voltage = <191011>; + }; + + button-391 { + label = "V-"; + linux,code = ; + channel = <0>; + voltage = <391304>; + }; + + button-600 { + label = "BACK"; + linux,code = ; + channel = <0>; + voltage = <600000>; + }; +}; + +&mmc0 { + vmmc-supply = <®_dcdc1>; + bus-width = <4>; + cd-gpios = <&pio 1 4 GPIO_ACTIVE_LOW>; /* PB4 */ + status = "okay"; +}; + +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pg_pins>; + vmmc-supply = <®_dldo1>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&r_pio>; + interrupts = <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 */ + interrupt-names = "host-wake"; + }; +}; + +/* + * Our WiFi chip needs both DLDO1 and DLDO2 to be powered at the same + * time, with the two being in sync. Since this is not really + * supported right now, just use the two as always on, and we will fix + * it later. + */ +®_dldo1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-wifi0"; +}; + +®_dldo2 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-wifi1"; +}; + +®_drivevbus { + regulator-name = "usb0-vbus"; + status = "okay"; +}; + +&sound { + /* TODO: on-board microphone */ + + simple-audio-card,widgets = "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Left DAC", "DACL", + "Right DAC", "DACR", + "Headphone Jack", "HP"; + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pb_pins>; + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&uart1_pg_pins>, <&uart1_cts_rts_pg_pins>; + uart-has-rtscts; + status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + clocks = <&rtc CLK_OSC32K_FANOUT>; + clock-names = "lpo"; + vbat-supply = <®_dldo1>; + device-wakeup-gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */ + host-wakeup-gpios = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */ + shutdown-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */ + }; +}; + +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usb_power_supply { + status = "okay"; +}; + +&usbphy { + usb0_id_det-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */ + usb0_vbus_power-supply = <&usb_power_supply>; + usb0_vbus-supply = <®_drivevbus>; + usb1_vbus-supply = <®_usb1_vbus>; + status = "okay"; +};