Commit 33abcaef authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'imx-fixes-6.2' of...

Merge tag 'imx-fixes-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes

i.MX fixes for 6.2:

- Fix i.MX8MP DT for missing GPC Interrupt, power-domain typo and USB
  clock error.
- Fix mach-imx cpu code to add missing of_node_put() call.
- A couple of verdin-imx8mm DT fixes for audio playback support.
- Fix pca9547 i2c-mux node name for i.MX and Vybrid device trees.
- Fix an imx93-11x11-evk uSDHC pad setting problem that causes Micron
  eMMC CMD8 CRC error in HS400ES/HS400 mode.
- A couple of imx8mp-blk-ctrl driver fixes from Lucas Stach, enabling
  pixclk with HDMI_TX_PHY PD, dropping power device name setting.
- Fix the error check for of_clk_get_by_name() in soc-imx8m driver.
- Other various DT fixes and cleanups.

* tag 'imx-fixes-6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: (22 commits)
  soc: imx8m: Fix incorrect check for of_clk_get_by_name()
  arm64: dts: imx8mm-venice-gw7901: fix USB2 controller OC polarity
  arm64: dts: imx8mp-evk: pcie0-refclk cosmetic cleanup
  arm64: dts: imx8mp: Fix power-domain typo
  arm64: dts: imx8mp: Fix missing GPC Interrupt
  soc: imx: imx8mp-blk-ctrl: don't set power device name
  arm64: dts: imx8mm: Drop xtal clock specifier from eDM SBC
  ARM: imx: add missing of_node_put()
  arm64: dts: imx93-11x11-evk: correct clock and strobe pad setting
  arm64: dts: verdin-imx8mm: fix dev board audio playback
  arm64: dts: imx8mq-thor96: fix no-mmc property for SDHCI
  arm64: dts: imx8mm-beacon: Fix ecspi2 pinmux
  arm64: dts: freescale: Fix pca954x i2c-mux node names
  ARM: dts: vf610: Fix pca9548 i2c-mux node names
  ARM: dts: imx: Fix pca9547 i2c-mux node name
  arm64: dts: verdin-imx8mm: fix dahlia audio playback
  ARM: dts: imx6qdl-gw560x: Remove incorrect 'uart-has-rtscts'
  ARM: dts: imx7d-pico: Use 'clock-frequency'
  ARM: dts: imx6ul-pico-dwarf: Use 'clock-frequency'
  arm64: dts: imx8mp-phycore-som: Remove invalid PMIC property
  ...

Link: https://lore.kernel.org/r/20230102132016.GA10699@T480Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 97bcdf24 49074887
...@@ -488,7 +488,7 @@ &i2c1 { ...@@ -488,7 +488,7 @@ &i2c1 {
scl-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; scl-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
i2c-switch@70 { i2c-mux@70 {
compatible = "nxp,pca9547"; compatible = "nxp,pca9547";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -632,7 +632,6 @@ &ssi1 { ...@@ -632,7 +632,6 @@ &ssi1 {
&uart1 { &uart1 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_uart1>; pinctrl-0 = <&pinctrl_uart1>;
uart-has-rtscts;
rts-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; rts-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
......
...@@ -32,7 +32,7 @@ sys_mclk: clock-sys-mclk { ...@@ -32,7 +32,7 @@ sys_mclk: clock-sys-mclk {
}; };
&i2c2 { &i2c2 {
clock_frequency = <100000>; clock-frequency = <100000>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2>; pinctrl-0 = <&pinctrl_i2c2>;
status = "okay"; status = "okay";
......
...@@ -32,7 +32,7 @@ sys_mclk: clock-sys-mclk { ...@@ -32,7 +32,7 @@ sys_mclk: clock-sys-mclk {
}; };
&i2c1 { &i2c1 {
clock_frequency = <100000>; clock-frequency = <100000>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>; pinctrl-0 = <&pinctrl_i2c1>;
status = "okay"; status = "okay";
...@@ -52,7 +52,7 @@ pressure-sensor@60 { ...@@ -52,7 +52,7 @@ pressure-sensor@60 {
}; };
&i2c4 { &i2c4 {
clock_frequency = <100000>; clock-frequency = <100000>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>; pinctrl-0 = <&pinctrl_i2c1>;
status = "okay"; status = "okay";
......
...@@ -43,7 +43,7 @@ sys_mclk: clock-sys-mclk { ...@@ -43,7 +43,7 @@ sys_mclk: clock-sys-mclk {
}; };
&i2c1 { &i2c1 {
clock_frequency = <100000>; clock-frequency = <100000>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>; pinctrl-0 = <&pinctrl_i2c1>;
status = "okay"; status = "okay";
...@@ -64,7 +64,7 @@ adc@52 { ...@@ -64,7 +64,7 @@ adc@52 {
}; };
&i2c2 { &i2c2 {
clock_frequency = <100000>; clock-frequency = <100000>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c2>; pinctrl-0 = <&pinctrl_i2c2>;
status = "okay"; status = "okay";
......
...@@ -345,7 +345,7 @@ gpio6: io-expander@22 { ...@@ -345,7 +345,7 @@ gpio6: io-expander@22 {
}; };
&i2c2 { &i2c2 {
tca9548@70 { i2c-mux@70 {
compatible = "nxp,pca9548"; compatible = "nxp,pca9548";
pinctrl-0 = <&pinctrl_i2c_mux_reset>; pinctrl-0 = <&pinctrl_i2c_mux_reset>;
pinctrl-names = "default"; pinctrl-names = "default";
......
...@@ -340,7 +340,7 @@ eeprom@50 { ...@@ -340,7 +340,7 @@ eeprom@50 {
}; };
&i2c2 { &i2c2 {
tca9548@70 { i2c-mux@70 {
compatible = "nxp,pca9548"; compatible = "nxp,pca9548";
pinctrl-0 = <&pinctrl_i2c_mux_reset>; pinctrl-0 = <&pinctrl_i2c_mux_reset>;
pinctrl-names = "default"; pinctrl-names = "default";
......
...@@ -23,6 +23,7 @@ static int mx25_read_cpu_rev(void) ...@@ -23,6 +23,7 @@ static int mx25_read_cpu_rev(void)
np = of_find_compatible_node(NULL, NULL, "fsl,imx25-iim"); np = of_find_compatible_node(NULL, NULL, "fsl,imx25-iim");
iim_base = of_iomap(np, 0); iim_base = of_iomap(np, 0);
of_node_put(np);
BUG_ON(!iim_base); BUG_ON(!iim_base);
rev = readl(iim_base + MXC_IIMSREV); rev = readl(iim_base + MXC_IIMSREV);
iounmap(iim_base); iounmap(iim_base);
......
...@@ -28,6 +28,7 @@ static int mx27_read_cpu_rev(void) ...@@ -28,6 +28,7 @@ static int mx27_read_cpu_rev(void)
np = of_find_compatible_node(NULL, NULL, "fsl,imx27-ccm"); np = of_find_compatible_node(NULL, NULL, "fsl,imx27-ccm");
ccm_base = of_iomap(np, 0); ccm_base = of_iomap(np, 0);
of_node_put(np);
BUG_ON(!ccm_base); BUG_ON(!ccm_base);
/* /*
* now we have access to the IO registers. As we need * now we have access to the IO registers. As we need
......
...@@ -39,6 +39,7 @@ static int mx31_read_cpu_rev(void) ...@@ -39,6 +39,7 @@ static int mx31_read_cpu_rev(void)
np = of_find_compatible_node(NULL, NULL, "fsl,imx31-iim"); np = of_find_compatible_node(NULL, NULL, "fsl,imx31-iim");
iim_base = of_iomap(np, 0); iim_base = of_iomap(np, 0);
of_node_put(np);
BUG_ON(!iim_base); BUG_ON(!iim_base);
/* read SREV register from IIM module */ /* read SREV register from IIM module */
......
...@@ -21,6 +21,7 @@ static int mx35_read_cpu_rev(void) ...@@ -21,6 +21,7 @@ static int mx35_read_cpu_rev(void)
np = of_find_compatible_node(NULL, NULL, "fsl,imx35-iim"); np = of_find_compatible_node(NULL, NULL, "fsl,imx35-iim");
iim_base = of_iomap(np, 0); iim_base = of_iomap(np, 0);
of_node_put(np);
BUG_ON(!iim_base); BUG_ON(!iim_base);
rev = imx_readl(iim_base + MXC_IIMSREV); rev = imx_readl(iim_base + MXC_IIMSREV);
......
...@@ -28,6 +28,7 @@ static u32 imx5_read_srev_reg(const char *compat) ...@@ -28,6 +28,7 @@ static u32 imx5_read_srev_reg(const char *compat)
np = of_find_compatible_node(NULL, NULL, compat); np = of_find_compatible_node(NULL, NULL, compat);
iim_base = of_iomap(np, 0); iim_base = of_iomap(np, 0);
of_node_put(np);
WARN_ON(!iim_base); WARN_ON(!iim_base);
srev = readl(iim_base + IIM_SREV) & 0xff; srev = readl(iim_base + IIM_SREV) & 0xff;
......
...@@ -110,7 +110,7 @@ &esdhc1 { ...@@ -110,7 +110,7 @@ &esdhc1 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
pca9547@77 { i2c-mux@77 {
compatible = "nxp,pca9547"; compatible = "nxp,pca9547";
reg = <0x77>; reg = <0x77>;
#address-cells = <1>; #address-cells = <1>;
......
...@@ -89,7 +89,7 @@ fpga: board-control@2,0 { ...@@ -89,7 +89,7 @@ fpga: board-control@2,0 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
pca9547@77 { i2c-mux@77 {
compatible = "nxp,pca9547"; compatible = "nxp,pca9547";
reg = <0x77>; reg = <0x77>;
#address-cells = <1>; #address-cells = <1>;
......
...@@ -88,7 +88,7 @@ &duart1 { ...@@ -88,7 +88,7 @@ &duart1 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
pca9547@77 { i2c-mux@77 {
compatible = "nxp,pca9547"; compatible = "nxp,pca9547";
reg = <0x77>; reg = <0x77>;
#address-cells = <1>; #address-cells = <1>;
......
...@@ -53,7 +53,7 @@ flash@2 { ...@@ -53,7 +53,7 @@ flash@2 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
i2c-switch@77 { i2c-mux@77 {
compatible = "nxp,pca9547"; compatible = "nxp,pca9547";
reg = <0x77>; reg = <0x77>;
#address-cells = <1>; #address-cells = <1>;
......
...@@ -136,7 +136,7 @@ mdio2_aquantia_phy: ethernet-phy@0 { ...@@ -136,7 +136,7 @@ mdio2_aquantia_phy: ethernet-phy@0 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
i2c-switch@77 { i2c-mux@77 {
compatible = "nxp,pca9547"; compatible = "nxp,pca9547";
reg = <0x77>; reg = <0x77>;
#address-cells = <1>; #address-cells = <1>;
......
...@@ -245,7 +245,7 @@ rx8035: rtc@32 { ...@@ -245,7 +245,7 @@ rx8035: rtc@32 {
&i2c3 { &i2c3 {
status = "okay"; status = "okay";
i2c-switch@70 { i2c-mux@70 {
compatible = "nxp,pca9540"; compatible = "nxp,pca9540";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -103,7 +103,7 @@ mdio0_phy15: mdio-phy3@1f { ...@@ -103,7 +103,7 @@ mdio0_phy15: mdio-phy3@1f {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
pca9547@77 { i2c-mux@77 {
compatible = "nxp,pca9547"; compatible = "nxp,pca9547";
reg = <0x77>; reg = <0x77>;
#address-cells = <1>; #address-cells = <1>;
......
...@@ -44,7 +44,7 @@ cpld@3,0 { ...@@ -44,7 +44,7 @@ cpld@3,0 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
pca9547@75 { i2c-mux@75 {
compatible = "nxp,pca9547"; compatible = "nxp,pca9547";
reg = <0x75>; reg = <0x75>;
#address-cells = <1>; #address-cells = <1>;
......
...@@ -54,7 +54,7 @@ &esdhc1 { ...@@ -54,7 +54,7 @@ &esdhc1 {
&i2c0 { &i2c0 {
status = "okay"; status = "okay";
i2c-switch@77 { i2c-mux@77 {
compatible = "nxp,pca9547"; compatible = "nxp,pca9547";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -120,7 +120,7 @@ &csi { ...@@ -120,7 +120,7 @@ &csi {
&ecspi2 { &ecspi2 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_espi2>; pinctrl-0 = <&pinctrl_espi2>;
cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
status = "okay"; status = "okay";
eeprom@0 { eeprom@0 {
...@@ -316,7 +316,7 @@ pinctrl_espi2: espi2grp { ...@@ -316,7 +316,7 @@ pinctrl_espi2: espi2grp {
MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82 MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82
MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82 MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82
MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82 MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82
MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x41 MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x41
>; >;
}; };
......
...@@ -275,7 +275,7 @@ pmic: pmic@4b { ...@@ -275,7 +275,7 @@ pmic: pmic@4b {
compatible = "rohm,bd71847"; compatible = "rohm,bd71847";
reg = <0x4b>; reg = <0x4b>;
#clock-cells = <0>; #clock-cells = <0>;
clocks = <&clk_xtal32k 0>; clocks = <&clk_xtal32k>;
clock-output-names = "clk-32k-out"; clock-output-names = "clk-32k-out";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pmic>; pinctrl-0 = <&pinctrl_pmic>;
......
...@@ -214,7 +214,7 @@ &i2c3 { ...@@ -214,7 +214,7 @@ &i2c3 {
pinctrl-0 = <&pinctrl_i2c3>; pinctrl-0 = <&pinctrl_i2c3>;
status = "okay"; status = "okay";
i2cmux@70 { i2c-mux@70 {
compatible = "nxp,pca9540"; compatible = "nxp,pca9540";
reg = <0x70>; reg = <0x70>;
#address-cells = <1>; #address-cells = <1>;
......
...@@ -771,6 +771,7 @@ &usbotg1 { ...@@ -771,6 +771,7 @@ &usbotg1 {
&usbotg2 { &usbotg2 {
dr_mode = "host"; dr_mode = "host";
vbus-supply = <&reg_usb2_vbus>; vbus-supply = <&reg_usb2_vbus>;
over-current-active-low;
status = "okay"; status = "okay";
}; };
......
...@@ -9,6 +9,7 @@ sound_card: sound-card { ...@@ -9,6 +9,7 @@ sound_card: sound-card {
simple-audio-card,bitclock-master = <&dailink_master>; simple-audio-card,bitclock-master = <&dailink_master>;
simple-audio-card,format = "i2s"; simple-audio-card,format = "i2s";
simple-audio-card,frame-master = <&dailink_master>; simple-audio-card,frame-master = <&dailink_master>;
simple-audio-card,mclk-fs = <256>;
simple-audio-card,name = "imx8mm-wm8904"; simple-audio-card,name = "imx8mm-wm8904";
simple-audio-card,routing = simple-audio-card,routing =
"Headphone Jack", "HPOUTL", "Headphone Jack", "HPOUTL",
......
...@@ -11,6 +11,7 @@ sound_card: sound-card { ...@@ -11,6 +11,7 @@ sound_card: sound-card {
simple-audio-card,bitclock-master = <&dailink_master>; simple-audio-card,bitclock-master = <&dailink_master>;
simple-audio-card,format = "i2s"; simple-audio-card,format = "i2s";
simple-audio-card,frame-master = <&dailink_master>; simple-audio-card,frame-master = <&dailink_master>;
simple-audio-card,mclk-fs = <256>;
simple-audio-card,name = "imx8mm-nau8822"; simple-audio-card,name = "imx8mm-nau8822";
simple-audio-card,routing = simple-audio-card,routing =
"Headphones", "LHP", "Headphones", "LHP",
......
...@@ -36,8 +36,8 @@ memory@40000000 { ...@@ -36,8 +36,8 @@ memory@40000000 {
pcie0_refclk: pcie0-refclk { pcie0_refclk: pcie0-refclk {
compatible = "fixed-clock"; compatible = "fixed-clock";
#clock-cells = <0>; #clock-cells = <0>;
clock-frequency = <100000000>; clock-frequency = <100000000>;
}; };
reg_can1_stby: regulator-can1-stby { reg_can1_stby: regulator-can1-stby {
......
...@@ -99,7 +99,6 @@ pmic: pmic@25 { ...@@ -99,7 +99,6 @@ pmic: pmic@25 {
regulators { regulators {
buck1: BUCK1 { buck1: BUCK1 {
regulator-compatible = "BUCK1";
regulator-min-microvolt = <600000>; regulator-min-microvolt = <600000>;
regulator-max-microvolt = <2187500>; regulator-max-microvolt = <2187500>;
regulator-boot-on; regulator-boot-on;
...@@ -108,7 +107,6 @@ buck1: BUCK1 { ...@@ -108,7 +107,6 @@ buck1: BUCK1 {
}; };
buck2: BUCK2 { buck2: BUCK2 {
regulator-compatible = "BUCK2";
regulator-min-microvolt = <600000>; regulator-min-microvolt = <600000>;
regulator-max-microvolt = <2187500>; regulator-max-microvolt = <2187500>;
regulator-boot-on; regulator-boot-on;
...@@ -119,7 +117,6 @@ buck2: BUCK2 { ...@@ -119,7 +117,6 @@ buck2: BUCK2 {
}; };
buck4: BUCK4 { buck4: BUCK4 {
regulator-compatible = "BUCK4";
regulator-min-microvolt = <600000>; regulator-min-microvolt = <600000>;
regulator-max-microvolt = <3400000>; regulator-max-microvolt = <3400000>;
regulator-boot-on; regulator-boot-on;
...@@ -127,7 +124,6 @@ buck4: BUCK4 { ...@@ -127,7 +124,6 @@ buck4: BUCK4 {
}; };
buck5: BUCK5 { buck5: BUCK5 {
regulator-compatible = "BUCK5";
regulator-min-microvolt = <600000>; regulator-min-microvolt = <600000>;
regulator-max-microvolt = <3400000>; regulator-max-microvolt = <3400000>;
regulator-boot-on; regulator-boot-on;
...@@ -135,7 +131,6 @@ buck5: BUCK5 { ...@@ -135,7 +131,6 @@ buck5: BUCK5 {
}; };
buck6: BUCK6 { buck6: BUCK6 {
regulator-compatible = "BUCK6";
regulator-min-microvolt = <600000>; regulator-min-microvolt = <600000>;
regulator-max-microvolt = <3400000>; regulator-max-microvolt = <3400000>;
regulator-boot-on; regulator-boot-on;
...@@ -143,7 +138,6 @@ buck6: BUCK6 { ...@@ -143,7 +138,6 @@ buck6: BUCK6 {
}; };
ldo1: LDO1 { ldo1: LDO1 {
regulator-compatible = "LDO1";
regulator-min-microvolt = <1600000>; regulator-min-microvolt = <1600000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
regulator-boot-on; regulator-boot-on;
...@@ -151,7 +145,6 @@ ldo1: LDO1 { ...@@ -151,7 +145,6 @@ ldo1: LDO1 {
}; };
ldo2: LDO2 { ldo2: LDO2 {
regulator-compatible = "LDO2";
regulator-min-microvolt = <800000>; regulator-min-microvolt = <800000>;
regulator-max-microvolt = <1150000>; regulator-max-microvolt = <1150000>;
regulator-boot-on; regulator-boot-on;
...@@ -159,7 +152,6 @@ ldo2: LDO2 { ...@@ -159,7 +152,6 @@ ldo2: LDO2 {
}; };
ldo3: LDO3 { ldo3: LDO3 {
regulator-compatible = "LDO3";
regulator-min-microvolt = <800000>; regulator-min-microvolt = <800000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
regulator-boot-on; regulator-boot-on;
...@@ -167,13 +159,11 @@ ldo3: LDO3 { ...@@ -167,13 +159,11 @@ ldo3: LDO3 {
}; };
ldo4: LDO4 { ldo4: LDO4 {
regulator-compatible = "LDO4";
regulator-min-microvolt = <800000>; regulator-min-microvolt = <800000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
}; };
ldo5: LDO5 { ldo5: LDO5 {
regulator-compatible = "LDO5";
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
regulator-boot-on; regulator-boot-on;
......
...@@ -524,6 +524,7 @@ gpc: gpc@303a0000 { ...@@ -524,6 +524,7 @@ gpc: gpc@303a0000 {
compatible = "fsl,imx8mp-gpc"; compatible = "fsl,imx8mp-gpc";
reg = <0x303a0000 0x1000>; reg = <0x303a0000 0x1000>;
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <3>; #interrupt-cells = <3>;
...@@ -590,7 +591,7 @@ pgc_mipi_phy2: power-domain@16 { ...@@ -590,7 +591,7 @@ pgc_mipi_phy2: power-domain@16 {
reg = <IMX8MP_POWER_DOMAIN_MIPI_PHY2>; reg = <IMX8MP_POWER_DOMAIN_MIPI_PHY2>;
}; };
pgc_hsiomix: power-domains@17 { pgc_hsiomix: power-domain@17 {
#power-domain-cells = <0>; #power-domain-cells = <0>;
reg = <IMX8MP_POWER_DOMAIN_HSIOMIX>; reg = <IMX8MP_POWER_DOMAIN_HSIOMIX>;
clocks = <&clk IMX8MP_CLK_HSIO_AXI>, clocks = <&clk IMX8MP_CLK_HSIO_AXI>,
...@@ -1297,7 +1298,7 @@ usb3_0: usb@32f10100 { ...@@ -1297,7 +1298,7 @@ usb3_0: usb@32f10100 {
reg = <0x32f10100 0x8>, reg = <0x32f10100 0x8>,
<0x381f0000 0x20>; <0x381f0000 0x20>;
clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, clocks = <&clk IMX8MP_CLK_HSIO_ROOT>,
<&clk IMX8MP_CLK_USB_ROOT>; <&clk IMX8MP_CLK_USB_SUSP>;
clock-names = "hsio", "suspend"; clock-names = "hsio", "suspend";
interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_USB>; power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_USB>;
...@@ -1310,9 +1311,9 @@ usb3_0: usb@32f10100 { ...@@ -1310,9 +1311,9 @@ usb3_0: usb@32f10100 {
usb_dwc3_0: usb@38100000 { usb_dwc3_0: usb@38100000 {
compatible = "snps,dwc3"; compatible = "snps,dwc3";
reg = <0x38100000 0x10000>; reg = <0x38100000 0x10000>;
clocks = <&clk IMX8MP_CLK_HSIO_AXI>, clocks = <&clk IMX8MP_CLK_USB_ROOT>,
<&clk IMX8MP_CLK_USB_CORE_REF>, <&clk IMX8MP_CLK_USB_CORE_REF>,
<&clk IMX8MP_CLK_USB_ROOT>; <&clk IMX8MP_CLK_USB_SUSP>;
clock-names = "bus_early", "ref", "suspend"; clock-names = "bus_early", "ref", "suspend";
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
phys = <&usb3_phy0>, <&usb3_phy0>; phys = <&usb3_phy0>, <&usb3_phy0>;
...@@ -1339,7 +1340,7 @@ usb3_1: usb@32f10108 { ...@@ -1339,7 +1340,7 @@ usb3_1: usb@32f10108 {
reg = <0x32f10108 0x8>, reg = <0x32f10108 0x8>,
<0x382f0000 0x20>; <0x382f0000 0x20>;
clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, clocks = <&clk IMX8MP_CLK_HSIO_ROOT>,
<&clk IMX8MP_CLK_USB_ROOT>; <&clk IMX8MP_CLK_USB_SUSP>;
clock-names = "hsio", "suspend"; clock-names = "hsio", "suspend";
interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>;
power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_USB>; power-domains = <&hsio_blk_ctrl IMX8MP_HSIOBLK_PD_USB>;
...@@ -1352,9 +1353,9 @@ usb3_1: usb@32f10108 { ...@@ -1352,9 +1353,9 @@ usb3_1: usb@32f10108 {
usb_dwc3_1: usb@38200000 { usb_dwc3_1: usb@38200000 {
compatible = "snps,dwc3"; compatible = "snps,dwc3";
reg = <0x38200000 0x10000>; reg = <0x38200000 0x10000>;
clocks = <&clk IMX8MP_CLK_HSIO_AXI>, clocks = <&clk IMX8MP_CLK_USB_ROOT>,
<&clk IMX8MP_CLK_USB_CORE_REF>, <&clk IMX8MP_CLK_USB_CORE_REF>,
<&clk IMX8MP_CLK_USB_ROOT>; <&clk IMX8MP_CLK_USB_SUSP>;
clock-names = "bus_early", "ref", "suspend"; clock-names = "bus_early", "ref", "suspend";
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
phys = <&usb3_phy1>, <&usb3_phy1>; phys = <&usb3_phy1>, <&usb3_phy1>;
......
...@@ -133,7 +133,7 @@ &i2c1 { ...@@ -133,7 +133,7 @@ &i2c1 {
pinctrl-0 = <&pinctrl_i2c1>; pinctrl-0 = <&pinctrl_i2c1>;
status = "okay"; status = "okay";
i2cmux@70 { i2c-mux@70 {
compatible = "nxp,pca9546"; compatible = "nxp,pca9546";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1_pca9546>; pinctrl-0 = <&pinctrl_i2c1_pca9546>;
...@@ -216,7 +216,7 @@ &i2c4 { ...@@ -216,7 +216,7 @@ &i2c4 {
pinctrl-0 = <&pinctrl_i2c4>; pinctrl-0 = <&pinctrl_i2c4>;
status = "okay"; status = "okay";
pca9546: i2cmux@70 { pca9546: i2c-mux@70 {
compatible = "nxp,pca9546"; compatible = "nxp,pca9546";
reg = <0x70>; reg = <0x70>;
#address-cells = <1>; #address-cells = <1>;
......
...@@ -339,7 +339,7 @@ &usdhc1 { ...@@ -339,7 +339,7 @@ &usdhc1 {
bus-width = <4>; bus-width = <4>;
non-removable; non-removable;
no-sd; no-sd;
no-emmc; no-mmc;
status = "okay"; status = "okay";
brcmf: wifi@1 { brcmf: wifi@1 {
...@@ -359,7 +359,7 @@ &usdhc2 { ...@@ -359,7 +359,7 @@ &usdhc2 {
cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
bus-width = <4>; bus-width = <4>;
no-sdio; no-sdio;
no-emmc; no-mmc;
disable-wp; disable-wp;
status = "okay"; status = "okay";
}; };
......
...@@ -61,7 +61,7 @@ &i2c1 { ...@@ -61,7 +61,7 @@ &i2c1 {
pinctrl-0 = <&pinctrl_lpi2c1 &pinctrl_ioexp_rst>; pinctrl-0 = <&pinctrl_lpi2c1 &pinctrl_ioexp_rst>;
status = "okay"; status = "okay";
i2c-switch@71 { i2c-mux@71 {
compatible = "nxp,pca9646", "nxp,pca9546"; compatible = "nxp,pca9646", "nxp,pca9546";
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
......
...@@ -74,7 +74,7 @@ MX93_PAD_UART1_TXD__LPUART1_TX 0x31e ...@@ -74,7 +74,7 @@ MX93_PAD_UART1_TXD__LPUART1_TX 0x31e
pinctrl_usdhc1: usdhc1grp { pinctrl_usdhc1: usdhc1grp {
fsl,pins = < fsl,pins = <
MX93_PAD_SD1_CLK__USDHC1_CLK 0x17fe MX93_PAD_SD1_CLK__USDHC1_CLK 0x15fe
MX93_PAD_SD1_CMD__USDHC1_CMD 0x13fe MX93_PAD_SD1_CMD__USDHC1_CMD 0x13fe
MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x13fe MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x13fe
MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x13fe MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x13fe
...@@ -84,7 +84,7 @@ MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x13fe ...@@ -84,7 +84,7 @@ MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x13fe
MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x13fe MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x13fe
MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x13fe MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x13fe
MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x13fe MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x13fe
MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x17fe MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x15fe
>; >;
}; };
...@@ -102,7 +102,7 @@ MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e ...@@ -102,7 +102,7 @@ MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e
pinctrl_usdhc2: usdhc2grp { pinctrl_usdhc2: usdhc2grp {
fsl,pins = < fsl,pins = <
MX93_PAD_SD2_CLK__USDHC2_CLK 0x17fe MX93_PAD_SD2_CLK__USDHC2_CLK 0x15fe
MX93_PAD_SD2_CMD__USDHC2_CMD 0x13fe MX93_PAD_SD2_CMD__USDHC2_CMD 0x13fe
MX93_PAD_SD2_DATA0__USDHC2_DATA0 0x13fe MX93_PAD_SD2_DATA0__USDHC2_DATA0 0x13fe
MX93_PAD_SD2_DATA1__USDHC2_DATA1 0x13fe MX93_PAD_SD2_DATA1__USDHC2_DATA1 0x13fe
......
...@@ -212,7 +212,7 @@ static void imx8mp_hdmi_blk_ctrl_power_on(struct imx8mp_blk_ctrl *bc, ...@@ -212,7 +212,7 @@ static void imx8mp_hdmi_blk_ctrl_power_on(struct imx8mp_blk_ctrl *bc,
break; break;
case IMX8MP_HDMIBLK_PD_LCDIF: case IMX8MP_HDMIBLK_PD_LCDIF:
regmap_set_bits(bc->regmap, HDMI_RTX_CLK_CTL0, regmap_set_bits(bc->regmap, HDMI_RTX_CLK_CTL0,
BIT(7) | BIT(16) | BIT(17) | BIT(18) | BIT(16) | BIT(17) | BIT(18) |
BIT(19) | BIT(20)); BIT(19) | BIT(20));
regmap_set_bits(bc->regmap, HDMI_RTX_CLK_CTL1, BIT(11)); regmap_set_bits(bc->regmap, HDMI_RTX_CLK_CTL1, BIT(11));
regmap_set_bits(bc->regmap, HDMI_RTX_RESET_CTL0, regmap_set_bits(bc->regmap, HDMI_RTX_RESET_CTL0,
...@@ -241,6 +241,7 @@ static void imx8mp_hdmi_blk_ctrl_power_on(struct imx8mp_blk_ctrl *bc, ...@@ -241,6 +241,7 @@ static void imx8mp_hdmi_blk_ctrl_power_on(struct imx8mp_blk_ctrl *bc,
regmap_set_bits(bc->regmap, HDMI_TX_CONTROL0, BIT(1)); regmap_set_bits(bc->regmap, HDMI_TX_CONTROL0, BIT(1));
break; break;
case IMX8MP_HDMIBLK_PD_HDMI_TX_PHY: case IMX8MP_HDMIBLK_PD_HDMI_TX_PHY:
regmap_set_bits(bc->regmap, HDMI_RTX_CLK_CTL0, BIT(7));
regmap_set_bits(bc->regmap, HDMI_RTX_CLK_CTL1, BIT(22) | BIT(24)); regmap_set_bits(bc->regmap, HDMI_RTX_CLK_CTL1, BIT(22) | BIT(24));
regmap_set_bits(bc->regmap, HDMI_RTX_RESET_CTL0, BIT(12)); regmap_set_bits(bc->regmap, HDMI_RTX_RESET_CTL0, BIT(12));
regmap_clear_bits(bc->regmap, HDMI_TX_CONTROL0, BIT(3)); regmap_clear_bits(bc->regmap, HDMI_TX_CONTROL0, BIT(3));
...@@ -270,7 +271,7 @@ static void imx8mp_hdmi_blk_ctrl_power_off(struct imx8mp_blk_ctrl *bc, ...@@ -270,7 +271,7 @@ static void imx8mp_hdmi_blk_ctrl_power_off(struct imx8mp_blk_ctrl *bc,
BIT(4) | BIT(5) | BIT(6)); BIT(4) | BIT(5) | BIT(6));
regmap_clear_bits(bc->regmap, HDMI_RTX_CLK_CTL1, BIT(11)); regmap_clear_bits(bc->regmap, HDMI_RTX_CLK_CTL1, BIT(11));
regmap_clear_bits(bc->regmap, HDMI_RTX_CLK_CTL0, regmap_clear_bits(bc->regmap, HDMI_RTX_CLK_CTL0,
BIT(7) | BIT(16) | BIT(17) | BIT(18) | BIT(16) | BIT(17) | BIT(18) |
BIT(19) | BIT(20)); BIT(19) | BIT(20));
break; break;
case IMX8MP_HDMIBLK_PD_PAI: case IMX8MP_HDMIBLK_PD_PAI:
...@@ -298,6 +299,7 @@ static void imx8mp_hdmi_blk_ctrl_power_off(struct imx8mp_blk_ctrl *bc, ...@@ -298,6 +299,7 @@ static void imx8mp_hdmi_blk_ctrl_power_off(struct imx8mp_blk_ctrl *bc,
case IMX8MP_HDMIBLK_PD_HDMI_TX_PHY: case IMX8MP_HDMIBLK_PD_HDMI_TX_PHY:
regmap_set_bits(bc->regmap, HDMI_TX_CONTROL0, BIT(3)); regmap_set_bits(bc->regmap, HDMI_TX_CONTROL0, BIT(3));
regmap_clear_bits(bc->regmap, HDMI_RTX_RESET_CTL0, BIT(12)); regmap_clear_bits(bc->regmap, HDMI_RTX_RESET_CTL0, BIT(12));
regmap_clear_bits(bc->regmap, HDMI_RTX_CLK_CTL0, BIT(7));
regmap_clear_bits(bc->regmap, HDMI_RTX_CLK_CTL1, BIT(22) | BIT(24)); regmap_clear_bits(bc->regmap, HDMI_RTX_CLK_CTL1, BIT(22) | BIT(24));
break; break;
case IMX8MP_HDMIBLK_PD_HDCP: case IMX8MP_HDMIBLK_PD_HDCP:
...@@ -590,7 +592,6 @@ static int imx8mp_blk_ctrl_probe(struct platform_device *pdev) ...@@ -590,7 +592,6 @@ static int imx8mp_blk_ctrl_probe(struct platform_device *pdev)
ret = PTR_ERR(domain->power_dev); ret = PTR_ERR(domain->power_dev);
goto cleanup_pds; goto cleanup_pds;
} }
dev_set_name(domain->power_dev, "%s", data->name);
domain->genpd.name = data->name; domain->genpd.name = data->name;
domain->genpd.power_on = imx8mp_blk_ctrl_power_on; domain->genpd.power_on = imx8mp_blk_ctrl_power_on;
......
...@@ -66,8 +66,8 @@ static u32 __init imx8mq_soc_revision(void) ...@@ -66,8 +66,8 @@ static u32 __init imx8mq_soc_revision(void)
ocotp_base = of_iomap(np, 0); ocotp_base = of_iomap(np, 0);
WARN_ON(!ocotp_base); WARN_ON(!ocotp_base);
clk = of_clk_get_by_name(np, NULL); clk = of_clk_get_by_name(np, NULL);
if (!clk) { if (IS_ERR(clk)) {
WARN_ON(!clk); WARN_ON(IS_ERR(clk));
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment