Skip to content

Commit 1ea138b

Browse files
Merge branch 'openwrt:main' into main
2 parents b1e4e47 + 7fac892 commit 1ea138b

7 files changed

Lines changed: 39 additions & 45 deletions

File tree

target/linux/mediatek/dts/mt7981b-keenetic-kap-630.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
reg = <0x0 0x600000>;
5858
};
5959

60-
partition@400000 {
60+
partition@600000 {
6161
label = "ubi";
6262
reg = <0x600000 0x0>;
6363
};

target/linux/mediatek/dts/mt7981b-keenetic-kn-3811.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
reg = <0x0 0x600000>;
9999
};
100100

101-
partition@400000 {
101+
partition@600000 {
102102
label = "ubi";
103103
reg = <0x600000 0x0>;
104104
};

target/linux/mediatek/dts/mt7981b-keenetic-kn-3911.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
reg = <0x0 0x600000>;
7474
};
7575

76-
partition@400000 {
76+
partition@600000 {
7777
label = "ubi";
7878
reg = <0x600000 0x0>;
7979
};

target/linux/mediatek/dts/mt7988d-keenetic-kn-1812.dtsi

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
reg = <0x0 0x600000>;
141141
};
142142

143-
partition@400000 {
143+
partition@600000 {
144144
label = "ubi";
145145
reg = <0x600000 0x0>;
146146
};
@@ -369,7 +369,6 @@
369369
nvmem-cell-names = "mac-address";
370370
label = "wan";
371371
phy-mode = "internal";
372-
phy-connection-type = "internal";
373372
phy = <&int_2p5g_phy>;
374373
status = "okay";
375374
};
@@ -398,9 +397,11 @@
398397
compatible = "ethernet-phy-ieee802.3-c45";
399398
reg = <0x1b>;
400399

400+
interrupt-parent = <&pio>;
401+
interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
401402
reset-gpios = <&pio 4 GPIO_ACTIVE_LOW>;
402403
reset-assert-us = <100000>;
403-
reset-deassert-us = <100000>;
404+
reset-deassert-us = <221000>;
404405
};
405406
};
406407

@@ -409,7 +410,6 @@
409410
nvmem-cell-names = "mac-address";
410411
label = "lan5";
411412
phy-mode = "usxgmii";
412-
phy-connection-type = "usxgmii";
413413
phy = <&phy27>;
414414
status = "okay";
415415
};
@@ -504,7 +504,7 @@
504504
#address-cells = <3>;
505505
#size-cells = <2>;
506506

507-
mt7996@0,0 {
507+
mt7992@0,0 {
508508
reg = <0x0000 0 0 0 0>;
509509
#address-cells = <1>;
510510
#size-cells = <0>;
@@ -539,7 +539,7 @@
539539

540540
conf {
541541
groups = "mdc_mdio0";
542-
drive-strength = <MTK_DRIVE_4mA>;
542+
drive-strength = <MTK_DRIVE_10mA>;
543543
};
544544
};
545545

@@ -608,3 +608,7 @@
608608
&tphy {
609609
status = "okay";
610610
};
611+
612+
&xsphy {
613+
status = "okay";
614+
};

target/linux/mvebu/patches-6.12/903-drivers-hwmon-Add-the-IEI-WT61P803-PUZZLE-HWMON-driv.patch

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Cc: Robert Marko <robert.marko@sartura.hr>
5353
obj-$(CONFIG_SENSORS_IBMPOWERNV)+= ibmpowernv.o
5454
--- /dev/null
5555
+++ b/drivers/hwmon/iei-wt61p803-puzzle-hwmon.c
56-
@@ -0,0 +1,447 @@
56+
@@ -0,0 +1,444 @@
5757
+// SPDX-License-Identifier: GPL-2.0-only
5858
+/* IEI WT61P803 PUZZLE MCU HWMON Driver
5959
+ *
@@ -83,18 +83,18 @@ Cc: Robert Marko <robert.marko@sartura.hr>
8383
+ * @tcdev: Thermal cooling device pointer
8484
+ * @name: Thermal cooling device name
8585
+ * @pwm_channel: Controlled PWM channel (0 or 1)
86-
+ * @cooling_levels: Thermal cooling device cooling levels (DT)
8786
+ * @cur_level: Current cooling level
8887
+ * @num_levels: Number of cooling levels
88+
+ * @cooling_levels: Thermal cooling device cooling levels (DT)
8989
+ */
9090
+struct iei_wt61p803_puzzle_thermal_cooling_device {
9191
+ struct iei_wt61p803_puzzle_hwmon *mcu_hwmon;
9292
+ struct thermal_cooling_device *tcdev;
9393
+ char name[THERMAL_NAME_LENGTH];
9494
+ int pwm_channel;
95-
+ u32 *cooling_levels;
9695
+ int cur_level;
9796
+ u8 num_levels;
97+
+ u32 cooling_levels[] __counted_by(num_levels);
9898
+};
9999
+
100100
+/**
@@ -401,13 +401,11 @@ Cc: Robert Marko <robert.marko@sartura.hr>
401401
+ if (!num_levels)
402402
+ return -EINVAL;
403403
+
404-
+ cdev = devm_kzalloc(dev, sizeof(*cdev), GFP_KERNEL);
404+
+ cdev = devm_kzalloc(dev, struct_size(cdev, cooling_levels, num_levels), GFP_KERNEL);
405405
+ if (!cdev)
406406
+ return -ENOMEM;
407407
+
408-
+ cdev->cooling_levels = devm_kmalloc_array(dev, num_levels, sizeof(u32), GFP_KERNEL);
409-
+ if (!cdev->cooling_levels)
410-
+ return -ENOMEM;
408+
+ cdev->num_levels = num_levels;
411409
+
412410
+ ret = fwnode_property_read_u32_array(child, "cooling-levels",
413411
+ cdev->cooling_levels,
@@ -429,7 +427,6 @@ Cc: Robert Marko <robert.marko@sartura.hr>
429427
+
430428
+ cdev->mcu_hwmon = mcu_hwmon;
431429
+ cdev->pwm_channel = pwm_channel;
432-
+ cdev->num_levels = num_levels;
433430
+ cdev->cur_level = -1;
434431
+ mcu_hwmon->cdev[pwm_channel] = cdev;
435432
+

target/linux/realtek/dts/rtl9302_zyxel_xgs1x10-12-common.dtsi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@
129129
#address-cells = <1>;
130130
#size-cells = <0>;
131131

132-
SWITCH_PORT_LED(0, 1, 2, 0, usxgmii);
133-
SWITCH_PORT_LED(1, 2, 2, 0, usxgmii);
134-
SWITCH_PORT_LED(2, 3, 2, 0, usxgmii);
135-
SWITCH_PORT_LED(3, 4, 2, 0, usxgmii);
136-
SWITCH_PORT_LED(4, 5, 2, 0, usxgmii);
137-
SWITCH_PORT_LED(5, 6, 2, 0, usxgmii);
138-
SWITCH_PORT_LED(6, 7, 2, 0, usxgmii);
139-
SWITCH_PORT_LED(7, 8, 2, 0, usxgmii);
132+
SWITCH_PORT_LED(0, 1, 2, 0, usxgmii)
133+
SWITCH_PORT_LED(1, 2, 2, 0, usxgmii)
134+
SWITCH_PORT_LED(2, 3, 2, 0, usxgmii)
135+
SWITCH_PORT_LED(3, 4, 2, 0, usxgmii)
136+
SWITCH_PORT_LED(4, 5, 2, 0, usxgmii)
137+
SWITCH_PORT_LED(5, 6, 2, 0, usxgmii)
138+
SWITCH_PORT_LED(6, 7, 2, 0, usxgmii)
139+
SWITCH_PORT_LED(7, 8, 2, 0, usxgmii)
140140

141141
port@24 {
142142
reg = <24>;

target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ static const struct ethtool_ops rteth_ethtool_ops = {
14751475
.set_link_ksettings = rteth_set_link_ksettings,
14761476
};
14771477

1478-
static int rtl838x_eth_probe(struct platform_device *pdev)
1478+
static int rteth_probe(struct platform_device *pdev)
14791479
{
14801480
struct net_device *dev;
14811481
struct device_node *dn = pdev->dev.of_node;
@@ -1489,11 +1489,6 @@ static int rtl838x_eth_probe(struct platform_device *pdev)
14891489
pr_info("Probing RTL838X eth device pdev: %x, dev: %x\n",
14901490
(u32)pdev, (u32)(&pdev->dev));
14911491

1492-
if (!dn) {
1493-
dev_err(&pdev->dev, "No DT found\n");
1494-
return -EINVAL;
1495-
}
1496-
14971492
cfg = device_get_match_data(&pdev->dev);
14981493

14991494
dev = devm_alloc_etherdev_mqs(&pdev->dev, sizeof(struct rteth_ctrl), RTETH_TX_RINGS, RTETH_RX_RINGS);
@@ -1616,23 +1611,21 @@ static int rtl838x_eth_probe(struct platform_device *pdev)
16161611
return 0;
16171612
}
16181613

1619-
static void rtl838x_eth_remove(struct platform_device *pdev)
1614+
static void rteth_remove(struct platform_device *pdev)
16201615
{
16211616
struct net_device *dev = platform_get_drvdata(pdev);
16221617
struct rteth_ctrl *ctrl = netdev_priv(dev);
16231618

1624-
if (dev) {
1625-
pr_info("Removing platform driver for rtl838x-eth\n");
1626-
rteth_hw_stop(ctrl);
1619+
pr_info("Removing platform driver for rtl838x-eth\n");
1620+
rteth_hw_stop(ctrl);
16271621

1628-
netif_tx_stop_all_queues(dev);
1622+
netif_tx_stop_all_queues(dev);
16291623

1630-
for (int i = 0; i < RTETH_RX_RINGS; i++)
1631-
netif_napi_del(&ctrl->rx_qs[i].napi);
1632-
}
1624+
for (int i = 0; i < RTETH_RX_RINGS; i++)
1625+
netif_napi_del(&ctrl->rx_qs[i].napi);
16331626
}
16341627

1635-
static const struct of_device_id rtl838x_eth_of_ids[] = {
1628+
static const struct of_device_id rteth_of_ids[] = {
16361629
{
16371630
.compatible = "realtek,rtl8380-eth",
16381631
.data = &rteth_838x_cfg,
@@ -1651,15 +1644,15 @@ static const struct of_device_id rtl838x_eth_of_ids[] = {
16511644
},
16521645
{ /* sentinel */ }
16531646
};
1654-
MODULE_DEVICE_TABLE(of, rtl838x_eth_of_ids);
1647+
MODULE_DEVICE_TABLE(of, rteth_of_ids);
16551648

16561649
static struct platform_driver rtl838x_eth_driver = {
1657-
.probe = rtl838x_eth_probe,
1658-
.remove = rtl838x_eth_remove,
1650+
.probe = rteth_probe,
1651+
.remove = rteth_remove,
16591652
.driver = {
1660-
.name = "rtl838x-eth",
1653+
.name = KBUILD_MODNAME,
16611654
.pm = NULL,
1662-
.of_match_table = rtl838x_eth_of_ids,
1655+
.of_match_table = rteth_of_ids,
16631656
},
16641657
};
16651658

0 commit comments

Comments
 (0)