Skip to content

Commit 65ab0db

Browse files
committed
Merge tag 'ti-k3-soc-for-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/kristo/linux into arm/late
Texas Instruments K3 SoC family changes for 5.4 - Typo fixes for gic-its unit addresses for both am654 and j721e - HW spinlock nodes added for both am654 and j721e - GPIO support for j721e - power-domain cells update for both am654 / j721e for exclusive only access * tag 'ti-k3-soc-for-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/kristo/linux: arm64: dts: ti: k3-j721e-main: Fix gic-its node unit-address arm64: dts: ti: k3-am65-main: Fix gic-its node unit-address arm64: dts: ti: k3-j721e-main: Add hwspinlock node arm64: dts: ti: k3-am65-main: Add hwspinlock node arm64: dts: k3-j721e: Add gpio-keys on common processor board dt-bindings: pinctrl: k3: Introduce pinmux definitions for J721E arm64: dts: ti: k3-j721e-common-proc-board: Disable unused gpio modules arm64: dts: ti: k3-j721e: Add gpio nodes in wakeup domain arm64: dts: ti: k3-j721e: Add gpio nodes in main domain arm64: dts: ti: k3-j721e: Update the power domain cells arm64: dts: ti: k3-am654: Update the power domain cells soc: ti: ti_sci_pm_domains: Add support for exclusive and shared access dt-bindings: ti_sci_pm_domains: Add support for exclusive and shared access firmware: ti_sci: Allow for device shared and exclusive requests Link: https://lore.kernel.org/r/b838d666-ab3b-7d41-67d4-09d606c732da@ti.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 1fb2e59 + d6dabd6 commit 65ab0db

16 files changed

Lines changed: 384 additions & 51 deletions

File tree

‎Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,15 @@ child of the pmmc node.
1919
Required Properties:
2020
--------------------
2121
- compatible: should be "ti,sci-pm-domain"
22-
- #power-domain-cells: Must be 1 so that an id can be provided in each
23-
device node.
22+
- #power-domain-cells: Can be one of the following:
23+
1: Containing the device id of each node
24+
2: First entry should be device id
25+
Second entry should be one of the floowing:
26+
TI_SCI_PD_EXCLUSIVE: To allow device to be
27+
exclusively controlled by
28+
the requesting hosts.
29+
TI_SCI_PD_SHARED: To allow device to be shared
30+
by multiple hosts.
2431

2532
Example (K2G):
2633
-------------

‎MAINTAINERS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15885,6 +15885,7 @@ F: drivers/firmware/ti_sci*
1588515885
F: include/linux/soc/ti/ti_sci_protocol.h
1588615886
F: Documentation/devicetree/bindings/soc/ti/sci-pm-domain.txt
1588715887
F: drivers/soc/ti/ti_sci_pm_domains.c
15888+
F: include/dt-bindings/soc/ti,sci_pm_domain.h
1588815889
F: Documentation/devicetree/bindings/reset/ti,sci-reset.txt
1588915890
F: Documentation/devicetree/bindings/clock/ti,sci-clk.txt
1589015891
F: drivers/clk/keystone/sci-clk.c

‎arch/arm64/boot/dts/ti/k3-am65-main.dtsi‎

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*/
4343
interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
4444

45-
gic_its: gic-its@18200000 {
45+
gic_its: gic-its@1820000 {
4646
compatible = "arm,gic-v3-its";
4747
reg = <0x00 0x01820000 0x00 0x10000>;
4848
socionext,synquacer-pre-its = <0x1000000 0x400000>;
@@ -67,7 +67,7 @@
6767
reg = <0x0 0x900000 0x0 0x2000>;
6868
reg-names = "serdes";
6969
#phy-cells = <2>;
70-
power-domains = <&k3_pds 153>;
70+
power-domains = <&k3_pds 153 TI_SCI_PD_EXCLUSIVE>;
7171
clocks = <&k3_clks 153 4>, <&k3_clks 153 1>, <&serdes1 AM654_SERDES_LO_REFCLK>;
7272
clock-output-names = "serdes0_cmu_refclk", "serdes0_lo_refclk", "serdes0_ro_refclk";
7373
assigned-clocks = <&k3_clks 153 4>, <&serdes0 AM654_SERDES_CMU_REFCLK>;
@@ -82,7 +82,7 @@
8282
reg = <0x0 0x910000 0x0 0x2000>;
8383
reg-names = "serdes";
8484
#phy-cells = <2>;
85-
power-domains = <&k3_pds 154>;
85+
power-domains = <&k3_pds 154 TI_SCI_PD_EXCLUSIVE>;
8686
clocks = <&serdes0 AM654_SERDES_RO_REFCLK>, <&k3_clks 154 1>, <&k3_clks 154 5>;
8787
clock-output-names = "serdes1_cmu_refclk", "serdes1_lo_refclk", "serdes1_ro_refclk";
8888
assigned-clocks = <&k3_clks 154 5>, <&serdes1 AM654_SERDES_CMU_REFCLK>;
@@ -100,7 +100,7 @@
100100
interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
101101
clock-frequency = <48000000>;
102102
current-speed = <115200>;
103-
power-domains = <&k3_pds 146>;
103+
power-domains = <&k3_pds 146 TI_SCI_PD_EXCLUSIVE>;
104104
};
105105

106106
main_uart1: serial@2810000 {
@@ -110,7 +110,7 @@
110110
reg-io-width = <4>;
111111
interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
112112
clock-frequency = <48000000>;
113-
power-domains = <&k3_pds 147>;
113+
power-domains = <&k3_pds 147 TI_SCI_PD_EXCLUSIVE>;
114114
};
115115

116116
main_uart2: serial@2820000 {
@@ -120,7 +120,7 @@
120120
reg-io-width = <4>;
121121
interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>;
122122
clock-frequency = <48000000>;
123-
power-domains = <&k3_pds 148>;
123+
power-domains = <&k3_pds 148 TI_SCI_PD_EXCLUSIVE>;
124124
};
125125

126126
main_pmx0: pinmux@11c000 {
@@ -147,7 +147,7 @@
147147
#size-cells = <0>;
148148
clock-names = "fck";
149149
clocks = <&k3_clks 110 1>;
150-
power-domains = <&k3_pds 110>;
150+
power-domains = <&k3_pds 110 TI_SCI_PD_EXCLUSIVE>;
151151
};
152152

153153
main_i2c1: i2c@2010000 {
@@ -158,7 +158,7 @@
158158
#size-cells = <0>;
159159
clock-names = "fck";
160160
clocks = <&k3_clks 111 1>;
161-
power-domains = <&k3_pds 111>;
161+
power-domains = <&k3_pds 111 TI_SCI_PD_EXCLUSIVE>;
162162
};
163163

164164
main_i2c2: i2c@2020000 {
@@ -169,7 +169,7 @@
169169
#size-cells = <0>;
170170
clock-names = "fck";
171171
clocks = <&k3_clks 112 1>;
172-
power-domains = <&k3_pds 112>;
172+
power-domains = <&k3_pds 112 TI_SCI_PD_EXCLUSIVE>;
173173
};
174174

175175
main_i2c3: i2c@2030000 {
@@ -180,14 +180,14 @@
180180
#size-cells = <0>;
181181
clock-names = "fck";
182182
clocks = <&k3_clks 113 1>;
183-
power-domains = <&k3_pds 113>;
183+
power-domains = <&k3_pds 113 TI_SCI_PD_EXCLUSIVE>;
184184
};
185185

186186
ecap0: pwm@3100000 {
187187
compatible = "ti,am654-ecap", "ti,am3352-ecap";
188188
#pwm-cells = <3>;
189189
reg = <0x0 0x03100000 0x0 0x60>;
190-
power-domains = <&k3_pds 39>;
190+
power-domains = <&k3_pds 39 TI_SCI_PD_EXCLUSIVE>;
191191
clocks = <&k3_clks 39 0>;
192192
clock-names = "fck";
193193
};
@@ -197,7 +197,7 @@
197197
reg = <0x0 0x2100000 0x0 0x400>;
198198
interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
199199
clocks = <&k3_clks 137 1>;
200-
power-domains = <&k3_pds 137>;
200+
power-domains = <&k3_pds 137 TI_SCI_PD_EXCLUSIVE>;
201201
#address-cells = <1>;
202202
#size-cells = <0>;
203203
};
@@ -207,7 +207,7 @@
207207
reg = <0x0 0x2110000 0x0 0x400>;
208208
interrupts = <GIC_SPI 185 IRQ_TYPE_LEVEL_HIGH>;
209209
clocks = <&k3_clks 138 1>;
210-
power-domains = <&k3_pds 138>;
210+
power-domains = <&k3_pds 138 TI_SCI_PD_EXCLUSIVE>;
211211
#address-cells = <1>;
212212
#size-cells = <0>;
213213
assigned-clocks = <&k3_clks 137 1>;
@@ -219,7 +219,7 @@
219219
reg = <0x0 0x2120000 0x0 0x400>;
220220
interrupts = <GIC_SPI 186 IRQ_TYPE_LEVEL_HIGH>;
221221
clocks = <&k3_clks 139 1>;
222-
power-domains = <&k3_pds 139>;
222+
power-domains = <&k3_pds 139 TI_SCI_PD_EXCLUSIVE>;
223223
#address-cells = <1>;
224224
#size-cells = <0>;
225225
};
@@ -229,7 +229,7 @@
229229
reg = <0x0 0x2130000 0x0 0x400>;
230230
interrupts = <GIC_SPI 187 IRQ_TYPE_LEVEL_HIGH>;
231231
clocks = <&k3_clks 140 1>;
232-
power-domains = <&k3_pds 140>;
232+
power-domains = <&k3_pds 140 TI_SCI_PD_EXCLUSIVE>;
233233
#address-cells = <1>;
234234
#size-cells = <0>;
235235
};
@@ -239,15 +239,15 @@
239239
reg = <0x0 0x2140000 0x0 0x400>;
240240
interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
241241
clocks = <&k3_clks 141 1>;
242-
power-domains = <&k3_pds 141>;
242+
power-domains = <&k3_pds 141 TI_SCI_PD_EXCLUSIVE>;
243243
#address-cells = <1>;
244244
#size-cells = <0>;
245245
};
246246

247247
sdhci0: sdhci@4f80000 {
248248
compatible = "ti,am654-sdhci-5.1";
249249
reg = <0x0 0x4f80000 0x0 0x260>, <0x0 0x4f90000 0x0 0x134>;
250-
power-domains = <&k3_pds 47>;
250+
power-domains = <&k3_pds 47 TI_SCI_PD_EXCLUSIVE>;
251251
clocks = <&k3_clks 47 0>, <&k3_clks 47 1>;
252252
clock-names = "clk_ahb", "clk_xin";
253253
interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
@@ -306,7 +306,7 @@
306306
ranges = <0x0 0x0 0x4000000 0x20000>;
307307
interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
308308
dma-coherent;
309-
power-domains = <&k3_pds 151>;
309+
power-domains = <&k3_pds 151 TI_SCI_PD_EXCLUSIVE>;
310310
assigned-clocks = <&k3_clks 151 2>, <&k3_clks 151 7>;
311311
assigned-clock-parents = <&k3_clks 151 4>, /* set REF_CLK to 20MHz i.e. PER0_PLL/48 */
312312
<&k3_clks 151 9>; /* set PIPE3_TXB_CLK to CLK_12M_RC/256 (for HS only) */
@@ -345,7 +345,7 @@
345345
ranges = <0x0 0x0 0x4020000 0x20000>;
346346
interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>;
347347
dma-coherent;
348-
power-domains = <&k3_pds 152>;
348+
power-domains = <&k3_pds 152 TI_SCI_PD_EXCLUSIVE>;
349349
assigned-clocks = <&k3_clks 152 2>;
350350
assigned-clock-parents = <&k3_clks 152 4>; /* set REF_CLK to 20MHz i.e. PER0_PLL/48 */
351351

@@ -413,6 +413,12 @@
413413
ti,sci-rm-range-vint = <0x0>;
414414
ti,sci-rm-range-global-event = <0x1>;
415415
};
416+
417+
hwspinlock: spinlock@30e00000 {
418+
compatible = "ti,am654-hwspinlock";
419+
reg = <0x00 0x30e00000 0x00 0x1000>;
420+
#hwlock-cells = <1>;
421+
};
416422
};
417423

418424
main_gpio0: main_gpio0@600000 {
@@ -451,7 +457,7 @@
451457
compatible = "ti,am654-pcie-rc";
452458
reg = <0x0 0x5500000 0x0 0x1000>, <0x0 0x5501000 0x0 0x1000>, <0x0 0x10000000 0x0 0x2000>, <0x0 0x5506000 0x0 0x1000>;
453459
reg-names = "app", "dbics", "config", "atu";
454-
power-domains = <&k3_pds 120>;
460+
power-domains = <&k3_pds 120 TI_SCI_PD_EXCLUSIVE>;
455461
#address-cells = <3>;
456462
#size-cells = <2>;
457463
ranges = <0x81000000 0 0 0x0 0x10020000 0 0x00010000
@@ -470,7 +476,7 @@
470476
compatible = "ti,am654-pcie-ep";
471477
reg = <0x0 0x5500000 0x0 0x1000>, <0x0 0x5501000 0x0 0x1000>, <0x0 0x10000000 0x0 0x8000000>, <0x0 0x5506000 0x0 0x1000>;
472478
reg-names = "app", "dbics", "addr_space", "atu";
473-
power-domains = <&k3_pds 120>;
479+
power-domains = <&k3_pds 120 TI_SCI_PD_EXCLUSIVE>;
474480
ti,syscon-pcie-mode = <&pcie0_mode>;
475481
num-ib-windows = <16>;
476482
num-ob-windows = <16>;
@@ -483,7 +489,7 @@
483489
compatible = "ti,am654-pcie-rc";
484490
reg = <0x0 0x5600000 0x0 0x1000>, <0x0 0x5601000 0x0 0x1000>, <0x0 0x18000000 0x0 0x2000>, <0x0 0x5606000 0x0 0x1000>;
485491
reg-names = "app", "dbics", "config", "atu";
486-
power-domains = <&k3_pds 121>;
492+
power-domains = <&k3_pds 121 TI_SCI_PD_EXCLUSIVE>;
487493
#address-cells = <3>;
488494
#size-cells = <2>;
489495
ranges = <0x81000000 0 0 0x0 0x18020000 0 0x00010000
@@ -502,7 +508,7 @@
502508
compatible = "ti,am654-pcie-ep";
503509
reg = <0x0 0x5600000 0x0 0x1000>, <0x0 0x5601000 0x0 0x1000>, <0x0 0x18000000 0x0 0x4000000>, <0x0 0x5606000 0x0 0x1000>;
504510
reg-names = "app", "dbics", "addr_space", "atu";
505-
power-domains = <&k3_pds 121>;
511+
power-domains = <&k3_pds 121 TI_SCI_PD_EXCLUSIVE>;
506512
ti,syscon-pcie-mode = <&pcie1_mode>;
507513
num-ib-windows = <16>;
508514
num-ob-windows = <16>;

‎arch/arm64/boot/dts/ti/k3-am65-mcu.dtsi‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
interrupts = <GIC_SPI 565 IRQ_TYPE_LEVEL_HIGH>;
1515
clock-frequency = <96000000>;
1616
current-speed = <115200>;
17-
power-domains = <&k3_pds 149>;
17+
power-domains = <&k3_pds 149 TI_SCI_PD_EXCLUSIVE>;
1818
};
1919

2020
mcu_ram: sram@41c00000 {
@@ -33,15 +33,15 @@
3333
#size-cells = <0>;
3434
clock-names = "fck";
3535
clocks = <&k3_clks 114 1>;
36-
power-domains = <&k3_pds 114>;
36+
power-domains = <&k3_pds 114 TI_SCI_PD_EXCLUSIVE>;
3737
};
3838

3939
mcu_spi0: spi@40300000 {
4040
compatible = "ti,am654-mcspi","ti,omap4-mcspi";
4141
reg = <0x0 0x40300000 0x0 0x400>;
4242
interrupts = <GIC_SPI 560 IRQ_TYPE_LEVEL_HIGH>;
4343
clocks = <&k3_clks 142 1>;
44-
power-domains = <&k3_pds 142>;
44+
power-domains = <&k3_pds 142 TI_SCI_PD_EXCLUSIVE>;
4545
#address-cells = <1>;
4646
#size-cells = <0>;
4747
};
@@ -51,7 +51,7 @@
5151
reg = <0x0 0x40310000 0x0 0x400>;
5252
interrupts = <GIC_SPI 561 IRQ_TYPE_LEVEL_HIGH>;
5353
clocks = <&k3_clks 143 1>;
54-
power-domains = <&k3_pds 143>;
54+
power-domains = <&k3_pds 143 TI_SCI_PD_EXCLUSIVE>;
5555
#address-cells = <1>;
5656
#size-cells = <0>;
5757
};
@@ -61,7 +61,7 @@
6161
reg = <0x0 0x40320000 0x0 0x400>;
6262
interrupts = <GIC_SPI 562 IRQ_TYPE_LEVEL_HIGH>;
6363
clocks = <&k3_clks 144 1>;
64-
power-domains = <&k3_pds 144>;
64+
power-domains = <&k3_pds 144 TI_SCI_PD_EXCLUSIVE>;
6565
#address-cells = <1>;
6666
#size-cells = <0>;
6767
};

‎arch/arm64/boot/dts/ti/k3-am65-wakeup.dtsi‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
k3_pds: power-controller {
2222
compatible = "ti,sci-pm-domain";
23-
#power-domain-cells = <1>;
23+
#power-domain-cells = <2>;
2424
};
2525

2626
k3_clks: clocks {
@@ -50,7 +50,7 @@
5050
interrupts = <GIC_SPI 697 IRQ_TYPE_LEVEL_HIGH>;
5151
clock-frequency = <48000000>;
5252
current-speed = <115200>;
53-
power-domains = <&k3_pds 150>;
53+
power-domains = <&k3_pds 150 TI_SCI_PD_EXCLUSIVE>;
5454
};
5555

5656
wkup_i2c0: i2c@42120000 {
@@ -61,7 +61,7 @@
6161
#size-cells = <0>;
6262
clock-names = "fck";
6363
clocks = <&k3_clks 115 1>;
64-
power-domains = <&k3_pds 115>;
64+
power-domains = <&k3_pds 115 TI_SCI_PD_EXCLUSIVE>;
6565
};
6666

6767
intr_wkup_gpio: interrupt-controller2 {

‎arch/arm64/boot/dts/ti/k3-am65.dtsi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <dt-bindings/interrupt-controller/irq.h>
1010
#include <dt-bindings/interrupt-controller/arm-gic.h>
1111
#include <dt-bindings/pinctrl/k3.h>
12+
#include <dt-bindings/soc/ti,sci_pm_domain.h>
1213

1314
/ {
1415
model = "Texas Instruments K3 AM654 SoC";

‎arch/arm64/boot/dts/ti/k3-am654-base-board.dts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@
151151
&main_uart0 {
152152
pinctrl-names = "default";
153153
pinctrl-0 = <&main_uart0_pins_default>;
154+
power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
154155
};
155156

156157
&wkup_i2c0 {

0 commit comments

Comments
 (0)