Skip to content

Commit 77079b1

Browse files
committed
Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC fixes from Olof Johansson: "Again a set of smaller fixes across several platforms (OMAP, Marvell, Allwinner, i.MX, etc). A handful of typo fixes and smaller missing contents from device trees, with some tweaks to OMAP mach files to deal with CPU feature print misformatting, potential NULL ptr dereference and one setup issue with UARTs" * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: ipmi/bt-bmc: change compatible node to 'aspeed, ast2400-ibt-bmc' ARM: dts: STiH410-b2260: Fix typo in spi0 chipselect definition ARM: dts: omap5: board-common: fix wrong SMPS6 (VDD-DDR3) voltage ARM: omap3: Add missing memory node in SOM-LV arm64: dts: marvell: add unique identifiers for Armada A8k SPI controllers arm64: dts: marvell: fix clocksource for CP110 slave SPI0 arm64: dts: marvell: Fix typo in label name on Armada 37xx ASoC: omap-abe-twl6040: fix typo in bindings documentation dts: omap5: board-common: enable twl6040 headset jack detection dts: omap5: board-common: add phandle to reference Palmas gpadc ARM: OMAP2+: avoid NULL pointer dereference ARM: OMAP2+: PRM: initialize en_uart4_mask and grpsel_uart4_mask ARM: dts: omap3: Fix memory node in Torpedo board ARM: AM43XX: Select OMAP_INTERCONNECT in Kconfig ARM: OMAP3: Fix formatting of features printed ARM: dts: imx53-qsb: Fix regulator constraints ARM: dts: sun8i: fix the pinmux for UART1
2 parents d117b9a + 9883ed4 commit 77079b1

File tree

15 files changed

+54
-28
lines changed

15 files changed

+54
-28
lines changed

Documentation/devicetree/bindings/ipmi/aspeed,ast2400-bt-bmc.txt renamed to Documentation/devicetree/bindings/ipmi/aspeed,ast2400-ibt-bmc.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ perform in-band IPMI communication with their host.
66

77
Required properties:
88

9-
- compatible : should be "aspeed,ast2400-bt-bmc"
9+
- compatible : should be "aspeed,ast2400-ibt-bmc"
1010
- reg: physical address and size of the registers
1111

1212
Optional properties:
@@ -17,7 +17,7 @@ Optional properties:
1717
Example:
1818

1919
ibt@1e789140 {
20-
compatible = "aspeed,ast2400-bt-bmc";
20+
compatible = "aspeed,ast2400-ibt-bmc";
2121
reg = <0x1e789140 0x18>;
2222
interrupts = <8>;
2323
};

Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Required properties:
1212

1313
Optional properties:
1414
- ti,dmic: phandle for the OMAP dmic node if the machine have it connected
15-
- ti,jack_detection: Need to be present if the board capable to detect jack
15+
- ti,jack-detection: Need to be present if the board capable to detect jack
1616
insertion, removal.
1717

1818
Available audio endpoints for the audio-routing table:

arch/arm/boot/dts/imx53-qsb.dts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
};
6565

6666
ldo3_reg: ldo3 {
67-
regulator-min-microvolt = <600000>;
68-
regulator-max-microvolt = <1800000>;
67+
regulator-min-microvolt = <1725000>;
68+
regulator-max-microvolt = <3300000>;
6969
regulator-always-on;
7070
};
7171

@@ -76,8 +76,8 @@
7676
};
7777

7878
ldo5_reg: ldo5 {
79-
regulator-min-microvolt = <1725000>;
80-
regulator-max-microvolt = <3300000>;
79+
regulator-min-microvolt = <1200000>;
80+
regulator-max-microvolt = <3600000>;
8181
regulator-always-on;
8282
};
8383

@@ -100,14 +100,14 @@
100100
};
101101

102102
ldo9_reg: ldo9 {
103-
regulator-min-microvolt = <1200000>;
103+
regulator-min-microvolt = <1250000>;
104104
regulator-max-microvolt = <3600000>;
105105
regulator-always-on;
106106
};
107107

108108
ldo10_reg: ldo10 {
109-
regulator-min-microvolt = <1250000>;
110-
regulator-max-microvolt = <3650000>;
109+
regulator-min-microvolt = <1200000>;
110+
regulator-max-microvolt = <3600000>;
111111
regulator-always-on;
112112
};
113113
};

arch/arm/boot/dts/logicpd-som-lv.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
};
1414
};
1515

16+
memory@80000000 {
17+
device_type = "memory";
18+
reg = <0x80000000 0>;
19+
};
20+
1621
wl12xx_vmmc: wl12xx_vmmc {
1722
compatible = "regulator-fixed";
1823
regulator-name = "vwl1271";

arch/arm/boot/dts/logicpd-torpedo-som.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
};
1414
};
1515

16-
memory@0 {
16+
memory@80000000 {
1717
device_type = "memory";
18-
reg = <0 0>;
18+
reg = <0x80000000 0>;
1919
};
2020

2121
leds {

arch/arm/boot/dts/omap5-board-common.dtsi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@
124124
compatible = "ti,abe-twl6040";
125125
ti,model = "omap5-uevm";
126126

127+
ti,jack-detection;
127128
ti,mclk-freq = <19200000>;
128129

129130
ti,mcpdm = <&mcpdm>;
@@ -415,7 +416,7 @@
415416
ti,backup-battery-charge-high-current;
416417
};
417418

418-
gpadc {
419+
gpadc: gpadc {
419420
compatible = "ti,palmas-gpadc";
420421
interrupts = <18 0
421422
16 0
@@ -475,8 +476,8 @@
475476
smps6_reg: smps6 {
476477
/* VDD_DDR3 - over VDD_SMPS6 */
477478
regulator-name = "smps6";
478-
regulator-min-microvolt = <1200000>;
479-
regulator-max-microvolt = <1200000>;
479+
regulator-min-microvolt = <1350000>;
480+
regulator-max-microvolt = <1350000>;
480481
regulator-always-on;
481482
regulator-boot-on;
482483
};

arch/arm/boot/dts/stih410-b2260.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
/* Low speed expansion connector */
7575
spi0: spi@9844000 {
7676
label = "LS-SPI0";
77-
cs-gpio = <&pio30 3 0>;
77+
cs-gpios = <&pio30 3 0>;
7878
status = "okay";
7979
};
8080

arch/arm/boot/dts/sun8i-a23-a33.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,15 @@
282282
uart1_pins_a: uart1@0 {
283283
allwinner,pins = "PG6", "PG7";
284284
allwinner,function = "uart1";
285+
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
286+
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
285287
};
286288

287289
uart1_pins_cts_rts_a: uart1-cts-rts@0 {
288290
allwinner,pins = "PG8", "PG9";
289291
allwinner,function = "uart1";
292+
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
293+
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
290294
};
291295

292296
mmc0_pins_a: mmc0@0 {

arch/arm/mach-omap2/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ config SOC_AM43XX
7171
select HAVE_ARM_TWD
7272
select ARM_ERRATA_754322
7373
select ARM_ERRATA_775420
74+
select OMAP_INTERCONNECT
7475

7576
config SOC_DRA7XX
7677
bool "TI DRA7XX"

arch/arm/mach-omap2/id.c

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,15 @@ void __init omap2xxx_check_revision(void)
205205

206206
#define OMAP3_SHOW_FEATURE(feat) \
207207
if (omap3_has_ ##feat()) \
208-
printk(#feat" ");
208+
n += scnprintf(buf + n, sizeof(buf) - n, #feat " ");
209209

210210
static void __init omap3_cpuinfo(void)
211211
{
212212
const char *cpu_name;
213+
char buf[64];
214+
int n = 0;
215+
216+
memset(buf, 0, sizeof(buf));
213217

214218
/*
215219
* OMAP3430 and OMAP3530 are assumed to be same.
@@ -241,19 +245,21 @@ static void __init omap3_cpuinfo(void)
241245
cpu_name = "OMAP3503";
242246
}
243247

244-
sprintf(soc_name, "%s", cpu_name);
248+
scnprintf(soc_name, sizeof(soc_name), "%s", cpu_name);
245249

246250
/* Print verbose information */
247-
pr_info("%s %s (", soc_name, soc_rev);
251+
n += scnprintf(buf, sizeof(buf) - n, "%s %s (", soc_name, soc_rev);
248252

249253
OMAP3_SHOW_FEATURE(l2cache);
250254
OMAP3_SHOW_FEATURE(iva);
251255
OMAP3_SHOW_FEATURE(sgx);
252256
OMAP3_SHOW_FEATURE(neon);
253257
OMAP3_SHOW_FEATURE(isp);
254258
OMAP3_SHOW_FEATURE(192mhz_clk);
255-
256-
printk(")\n");
259+
if (*(buf + n - 1) == ' ')
260+
n--;
261+
n += scnprintf(buf + n, sizeof(buf) - n, ")\n");
262+
pr_info("%s", buf);
257263
}
258264

259265
#define OMAP3_CHECK_FEATURE(status,feat) \

arch/arm/mach-omap2/prm3xxx.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,9 @@ void __init omap3_prm_init_pm(bool has_uart4, bool has_iva)
319319
if (has_uart4) {
320320
en_uart4_mask = OMAP3630_EN_UART4_MASK;
321321
grpsel_uart4_mask = OMAP3630_GRPSEL_UART4_MASK;
322+
} else {
323+
en_uart4_mask = 0;
324+
grpsel_uart4_mask = 0;
322325
}
323326

324327
/* Enable wakeups in PER */

arch/arm/mach-omap2/voltage.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ int voltdm_scale(struct voltagedomain *voltdm,
8787
return -ENODATA;
8888
}
8989

90+
if (!voltdm->volt_data) {
91+
pr_err("%s: No voltage data defined for vdd_%s\n",
92+
__func__, voltdm->name);
93+
return -ENODATA;
94+
}
95+
9096
/* Adjust voltage to the exact voltage from the OPP table */
9197
for (i = 0; voltdm->volt_data[i].volt_nominal != 0; i++) {
9298
if (voltdm->volt_data[i].volt_nominal >= target_volt) {

arch/arm64/boot/dts/marvell/armada-37xx.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@
105105
status = "disabled";
106106
};
107107

108-
nb_perih_clk: nb-periph-clk@13000{
108+
nb_periph_clk: nb-periph-clk@13000 {
109109
compatible = "marvell,armada-3700-periph-clock-nb";
110110
reg = <0x13000 0x100>;
111111
clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>,
112112
<&tbg 3>, <&xtalclk>;
113113
#clock-cells = <1>;
114114
};
115115

116-
sb_perih_clk: sb-periph-clk@18000{
116+
sb_periph_clk: sb-periph-clk@18000 {
117117
compatible = "marvell,armada-3700-periph-clock-sb";
118118
reg = <0x18000 0x100>;
119119
clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>,

arch/arm64/boot/dts/marvell/armada-cp110-slave.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130
reg = <0x700600 0x50>;
131131
#address-cells = <0x1>;
132132
#size-cells = <0x0>;
133-
cell-index = <1>;
134-
clocks = <&cps_syscon0 0 3>;
133+
cell-index = <3>;
134+
clocks = <&cps_syscon0 1 21>;
135135
status = "disabled";
136136
};
137137

@@ -140,7 +140,7 @@
140140
reg = <0x700680 0x50>;
141141
#address-cells = <1>;
142142
#size-cells = <0>;
143-
cell-index = <2>;
143+
cell-index = <4>;
144144
clocks = <&cps_syscon0 1 21>;
145145
status = "disabled";
146146
};

drivers/char/ipmi/bt-bmc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ static int bt_bmc_remove(struct platform_device *pdev)
484484
}
485485

486486
static const struct of_device_id bt_bmc_match[] = {
487-
{ .compatible = "aspeed,ast2400-bt-bmc" },
487+
{ .compatible = "aspeed,ast2400-ibt-bmc" },
488488
{ },
489489
};
490490

@@ -502,4 +502,4 @@ module_platform_driver(bt_bmc_driver);
502502
MODULE_DEVICE_TABLE(of, bt_bmc_match);
503503
MODULE_LICENSE("GPL");
504504
MODULE_AUTHOR("Alistair Popple <[email protected]>");
505-
MODULE_DESCRIPTION("Linux device interface to the BT interface");
505+
MODULE_DESCRIPTION("Linux device interface to the IPMI BT interface");

0 commit comments

Comments
 (0)