Skip to content

Commit 10c8e05

Browse files
committed
Merge tag 'drivers-for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC driver changes from Olof Johansson: "A handful of driver-related changes. We've had a bunch of them going in through other branches as well, so it's only a part of what we really have this release. Larger pieces are: - Removal of a now unused PWM driver for atmel [ This includes AVR32 changes that have been appropriately acked ] - Performance counter support for the arm CCN interconnect - OMAP mailbox driver cleanups and consolidation - PCI and SATA PHY drivers for SPEAr 13xx platforms - Redefinition (with backwards compatibility!) of PCI DT bindings for Tegra to better model regulators/power" Note: this merge also fixes up the semantic conflict with the new calling convention for devm_phy_create(), see commit f0ed817 ("phy: core: Let node ptr of PHY point to PHY and not of PHY provider") that came in through Greg's USB tree. Semantic merge patch by Stephen Rothwell <sfr@canb.auug.org.au> through the next tree. * tag 'drivers-for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (38 commits) bus: arm-ccn: Fix error handling at event allocation mailbox/omap: add a parent structure for every IP instance mailbox/omap: remove the private mailbox structure mailbox/omap: consolidate OMAP mailbox driver mailbox/omap: simplify the fifo assignment by using macros mailbox/omap: remove omap_mbox_type_t from mailbox ops mailbox/omap: remove OMAP1 mailbox driver mailbox/omap: use devm_* interfaces bus: ARM CCN: add PERF_EVENTS dependency bus: ARM CCN PMU driver PCI: spear: Remove spear13xx_pcie_remove() PCI: spear: Fix Section mismatch compilation warning for probe() ARM: tegra: Remove legacy PCIe power supply properties PCI: tegra: Remove deprecated power supply properties PCI: tegra: Implement accurate power supply scheme ARM: SPEAr13xx: Update defconfigs ARM: SPEAr13xx: Add pcie and miphy DT nodes ARM: SPEAr13xx: Add bindings and dt node for misc block ARM: SPEAr13xx: Fix static mapping table phy: Add drivers for PCIe and SATA phy on SPEAr13xx ...
2 parents d4e1f5a + 3e528cb commit 10c8e05

74 files changed

Lines changed: 3452 additions & 2023 deletions

Some content is hidden

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

‎Documentation/arm/CCN.txt‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
ARM Cache Coherent Network
2+
==========================
3+
4+
CCN-504 is a ring-bus interconnect consisting of 11 crosspoints
5+
(XPs), with each crosspoint supporting up to two device ports,
6+
so nodes (devices) 0 and 1 are connected to crosspoint 0,
7+
nodes 2 and 3 to crosspoint 1 etc.
8+
9+
PMU (perf) driver
10+
-----------------
11+
12+
The CCN driver registers a perf PMU driver, which provides
13+
description of available events and configuration options
14+
in sysfs, see /sys/bus/event_source/devices/ccn*.
15+
16+
The "format" directory describes format of the config, config1
17+
and config2 fields of the perf_event_attr structure. The "events"
18+
directory provides configuration templates for all documented
19+
events, that can be used with perf tool. For example "xp_valid_flit"
20+
is an equivalent of "type=0x8,event=0x4". Other parameters must be
21+
explicitly specified. For events originating from device, "node"
22+
defines its index. All crosspoint events require "xp" (index),
23+
"port" (device port number) and "vc" (virtual channel ID) and
24+
"dir" (direction). Watchpoints (special "event" value 0xfe) also
25+
require comparator values ("cmp_l" and "cmp_h") and "mask", being
26+
index of the comparator mask.
27+
28+
Masks are defined separately from the event description
29+
(due to limited number of the config values) in the "cmp_mask"
30+
directory, with first 8 configurable by user and additional
31+
4 hardcoded for the most frequent use cases.
32+
33+
Cycle counter is described by a "type" value 0xff and does
34+
not require any other settings.
35+
36+
Example of perf tool use:
37+
38+
/ # perf list | grep ccn
39+
ccn/cycles/ [Kernel PMU event]
40+
<...>
41+
ccn/xp_valid_flit/ [Kernel PMU event]
42+
<...>
43+
44+
/ # perf stat -C 0 -e ccn/cycles/,ccn/xp_valid_flit,xp=1,port=0,vc=1,dir=1/ \
45+
sleep 1
46+
47+
The driver does not support sampling, therefore "perf record" will
48+
not work. Also notice that only single cpu is being selected
49+
("-C 0") - this is because perf framework does not support
50+
"non-CPU related" counters (yet?) so system-wide session ("-a")
51+
would try (and in most cases fail) to set up the same event
52+
per each CPU.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
* ARM CCN (Cache Coherent Network)
2+
3+
Required properties:
4+
5+
- compatible: (standard compatible string) should be one of:
6+
"arm,ccn-504"
7+
"arm,ccn-508"
8+
9+
- reg: (standard registers property) physical address and size
10+
(16MB) of the configuration registers block
11+
12+
- interrupts: (standard interrupt property) single interrupt
13+
generated by the control block
14+
15+
Example:
16+
17+
ccn@0x2000000000 {
18+
compatible = "arm,ccn-504";
19+
reg = <0x20 0x00000000 0 0x1000000>;
20+
interrupts = <0 181 4>;
21+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
SPEAr Misc configuration
2+
===========================
3+
SPEAr SOCs have some miscellaneous registers which are used to configure
4+
few properties of different peripheral controllers.
5+
6+
misc node required properties:
7+
8+
- compatible Should be "st,spear1340-misc", "syscon".
9+
- reg: Address range of misc space upto 8K

‎Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt‎

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ Required properties:
1414
- interrupt-names: Must include the following entries:
1515
"intr": The Tegra interrupt that is asserted for controller interrupts
1616
"msi": The Tegra interrupt that is asserted when an MSI is received
17-
- pex-clk-supply: Supply voltage for internal reference clock
18-
- vdd-supply: Power supply for controller (1.05V)
19-
- avdd-supply: Power supply for controller (1.05V) (not required for Tegra20)
2017
- bus-range: Range of bus numbers associated with this controller
2118
- #address-cells: Address representation for root ports (must be 3)
2219
- cell 0 specifies the bus and device numbers of the root port:
@@ -60,6 +57,33 @@ Required properties:
6057
- afi
6158
- pcie_x
6259

60+
Power supplies for Tegra20:
61+
- avdd-pex-supply: Power supply for analog PCIe logic. Must supply 1.05 V.
62+
- vdd-pex-supply: Power supply for digital PCIe I/O. Must supply 1.05 V.
63+
- avdd-pex-pll-supply: Power supply for dedicated (internal) PCIe PLL. Must
64+
supply 1.05 V.
65+
- avdd-plle-supply: Power supply for PLLE, which is shared with SATA. Must
66+
supply 1.05 V.
67+
- vddio-pex-clk-supply: Power supply for PCIe clock. Must supply 3.3 V.
68+
69+
Power supplies for Tegra30:
70+
- Required:
71+
- avdd-pex-pll-supply: Power supply for dedicated (internal) PCIe PLL. Must
72+
supply 1.05 V.
73+
- avdd-plle-supply: Power supply for PLLE, which is shared with SATA. Must
74+
supply 1.05 V.
75+
- vddio-pex-ctl-supply: Power supply for PCIe control I/O partition. Must
76+
supply 1.8 V.
77+
- hvdd-pex-supply: High-voltage supply for PCIe I/O and PCIe output clocks.
78+
Must supply 3.3 V.
79+
- Optional:
80+
- If lanes 0 to 3 are used:
81+
- avdd-pexa-supply: Power supply for analog PCIe logic. Must supply 1.05 V.
82+
- vdd-pexa-supply: Power supply for digital PCIe I/O. Must supply 1.05 V.
83+
- If lanes 4 or 5 are used:
84+
- avdd-pexb-supply: Power supply for analog PCIe logic. Must supply 1.05 V.
85+
- vdd-pexb-supply: Power supply for digital PCIe I/O. Must supply 1.05 V.
86+
6387
Root ports are defined as subnodes of the PCIe controller node.
6488

6589
Required properties:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
SPEAr13XX PCIe DT detail:
2+
================================
3+
4+
SPEAr13XX uses synopsis designware PCIe controller and ST MiPHY as phy
5+
controller.
6+
7+
Required properties:
8+
- compatible : should be "st,spear1340-pcie", "snps,dw-pcie".
9+
- phys : phandle to phy node associated with pcie controller
10+
- phy-names : must be "pcie-phy"
11+
- All other definitions as per generic PCI bindings
12+
13+
Optional properties:
14+
- st,pcie-is-gen1 indicates that forced gen1 initialization is needed.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ST SPEAr miphy DT details
2+
=========================
3+
4+
ST Microelectronics SPEAr miphy is a phy controller supporting PCIe and SATA.
5+
6+
Required properties:
7+
- compatible : should be "st,spear1310-miphy" or "st,spear1340-miphy"
8+
- reg : offset and length of the PHY register set.
9+
- misc: phandle for the syscon node to access misc registers
10+
- #phy-cells : from the generic PHY bindings, must be 1.
11+
- cell[1]: 0 if phy used for SATA, 1 for PCIe.
12+
13+
Optional properties:
14+
- phy-id: Instance id of the phy. Only required when there are multiple phys
15+
present on a implementation.

‎MAINTAINERS‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6902,6 +6902,12 @@ S: Maintained
69026902
F: Documentation/devicetree/bindings/pci/host-generic-pci.txt
69036903
F: drivers/pci/host/pci-host-generic.c
69046904

6905+
PCIE DRIVER FOR ST SPEAR13XX
6906+
M: Mohit Kumar <mohit.kumar@st.com>
6907+
L: linux-pci@vger.kernel.org
6908+
S: Maintained
6909+
F: drivers/pci/host/*spear*
6910+
69056911
PCMCIA SUBSYSTEM
69066912
P: Linux PCMCIA Team
69076913
L: linux-pcmcia@lists.infradead.org

‎arch/arm/boot/dts/spear1310-evb.dts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@
106106
status = "okay";
107107
};
108108

109+
miphy@eb800000 {
110+
status = "okay";
111+
};
112+
109113
cf@b2800000 {
110114
status = "okay";
111115
};

‎arch/arm/boot/dts/spear1310.dtsi‎

Lines changed: 90 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,111 @@
2929
#gpio-cells = <2>;
3030
};
3131

32-
ahci@b1000000 {
32+
miphy0: miphy@eb800000 {
33+
compatible = "st,spear1310-miphy";
34+
reg = <0xeb800000 0x4000>;
35+
misc = <&misc>;
36+
phy-id = <0>;
37+
#phy-cells = <1>;
38+
status = "disabled";
39+
};
40+
41+
miphy1: miphy@eb804000 {
42+
compatible = "st,spear1310-miphy";
43+
reg = <0xeb804000 0x4000>;
44+
misc = <&misc>;
45+
phy-id = <1>;
46+
#phy-cells = <1>;
47+
status = "disabled";
48+
};
49+
50+
miphy2: miphy@eb808000 {
51+
compatible = "st,spear1310-miphy";
52+
reg = <0xeb808000 0x4000>;
53+
misc = <&misc>;
54+
phy-id = <2>;
55+
#phy-cells = <1>;
56+
status = "disabled";
57+
};
58+
59+
ahci0: ahci@b1000000 {
3360
compatible = "snps,spear-ahci";
3461
reg = <0xb1000000 0x10000>;
3562
interrupts = <0 68 0x4>;
63+
phys = <&miphy0 0>;
64+
phy-names = "sata-phy";
3665
status = "disabled";
3766
};
3867

39-
ahci@b1800000 {
68+
ahci1: ahci@b1800000 {
4069
compatible = "snps,spear-ahci";
4170
reg = <0xb1800000 0x10000>;
4271
interrupts = <0 69 0x4>;
72+
phys = <&miphy1 0>;
73+
phy-names = "sata-phy";
4374
status = "disabled";
4475
};
4576

46-
ahci@b4000000 {
77+
ahci2: ahci@b4000000 {
4778
compatible = "snps,spear-ahci";
4879
reg = <0xb4000000 0x10000>;
4980
interrupts = <0 70 0x4>;
81+
phys = <&miphy2 0>;
82+
phy-names = "sata-phy";
83+
status = "disabled";
84+
};
85+
86+
pcie0: pcie@b1000000 {
87+
compatible = "st,spear1340-pcie", "snps,dw-pcie";
88+
reg = <0xb1000000 0x4000>;
89+
interrupts = <0 68 0x4>;
90+
interrupt-map-mask = <0 0 0 0>;
91+
interrupt-map = <0x0 0 &gic 0 68 0x4>;
92+
num-lanes = <1>;
93+
phys = <&miphy0 1>;
94+
phy-names = "pcie-phy";
95+
#address-cells = <3>;
96+
#size-cells = <2>;
97+
device_type = "pci";
98+
ranges = <0x00000800 0 0x80000000 0x80000000 0 0x00020000 /* configuration space */
99+
0x81000000 0 0 0x80020000 0 0x00010000 /* downstream I/O */
100+
0x82000000 0 0x80030000 0xc0030000 0 0x0ffd0000>; /* non-prefetchable memory */
101+
status = "disabled";
102+
};
103+
104+
pcie1: pcie@b1800000 {
105+
compatible = "st,spear1340-pcie", "snps,dw-pcie";
106+
reg = <0xb1800000 0x4000>;
107+
interrupts = <0 69 0x4>;
108+
interrupt-map-mask = <0 0 0 0>;
109+
interrupt-map = <0x0 0 &gic 0 69 0x4>;
110+
num-lanes = <1>;
111+
phys = <&miphy1 1>;
112+
phy-names = "pcie-phy";
113+
#address-cells = <3>;
114+
#size-cells = <2>;
115+
device_type = "pci";
116+
ranges = <0x00000800 0 0x90000000 0x90000000 0 0x00020000 /* configuration space */
117+
0x81000000 0 0 0x90020000 0 0x00010000 /* downstream I/O */
118+
0x82000000 0 0x90030000 0x90030000 0 0x0ffd0000>; /* non-prefetchable memory */
119+
status = "disabled";
120+
};
121+
122+
pcie2: pcie@b4000000 {
123+
compatible = "st,spear1340-pcie", "snps,dw-pcie";
124+
reg = <0xb4000000 0x4000>;
125+
interrupts = <0 70 0x4>;
126+
interrupt-map-mask = <0 0 0 0>;
127+
interrupt-map = <0x0 0 &gic 0 70 0x4>;
128+
num-lanes = <1>;
129+
phys = <&miphy2 1>;
130+
phy-names = "pcie-phy";
131+
#address-cells = <3>;
132+
#size-cells = <2>;
133+
device_type = "pci";
134+
ranges = <0x00000800 0 0xc0000000 0xc0000000 0 0x00020000 /* configuration space */
135+
0x81000000 0 0 0xc0020000 0 0x00010000 /* downstream I/O */
136+
0x82000000 0 0xc0030000 0xc0030000 0 0x0ffd0000>; /* non-prefetchable memory */
50137
status = "disabled";
51138
};
52139

‎arch/arm/boot/dts/spear1340-evb.dts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@
122122
status = "okay";
123123
};
124124

125+
miphy@eb800000 {
126+
status = "okay";
127+
};
128+
125129
dma@ea800000 {
126130
status = "okay";
127131
};

0 commit comments

Comments
 (0)