Skip to content

Commit a3bedd2

Browse files
committed
Merge tag 'imx-fixes-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes
i.MX fixes for 6.0: - Remove superfluous interrupt-names from imx8mq-tqma8mq RTC device to silence dtbs_check warning. - A few Verdin board fixes on CAN clock frequency, mcp251xfd interrupt, atmel_mxt_ts reset polarity and USB PHY. - Remove duplicated node and fix spi-flash compatible for imx6qdl-kontron-samx6i. - A couple of i.MX8M Plus DHCOM fixes from Marek Vasut on ECSPI1 pinmux and I2C5 GPIO assignment. - A couple of Venice fixes on SAI2 pin settings and phy-mode. - Drop in-band autoneg for 2500base-x phy-mode on ls1028a-qds-65bb board. - Revert the power device name setting change from imx8m-blk-ctrl driver, as it causes issue for sysfs cleanup path. - Fix gpcv2 driver to assert reset before ungating clock. * tag 'imx-fixes-6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: arm64: dts: freescale: verdin-imx8mp: fix atmel_mxt_ts reset polarity arm64: dts: freescale: verdin-imx8mm: fix atmel_mxt_ts reset polarity arm64: dts: imx8mp: Fix I2C5 GPIO assignment on i.MX8M Plus DHCOM arm64: dts: imx8mm-venice-gw7901: fix port/phy validation arm64: dts: verdin-imx8mm: add otg2 pd to usbphy soc: imx: gpcv2: Assert reset before ungating clock arm64: dts: ls1028a-qds-65bb: don't use in-band autoneg for 2500base-x ARM: dts: imx6qdl-kontron-samx6i: fix spi-flash compatible ARM: dts: imx6qdl-kontron-samx6i: remove duplicated node ARM: dts: imx6qdl-vicut1.dtsi: Fix node name backlight_led arm64: dts: imx8mq-tqma8mq: Remove superfluous interrupt-names arm64: dts: imx8mp: Adjust ECSPI1 pinmux on i.MX8M Plus DHCOM arm64: dts: imx8mp-venice-gw74xx: fix sai2 pin settings arm64: dts: imx8mm-verdin: use level interrupt for mcp251xfd arm64: dts: imx8mm-verdin: update CAN clock to 40MHz Revert "soc: imx: imx8m-blk-ctrl: set power device name" Link: https://lore.kernel.org/r/20220823092631.GV149610@dragon Signed-off-by: Arnd Bergmann <[email protected]>
2 parents c3069e8 + 8f143b9 commit a3bedd2

File tree

11 files changed

+29
-34
lines changed

11 files changed

+29
-34
lines changed

arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@
5151
vin-supply = <&reg_3p3v_s5>;
5252
};
5353

54-
reg_3p3v_s0: regulator-3p3v-s0 {
55-
compatible = "regulator-fixed";
56-
regulator-name = "V_3V3_S0";
57-
regulator-min-microvolt = <3300000>;
58-
regulator-max-microvolt = <3300000>;
59-
regulator-always-on;
60-
regulator-boot-on;
61-
vin-supply = <&reg_3p3v_s5>;
62-
};
63-
6454
reg_3p3v_s5: regulator-3p3v-s5 {
6555
compatible = "regulator-fixed";
6656
regulator-name = "V_3V3_S5";
@@ -259,7 +249,7 @@
259249

260250
/* default boot source: workaround #1 for errata ERR006282 */
261251
smarc_flash: flash@0 {
262-
compatible = "winbond,w25q16dw", "jedec,spi-nor";
252+
compatible = "jedec,spi-nor";
263253
reg = <0>;
264254
spi-max-frequency = <20000000>;
265255
};

arch/arm/boot/dts/imx6qdl-vicut1.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
enable-gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
2929
};
3030

31-
backlight_led: backlight_led {
31+
backlight_led: backlight-led {
3232
compatible = "pwm-backlight";
3333
pwms = <&pwm3 0 5000000 0>;
3434
brightness-levels = <0 16 64 255>;

arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-65bb.dts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
&enetc_port0 {
2626
phy-handle = <&slot1_sgmii>;
2727
phy-mode = "2500base-x";
28-
managed = "in-band-status";
2928
status = "okay";
3029
};
3130

arch/arm64/boot/dts/freescale/imx8mm-venice-gw7901.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,24 +626,28 @@
626626
lan1: port@0 {
627627
reg = <0>;
628628
label = "lan1";
629+
phy-mode = "internal";
629630
local-mac-address = [00 00 00 00 00 00];
630631
};
631632

632633
lan2: port@1 {
633634
reg = <1>;
634635
label = "lan2";
636+
phy-mode = "internal";
635637
local-mac-address = [00 00 00 00 00 00];
636638
};
637639

638640
lan3: port@2 {
639641
reg = <2>;
640642
label = "lan3";
643+
phy-mode = "internal";
641644
local-mac-address = [00 00 00 00 00 00];
642645
};
643646

644647
lan4: port@3 {
645648
reg = <3>;
646649
label = "lan4";
650+
phy-mode = "internal";
647651
local-mac-address = [00 00 00 00 00 00];
648652
};
649653

arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
};
3333

3434
/* Fixed clock dedicated to SPI CAN controller */
35-
clk20m: oscillator {
35+
clk40m: oscillator {
3636
compatible = "fixed-clock";
3737
#clock-cells = <0>;
38-
clock-frequency = <20000000>;
38+
clock-frequency = <40000000>;
3939
};
4040

4141
gpio-keys {
@@ -202,8 +202,8 @@
202202

203203
can1: can@0 {
204204
compatible = "microchip,mcp251xfd";
205-
clocks = <&clk20m>;
206-
interrupts-extended = <&gpio1 6 IRQ_TYPE_EDGE_FALLING>;
205+
clocks = <&clk40m>;
206+
interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_LOW>;
207207
pinctrl-names = "default";
208208
pinctrl-0 = <&pinctrl_can1_int>;
209209
reg = <0>;
@@ -603,7 +603,7 @@
603603
pinctrl-0 = <&pinctrl_gpio_9_dsi>, <&pinctrl_i2s_2_bclk_touch_reset>;
604604
reg = <0x4a>;
605605
/* Verdin I2S_2_BCLK (TOUCH_RESET#, SODIMM 42) */
606-
reset-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
606+
reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
607607
status = "disabled";
608608
};
609609

@@ -745,6 +745,7 @@
745745
};
746746

747747
&usbphynop2 {
748+
power-domains = <&pgc_otg2>;
748749
vcc-supply = <&reg_vdd_3v3>;
749750
};
750751

arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
&ecspi1 {
7171
pinctrl-names = "default";
7272
pinctrl-0 = <&pinctrl_ecspi1>;
73-
cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
73+
cs-gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
7474
status = "disabled";
7575
};
7676

@@ -403,8 +403,8 @@
403403
pinctrl-names = "default", "gpio";
404404
pinctrl-0 = <&pinctrl_i2c5>;
405405
pinctrl-1 = <&pinctrl_i2c5_gpio>;
406-
scl-gpios = <&gpio5 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
407-
sda-gpios = <&gpio5 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
406+
scl-gpios = <&gpio3 26 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
407+
sda-gpios = <&gpio3 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
408408
status = "okay";
409409
};
410410

@@ -648,10 +648,10 @@
648648

649649
pinctrl_ecspi1: dhcom-ecspi1-grp {
650650
fsl,pins = <
651-
MX8MP_IOMUXC_ECSPI1_SCLK__ECSPI1_SCLK 0x44
652-
MX8MP_IOMUXC_ECSPI1_MOSI__ECSPI1_MOSI 0x44
653-
MX8MP_IOMUXC_ECSPI1_MISO__ECSPI1_MISO 0x44
654-
MX8MP_IOMUXC_ECSPI1_SS0__GPIO5_IO09 0x40
651+
MX8MP_IOMUXC_I2C1_SCL__ECSPI1_SCLK 0x44
652+
MX8MP_IOMUXC_I2C1_SDA__ECSPI1_MOSI 0x44
653+
MX8MP_IOMUXC_I2C2_SCL__ECSPI1_MISO 0x44
654+
MX8MP_IOMUXC_I2C2_SDA__GPIO5_IO17 0x40
655655
>;
656656
};
657657

arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,10 +770,10 @@
770770

771771
pinctrl_sai2: sai2grp {
772772
fsl,pins = <
773-
MX8MP_IOMUXC_SAI2_TXFS__AUDIOMIX_SAI2_TX_SYNC
774-
MX8MP_IOMUXC_SAI2_TXD0__AUDIOMIX_SAI2_TX_DATA00
775-
MX8MP_IOMUXC_SAI2_TXC__AUDIOMIX_SAI2_TX_BCLK
776-
MX8MP_IOMUXC_SAI2_MCLK__AUDIOMIX_SAI2_MCLK
773+
MX8MP_IOMUXC_SAI2_TXFS__AUDIOMIX_SAI2_TX_SYNC 0xd6
774+
MX8MP_IOMUXC_SAI2_TXD0__AUDIOMIX_SAI2_TX_DATA00 0xd6
775+
MX8MP_IOMUXC_SAI2_TXC__AUDIOMIX_SAI2_TX_BCLK 0xd6
776+
MX8MP_IOMUXC_SAI2_MCLK__AUDIOMIX_SAI2_MCLK 0xd6
777777
>;
778778
};
779779

arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@
628628
interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
629629
reg = <0x4a>;
630630
/* Verdin GPIO_2 (SODIMM 208) */
631-
reset-gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
631+
reset-gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
632632
status = "disabled";
633633
};
634634
};
@@ -705,7 +705,7 @@
705705
pinctrl-0 = <&pinctrl_gpio_9_dsi>, <&pinctrl_i2s_2_bclk_touch_reset>;
706706
reg = <0x4a>;
707707
/* Verdin I2S_2_BCLK (TOUCH_RESET#, SODIMM 42) */
708-
reset-gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>;
708+
reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
709709
status = "disabled";
710710
};
711711

arch/arm64/boot/dts/freescale/imx8mq-tqma8mq.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@
204204
reg = <0x51>;
205205
pinctrl-names = "default";
206206
pinctrl-0 = <&pinctrl_rtc>;
207-
interrupt-names = "irq";
208207
interrupt-parent = <&gpio1>;
209208
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
210209
quartz-load-femtofarads = <7000>;

drivers/soc/imx/gpcv2.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,17 @@ static int imx_pgc_power_up(struct generic_pm_domain *genpd)
335335
}
336336
}
337337

338+
reset_control_assert(domain->reset);
339+
338340
/* Enable reset clocks for all devices in the domain */
339341
ret = clk_bulk_prepare_enable(domain->num_clks, domain->clks);
340342
if (ret) {
341343
dev_err(domain->dev, "failed to enable reset clocks\n");
342344
goto out_regulator_disable;
343345
}
344346

345-
reset_control_assert(domain->reset);
347+
/* delays for reset to propagate */
348+
udelay(5);
346349

347350
if (domain->bits.pxx) {
348351
/* request the domain to power up */

0 commit comments

Comments
 (0)