From patchwork Thu Dec 7 08:05:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 751289 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JiFlbeyN" Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17FE0A9 for ; Thu, 7 Dec 2023 00:05:30 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-54dccf89cfdso282205a12.0 for ; Thu, 07 Dec 2023 00:05:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701936328; x=1702541128; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=2MNjE3SeFK0nJKBmYRJMHyr7VIIHtok8kfFl8JThkGU=; b=JiFlbeyNZXlnUHs/vQrfeU8rOJxEOCjuUkCVxIKZzDMki8vYd+EHucX67OsuSq0oup JKPuJ/Wz20WxJvDo1swi75XK043EvPd94nuVkjxlfteIL/MURHWaL/RNYNyVIwbSs2HG AcwZzOWRAiBMmZo/JCXbEPwZux9OYZ8BEe3aeqOmPe/BI93Hm322mzQUDd7eSLqpGjc6 h1sQZUPua1FiQwYzkUXBta0L45ocEzr2iZR/+3o3tKx4jUy2D/zg3Yflwiy/Mtridgae F7Ax+61Ybb5+uSnbB6wniJLh8NT/6z6bHqBjKVIo3Q8WZH/hDxt+MJWFQhcKvNAXGDiM e31A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701936328; x=1702541128; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2MNjE3SeFK0nJKBmYRJMHyr7VIIHtok8kfFl8JThkGU=; b=nYVsWqD7dKynQU+eZr+P3RVUQqwwwsUPjr3zKsNTOXj8Ddu1kUvYQZCV2wl7ILyGux dI7+tpal9WMJkZzGZBZYw7yDYKLdzqZWlvyUznC7vi3z7OPWk1Sc8RIcxC+qFDB4ciuX SxsSteLRJ9rw0qG6oiuflYapEgOqaYSIqdqhGN/lvgOX6tI7l83Rk1D4IGqMCcAxJRp/ 4l7hSAxrw/gC5b2BNSfNFqK+iZOC8swU7Tt1Q8/Bj5pgXNsV1StWyCfcGBBSra3qgz7S 92pTZehsZcBH2kWUDPaBYSrbZoc4gVAUyU4Nao9PdsAz0CsWnaC9AVsjvBHnubKO1zTX skrQ== X-Gm-Message-State: AOJu0Yz0+D9j17kuoURHN5qfjl9i9ZunSQG3ZXCODEbb6SJYy1Bl18ka TNJijpnCzaAaAx9fhFCifU0= X-Google-Smtp-Source: AGHT+IHGExzVJI0JNZnzMpnT/zA2jwAajmSzwuoeAVX2qr0OGkYdXz3xEXI4GuL+DpEEhlHCu53vFA== X-Received: by 2002:a50:baed:0:b0:54b:5f8:2df with SMTP id x100-20020a50baed000000b0054b05f802dfmr1333854ede.9.1701936328261; Thu, 07 Dec 2023 00:05:28 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id a28-20020a509b5c000000b0054db2b5cd30sm480133edj.38.2023.12.07.00.05.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 00:05:27 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: AngeloGioacchino Del Regno , Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: =?utf-8?q?N=C3=ADcolas_F_=2E_R_=2E_A_=2E_Prado?= , Macpaul Lin , =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= , Heiko Stuebner , Jernej Skrabec , Chris Morgan , Linus Walleij , Sean Wang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Conor Dooley Subject: [PATCH V3 1/3] dt-bindings: vendor-prefixes: add acelink Date: Thu, 7 Dec 2023 09:05:10 +0100 Message-Id: <20231207080512.3688-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Rafał Miłecki Acelink is a Taiwan company providing network products (routers, access points, switches, cameras and more). Signed-off-by: Rafał Miłecki Acked-by: Conor Dooley Reviewed-by: Linus Walleij --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 309b94c328c8..503a3caf6fc9 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -39,6 +39,8 @@ patternProperties: description: ShenZhen Asia Better Technology Ltd. "^acbel,.*": description: Acbel Polytech Inc. + "^acelink,.*": + description: Acelink Technology Co., Ltd. "^acer,.*": description: Acer Inc. "^acme,.*": From patchwork Thu Dec 7 08:05:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 751288 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Qb3aELsa" Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27B17A9 for ; Thu, 7 Dec 2023 00:05:34 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-54c5ed26cf6so802519a12.3 for ; Thu, 07 Dec 2023 00:05:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701936332; x=1702541132; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SgillZWrA7vt8a6pmQfddFuFmoP+nyHnZN1/c6c2sus=; b=Qb3aELsaGYs5OHLMrcAmhIgsYX3cfl5pE3NLpnuPsfpzCZsnFETnqVy+qvXNg86AlF zcdWM18ny59mYsbLvHrSBKv8ceG8b2MbBjtVvp27nIYVA9ptcphgnfdUZBuYiQUenjEg QJXAhLkYHVeUjpAXyN2cYCZ7e9S43pm3dHruH9OZiTR9+88fLRevXeIib0vVoktfGQgr dFWHNXgVQ5W5SFwSr3xisAdTKGZWgyiajc6utlftGAgGOM8At0lkPn3/gEFH6Mcvrzw3 xFspdDYCCBBOLwK0HwiYweePtAYGHaTxIT/l7ayKQmXlpM9/fomvWvvGApaTCPhNT7QH qIKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701936332; x=1702541132; 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=SgillZWrA7vt8a6pmQfddFuFmoP+nyHnZN1/c6c2sus=; b=WvY86ovVqXS3sYOyUG8suMC4Crq/L9d/o1uU93uFfDWGXxj1qzt3pfEwosaONoAyiY 77QlOAX4goD9rRZKj7xaPywHgaGvA1j0la/R+GjdwqW+CjDnN3sdeachhKj/fjv3uQYD h3kx1+E6wEZ/MmeY94I9C6qmb0aXbsfXZGYmXVz6RYw/RDydWUSocjiHubWYPvGDKvx0 0eaC1cQfahMzjThN/zQiLGlUSU+hFJdLNGaKtvqFXfHEhePuoXcICcqecQGNd44eEa0j 0F7Kc+Wp9fCxWQrPJq9c57l3GPDcxDUkWzB1DQqP4xiKN9iDpuefHjEmVyENLfCKp94r 5HHA== X-Gm-Message-State: AOJu0Yz/F/YaVf2cQSsoVWhgkq7ycbDJ/KZB2Jo3r+LLE4DQ4mH2pjEj jvEO+Ll6qIb39sLo9m7IYik= X-Google-Smtp-Source: AGHT+IFSwlSzYNIy6ro/6tNl8l8sOeEANd6aC8pAkJX8RPqWGLllR+BCgKoqgBer6Ucxhw6HABYKGw== X-Received: by 2002:a05:6402:5147:b0:54c:4837:81e6 with SMTP id n7-20020a056402514700b0054c483781e6mr1103399edd.55.1701936332511; Thu, 07 Dec 2023 00:05:32 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id a28-20020a509b5c000000b0054db2b5cd30sm480133edj.38.2023.12.07.00.05.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 00:05:32 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: AngeloGioacchino Del Regno , Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: =?utf-8?q?N=C3=ADcolas_F_=2E_R_=2E_A_=2E_Prado?= , Macpaul Lin , =?utf-8?q?Bernhard_Rosenkr=C3=A4nzer?= , Heiko Stuebner , Jernej Skrabec , Chris Morgan , Linus Walleij , Sean Wang , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH V3 3/3] arm64: dts: mediatek: Add Acelink EW-7886CAX Date: Thu, 7 Dec 2023 09:05:12 +0100 Message-Id: <20231207080512.3688-3-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20231207080512.3688-1-zajec5@gmail.com> References: <20231207080512.3688-1-zajec5@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Rafał Miłecki Acelink EW-7886CAX is an MT7986A (AKA Filogic 830) based access point. It has 512 MiB of RAM, one 2.5 Gbps PoE (802.3at) Ethernet port and on-SoC Wi-Fi. Signed-off-by: Rafał Miłecki Reviewed-by: AngeloGioacchino Del Regno --- V2: Update coding style to follow: [PATCH v4] docs: dt-bindings: add DTS Coding Style document V3: Add missing semicolon (I forgot to amend my local V2 change, sorry!) Drop unused "partitions" label arch/arm64/boot/dts/mediatek/Makefile | 1 + .../mediatek/mt7986a-acelink-ew-7886cax.dts | 173 ++++++++++++++++++ 2 files changed, 174 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts diff --git a/arch/arm64/boot/dts/mediatek/Makefile b/arch/arm64/boot/dts/mediatek/Makefile index e6e7592a3645..9ff2ab6c5e4d 100644 --- a/arch/arm64/boot/dts/mediatek/Makefile +++ b/arch/arm64/boot/dts/mediatek/Makefile @@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-evb.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt6797-x20-dev.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-rfb1.dtb dtb-$(CONFIG_ARCH_MEDIATEK) += mt7622-bananapi-bpi-r64.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-emmc.dtbo dtb-$(CONFIG_ARCH_MEDIATEK) += mt7986a-bananapi-bpi-r3-nand.dtbo diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts b/arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts new file mode 100644 index 000000000000..08b3b0827436 --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts @@ -0,0 +1,173 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT + +/dts-v1/; +#include +#include +#include + +#include "mt7986a.dtsi" + +/ { + compatible = "acelink,ew-7886cax", "mediatek,mt7986a"; + model = "Acelink EW-7886CAX"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@40000000 { + reg = <0 0x40000000 0 0x20000000>; + device_type = "memory"; + }; + + keys { + compatible = "gpio-keys"; + + key-restart { + label = "Reset"; + gpios = <&pio 7 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + leds { + compatible = "gpio-leds"; + + led-0 { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&pio 18 GPIO_ACTIVE_HIGH>; + }; + + led-1 { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&pio 19 GPIO_ACTIVE_HIGH>; + }; + + led-2 { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&pio 20 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&crypto { + status = "okay"; +}; + +ð { + status = "okay"; + + mac@1 { + compatible = "mediatek,eth-mac"; + reg = <1>; + phy-mode = "2500base-x"; + phy-handle = <&phy6>; + nvmem-cells = <&macaddr>; + nvmem-cell-names = "mac-address"; + }; + + mdio-bus { + reset-gpios = <&pio 6 GPIO_ACTIVE_LOW>; + reset-delay-us = <50000>; + reset-post-delay-us = <20000>; + + #address-cells = <1>; + #size-cells = <0>; + + phy6: phy@6 { + compatible = "ethernet-phy-ieee802.3-c45"; + reg = <6>; + }; + }; +}; + +&pcie_phy { + status = "okay"; +}; + +&spi0 { + status = "okay"; + + flash@0 { + compatible = "spi-nand"; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <52000000>; + spi-rx-bus-width = <4>; + spi-tx-bus-width = <4>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + reg = <0x0 0x100000>; + label = "bootloader"; + read-only; + }; + + partition@100000 { + reg = <0x100000 0x80000>; + label = "u-boot-env"; + }; + + partition@180000 { + compatible = "nvmem-cells"; + reg = <0x180000 0x200000>; + label = "factory"; + read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + eeprom: eeprom@0 { + reg = <0x0 0x1000>; + }; + + macaddr: macaddr@4 { + reg = <0x4 0x6>; + }; + }; + }; + + partition@380000 { + reg = <0x380000 0x200000>; + label = "fip"; + }; + + partition@580000 { + reg = <0x580000 0x4000000>; + label = "ubi"; + }; + }; + }; +}; + +&trng { + status = "okay"; +}; + +&uart0 { + status = "okay"; +}; + +&watchdog { + status = "okay"; +}; + +&wifi { + nvmem-cells = <&eeprom>; + nvmem-cell-names = "eeprom"; + status = "okay"; +};