Hi, > -----Original Message----- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Paul Fertser > Sent: Dienstag, 5. Oktober 2021 21:40 > To: openwrt-devel@lists.openwrt.org > Cc: Paul Fertser <fercer...@gmail.com> > Subject: [RFT 4/5] realtek: support D-Link DGS-1210-10P H/W:R1 >
[...] > > diff --git a/target/linux/realtek/base-files/etc/board.d/02_network > b/target/linux/realtek/base-files/etc/board.d/02_network > index 58461c9c995f..e7c45de92328 100644 > --- a/target/linux/realtek/base-files/etc/board.d/02_network > +++ b/target/linux/realtek/base-files/etc/board.d/02_network > @@ -48,6 +48,13 @@ done > [ -n "$label_mac" ] && ucidef_set_label_macaddr $label_mac > > case $board in > +d-link,dgs-1210-10p-f1|\ > +d-link,dgs-1210-10p-r1) F1 should be added with F1 support here, unless I'm misunderstanding something. Best Adrian > + ucidef_set_poe 65 "$lan_list" > + # once PoE board data is standardised it should also include > + # max per-port power: 30 W > + # PoE id numbers: inversed, e.g. lan2 is id 7 > + ;; > netgear,gs110tpp-v1) > ucidef_set_poe 130 "$lan_list" > ;; > diff --git a/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10p-r1.dts > b/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10p-r1.dts > new file mode 100644 > index 000000000000..379e0140bdf0 > --- /dev/null > +++ b/target/linux/realtek/dts-5.10/rtl8380_d-link_dgs-1210-10p-r1.dts > @@ -0,0 +1,67 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > + > +#include "rtl8380_d-link_dgs-1210-10.dtsi" > + > +/ { > + compatible = "d-link,dgs-1210-10p-r1", "realtek,rtl838x-soc"; > + model = "D-Link DGS-1210-10P R1"; > + > + memory@0 { > + device_type = "memory"; > + reg = <0x0 0x10000000>; > + }; > +}; > + > +&spi0 { > + status = "okay"; > + > + flash@0 { > + compatible = "jedec,spi-nor"; > + reg = <0>; > + spi-max-frequency = <50000000>; > + > + partitions { > + compatible = "fixed-partitions"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + partition@0 { > + label = "u-boot"; > + reg = <0x00000000 0x0080000>; > + read-only; > + }; > + > + partition@80000 { > + label = "u-boot-env"; > + reg = <0x00080000 0x0040000>; > + read-only; > + }; > + > + partition@c0000 { > + label = "u-boot-env2"; > + reg = <0x000c0000 0x0040000>; > + }; > + > + partition@100000 { > + label = "firmware"; > + compatible = "denx,uimage"; > + reg = <0x00100000 0x0e80000>; > + }; > + > + partition@f80000 { > + label = "kernel2"; > + reg = <0x00f80000 0x0180000>; > + }; > + > + partition@1100000 { > + label = "rootfs2"; > + reg = <0x01100000 0x0d00000>; > + }; > + > + partition@1e00000 { > + label = "jffs2"; > + reg = <0x01e00000 0x0200000>; > + }; > + }; > + }; > +}; > diff --git a/target/linux/realtek/image/Makefile > b/target/linux/realtek/image/Makefile > index 903ad3815690..c7238494606e 100644 > --- a/target/linux/realtek/image/Makefile > +++ b/target/linux/realtek/image/Makefile > @@ -69,6 +69,17 @@ define Device/d-link_dgs-1210-10p-f1 endef > TARGET_DEVICES += d-link_dgs-1210-10p-f1 > > +define Device/d-link_dgs-1210-10p-r1 > + $(Device/d-link_dgs-1210) > + SOC := rtl8380 > + IMAGE_SIZE := 14848k > + DEVICE_MODEL := DGS-1210-10P > + DEVICE_VARIANT := R1 > + # TODO > + # DEVICE_PACKAGES += realtek-poe > +endef > +TARGET_DEVICES += d-link_dgs-1210-10p-r1 > + > define Device/d-link_dgs-1210-16 > $(Device/d-link_dgs-1210) > DEVICE_MODEL := DGS-1210-16 > -- > 2.17.1 > > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
openpgp-digital-signature.asc
Description: PGP signature
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel