Skip to content

Commit

Permalink
Merge tag 'mips_6.3' of git://git.kernel.org/pub/scm/linux/kernel/git…
Browse files Browse the repository at this point in the history
…/mips/linux

Pull MIPS updates from Thomas Bogendoerfer:
 "Just cleanups and fixes"

* tag 'mips_6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux:
  MIPS: vpe-mt: drop physical_memsize
  mips: fix syscall_get_nr
  MIPS: SMP-CPS: fix build error when HOTPLUG_CPU not set
  MIPS: DTS: jz4780: add #clock-cells to rtc_dev
  MIPS: dts: Boston: Fix dtc 'pci_device_reg' warning
  mips: dts: ralink: mt7621: add port@5 as CPU port
  mips: dts: align LED node names with dtschema
  MIPS: ralink: Use devm_platform_get_and_ioremap_resource()
  MIPS: pci-mt7620: Use devm_platform_get_and_ioremap_resource()
  MIPS: pci: lantiq: Use devm_platform_get_and_ioremap_resource()
  MIPS: lantiq: xway: Use devm_platform_get_and_ioremap_resource()
  MIPS: BCM47XX: Add support for Linksys E2500 V3
  mips: ralink: make SOC_MT7621 select PINCTRL_MT7621 and fix help section
  MIPS: DTS: CI20: fix otg power gpio
  MIPS: dts: lantiq: Remove bogus interrupt-parent; line
  MIPS: Fix a compilation issue
  MIPS: remove CONFIG_MIPS_LD_CAN_LINK_VDSO
  mips: Realtek RTL: select NO_EXCEPT_FILL
  MIPS: OCTEON: octeon-usb: Consolidate error messages
  • Loading branch information
Linus Torvalds committed Feb 25, 2023
2 parents 7c3dc44 + 91dc288 commit 5596c6a
Show file tree
Hide file tree
Showing 35 changed files with 136 additions and 144 deletions.
1 change: 1 addition & 0 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ config LANTIQ
select IRQ_MIPS_CPU
select CEVT_R4K
select CSRC_R4K
select NO_EXCEPT_FILL
select SYS_HAS_CPU_MIPS32_R1
select SYS_HAS_CPU_MIPS32_R2
select SYS_SUPPORTS_BIG_ENDIAN
Expand Down
1 change: 1 addition & 0 deletions arch/mips/bcm47xx/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ struct bcm47xx_board_type_list2 bcm47xx_board_list_boot_hw[] __initconst = {
{{BCM47XX_BOARD_LINKSYS_E1000V21, "Linksys E1000 V2.1"}, "E1000", "2.1"},
{{BCM47XX_BOARD_LINKSYS_E1200V2, "Linksys E1200 V2"}, "E1200", "2.0"},
{{BCM47XX_BOARD_LINKSYS_E2000V1, "Linksys E2000 V1"}, "Linksys E2000", "1.0"},
{{BCM47XX_BOARD_LINKSYS_E2500V3, "Linksys E2500 V3"}, "E2500", "1.0"},
/* like WRT610N v2.0 */
{{BCM47XX_BOARD_LINKSYS_E3000V1, "Linksys E3000 V1"}, "E300", "1.0"},
{{BCM47XX_BOARD_LINKSYS_E3200V1, "Linksys E3200 V1"}, "E3200", "1.0"},
Expand Down
9 changes: 9 additions & 0 deletions arch/mips/bcm47xx/buttons.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ bcm47xx_buttons_linksys_e2000v1[] __initconst = {
BCM47XX_GPIO_KEY(8, KEY_RESTART),
};

static const struct gpio_keys_button
bcm47xx_buttons_linksys_e2500v3[] __initconst = {
BCM47XX_GPIO_KEY(9, KEY_WPS_BUTTON),
BCM47XX_GPIO_KEY(10, KEY_RESTART),
};

static const struct gpio_keys_button
bcm47xx_buttons_linksys_e3000v1[] __initconst = {
BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON),
Expand Down Expand Up @@ -617,6 +623,9 @@ int __init bcm47xx_buttons_register(void)
case BCM47XX_BOARD_LINKSYS_E2000V1:
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e2000v1);
break;
case BCM47XX_BOARD_LINKSYS_E2500V3:
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e2500v3);
break;
case BCM47XX_BOARD_LINKSYS_E3000V1:
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e3000v1);
break;
Expand Down
10 changes: 5 additions & 5 deletions arch/mips/boot/dts/cavium-octeon/dlink_dsr-1000n.dts
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@
leds {
compatible = "gpio-leds";

usb1 {
led-usb1 {
label = "usb1";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};

usb2 {
led-usb2 {
label = "usb2";
gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
};

wps {
led-wps {
label = "wps";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};

wireless1 {
led-wireless1 {
label = "5g";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
};

wireless2 {
led-wireless2 {
label = "2.4g";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
Expand Down
6 changes: 3 additions & 3 deletions arch/mips/boot/dts/cavium-octeon/dlink_dsr-500n.dts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
leds {
compatible = "gpio-leds";

usb {
led-usb {
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};

wps {
led-wps {
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};

wireless {
led-wireless {
label = "2.4g";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
};
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/img/boston.dts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
#interrupt-cells = <1>;
};

pci2_root@0,0,0 {
pci2_root@0,0 {
compatible = "pci10ee,7021";
reg = <0x00000000 0 0 0 0>;

Expand Down
10 changes: 5 additions & 5 deletions arch/mips/boot/dts/ingenic/ci20.dts
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@
leds {
compatible = "gpio-leds";

led0 {
led-0 {
label = "ci20:red:led0";
gpios = <&gpc 3 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "none";
};

led1 {
led-1 {
label = "ci20:red:led1";
gpios = <&gpc 2 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "nand-disk";
};

led2 {
led-2 {
label = "ci20:red:led2";
gpios = <&gpc 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "cpu1";
};

led3 {
led-3 {
label = "ci20:red:led3";
gpios = <&gpc 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "cpu0";
Expand Down Expand Up @@ -113,7 +113,7 @@
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;

gpio = <&gpf 14 GPIO_ACTIVE_LOW>;
gpio = <&gpf 15 GPIO_ACTIVE_LOW>;
enable-active-high;
};
};
Expand Down
2 changes: 2 additions & 0 deletions arch/mips/boot/dts/ingenic/jz4780.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@

clocks = <&cgu JZ4780_CLK_RTCLK>;
clock-names = "rtc";

#clock-cells = <0>;
};

pinctrl: pin-controller@10010000 {
Expand Down
1 change: 0 additions & 1 deletion arch/mips/boot/dts/lantiq/danube.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
eiu0: eiu@101000 {
#interrupt-cells = <1>;
interrupt-controller;
interrupt-parent;
compatible = "lantiq,eiu-xway";
reg = <0x101000 0x1000>;
};
Expand Down
6 changes: 3 additions & 3 deletions arch/mips/boot/dts/pic32/pic32mzda_sk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@
pinctrl-names = "default";
pinctrl-0 = <&user_leds_s0>;

led@1 {
led-1 {
label = "pic32mzda_sk:red:led1";
gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat";
};

led@2 {
led-2 {
label = "pic32mzda_sk:yellow:led2";
gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "mmc0";
};

led@3 {
led-3 {
label = "pic32mzda_sk:green:led3";
gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
default-state = "on";
Expand Down
8 changes: 4 additions & 4 deletions arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,23 @@

leds {
compatible = "gpio-leds";
led@0 {
led-0 {
label = "tp-link:green:usb";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};

led@1 {
led-1 {
label = "tp-link:green:system";
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
linux,default-trigger = "heartbeat";
};

led@2 {
led-2 {
label = "tp-link:green:qss";
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
};

led@3 {
led-3 {
label = "tp-link:green:wlan";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
Expand Down
8 changes: 4 additions & 4 deletions arch/mips/boot/dts/qca/ar9331_dragino_ms14.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@
leds {
compatible = "gpio-leds";

wlan {
led-wlan {
label = "dragino2:red:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

lan {
led-lan {
label = "dragino2:red:lan";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
default-state = "off";
};

wan {
led-wan {
label = "dragino2:red:wan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
default-state = "off";
};

system {
led-system {
label = "dragino2:red:system";
gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
default-state = "off";
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/boot/dts/qca/ar9331_omega.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
leds {
compatible = "gpio-leds";

system {
led-system {
label = "onion:amber:system";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
default-state = "off";
Expand Down
8 changes: 4 additions & 4 deletions arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@
leds {
compatible = "gpio-leds";

wlan {
led-wlan {
label = "tp-link:green:wlan";
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

lan {
led-lan {
label = "tp-link:green:lan";
gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
default-state = "off";
};

wps {
led-wps {
label = "tp-link:green:wps";
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
default-state = "off";
};

led3g {
led-led3g {
label = "tp-link:green:3g";
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
default-state = "off";
Expand Down
22 changes: 11 additions & 11 deletions arch/mips/boot/dts/ralink/gardena_smart_gateway_mt7688.dts
Original file line number Diff line number Diff line change
Expand Up @@ -47,67 +47,67 @@
* (see below). So we can't include it in this LED node.
*/

power_blue {
led-power-blue {
label = "smartgw:power:blue";
gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

power_green {
led-power-green {
label = "smartgw:power:green";
gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

power_red {
led-power-red {
label = "smartgw:power:red";
gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

radio_blue {
led-radio-blue {
label = "smartgw:radio:blue";
gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

radio_green {
led-radio-green {
label = "smartgw:radio:green";
gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

radio_red {
led-radio-red {
label = "smartgw:radio:red";
gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

internet_blue {
led-internet-blue {
label = "smartgw:internet:blue";
gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

internet_green {
led-internet-green {
label = "smartgw:internet:green";
gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

internet_red {
led-internet-red {
label = "smartgw:internet:red";
gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
default-state = "off";
};

ethernet_link {
led-ethernet-link {
label = "smartgw:eth:link";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
linux,default-trigger = "netdev";
};

ethernet_activity {
led-ethernet-activity {
label = "smartgw:eth:act";
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
linux,default-trigger = "netdev";
Expand Down
20 changes: 7 additions & 13 deletions arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
gpio-leds {
compatible = "gpio-leds";

power {
led-power {
label = "green:power";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
linux,default-trigger = "default-on";
};

system {
led-system {
label = "green:system";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "disk-activity";
Expand Down Expand Up @@ -91,22 +91,16 @@
status = "okay";
};

&gmac1 {
status = "okay";
phy-handle = <&ethphy4>;
};

&mdio {
ethphy4: ethernet-phy@4 {
reg = <4>;
};
};

&switch0 {
ports {
port@0 {
status = "okay";
label = "ethblack";
};

port@4 {
status = "okay";
label = "ethblue";
};
};
};
Loading

0 comments on commit 5596c6a

Please sign in to comment.