Skip to content

Commit 52cad4b

Browse files
committed
Merge tag 'omap-for-v4.9/fixes-for-rc-cycle' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
Fixes for omaps for v4.9-rc cycle. Except for the omap3 fix for the SoC features printed, all these are quite trivial and tiny. The omap5 jack detection and gpadc patches are not strictly fixes, but I wanted to get binding document typo fixed before it pops up on other boards. The gpadc one liner was in the same series and I applied and pushed it out already before noticing it could have waited. The list of changes is: - Fix omap3 SoC features printed - Make sure OMAP_INTERCONNECT is selected for am43xx only configurations - Add missing memory node for torpedo - Initialize uart4_mask properly to avoid writing garbage to PRM registers - Fix NULL pointer dereference for omap4 volt_data - Add alias for omap5 gpadc needed by iio drivers - Enable omap5 jack headset jack detection and fix it's binding typo - Add missing memory node for logicpd-som-lv - Fix wrong SMPS6 voltage for VDD-DDR3 for omap5 * tag 'omap-for-v4.9/fixes-for-rc-cycle' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: dts: omap5: board-common: fix wrong SMPS6 (VDD-DDR3) voltage ARM: omap3: Add missing memory node in SOM-LV 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 Signed-off-by: Olof Johansson <[email protected]>
2 parents fbcdf68 + 1bc2f5f commit 52cad4b

File tree

8 files changed

+33
-11
lines changed

8 files changed

+33
-11
lines changed

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/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/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) {

0 commit comments

Comments
 (0)