Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1279505lqo; Thu, 9 May 2024 09:16:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXLDyHJ+6DwQKtMQjpPdnBRWgPc4LGM11HpteqphImn0ssAYZn+fgZ0jY+RAt3+k25uOjheM0R/tudnVDVp+JJgAOmaP9BB653mOimhA== X-Google-Smtp-Source: AGHT+IFd2odjTAJCI3+YfX2BM8ubQ45gZ6U939neVjiUG2wXblWNSp9NQwBE0U3q9nrPVt8jfmU4 X-Received: by 2002:a05:622a:1898:b0:43a:f80e:152d with SMTP id d75a77b69052e-43dbf4ea06bmr57401741cf.3.1715271413451; Thu, 09 May 2024 09:16:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715271413; cv=pass; d=google.com; s=arc-20160816; b=PeuHBIpwQUeVcEKZMFo75DM8xA012o/769v3AetQk0t/UJOa1Sqn5kwDaiRgQs6nQw hSOs/e+DNcr1zCj6HKRw7S0/PY+Zjdj95Jlp76kggSj3jFHNDM9H4DttstAIHGWCLu0e JCHmFTcDljH2k9ohuKfMn2xL1qKyuTtcPi9MAfs78qOCVHg7rYOPEomOIqB5LrYH3i9j LPkbnr6cbNclFLZddd3EE4W2enOkylYSogkEpq9LTyFl4UuO6p3+xYBS07elHIn4BFED diQonPsMpS9dVwn/gyScGToZxKkBLQKim9VHmNUQf0Da+TBm9jvFDUUPsjhgQTKq9Noe 1XQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=7oLPErWVC429NI4NdK1BrbFXkJp26MqY9vER7fHt16w=; fh=h6kJuU4tqgIsmIdaI/WuNd3SEKqzzNxTE+J10/xOpE0=; b=zuC/tpKVF5H9Y7Bt2uApTgEhuCY2BU4Uc95IQAngR5yIqop5UJQYc1Fo+YoXPZP0PN eOndEv8e447MBsN9otz7LkbA7EA9NVOKPMTv6nym2+Hrsq8RMqoyk3QOEsbfiTLZRJ4P oSpnOOjXQ2ObVXhJs/nlAm+KZytv2puXR5gl6ai9rYbH9XSaLWFs0uPH9pwz0plPrr8D xw1TJOy8g76h1Y8VGFwKmEBAlKgY5oguth3j7x1S3QIIpgUePqatScKikRGUqzOKIn3d /o1BmQbsJAZ715M/63mJTx0pcvWcjqxZcPc7i+otV1yfuqHhcrC2WU3KADbxYxn6aygz BTFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-174670-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174670-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df54a205dsi16694131cf.122.2024.05.09.09.16.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 09:16:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174670-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-174670-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174670-linux.lists.archive=gmail.com@vger.kernel.org" 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 1C8371C219B1 for ; Thu, 9 May 2024 16:16:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA17016F904; Thu, 9 May 2024 16:16:40 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 0AC3E16F832; Thu, 9 May 2024 16:16:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715271399; cv=none; b=H26ZT6TodjEI6xIwQsqjfOoJLAgvTZziE7db3yUJT+Y0tGlC+God9IuGfLsjkwjp/MPBAElH3emc6YACLCFHBBm1iGb4QzdFso9jxq9DFEnVivO1nM4juee+LkwHJ+ywUGa7t3e/GJnMmDPM3nx6v+DPB1Kx65FO8NNqwRohZi0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715271399; c=relaxed/simple; bh=QvxJGTGS4mwLgnS0xtMjkHGpoJAiZv1+KvY8N7BDM7I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PJZzeHOCzPY8cutfgzwPDHzW2FmfVEhBe8C54mz8S59i+HwFz1LROcTIeb27yf47jljGB9Q70yuLnth+Vo1UHnKS9lTyZ+D3s07zZj/xkAsvp8NTUPkw8bKKq22MrwjmjMktpy0wqZLeZQexOu/ymACh5Bs4lvwFLY6Qxog4Kys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1) (envelope-from ) id 1s56RK-000000008Vk-1VOx; Thu, 09 May 2024 16:16:14 +0000 Date: Thu, 9 May 2024 17:16:09 +0100 From: Daniel Golle To: Frank Wunderlich Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Pavel Machek , Lee Jones , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, Tianling Shen , netdev@vger.kernel.org, Tianling Shen , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Eric Woudstra , linux-clk@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: [PATCH v2 2/2] arm64: dts: mediatek: Add mt7986 based Bananapi R3 Mini Message-ID: References: <20240509152157.10162-1-linux@fw-web.de> <20240509152157.10162-3-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240509152157.10162-3-linux@fw-web.de> On Thu, May 09, 2024 at 05:21:57PM +0200, Frank Wunderlich wrote: > From: Frank Wunderlich > > Add devicetree for Bananapi R3 Mini SBC. > > Key features: > - MediaTek MT7986A(Filogic 830) Quad core ARM Cortex A53 > - Wifi 6 2.4G/5G(MT7976C) ^^ ^^ Those are full-width unicode parentheses. Consider using normal 7-bit ASCII parentheses instead to keep the commit message readable also on non-unicode terminals. Unicode vs ASCII ( 0xff08 vs ( 0x28 ) 0xff09 vs ) 0x29 > - 2G DDR RAM > - 8G eMMC flash > - 128MB Nand flash > - 2x 2.5GbE network port > - 1x M.2 Key B USB interface > - 1x M.2 KEY M PCIe interface > - 1x USB2.0 interface > > source: https://wiki.banana-pi.org/Banana_Pi_BPI-R3_Mini > > Co-developed-by: Eric Woudstra > Signed-off-by: Eric Woudstra > Co-developed-by: Tianling Shen > Signed-off-by: Tianling Shen > Signed-off-by: Frank Wunderlich Reviewed-by: Daniel Golle > --- > v2: > - add missing node for nand > - add some information about the board in description > > change dts based on review from angelo+krzysztof > > - drop fan status > - rename phy14 to phy0 and phy15 to phy1 > - drop default-trigger from phys and so also the binding-patch > - use regulator names based on regexp regulator-[0-9]+v[0-9]+ > - add comment for pwm > --- > arch/arm64/boot/dts/mediatek/Makefile | 1 + > .../mediatek/mt7986a-bananapi-bpi-r3-mini.dts | 493 ++++++++++++++++++ > 2 files changed, 494 insertions(+) > create mode 100644 arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts > > diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile > index 37b4ca3a87c9..1763b001ab06 100644 > --- a/arch/arm64/boot/dts/mediatek/Makefile > +++ b/arch/arm64/boot/dts/mediatek/Makefile > @@ -11,6 +11,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-bananapi-bpi-r64.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7981b-xiaomi-ax3000t.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-acelink-ew-7886cax.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3.dtb > +dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-mini.dtb > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-emmc.dtbo > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo > dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nor.dtbo > diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts > new file mode 100644 > index 000000000000..e2a2fea7adf0 > --- /dev/null > +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-mini.dts > @@ -0,0 +1,493 @@ > +// SPDX-License-Identifier: (GPL-2.0 OR MIT) > +/* > + * Copyright (C) 2021 MediaTek Inc. > + * Authors: Frank Wunderlich > + * Eric Woudstra > + * Tianling Shen > + */ > + > +/dts-v1/; > + > +#include > +#include > +#include > +#include > + > +#include "mt7986a.dtsi" > + > +/ { > + model = "Bananapi BPI-R3 Mini"; > + chassis-type = "embedded"; > + compatible = "bananapi,bpi-r3mini", "mediatek,mt7986a"; > + > + aliases { > + serial0 = &uart0; > + ethernet0 = &gmac0; > + ethernet1 = &gmac1; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + dcin: regulator-12v { > + compatible = "regulator-fixed"; > + regulator-name = "12vd"; > + regulator-min-microvolt = <12000000>; > + regulator-max-microvolt = <12000000>; > + regulator-boot-on; > + regulator-always-on; > + }; > + > + fan: pwm-fan { > + compatible = "pwm-fan"; > + #cooling-cells = <2>; > + /* > + * The signal is inverted on this board and the PWM driver > + * does not support polarity inversion. > + */ > + /* cooling level (0, 1, 2) */ > + cooling-levels = <255 96 0>; > + pwms = <&pwm 0 10000>; > + }; > + > + reg_1p8v: regulator-1v8 { > + compatible = "regulator-fixed"; > + regulator-name = "1.8vd"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-boot-on; > + regulator-always-on; > + vin-supply = <&dcin>; > + }; > + > + reg_3p3v: regulator-3v3 { > + compatible = "regulator-fixed"; > + regulator-name = "3.3vd"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + regulator-always-on; > + vin-supply = <&dcin>; > + }; > + > + usb_vbus: regulator-5v { > + compatible = "regulator-fixed"; > + regulator-name = "usb_vbus"; > + regulator-min-microvolt = <5000000>; > + regulator-max-microvolt = <5000000>; > + gpios = <&pio 20 GPIO_ACTIVE_LOW>; > + regulator-boot-on; > + }; > + > + en8811_a: regulator-phy1 { > + compatible = "regulator-fixed"; > + regulator-name = "phy1"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&pio 16 GPIO_ACTIVE_LOW>; > + regulator-always-on; > + }; > + > + en8811_b: regulator-phy2 { > + compatible = "regulator-fixed"; > + regulator-name = "phy2"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&pio 17 GPIO_ACTIVE_LOW>; > + regulator-always-on; > + }; > + > + leds { > + compatible = "gpio-leds"; > + > + green_led: led-0 { > + color = ; > + function = LED_FUNCTION_POWER; > + gpios = <&pio 19 GPIO_ACTIVE_HIGH>; > + default-state = "on"; > + }; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + > + reset-key { > + label = "reset"; > + linux,code = ; > + gpios = <&pio 7 GPIO_ACTIVE_LOW>; > + }; > + }; > + > +}; > + > +&cpu_thermal { > + cooling-maps { > + map0 { > + /* active: set fan to cooling level 2 */ > + cooling-device = <&fan 2 2>; > + trip = <&cpu_trip_active_high>; > + }; > + > + map1 { > + /* active: set fan to cooling level 1 */ > + cooling-device = <&fan 1 1>; > + trip = <&cpu_trip_active_med>; > + }; > + > + map2 { > + /* active: set fan to cooling level 0 */ > + cooling-device = <&fan 0 0>; > + trip = <&cpu_trip_active_low>; > + }; > + }; > +}; > + > +&crypto { > + status = "okay"; > +}; > + > +ð { > + status = "okay"; > + > + gmac0: mac@0 { > + compatible = "mediatek,eth-mac"; > + reg = <0>; > + phy-mode = "2500base-x"; > + phy-handle = <&phy0>; > + }; > + > + gmac1: mac@1 { > + compatible = "mediatek,eth-mac"; > + reg = <1>; > + phy-mode = "2500base-x"; > + phy-handle = <&phy1>; > + }; > + > + mdio: mdio-bus { > + #address-cells = <1>; > + #size-cells = <0>; > + }; > +}; > + > +&mmc0 { > + pinctrl-names = "default", "state_uhs"; > + pinctrl-0 = <&mmc0_pins_default>; > + pinctrl-1 = <&mmc0_pins_uhs>; > + vmmc-supply = <®_3p3v>; > + vqmmc-supply = <®_1p8v>; > +}; > + > + > +&i2c0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c_pins>; > + status = "okay"; > + > + /* MAC Address EEPROM */ > + eeprom@50 { > + compatible = "atmel,24c02"; > + reg = <0x50>; > + > + address-width = <8>; > + pagesize = <8>; > + size = <256>; > + }; > +}; > + > +&mdio { > + phy0: ethernet-phy@14 { > + reg = <14>; > + interrupts-extended = <&pio 48 IRQ_TYPE_EDGE_FALLING>; > + reset-gpios = <&pio 49 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10000>; > + reset-deassert-us = <20000>; > + phy-mode = "2500base-x"; > + full-duplex; > + pause; > + airoha,pnswap-rx; > + > + leds { > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { /* en8811_a_gpio5 */ > + reg = <0>; > + color = ; > + function = LED_FUNCTION_LAN; > + function-enumerator = <1>; > + default-state = "keep"; > + }; > + led@1 { /* en8811_a_gpio4 */ > + reg = <1>; > + color = ; > + function = LED_FUNCTION_LAN; > + function-enumerator = <2>; > + default-state = "keep"; > + }; > + }; > + }; > + > + phy1: ethernet-phy@15 { > + reg = <15>; > + interrupts-extended = <&pio 46 IRQ_TYPE_EDGE_FALLING>; > + reset-gpios = <&pio 47 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10000>; > + reset-deassert-us = <20000>; > + phy-mode = "2500base-x"; > + full-duplex; > + pause; > + airoha,pnswap-rx; > + > + leds { > + #address-cells = <1>; > + #size-cells = <0>; > + > + led@0 { /* en8811_b_gpio5 */ > + reg = <0>; > + color = ; > + function = LED_FUNCTION_WAN; > + function-enumerator = <1>; > + default-state = "keep"; > + }; > + led@1 { /* en8811_b_gpio4 */ > + reg = <1>; > + color = ; > + function = LED_FUNCTION_WAN; > + function-enumerator = <2>; > + default-state = "keep"; > + }; > + }; > + }; > +}; > + > +&pcie { > + pinctrl-names = "default"; > + pinctrl-0 = <&pcie_pins>; > + status = "okay"; > +}; > + > +&pcie_phy { > + status = "okay"; > +}; > + > +&pio { > + i2c_pins: i2c-pins { > + mux { > + function = "i2c"; > + groups = "i2c"; > + }; > + }; > + > + mmc0_pins_default: mmc0-pins { > + mux { > + function = "emmc"; > + groups = "emmc_51"; > + }; > + conf-cmd-dat { > + pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2", > + "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5", > + "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD"; > + input-enable; > + drive-strength = <4>; > + bias-pull-up = ; /* pull-up 10K */ > + }; > + conf-clk { > + pins = "EMMC_CK"; > + drive-strength = <6>; > + bias-pull-down = ; /* pull-down 50K */ > + }; > + conf-ds { > + pins = "EMMC_DSL"; > + bias-pull-down = ; /* pull-down 50K */ > + }; > + conf-rst { > + pins = "EMMC_RSTB"; > + drive-strength = <4>; > + bias-pull-up = ; /* pull-up 10K */ > + }; > + }; > + > + mmc0_pins_uhs: mmc0-uhs-pins { > + mux { > + function = "emmc"; > + groups = "emmc_51"; > + }; > + conf-cmd-dat { > + pins = "EMMC_DATA_0", "EMMC_DATA_1", "EMMC_DATA_2", > + "EMMC_DATA_3", "EMMC_DATA_4", "EMMC_DATA_5", > + "EMMC_DATA_6", "EMMC_DATA_7", "EMMC_CMD"; > + input-enable; > + drive-strength = <4>; > + bias-pull-up = ; /* pull-up 10K */ > + }; > + conf-clk { > + pins = "EMMC_CK"; > + drive-strength = <6>; > + bias-pull-down = ; /* pull-down 50K */ > + }; > + conf-ds { > + pins = "EMMC_DSL"; > + bias-pull-down = ; /* pull-down 50K */ > + }; > + conf-rst { > + pins = "EMMC_RSTB"; > + drive-strength = <4>; > + bias-pull-up = ; /* pull-up 10K */ > + }; > + }; > + > + pcie_pins: pcie-pins { > + mux { > + function = "pcie"; > + groups = "pcie_clk", "pcie_wake", "pcie_pereset"; > + }; > + }; > + > + pwm_pins: pwm-pins { > + mux { > + function = "pwm"; > + groups = "pwm0"; > + }; > + }; > + > + spi_flash_pins: spi-flash-pins { > + mux { > + function = "spi"; > + groups = "spi0", "spi0_wp_hold"; > + }; > + }; > + > + usb_ngff_pins: usb-ngff-pins { > + ngff-gnss-off-conf { > + pins = "GPIO_6"; > + drive-strength = <8>; > + mediatek,pull-up-adv = <1>; > + }; > + ngff-pe-rst-conf { > + pins = "GPIO_7"; > + drive-strength = <8>; > + mediatek,pull-up-adv = <1>; > + }; > + ngff-wwan-off-conf { > + pins = "GPIO_8"; > + drive-strength = <8>; > + mediatek,pull-up-adv = <1>; > + }; > + ngff-pwr-off-conf { > + pins = "GPIO_9"; > + drive-strength = <8>; > + mediatek,pull-up-adv = <1>; > + }; > + ngff-rst-conf { > + pins = "GPIO_10"; > + drive-strength = <8>; > + mediatek,pull-up-adv = <1>; > + }; > + ngff-coex-conf { > + pins = "SPI1_CS"; > + drive-strength = <8>; > + mediatek,pull-up-adv = <1>; > + }; > + }; > + > + wf_2g_5g_pins: wf-2g-5g-pins { > + mux { > + function = "wifi"; > + groups = "wf_2g", "wf_5g"; > + }; > + conf { > + pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", > + "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", > + "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", > + "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1", > + "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0", > + "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8", > + "WF1_TOP_CLK", "WF1_TOP_DATA"; > + drive-strength = <4>; > + }; > + }; > + > + wf_dbdc_pins: wf-dbdc-pins { > + mux { > + function = "wifi"; > + groups = "wf_dbdc"; > + }; > + conf { > + pins = "WF0_HB1", "WF0_HB2", "WF0_HB3", "WF0_HB4", > + "WF0_HB0", "WF0_HB0_B", "WF0_HB5", "WF0_HB6", > + "WF0_HB7", "WF0_HB8", "WF0_HB9", "WF0_HB10", > + "WF0_TOP_CLK", "WF0_TOP_DATA", "WF1_HB1", > + "WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0", > + "WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8", > + "WF1_TOP_CLK", "WF1_TOP_DATA"; > + drive-strength = <4>; > + }; > + }; > + > + wf_led_pins: wf-led-pins { > + mux { > + function = "led"; > + groups = "wifi_led"; > + }; > + }; > +}; > + > +&pwm { > + pinctrl-names = "default"; > + pinctrl-0 = <&pwm_pins>; > + status = "okay"; > +}; > + > +&spi0 { > + pinctrl-names = "default"; > + pinctrl-0 = <&spi_flash_pins>; > + status = "okay"; > + > + flash@0 { > + compatible = "spi-nand"; > + #address-cells = <1>; > + #size-cells = <1>; > + reg = <0>; > + > + spi-max-frequency = <20000000>; > + spi-tx-bus-width = <4>; > + spi-rx-bus-width = <4>; > + }; > +}; > + > +&ssusb { > + pinctrl-names = "default"; > + pinctrl-0 = <&usb_ngff_pins>; > + vusb33-supply = <®_3p3v>; > + vbus-supply = <&usb_vbus>; > + status = "okay"; > +}; > + > +&trng { > + status = "okay"; > +}; > + > +&uart0 { > + status = "okay"; > +}; > + > +&usb_phy { > + status = "okay"; > +}; > + > +&watchdog { > + status = "okay"; > +}; > + > +&wifi { > + status = "okay"; > + pinctrl-names = "default", "dbdc"; > + pinctrl-0 = <&wf_2g_5g_pins>, <&wf_led_pins>; > + pinctrl-1 = <&wf_dbdc_pins>, <&wf_led_pins>; > + > + led { > + led-active-low; > + }; > +}; > + > -- > 2.34.1 > >