Skip to content

Commit e1915c8

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 Arnd Bergmann: "Fixes this time include mostly device tree changes, as usual, the notable ones include: - A number of patches to fix most of the remaining DTC warnings that got introduced when DTC started warning about some obvious mistakes. We still have some remaining warnings that probably may have to wait until 4.16 to get fixed while we try to figure out what the correct contents should be. - On Allwinner A64, Ethernet PHYs need a fix after a mistake in coordination between patches merged through multiple branches. - Various fixes for PMICs on allwinner based boards - Two fixes for ethernet link detection on some Renesas machines - Two stability fixes for rockchip based boards Aside from device-tree, two other areas got fixes for older problems: - For TI Davinci DM365, a couple of fixes were needed to repair the MMC DMA engine support, apparently this has been broken for a while. - One important fix for all Allwinner chips with the PMIC driver as a loadable module" * tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (23 commits) arm64: dts: uniphier: fix gpio-ranges property of PXs3 SoC arm64: dts: renesas: ulcb: Remove renesas, no-ether-link property arm64: dts: renesas: salvator-x: Remove renesas, no-ether-link property ARM: dts: tango4: remove bogus interrupt-controller property ARM: dts: ls1021a: fix incorrect clock references ARM: dts: aspeed-g4: Correct VUART IRQ number ARM: dts: exynos: Enable Mixer node for Exynos5800 Peach Pi machine ARM: dts: sun8i: a711: Reinstate the PMIC compatible ARM: davinci: fix mmc entries in dm365's dma_slave_map ARM: dts: da850-lego-ev3: Fix battery voltage gpio ARM: davinci: Add dma_mask to dm365's eDMA device ARM: davinci: Use platform_device_register_full() to create pdev for dm365's eDMA arm64: dts: rockchip: limit rk3328-rock64 gmac speed to 100MBit for now arm64: dts: rockchip: remove vdd_log from rk3399-puma arm64: dts: orange-pi-zero-plus2: fix sdcard detect arm64: allwinner: a64-sopine: Fix to use dcdc1 regulator instead of vcc3v3 ARM: dts: sunxi: Convert to CCU index macros for HDMI controller sunxi-rsb: Include OF based modalias in device uevent ARM: dts: at91: disable the nxp,se97b SMBUS timeout on the TSE-850 arm64: dts: rockchip: fix trailing 0 in rk3328 tsadc interrupts ...
2 parents 00a5ae2 + abb62c4 commit e1915c8

27 files changed

+54
-54
lines changed

arch/arm/boot/dts/aspeed-g4.dtsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
compatible = "aspeed,ast2400-vuart";
220220
reg = <0x1e787000 0x40>;
221221
reg-shift = <2>;
222-
interrupts = <10>;
222+
interrupts = <8>;
223223
clocks = <&clk_uart>;
224224
no-loopback-test;
225225
status = "disabled";

arch/arm/boot/dts/at91-tse850-3.dts

+1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@
221221
jc42@18 {
222222
compatible = "nxp,se97b", "jedec,jc-42.4-temp";
223223
reg = <0x18>;
224+
smbus-timeout-disable;
224225
};
225226

226227
dpot: mcp4651-104@28 {

arch/arm/boot/dts/da850-lego-ev3.dts

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
*/
179179
battery {
180180
pinctrl-names = "default";
181-
pintctrl-0 = <&battery_pins>;
181+
pinctrl-0 = <&battery_pins>;
182182
compatible = "lego,ev3-battery";
183183
io-channels = <&adc 4>, <&adc 3>;
184184
io-channel-names = "voltage", "current";
@@ -392,7 +392,7 @@
392392
batt_volt_en {
393393
gpio-hog;
394394
gpios = <6 GPIO_ACTIVE_HIGH>;
395-
output-low;
395+
output-high;
396396
};
397397
};
398398

arch/arm/boot/dts/exynos5800-peach-pi.dts

+4
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,10 @@
664664
status = "okay";
665665
};
666666

667+
&mixer {
668+
status = "okay";
669+
};
670+
667671
/* eMMC flash */
668672
&mmc_0 {
669673
status = "okay";

arch/arm/boot/dts/ls1021a-qds.dts

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
reg = <0x2a>;
216216
VDDA-supply = <&reg_3p3v>;
217217
VDDIO-supply = <&reg_3p3v>;
218-
clocks = <&sys_mclk 1>;
218+
clocks = <&sys_mclk>;
219219
};
220220
};
221221
};

arch/arm/boot/dts/ls1021a-twr.dts

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
reg = <0x0a>;
188188
VDDA-supply = <&reg_3p3v>;
189189
VDDIO-supply = <&reg_3p3v>;
190-
clocks = <&sys_mclk 1>;
190+
clocks = <&sys_mclk>;
191191
};
192192
};
193193

arch/arm/boot/dts/rk3066a-marsboard.dts

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@
8383
};
8484
};
8585

86+
&cpu0 {
87+
cpu0-supply = <&vdd_arm>;
88+
};
89+
8690
&i2c1 {
8791
status = "okay";
8892
clock-frequency = <400000>;

arch/arm/boot/dts/rk3288.dtsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@
956956
iep_mmu: iommu@ff900800 {
957957
compatible = "rockchip,iommu";
958958
reg = <0x0 0xff900800 0x0 0x40>;
959-
interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
959+
interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
960960
interrupt-names = "iep_mmu";
961961
#iommu-cells = <0>;
962962
status = "disabled";

arch/arm/boot/dts/sun4i-a10.dtsi

+2-2
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@
502502
reg = <0x01c16000 0x1000>;
503503
interrupts = <58>;
504504
clocks = <&ccu CLK_AHB_HDMI0>, <&ccu CLK_HDMI>,
505-
<&ccu 9>,
506-
<&ccu 18>;
505+
<&ccu CLK_PLL_VIDEO0_2X>,
506+
<&ccu CLK_PLL_VIDEO1_2X>;
507507
clock-names = "ahb", "mod", "pll-0", "pll-1";
508508
dmas = <&dma SUN4I_DMA_NORMAL 16>,
509509
<&dma SUN4I_DMA_NORMAL 16>,

arch/arm/boot/dts/sun5i-a10s.dtsi

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
reg = <0x01c16000 0x1000>;
8383
interrupts = <58>;
8484
clocks = <&ccu CLK_AHB_HDMI>, <&ccu CLK_HDMI>,
85-
<&ccu 9>,
86-
<&ccu 16>;
85+
<&ccu CLK_PLL_VIDEO0_2X>,
86+
<&ccu CLK_PLL_VIDEO1_2X>;
8787
clock-names = "ahb", "mod", "pll-0", "pll-1";
8888
dmas = <&dma SUN4I_DMA_NORMAL 16>,
8989
<&dma SUN4I_DMA_NORMAL 16>,

arch/arm/boot/dts/sun6i-a31.dtsi

+2-2
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@
429429
interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
430430
clocks = <&ccu CLK_AHB1_HDMI>, <&ccu CLK_HDMI>,
431431
<&ccu CLK_HDMI_DDC>,
432-
<&ccu 7>,
433-
<&ccu 13>;
432+
<&ccu CLK_PLL_VIDEO0_2X>,
433+
<&ccu CLK_PLL_VIDEO1_2X>;
434434
clock-names = "ahb", "mod", "ddc", "pll-0", "pll-1";
435435
resets = <&ccu RST_AHB1_HDMI>;
436436
reset-names = "ahb";

arch/arm/boot/dts/sun7i-a20.dtsi

+2-2
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,8 @@
581581
reg = <0x01c16000 0x1000>;
582582
interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
583583
clocks = <&ccu CLK_AHB_HDMI0>, <&ccu CLK_HDMI>,
584-
<&ccu 9>,
585-
<&ccu 18>;
584+
<&ccu CLK_PLL_VIDEO0_2X>,
585+
<&ccu CLK_PLL_VIDEO1_2X>;
586586
clock-names = "ahb", "mod", "pll-0", "pll-1";
587587
dmas = <&dma SUN4I_DMA_NORMAL 16>,
588588
<&dma SUN4I_DMA_NORMAL 16>,

arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@
146146
status = "okay";
147147

148148
axp81x: pmic@3a3 {
149+
compatible = "x-powers,axp813";
149150
reg = <0x3a3>;
150151
interrupt-parent = <&r_intc>;
151152
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;

arch/arm/boot/dts/tango4-common.dtsi

-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@
156156
reg = <0x6e000 0x400>;
157157
ranges = <0 0x6e000 0x400>;
158158
interrupt-parent = <&gic>;
159-
interrupt-controller;
160159
#address-cells = <1>;
161160
#size-cells = <1>;
162161

arch/arm/mach-davinci/dm365.c

+18-11
Original file line numberDiff line numberDiff line change
@@ -868,10 +868,10 @@ static const struct dma_slave_map dm365_edma_map[] = {
868868
{ "spi_davinci.0", "rx", EDMA_FILTER_PARAM(0, 17) },
869869
{ "spi_davinci.3", "tx", EDMA_FILTER_PARAM(0, 18) },
870870
{ "spi_davinci.3", "rx", EDMA_FILTER_PARAM(0, 19) },
871-
{ "dm6441-mmc.0", "rx", EDMA_FILTER_PARAM(0, 26) },
872-
{ "dm6441-mmc.0", "tx", EDMA_FILTER_PARAM(0, 27) },
873-
{ "dm6441-mmc.1", "rx", EDMA_FILTER_PARAM(0, 30) },
874-
{ "dm6441-mmc.1", "tx", EDMA_FILTER_PARAM(0, 31) },
871+
{ "da830-mmc.0", "rx", EDMA_FILTER_PARAM(0, 26) },
872+
{ "da830-mmc.0", "tx", EDMA_FILTER_PARAM(0, 27) },
873+
{ "da830-mmc.1", "rx", EDMA_FILTER_PARAM(0, 30) },
874+
{ "da830-mmc.1", "tx", EDMA_FILTER_PARAM(0, 31) },
875875
};
876876

877877
static struct edma_soc_info dm365_edma_pdata = {
@@ -925,12 +925,14 @@ static struct resource edma_resources[] = {
925925
/* not using TC*_ERR */
926926
};
927927

928-
static struct platform_device dm365_edma_device = {
929-
.name = "edma",
930-
.id = 0,
931-
.dev.platform_data = &dm365_edma_pdata,
932-
.num_resources = ARRAY_SIZE(edma_resources),
933-
.resource = edma_resources,
928+
static const struct platform_device_info dm365_edma_device __initconst = {
929+
.name = "edma",
930+
.id = 0,
931+
.dma_mask = DMA_BIT_MASK(32),
932+
.res = edma_resources,
933+
.num_res = ARRAY_SIZE(edma_resources),
934+
.data = &dm365_edma_pdata,
935+
.size_data = sizeof(dm365_edma_pdata),
934936
};
935937

936938
static struct resource dm365_asp_resources[] = {
@@ -1428,13 +1430,18 @@ int __init dm365_init_video(struct vpfe_config *vpfe_cfg,
14281430

14291431
static int __init dm365_init_devices(void)
14301432
{
1433+
struct platform_device *edma_pdev;
14311434
int ret = 0;
14321435

14331436
if (!cpu_is_davinci_dm365())
14341437
return 0;
14351438

14361439
davinci_cfg_reg(DM365_INT_EDMA_CC);
1437-
platform_device_register(&dm365_edma_device);
1440+
edma_pdev = platform_device_register_full(&dm365_edma_device);
1441+
if (IS_ERR(edma_pdev)) {
1442+
pr_warn("%s: Failed to register eDMA\n", __func__);
1443+
return PTR_ERR(edma_pdev);
1444+
}
14381445

14391446
platform_device_register(&dm365_mdio_device);
14401447
platform_device_register(&dm365_emac_device);

arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
pinctrl-0 = <&rgmii_pins>;
7676
phy-mode = "rgmii";
7777
phy-handle = <&ext_rgmii_phy>;
78+
phy-supply = <&reg_dc1sw>;
7879
status = "okay";
7980
};
8081

arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
pinctrl-0 = <&rmii_pins>;
7878
phy-mode = "rmii";
7979
phy-handle = <&ext_rmii_phy1>;
80+
phy-supply = <&reg_dc1sw>;
8081
status = "okay";
8182

8283
};

arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
pinctrl-0 = <&rgmii_pins>;
8383
phy-mode = "rgmii";
8484
phy-handle = <&ext_rgmii_phy>;
85+
phy-supply = <&reg_dc1sw>;
8586
status = "okay";
8687
};
8788

@@ -95,7 +96,7 @@
9596
&mmc2 {
9697
pinctrl-names = "default";
9798
pinctrl-0 = <&mmc2_pins>;
98-
vmmc-supply = <&reg_vcc3v3>;
99+
vmmc-supply = <&reg_dcdc1>;
99100
vqmmc-supply = <&reg_vcc1v8>;
100101
bus-width = <8>;
101102
non-removable;

arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi

+1-10
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,10 @@
4545

4646
#include "sun50i-a64.dtsi"
4747

48-
/ {
49-
reg_vcc3v3: vcc3v3 {
50-
compatible = "regulator-fixed";
51-
regulator-name = "vcc3v3";
52-
regulator-min-microvolt = <3300000>;
53-
regulator-max-microvolt = <3300000>;
54-
};
55-
};
56-
5748
&mmc0 {
5849
pinctrl-names = "default";
5950
pinctrl-0 = <&mmc0_pins>;
60-
vmmc-supply = <&reg_vcc3v3>;
51+
vmmc-supply = <&reg_dcdc1>;
6152
non-removable;
6253
disable-wp;
6354
bus-width = <4>;

arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
7272
vmmc-supply = <&reg_vcc3v3>;
7373
bus-width = <4>;
74-
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
74+
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
7575
status = "okay";
7676
};
7777

arch/arm64/boot/dts/renesas/salvator-common.dtsi

-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@
255255
&avb {
256256
pinctrl-0 = <&avb_pins>;
257257
pinctrl-names = "default";
258-
renesas,no-ether-link;
259258
phy-handle = <&phy0>;
260259
status = "okay";
261260

arch/arm64/boot/dts/renesas/ulcb.dtsi

-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@
145145
&avb {
146146
pinctrl-0 = <&avb_pins>;
147147
pinctrl-names = "default";
148-
renesas,no-ether-link;
149148
phy-handle = <&phy0>;
150149
status = "okay";
151150

arch/arm64/boot/dts/rockchip/rk3328-rock64.dts

+2
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
133133
assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
134134
clock_in_out = "input";
135+
/* shows instability at 1GBit right now */
136+
max-speed = <100>;
135137
phy-supply = <&vcc_io>;
136138
phy-mode = "rgmii";
137139
pinctrl-names = "default";

arch/arm64/boot/dts/rockchip/rk3328.dtsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@
514514
tsadc: tsadc@ff250000 {
515515
compatible = "rockchip,rk3328-tsadc";
516516
reg = <0x0 0xff250000 0x0 0x100>;
517-
interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
517+
interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
518518
assigned-clocks = <&cru SCLK_TSADC>;
519519
assigned-clock-rates = <50000>;
520520
clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;

arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi

-11
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,6 @@
155155
regulator-min-microvolt = <5000000>;
156156
regulator-max-microvolt = <5000000>;
157157
};
158-
159-
vdd_log: vdd-log {
160-
compatible = "pwm-regulator";
161-
pwms = <&pwm2 0 25000 0>;
162-
regulator-name = "vdd_log";
163-
regulator-min-microvolt = <800000>;
164-
regulator-max-microvolt = <1400000>;
165-
regulator-always-on;
166-
regulator-boot-on;
167-
status = "okay";
168-
};
169158
};
170159

171160
&cpu_b0 {

arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi

+2-2
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@
198198
gpio-controller;
199199
#gpio-cells = <2>;
200200
gpio-ranges = <&pinctrl 0 0 0>,
201-
<&pinctrl 96 0 0>,
202-
<&pinctrl 160 0 0>;
201+
<&pinctrl 104 0 0>,
202+
<&pinctrl 168 0 0>;
203203
gpio-ranges-group-names = "gpio_range0",
204204
"gpio_range1",
205205
"gpio_range2";

drivers/bus/sunxi-rsb.c

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ static struct bus_type sunxi_rsb_bus = {
178178
.match = sunxi_rsb_device_match,
179179
.probe = sunxi_rsb_device_probe,
180180
.remove = sunxi_rsb_device_remove,
181+
.uevent = of_device_uevent_modalias,
181182
};
182183

183184
static void sunxi_rsb_dev_release(struct device *dev)

0 commit comments

Comments
 (0)