Skip to content

Commit c983f10

Browse files
committed
Merge tag 'omap-for-v5.1/fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into arm/fixes
Fixes for omaps for v5.1-rc cycle Few small fixes for omap variants: - Fix ams-delta gpio IDs - Add missing of_node_put for omapdss platform init code - Fix unconfigured audio regulators for two am335x boards - Fix use of wrong offset for am335x d_can clocks * tag 'omap-for-v5.1/fixes-signed' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: ARM: dts: Fix dcan clkctrl clock for am3 ARM: dts: am335x-evmsk: Correct the regulators for the audio codec ARM: dts: am335x-evm: Correct the regulators for the audio codec ARM: OMAP2+: add missing of_node_put after of_device_is_available ARM: OMAP1: ams-delta: Fix broken GPIO ID allocation Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents fccf516 + 8171728 commit c983f10

File tree

5 files changed

+51
-11
lines changed

5 files changed

+51
-11
lines changed

arch/arm/boot/dts/am335x-evm.dts

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,24 @@
5757
enable-active-high;
5858
};
5959

60+
/* TPS79501 */
61+
v1_8d_reg: fixedregulator-v1_8d {
62+
compatible = "regulator-fixed";
63+
regulator-name = "v1_8d";
64+
vin-supply = <&vbat>;
65+
regulator-min-microvolt = <1800000>;
66+
regulator-max-microvolt = <1800000>;
67+
};
68+
69+
/* TPS79501 */
70+
v3_3d_reg: fixedregulator-v3_3d {
71+
compatible = "regulator-fixed";
72+
regulator-name = "v3_3d";
73+
vin-supply = <&vbat>;
74+
regulator-min-microvolt = <3300000>;
75+
regulator-max-microvolt = <3300000>;
76+
};
77+
6078
matrix_keypad: matrix_keypad0 {
6179
compatible = "gpio-matrix-keypad";
6280
debounce-delay-ms = <5>;
@@ -499,10 +517,10 @@
499517
status = "okay";
500518

501519
/* Regulators */
502-
AVDD-supply = <&vaux2_reg>;
503-
IOVDD-supply = <&vaux2_reg>;
504-
DRVDD-supply = <&vaux2_reg>;
505-
DVDD-supply = <&vbat>;
520+
AVDD-supply = <&v3_3d_reg>;
521+
IOVDD-supply = <&v3_3d_reg>;
522+
DRVDD-supply = <&v3_3d_reg>;
523+
DVDD-supply = <&v1_8d_reg>;
506524
};
507525
};
508526

arch/arm/boot/dts/am335x-evmsk.dts

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,24 @@
7373
enable-active-high;
7474
};
7575

76+
/* TPS79518 */
77+
v1_8d_reg: fixedregulator-v1_8d {
78+
compatible = "regulator-fixed";
79+
regulator-name = "v1_8d";
80+
vin-supply = <&vbat>;
81+
regulator-min-microvolt = <1800000>;
82+
regulator-max-microvolt = <1800000>;
83+
};
84+
85+
/* TPS78633 */
86+
v3_3d_reg: fixedregulator-v3_3d {
87+
compatible = "regulator-fixed";
88+
regulator-name = "v3_3d";
89+
vin-supply = <&vbat>;
90+
regulator-min-microvolt = <3300000>;
91+
regulator-max-microvolt = <3300000>;
92+
};
93+
7694
leds {
7795
pinctrl-names = "default";
7896
pinctrl-0 = <&user_leds_s0>;
@@ -501,10 +519,10 @@
501519
status = "okay";
502520

503521
/* Regulators */
504-
AVDD-supply = <&vaux2_reg>;
505-
IOVDD-supply = <&vaux2_reg>;
506-
DRVDD-supply = <&vaux2_reg>;
507-
DVDD-supply = <&vbat>;
522+
AVDD-supply = <&v3_3d_reg>;
523+
IOVDD-supply = <&v3_3d_reg>;
524+
DRVDD-supply = <&v3_3d_reg>;
525+
DVDD-supply = <&v1_8d_reg>;
508526
};
509527
};
510528

arch/arm/boot/dts/am33xx-l4.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,7 @@
17621762
reg = <0xcc000 0x4>;
17631763
reg-names = "rev";
17641764
/* Domains (P, C): per_pwrdm, l4ls_clkdm */
1765-
clocks = <&l4ls_clkctrl AM3_D_CAN0_CLKCTRL 0>;
1765+
clocks = <&l4ls_clkctrl AM3_L4LS_D_CAN0_CLKCTRL 0>;
17661766
clock-names = "fck";
17671767
#address-cells = <1>;
17681768
#size-cells = <1>;
@@ -1785,7 +1785,7 @@
17851785
reg = <0xd0000 0x4>;
17861786
reg-names = "rev";
17871787
/* Domains (P, C): per_pwrdm, l4ls_clkdm */
1788-
clocks = <&l4ls_clkctrl AM3_D_CAN1_CLKCTRL 0>;
1788+
clocks = <&l4ls_clkctrl AM3_L4LS_D_CAN1_CLKCTRL 0>;
17891789
clock-names = "fck";
17901790
#address-cells = <1>;
17911791
#size-cells = <1>;

arch/arm/mach-omap1/board-ams-delta.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ static struct resource latch1_resources[] = {
182182

183183
static struct bgpio_pdata latch1_pdata = {
184184
.label = LATCH1_LABEL,
185+
.base = -1,
185186
.ngpio = LATCH1_NGPIO,
186187
};
187188

@@ -219,6 +220,7 @@ static struct resource latch2_resources[] = {
219220

220221
static struct bgpio_pdata latch2_pdata = {
221222
.label = LATCH2_LABEL,
223+
.base = -1,
222224
.ngpio = LATCH2_NGPIO,
223225
};
224226

arch/arm/mach-omap2/display.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,10 @@ static int __init omapdss_init_of(void)
250250
if (!node)
251251
return 0;
252252

253-
if (!of_device_is_available(node))
253+
if (!of_device_is_available(node)) {
254+
of_node_put(node);
254255
return 0;
256+
}
255257

256258
pdev = of_find_device_by_node(node);
257259

0 commit comments

Comments
 (0)