Skip to content

Commit 49826a6

Browse files
committed
Merge tag 'mvebu-dt64-5.4-2' of git://git.infradead.org/linux-mvebu into arm/late
mvebu dt64 for 5.4 (part 2) Add support for Turris Mox board (Armada 3720 SoC based) * tag 'mvebu-dt64-5.4-2' of git://git.infradead.org/linux-mvebu: (53 commits) arm64: dts: marvell: add DTS for Turris Mox dt-bindings: marvell: document Turris Mox compatible arm64: dts: marvell: armada-37xx: add SPI CS1 pinctrl arm64: dts: marvell: Add cpu clock node on Armada 7K/8K arm64: dts: marvell: Convert 7k/8k usb-phy properties to phy-supply arm64: dts: marvell: Add 7k/8k PHYs in PCIe nodes arm64: dts: marvell: Add 7k/8k PHYs in USB3 nodes arm64: dts: marvell: Add 7k/8k per-port PHYs in SATA nodes arm64: dts: marvell: Add CP110 COMPHY clocks arm64: dts: marvell: armada-37xx: add mailbox node dt-bindings: gpio: Document GPIOs via Moxtet bus drivers: gpio: Add support for GPIOs over Moxtet bus bus: moxtet: Add sysfs and debugfs documentation dt-bindings: bus: Document moxtet bus binding bus: Add support for Moxtet bus reset: Add support for resets provided by SCMI firmware: arm_scmi: Add RESET protocol in SCMI v2.0 dt-bindings: arm: Extend SCMI to support new reset protocol firmware: arm_scmi: Make use SCMI v2.0 fastchannel for performance protocol firmware: arm_scmi: Add discovery of SCMI v2.0 performance fastchannels ... Link: https://lore.kernel.org/r/87h85two0r.fsf@FE-laptop Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 65ab0db + 7109d81 commit 49826a6

53 files changed

Lines changed: 3445 additions & 512 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
What: /sys/kernel/debug/moxtet/input
2+
Date: March 2019
3+
KernelVersion: 5.3
4+
Contact: Marek Behún <marek.behun@nic.cz>
5+
Description: (R) Read input from the shift registers, in hexadecimal.
6+
Returns N+1 bytes, where N is the number of Moxtet connected
7+
modules. The first byte is from the CPU board itself.
8+
Example: 101214
9+
10: CPU board with SD card
10+
12: 2 = PCIe module, 1 = IRQ not active
11+
14: 4 = Peridot module, 1 = IRQ not active
12+
13+
What: /sys/kernel/debug/moxtet/output
14+
Date: March 2019
15+
KernelVersion: 5.3
16+
Contact: Marek Behún <marek.behun@nic.cz>
17+
Description: (RW) Read last written value to the shift registers, in
18+
hexadecimal, or write values to the shift registers, also
19+
in hexadecimal.
20+
Example: 0102
21+
01: 01 was last written, or is to be written, to the
22+
first module's shift register
23+
02: the same for second module
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
What: /sys/bus/moxtet/devices/moxtet-<name>.<addr>/module_description
2+
Date: March 2019
3+
KernelVersion: 5.3
4+
Contact: Marek Behún <marek.behun@nic.cz>
5+
Description: (R) Moxtet module description. Format: string
6+
7+
What: /sys/bus/moxtet/devices/moxtet-<name>.<addr>/module_id
8+
Date: March 2019
9+
KernelVersion: 5.3
10+
Contact: Marek Behún <marek.behun@nic.cz>
11+
Description: (R) Moxtet module ID. Format: %x
12+
13+
What: /sys/bus/moxtet/devices/moxtet-<name>.<addr>/module_name
14+
Date: March 2019
15+
KernelVersion: 5.3
16+
Contact: Marek Behún <marek.behun@nic.cz>
17+
Description: (R) Moxtet module name. Format: string

‎Documentation/devicetree/bindings/arm/arm,scmi.txt‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ Required properties:
7373
as used by the firmware. Refer to platform details
7474
for your implementation for the IDs to use.
7575

76+
Reset signal bindings for the reset domains based on SCMI Message Protocol
77+
------------------------------------------------------------
78+
79+
This binding for the SCMI reset domain providers uses the generic reset
80+
signal binding[5].
81+
82+
Required properties:
83+
- #reset-cells : Should be 1. Contains the reset domain ID value used
84+
by SCMI commands.
85+
7686
SRAM and Shared Memory for SCMI
7787
-------------------------------
7888

@@ -93,6 +103,7 @@ Required sub-node properties:
93103
[2] Documentation/devicetree/bindings/power/power_domain.txt
94104
[3] Documentation/devicetree/bindings/thermal/thermal.txt
95105
[4] Documentation/devicetree/bindings/sram/sram.txt
106+
[5] Documentation/devicetree/bindings/reset/reset.txt
96107

97108
Example:
98109

@@ -152,6 +163,11 @@ firmware {
152163
reg = <0x15>;
153164
#thermal-sensor-cells = <1>;
154165
};
166+
167+
scmi_reset: protocol@16 {
168+
reg = <0x16>;
169+
#reset-cells = <1>;
170+
};
155171
};
156172
};
157173

@@ -166,6 +182,7 @@ hdlcd@7ff60000 {
166182
reg = <0 0x7ff60000 0 0x1000>;
167183
clocks = <&scmi_clk 4>;
168184
power-domains = <&scmi_devpd 1>;
185+
resets = <&scmi_reset 10>;
169186
};
170187

171188
thermal-zones {

‎Documentation/devicetree/bindings/arm/marvell/armada-37xx.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,11 @@ avs: avs@11500 {
4848
compatible = "marvell,armada-3700-avs", "syscon";
4949
reg = <0x11500 0x40>;
5050
}
51+
52+
53+
CZ.NIC's Turris Mox SOHO router Device Tree Bindings
54+
----------------------------------------------------
55+
56+
Required root node property:
57+
58+
- compatible: must contain "cznic,turris-mox"
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Turris Mox module status and configuration bus (over SPI)
2+
3+
Required properties:
4+
- compatible : Should be "cznic,moxtet"
5+
- #address-cells : Has to be 1
6+
- #size-cells : Has to be 0
7+
- spi-cpol : Required inverted clock polarity
8+
- spi-cpha : Required shifted clock phase
9+
- interrupts : Must contain reference to the shared interrupt line
10+
- interrupt-controller : Required
11+
- #interrupt-cells : Has to be 1
12+
13+
For other required and optional properties of SPI slave nodes please refer to
14+
../spi/spi-bus.txt.
15+
16+
Required properties of subnodes:
17+
- reg : Should be position on the Moxtet bus (how many Moxtet
18+
modules are between this module and CPU module, so
19+
either 0 or a positive integer)
20+
21+
The driver finds the devices connected to the bus by itself, but it may be
22+
needed to reference some of them from other parts of the device tree. In that
23+
case the devices can be defined as subnodes of the moxtet node.
24+
25+
Example:
26+
27+
moxtet@1 {
28+
compatible = "cznic,moxtet";
29+
#address-cells = <1>;
30+
#size-cells = <0>;
31+
reg = <1>;
32+
spi-max-frequency = <10000000>;
33+
spi-cpol;
34+
spi-cpha;
35+
interrupt-controller;
36+
#interrupt-cells = <1>;
37+
interrupt-parent = <&gpiosb>;
38+
interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
39+
40+
moxtet_sfp: gpio@0 {
41+
compatible = "cznic,moxtet-gpio";
42+
gpio-controller;
43+
#gpio-cells = <2>;
44+
reg = <0>;
45+
}
46+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Turris Mox Moxtet GPIO expander via Moxtet bus
2+
3+
Required properties:
4+
- compatible : Should be "cznic,moxtet-gpio".
5+
- gpio-controller : Marks the device node as a GPIO controller.
6+
- #gpio-cells : Should be two. For consumer use see gpio.txt.
7+
8+
Other properties are required for a Moxtet bus device, please refer to
9+
Documentation/devicetree/bindings/bus/moxtet.txt.
10+
11+
Example:
12+
13+
moxtet_sfp: gpio@0 {
14+
compatible = "cznic,moxtet-gpio";
15+
gpio-controller;
16+
#gpio-cells = <2>;
17+
reg = <0>;
18+
}

‎Documentation/devicetree/bindings/reset/fsl,imx7-src.txt‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Required properties:
88
- compatible:
99
- For i.MX7 SoCs should be "fsl,imx7d-src", "syscon"
1010
- For i.MX8MQ SoCs should be "fsl,imx8mq-src", "syscon"
11+
- For i.MX8MM SoCs should be "fsl,imx8mm-src", "fsl,imx8mq-src", "syscon"
1112
- reg: should be register base and length as documented in the
1213
datasheet
1314
- interrupts: Should contain SRC interrupt
@@ -46,5 +47,6 @@ Example:
4647

4748

4849
For list of all valid reset indices see
49-
<dt-bindings/reset/imx7-reset.h> for i.MX7 and
50-
<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ
50+
<dt-bindings/reset/imx7-reset.h> for i.MX7,
51+
<dt-bindings/reset/imx8mq-reset.h> for i.MX8MQ and
52+
<dt-bindings/reset/imx8mq-reset.h> for i.MX8MM
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Synopsys DesignWare Reset controller
2+
=======================================
3+
4+
Please also refer to reset.txt in this directory for common reset
5+
controller binding usage.
6+
7+
Required properties:
8+
9+
- compatible: should be one of the following.
10+
"snps,dw-high-reset" - for active high configuration
11+
"snps,dw-low-reset" - for active low configuration
12+
13+
- reg: physical base address of the controller and length of memory mapped
14+
region.
15+
16+
- #reset-cells: must be 1.
17+
18+
example:
19+
20+
dw_rst_1: reset-controller@0000 {
21+
compatible = "snps,dw-high-reset";
22+
reg = <0x0000 0x4>;
23+
#reset-cells = <1>;
24+
};
25+
26+
dw_rst_2: reset-controller@1000 {i
27+
compatible = "snps,dw-low-reset";
28+
reg = <0x1000 0x8>;
29+
#reset-cells = <1>;
30+
};

‎Documentation/devicetree/bindings/soc/fsl/cpm_qe/qe.txt‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Required properties:
1818
- reg : offset and length of the device registers.
1919
- bus-frequency : the clock frequency for QUICC Engine.
2020
- fsl,qe-num-riscs: define how many RISC engines the QE has.
21-
- fsl,qe-num-snums: define how many serial number(SNUM) the QE can use for the
21+
- fsl,qe-snums: This property has to be specified as '/bits/ 8' value,
22+
defining the array of serial number (SNUM) values for the virtual
2223
threads.
2324

2425
Optional properties:
@@ -34,6 +35,11 @@ Recommended properties
3435
- brg-frequency : the internal clock source frequency for baud-rate
3536
generators in Hz.
3637

38+
Deprecated properties
39+
- fsl,qe-num-snums: define how many serial number(SNUM) the QE can use
40+
for the threads. Use fsl,qe-snums instead to not only specify the
41+
number of snums, but also their values.
42+
3743
Example:
3844
qe@e0100000 {
3945
#address-cells = <1>;
@@ -44,6 +50,11 @@ Example:
4450
reg = <e0100000 480>;
4551
brg-frequency = <0>;
4652
bus-frequency = <179A7B00>;
53+
fsl,qe-snums = /bits/ 8 <
54+
0x04 0x05 0x0C 0x0D 0x14 0x15 0x1C 0x1D
55+
0x24 0x25 0x2C 0x2D 0x34 0x35 0x88 0x89
56+
0x98 0x99 0xA8 0xA9 0xB8 0xB9 0xC8 0xC9
57+
0xD8 0xD9 0xE8 0xE9>;
4758
}
4859

4960
* Multi-User RAM (MURAM)

‎MAINTAINERS‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,6 +1626,18 @@ F: drivers/clocksource/timer-atlas7.c
16261626
N: [^a-z]sirf
16271627
X: drivers/gnss
16281628

1629+
ARM/CZ.NIC TURRIS MOX SUPPORT
1630+
M: Marek Behun <marek.behun@nic.cz>
1631+
W: http://mox.turris.cz
1632+
S: Maintained
1633+
F: Documentation/ABI/testing/debugfs-moxtet
1634+
F: Documentation/ABI/testing/sysfs-bus-moxtet-devices
1635+
F: Documentation/devicetree/bindings/bus/moxtet.txt
1636+
F: Documentation/devicetree/bindings/gpio/gpio-moxtet.txt
1637+
F: include/linux/moxtet.h
1638+
F: drivers/bus/moxtet.c
1639+
F: drivers/gpio/gpio-moxtet.c
1640+
16291641
ARM/EBSA110 MACHINE SUPPORT
16301642
M: Russell King <linux@armlinux.org.uk>
16311643
L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)
@@ -15577,6 +15589,7 @@ F: drivers/clk/clk-sc[mp]i.c
1557715589
F: drivers/cpufreq/sc[mp]i-cpufreq.c
1557815590
F: drivers/firmware/arm_scpi.c
1557915591
F: drivers/firmware/arm_scmi/
15592+
F: drivers/reset/reset-scmi.c
1558015593
F: include/linux/sc[mp]i_protocol.h
1558115594

1558215595
SYSTEM RESET/SHUTDOWN DRIVERS

0 commit comments

Comments
 (0)