Skip to content

Commit dfdc1de

Browse files
committed
Merge tag 'staging-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging driver updates from Greg KH: "Here is the big set of staging driver updates for 5.18-rc1. Loads of tiny cleanups for almost all staging drivers in here, nothing major at all. Highlights include: - remove the ashmem Android driver. It is long-dead and if there are any legacy userspace applications still using it, the Android kernel images will maintain it, the community shouldn't care about it anymore - wfx wifi driver major cleanups. Should be ready to merge out of staging soon, and will coordinate with the wifi maintainers after -rc1 is out - major cleanups and unwinding of the layers of the r8188eu driver. It's amazing just how many unneeded layers of abstraction is in there, just when we think it's done, another is found... - lots of tiny coding style cleanups in many other staging drivers. All have been in linux-next for a while with no reported problems" * tag 'staging-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (455 commits) staging: r8188eu: remove unnecessary memset in r8188eu staging: greybus: introduce pwm_ops::apply staging: rts5208: Resolve checkpatch.pl issues. staging: sm750fb: fix naming style staging: fbtft: Consider type of init sequence values in fbtft_init_display() staging: fbtft: Constify buf parameter in fbtft_dbg_hex() staging: mmal-vchiq: clear redundant item named bulk_scratch mips: dts: ralink: add MT7621 SoC staging: r8188eu: remove some unused local ieee80211 macros staging: r8188eu: make rtl8188e_process_phy_info static staging: r8188eu: remove unused function prototype staging: r8188eu: remove three unused receive defines staging: r8188eu: remove unnecessary initializations staging: rtl8192e: Fix spelling mistake "RESQUEST" -> "REQUEST" MAINTAINERS: remove the obsolete file entry for staging in ANDROID DRIVERS staging: r8188eu: proper error handling in rtw_init_drv_sw staging: r8188eu: call _cancel_timer_ex from _rtw_free_recv_priv staging: vt6656: Removed unused variable vt3342_vnt_threshold staging: vt6656: Removed unused variable bb_vga_0 staging: remove ashmem ...
2 parents 266d17a + 41197a5 commit dfdc1de

File tree

206 files changed

+3335
-9792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+3335
-9792
lines changed

Documentation/devicetree/bindings/clock/mediatek,mt7621-sysc.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ description: |
2222
2323
The clocks are provided inside a system controller node.
2424
25+
This node is also a reset provider for all the peripherals.
26+
27+
Reset related bits are defined in:
28+
[2]: <include/dt-bindings/reset/mt7621-reset.h>.
29+
2530
properties:
2631
compatible:
2732
items:
@@ -37,6 +42,12 @@ properties:
3742
clocks.
3843
const: 1
3944

45+
"#reset-cells":
46+
description:
47+
The first cell indicates the reset bit within the register, see
48+
[2] for available resets.
49+
const: 1
50+
4051
ralink,memctl:
4152
$ref: /schemas/types.yaml#/definitions/phandle
4253
description:
@@ -61,6 +72,7 @@ examples:
6172
compatible = "mediatek,mt7621-sysc", "syscon";
6273
reg = <0x0 0x100>;
6374
#clock-cells = <1>;
75+
#reset-cells = <1>;
6476
ralink,memctl = <&memc>;
6577
clock-output-names = "xtal", "cpu", "bus",
6678
"50m", "125m", "150m",

drivers/staging/wfx/Documentation/devicetree/bindings/net/wireless/silabs,wfx.yaml renamed to Documentation/devicetree/bindings/staging/net/wireless/silabs,wfx.yaml

Lines changed: 47 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,75 +3,87 @@
33
%YAML 1.2
44
---
55

6-
$id: http://devicetree.org/schemas/net/wireless/silabs,wfx.yaml#
6+
$id: http://devicetree.org/schemas/staging/net/wireless/silabs,wfx.yaml#
77
$schema: http://devicetree.org/meta-schemas/core.yaml#
88

99
title: Silicon Labs WFxxx devicetree bindings
1010

1111
maintainers:
1212
- Jérôme Pouiller <jerome.pouiller@silabs.com>
1313

14-
description:
15-
The WFxxx chip series can be connected via SPI or via SDIO.
14+
description: >
15+
Support for the Wifi chip WFxxx from Silicon Labs. Currently, the only device
16+
from the WFxxx series is the WF200 described here:
17+
https://www.silabs.com/documents/public/data-sheets/wf200-datasheet.pdf
1618
17-
For SDIO':'
19+
The WF200 can be connected via SPI or via SDIO.
1820
19-
The driver is able to detect a WFxxx chip on SDIO bus by matching its Vendor
20-
ID and Product ID. However, driver will only provide limited features in
21-
this case. Thus declaring WFxxx chip in device tree is recommended (and may
22-
become mandatory in the future).
21+
For SDIO:
2322
24-
In addition, it is recommended to declare a mmc-pwrseq on SDIO host above
25-
WFx. Without it, you may encounter issues with warm boot. The mmc-pwrseq
26-
should be compatible with mmc-pwrseq-simple. Please consult
23+
Declaring the WFxxx chip in device tree is mandatory (usually, the VID/PID is
24+
sufficient for the SDIO devices).
25+
26+
It is recommended to declare a mmc-pwrseq on SDIO host above WFx. Without
27+
it, you may encounter issues during reboot. The mmc-pwrseq should be
28+
compatible with mmc-pwrseq-simple. Please consult
2729
Documentation/devicetree/bindings/mmc/mmc-pwrseq-simple.yaml for more
2830
information.
2931
30-
For SPI':'
32+
For SPI:
3133
3234
In add of the properties below, please consult
3335
Documentation/devicetree/bindings/spi/spi-controller.yaml for optional SPI
3436
related properties.
3537
36-
Note that in add of the properties below, the WFx driver also supports
37-
`mac-address` and `local-mac-address` as described in
38-
Documentation/devicetree/bindings/net/ethernet.txt
39-
4038
properties:
4139
compatible:
42-
const: silabs,wf200
40+
items:
41+
- enum:
42+
- silabs,brd4001a # WGM160P Evaluation Board
43+
- silabs,brd8022a # WF200 Evaluation Board
44+
- silabs,brd8023a # WFM200 Evaluation Board
45+
- const: silabs,wf200 # Chip alone without antenna
46+
4347
reg:
4448
description:
4549
When used on SDIO bus, <reg> must be set to 1. When used on SPI bus, it is
4650
the chip select address of the device as defined in the SPI devices
4751
bindings.
4852
maxItems: 1
49-
spi-max-frequency:
50-
description: (SPI only) Maximum SPI clocking speed of device in Hz.
51-
maxItems: 1
53+
54+
spi-max-frequency: true
55+
5256
interrupts:
53-
description: The interrupt line. Triggers IRQ_TYPE_LEVEL_HIGH and
54-
IRQ_TYPE_EDGE_RISING are both supported by the chip and the driver. When
55-
SPI is used, this property is required. When SDIO is used, the "in-band"
57+
description: The interrupt line. Should be IRQ_TYPE_EDGE_RISING. When SPI is
58+
used, this property is required. When SDIO is used, the "in-band"
5659
interrupt provided by the SDIO bus is used unless an interrupt is defined
5760
in the Device Tree.
5861
maxItems: 1
62+
5963
reset-gpios:
6064
description: (SPI only) Phandle of gpio that will be used to reset chip
6165
during probe. Without this property, you may encounter issues with warm
62-
boot. (For legacy purpose, the gpio in inverted when compatible ==
63-
"silabs,wfx-spi")
66+
boot.
6467

6568
For SDIO, the reset gpio should declared using a mmc-pwrseq.
6669
maxItems: 1
70+
6771
wakeup-gpios:
6872
description: Phandle of gpio that will be used to wake-up chip. Without this
6973
property, driver will disable most of power saving features.
7074
maxItems: 1
71-
config-file:
72-
description: Use an alternative file as PDS. Default is `wf200.pds`. Only
73-
necessary for development/debug purpose.
74-
maxItems: 1
75+
76+
silabs,antenna-config-file:
77+
$ref: /schemas/types.yaml#/definitions/string
78+
description: Use an alternative file for antenna configuration (aka
79+
"Platform Data Set" in Silabs jargon). Default depends of "compatible"
80+
string. For "silabs,wf200", the default is 'wf200.pds'.
81+
82+
local-mac-address: true
83+
84+
mac-address: true
85+
86+
additionalProperties: false
7587

7688
required:
7789
- compatible
@@ -82,12 +94,12 @@ examples:
8294
#include <dt-bindings/gpio/gpio.h>
8395
#include <dt-bindings/interrupt-controller/irq.h>
8496
85-
spi0 {
97+
spi {
8698
#address-cells = <1>;
8799
#size-cells = <0>;
88100
89-
wfx@0 {
90-
compatible = "silabs,wf200";
101+
wifi@0 {
102+
compatible = "silabs,brd8022a", "silabs,wf200";
91103
pinctrl-names = "default";
92104
pinctrl-0 = <&wfx_irq &wfx_gpios>;
93105
reg = <0>;
@@ -109,13 +121,13 @@ examples:
109121
reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
110122
};
111123
112-
mmc0 {
124+
mmc {
113125
mmc-pwrseq = <&wfx_pwrseq>;
114126
#address-cells = <1>;
115127
#size-cells = <0>;
116128
117-
mmc@1 {
118-
compatible = "silabs,wf200";
129+
wifi@1 {
130+
compatible = "silabs,brd8022a", "silabs,wf200";
119131
pinctrl-names = "default";
120132
pinctrl-0 = <&wfx_wakeup>;
121133
reg = <1>;

MAINTAINERS

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,6 @@ L: linux-kernel@vger.kernel.org
13251325
S: Supported
13261326
T: git git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
13271327
F: drivers/android/
1328-
F: drivers/staging/android/
13291328

13301329
ANDROID GOLDFISH PIC DRIVER
13311330
M: Miodrag Dinic <miodrag.dinic@mips.com>
@@ -16460,6 +16459,13 @@ L: linux-mips@vger.kernel.org
1646016459
S: Maintained
1646116460
F: arch/mips/ralink
1646216461

16462+
RALINK MT7621 MIPS ARCHITECTURE
16463+
M: Arınç ÜNAL <arinc.unal@arinc9.com>
16464+
M: Sergio Paracuellos <sergio.paracuellos@gmail.com>
16465+
L: linux-mips@vger.kernel.org
16466+
S: Maintained
16467+
F: arch/mips/boot/dts/ralink/mt7621*
16468+
1646316469
RALINK RT2X00 WIRELESS LAN DRIVER
1646416470
M: Stanislaw Gruszka <stf_xl@wp.pl>
1646516471
M: Helmut Schaa <helmut.schaa@googlemail.com>
@@ -17940,6 +17946,7 @@ F: drivers/platform/x86/touchscreen_dmi.c
1794017946
SILICON LABS WIRELESS DRIVERS (for WFxxx series)
1794117947
M: Jérôme Pouiller <jerome.pouiller@silabs.com>
1794217948
S: Supported
17949+
F: Documentation/devicetree/bindings/staging/net/wireless/silabs,wfx.yaml
1794317950
F: drivers/staging/wfx/
1794417951

1794517952
SILICON MOTION SM712 FRAME BUFFER DRIVER

arch/mips/boot/dts/ralink/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,8 @@ dtb-$(CONFIG_DTB_MT7620A_EVAL) += mt7620a_eval.dtb
66
dtb-$(CONFIG_DTB_OMEGA2P) += omega2p.dtb
77
dtb-$(CONFIG_DTB_VOCORE2) += vocore2.dtb
88

9+
dtb-$(CONFIG_SOC_MT7621) += \
10+
mt7621-gnubee-gb-pc1.dtb \
11+
mt7621-gnubee-gb-pc2.dtb
12+
913
obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .o, $(dtb-y))

drivers/staging/mt7621-dts/gbpc1.dts renamed to arch/mips/boot/dts/ralink/mt7621-gnubee-gb-pc1.dts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
memory@0 {
1414
device_type = "memory";
15-
reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
15+
reg = <0x00000000 0x1c000000>,
16+
<0x20000000 0x04000000>;
1617
};
1718

1819
chosen {
@@ -38,24 +39,16 @@
3839
gpio-leds {
3940
compatible = "gpio-leds";
4041

41-
system {
42-
label = "gb-pc1:green:system";
42+
power {
43+
label = "green:power";
4344
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
45+
linux,default-trigger = "default-on";
4446
};
4547

46-
status {
47-
label = "gb-pc1:green:status";
48+
system {
49+
label = "green:system";
4850
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
49-
};
50-
51-
lan1 {
52-
label = "gb-pc1:green:lan1";
53-
gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
54-
};
55-
56-
lan2 {
57-
label = "gb-pc1:green:lan2";
58-
gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
51+
linux,default-trigger = "disk-activity";
5952
};
6053
};
6154
};
@@ -95,9 +88,8 @@
9588

9689
partition@50000 {
9790
label = "firmware";
98-
reg = <0x50000 0x1FB0000>;
91+
reg = <0x50000 0x1fb0000>;
9992
};
100-
10193
};
10294
};
10395

@@ -106,23 +98,31 @@
10698
};
10799

108100
&pinctrl {
109-
state_default: pinctrl0 {
110-
default_gpio: gpio {
111-
groups = "wdt", "rgmii2", "uart3";
101+
pinctrl-names = "default";
102+
pinctrl-0 = <&state_default>;
103+
104+
state_default: state-default {
105+
gpio-pinmux {
106+
groups = "rgmii2", "uart3", "wdt";
112107
function = "gpio";
113108
};
114109
};
115110
};
116111

112+
&ethernet {
113+
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
114+
};
115+
117116
&switch0 {
118117
ports {
119118
port@0 {
119+
status = "okay";
120120
label = "ethblack";
121-
status = "ok";
122121
};
122+
123123
port@4 {
124+
status = "okay";
124125
label = "ethblue";
125-
status = "ok";
126126
};
127127
};
128128
};

0 commit comments

Comments
 (0)