dts: mediatek: add Cudy WR3000 V1 wireless router
Subsystems (2)
v2 cover dts: mediatek: add Cudy WR3000 V1 wireless router
From: Rafał Miłecki <[email protected]>
Cudy WR3000 V1 is a MediaTek Filogic 820 based 802.11ax wireless router.
https://www.cudy.com/productinfo/1637722.html
Rafał Miłecki (4):
dt-bindings: vendor-prefixes: add Cudy
dt-bindings: arm64: dts: mediatek: Add Cudy WR3000 V1 router
arm64: dts: mediatek: mt7981: add pinctrl
arm64: dts: mediatek: Add Cudy WR3000 V1
.../devicetree/bindings/arm/mediatek.yaml | 1 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/mediatek/Makefile | 1 + .../dts/mediatek/mt7981b-cudy-wr3000-v1.dts | 74 +++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 22 ++++++ 5 files changed, 100 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b-cudy-wr3000-v1.dts
Signature · 1 line
2.35.3
PATCH v2 1/4 dt-bindings: vendor-prefixes: add Cudy
From: Rafał Miłecki <[email protected]>
Cudy is a Chinese company providing networking products.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -334,6 +334,8 @@ patternProperties: description: Czech Technical University in Prague "^cubietech,.*": description: Cubietech, Ltd. + "^cudy,.*": + description: Shenzhen Cudy Technology Co., Ltd. "^cui,.*": description: CUI Devices "^cypress,.*":
Signature · 1 line
2.35.3
Re: [PATCH V2 1/4] dt-bindings: vendor-prefixes: add Cudy
Il 23/02/24 11:17, Rafał Miłecki ha scritto:
Quoted 6 lines
From: Rafał Miłecki <[email protected]>
Cudy is a Chinese company providing networking products.
Signed-off-by Rafał Miłecki <[email protected]>
PATCH v2 2/4 dt-bindings: arm64: dts: mediatek: Add Cudy WR3000 V1 router
In reply to Rafał MiłeckiFrom: Rafał Miłecki <[email protected]>
Cudy WR3000 V1 is an MT7981B (AKA Filogic 820) based wireless router.
--- Documentation/devicetree/bindings/arm/mediatek.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/mediatek.yaml +1 -0
@@ -85,6 +85,7 @@ properties: - const: mediatek,mt7629 - items: - enum: + - cudy,wr3000-v1 - xiaomi,ax3000t - const: mediatek,mt7981b - items:
Signature · 1 line
2.35.3
PATCH v2 3/4 arm64: dts: mediatek: mt7981: add pinctrl
In reply to Rafał MiłeckiFrom: Rafał Miłecki <[email protected]>
MT7981 contains on-SoC PIN controller that is also a GPIO provider.
---
V2: Drop board specific code
arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
arch/arm64/boot/dts/mediatek/mt7981b.dtsi +22 -0
@@ -94,6 +94,28 @@ pwm@10048000 { #pwm-cells = <2>; }; + pio: pinctrl@11d00000 { + compatible = "mediatek,mt7981-pinctrl"; + reg = <0 0x11d00000 0 0x1000>, + <0 0x11c00000 0 0x1000>, + <0 0x11c10000 0 0x1000>, + <0 0x11d20000 0 0x1000>, + <0 0x11e00000 0 0x1000>, + <0 0x11e20000 0 0x1000>, + <0 0x11f00000 0 0x1000>, + <0 0x11f10000 0 0x1000>, + <0 0x1000b000 0 0x1000>; + reg-names = "gpio", "iocfg_rt", "iocfg_rm", "iocfg_rb", "iocfg_lb", + "iocfg_bl", "iocfg_tm", "iocfg_tl", "eint"; + interrupt-controller; + interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&gic>; + gpio-ranges = <&pio 0 0 56>; + gpio-controller; + #gpio-cells = <2>; + #interrupt-cells = <2>; + }; + clock-controller@15000000 { compatible = "mediatek,mt7981-ethsys", "syscon"; reg = <0 0x15000000 0 0x1000>;
Signature · 1 line
2.35.3
Re: [PATCH V2 3/4] arm64: dts: mediatek: mt7981: add pinctrl
Il 23/02/24 11:17, Rafał Miłecki ha scritto:
Quoted 5 lines
From: Rafał Miłecki <[email protected]>
MT7981 contains on-SoC PIN controller that is also a GPIO provider.
Signed-off-by Rafał Miłecki <[email protected]>
PATCH v2 4/4 arm64: dts: mediatek: Add Cudy WR3000 V1
In reply to Rafał MiłeckiFrom: Rafał Miłecki <[email protected]>
Cudy WR3000 V1 is an MT7981B (AKA Filogic 820) based wireless router. It has 256 MiB of RAM, some LEDs & buttons and (not described yet) 4 Ethernet ports.
There is one slightly uncommon LED with a label of globe icon described in the Quick Installation Guide as having 2 meanings:
1. "Not connected to the Internet"
2. "Connected to the Internet"
Vendor designed it to light up when some Internet-accessible IP can be reached. This change will be follow by an attempt to define some predefined FUNCTION for it.
---
V2: Reorder properties
Describe online LED
arch/arm64/boot/dts/mediatek/Makefile | 1 + .../dts/mediatek/mt7981b-cudy-wr3000-v1.dts | 74 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt7981b-cudy-wr3000-v1.dts
arch/arm64/boot/dts/mediatek/Makefile +1 -0
@@ -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) += mt7981b-cudy-wr3000-v1.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
arch/arm64/boot/dts/mediatek/mt7981b-cudy-wr3000-v1.dts new file +74 -0
74 lines not on this page · raw message
Signature · 1 line
2.35.3
AngeloGioacchino Del Regno
maintainerRe: [PATCH V2 4/4] arm64: dts: mediatek: Add Cudy WR3000 V1
Il 23/02/24 11:17, Rafał Miłecki ha scritto:
Quoted 6 lines
From: Rafał Miłecki <[email protected]>
Cudy WR3000 V1 is an MT7981B (AKA Filogic 820) based wireless router. It has 256 MiB of RAM, some LEDs & buttons and (not described yet) 4 Ethernet ports.
Quoted 8 lines
There is one slightly uncommon LED with a label of globe icon described in the Quick Installation Guide as having 2 meanings:
1. "Not connected to the Internet"
2. "Connected to the Internet"Vendor designed it to light up when some Internet-accessible IP can be reached. This change will be follow by an attempt to define some predefined FUNCTION for it.
Can we please try to add that predefined function before adding this devicetree which would anyway be modified again to use that new definition?
That just makes more sense...
...if you can't get the new definition picked, I will take this one as is, but please try that first.
Cheers,
Angelo