Commit b1062d19 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'stm32-dt-for-v6.5-1' of...

Merge tag 'stm32-dt-for-v6.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32 into soc/dt

STM32 DT for v6.5, round 1

Highlights:
----------

- MCU/MPU:
  - Replace deprecated st,hw-flow-ctrl by uart-has-rtscts.
  - Fix LTDC/DSI warnings.

- MPU:
  - STMP32MP15:
    - Add OTP part number and Vrefint calibration in bsec.
    - M4 hold management updated. As SMC call is deprecated,
      the service is moved on a SCMI service.
    - Add ADC internal channels (VREFINT/VDDCORE).

  - ST:
    - Enable ADC1&2 on STM32MP15 DKx boards.
    - Adopt generic IIO bindings on STM32MP157C ED1
    - Add supplies for OV5640 in STM32MP157C EV1
      to fix yaml validation.
    - Fix i2s bindings to match with the YAML validation (DKx boards).

  - DH:
    - Rearrange MAC EEPROM.
    - Rename AV96 sound card.
    - Adopt generic IIo bindings.
    - Fix audio routing.

  -PHYTEC:
    - Add PHYTEC STM32MP1-3 Dev board based on STM32MP15 PHYTEC SOM.
      This SOM embeds up to 1GB DDR3LP RAM, up to 1GB eMMC,
      up to 16 MB QSPI and up to 128 GB NAND flash.

* tag 'stm32-dt-for-v6.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/atorgue/stm32: (34 commits)
  ARM: dts: stm32: fix i2s endpoint format property for stm32mp15xx-dkx
  ARM: dts: stm32: Fix audio routing on STM32MP15xx DHCOM PDK2
  ARM: dts: stm32: add required supplies of ov5640 in stm32mp157c-ev1
  ARM: dts: stm32: Update to generic ADC channel binding on DHSOM systems
  ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcor-testbench
  ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcor-drc
  ARM: dts: stm32: adopt generic iio bindings for adc channels on emstamp-argon
  ARM: dts: stm32: adopt generic iio bindings for adc channels on stm32mp157c-ed1
  ARM: dts: stm32: enable adc on stm32mp15xx-dkx boards
  ARM: dts: stm32: add vrefint support to adc2 on stm32mp15
  ARM: dts: stm32: add vrefint calibration on stm32mp15
  ARM: dts: stm32: add adc internal channels to stm32mp15
  ARM: dts: stm32: fix ltdc warnings in stm32mp15 boards
  ARM: dts: stm32: fix dsi warnings on stm32mp15 boards
  dt-bindings: display: st,stm32-dsi: Remove unnecessary fields
  ARM: dts: stm32: fix warnings on stm32f469-disco board
  ARM: dts: stm32: Shorten the AV96 HDMI sound card name
  ARM: dts: stm32: fix m4_rproc references to use SCMI for stm32mp15
  ARM: dts: stm32: Update Cortex-M4 reset declarations on stm32mp15
  ARM: dts: stm32: add STM32MP1-based Phytec board
  ...

Link: https://lore.kernel.org/r/08d711de-bb6d-a976-735b-5e18b19818ea@foss.st.comSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 7b87c164 076c74c5
...@@ -155,6 +155,12 @@ properties: ...@@ -155,6 +155,12 @@ properties:
- const: seeed,stm32mp157c-odyssey-som - const: seeed,stm32mp157c-odyssey-som
- const: st,stm32mp157 - const: st,stm32mp157
- description: Phytec STM32MP1 SoM based Boards
items:
- const: phytec,phycore-stm32mp1-3
- const: phytec,phycore-stm32mp157c-som
- const: st,stm32mp157
additionalProperties: true additionalProperties: true
... ...
...@@ -74,8 +74,6 @@ properties: ...@@ -74,8 +74,6 @@ properties:
- const: 2 - const: 2
required: required:
- "#address-cells"
- "#size-cells"
- compatible - compatible
- reg - reg
- clocks - clocks
......
...@@ -1267,7 +1267,8 @@ dtb-$(CONFIG_ARCH_STM32) += \ ...@@ -1267,7 +1267,8 @@ dtb-$(CONFIG_ARCH_STM32) += \
stm32mp157c-ev1.dtb \ stm32mp157c-ev1.dtb \
stm32mp157c-ev1-scmi.dtb \ stm32mp157c-ev1-scmi.dtb \
stm32mp157c-lxa-mc1.dtb \ stm32mp157c-lxa-mc1.dtb \
stm32mp157c-odyssey.dtb stm32mp157c-odyssey.dtb \
stm32mp157c-phycore-stm32mp1-3.dtb
dtb-$(CONFIG_MACH_SUN4I) += \ dtb-$(CONFIG_MACH_SUN4I) += \
sun4i-a10-a1000.dtb \ sun4i-a10-a1000.dtb \
sun4i-a10-ba10-tvbox.dtb \ sun4i-a10-ba10-tvbox.dtb \
......
...@@ -160,7 +160,7 @@ dsi_out: endpoint { ...@@ -160,7 +160,7 @@ dsi_out: endpoint {
}; };
}; };
panel-dsi@0 { panel@0 {
compatible = "orisetech,otm8009a"; compatible = "orisetech,otm8009a";
reg = <0>; /* dsi virtual channel (0..3) */ reg = <0>; /* dsi virtual channel (0..3) */
reset-gpios = <&gpioh 7 GPIO_ACTIVE_LOW>; reset-gpios = <&gpioh 7 GPIO_ACTIVE_LOW>;
...@@ -179,7 +179,7 @@ &ltdc { ...@@ -179,7 +179,7 @@ &ltdc {
status = "okay"; status = "okay";
port { port {
ltdc_out_dsi: endpoint@0 { ltdc_out_dsi: endpoint {
remote-endpoint = <&dsi_in>; remote-endpoint = <&dsi_in>;
}; };
}; };
......
...@@ -515,7 +515,7 @@ pwrcfg: power-config@40007000 { ...@@ -515,7 +515,7 @@ pwrcfg: power-config@40007000 {
crc: crc@40023000 { crc: crc@40023000 {
compatible = "st,stm32f7-crc"; compatible = "st,stm32f7-crc";
reg = <0x40023000 0x400>; reg = <0x40023000 0x400>;
clocks = <&rcc 0 12>; clocks = <&rcc 0 STM32F7_AHB1_CLOCK(CRC)>;
status = "disabled"; status = "disabled";
}; };
......
...@@ -208,7 +208,7 @@ &usart3 { ...@@ -208,7 +208,7 @@ &usart3 {
dmas = <&dmamux1 45 0x400 0x05>, dmas = <&dmamux1 45 0x400 0x05>,
<&dmamux1 46 0x400 0x05>; <&dmamux1 46 0x400 0x05>;
dma-names = "rx", "tx"; dma-names = "rx", "tx";
st,hw-flow-ctrl; uart-has-rtscts;
status = "okay"; status = "okay";
bluetooth { bluetooth {
......
...@@ -341,6 +341,56 @@ pins1 { ...@@ -341,6 +341,56 @@ pins1 {
}; };
}; };
ethernet0_rgmii_pins_d: rgmii-3 {
pins1 {
pinmux = <STM32_PINMUX('G', 5, AF11)>, /* ETH_RGMII_CLK125 */
<STM32_PINMUX('G', 13, AF11)>, /* ETH_RGMII_TXD0 */
<STM32_PINMUX('G', 14, AF11)>, /* ETH_RGMII_TXD1 */
<STM32_PINMUX('C', 2, AF11)>, /* ETH_RGMII_TXD2 */
<STM32_PINMUX('E', 2, AF11)>, /* ETH_RGMII_TXD3 */
<STM32_PINMUX('B', 11, AF11)>, /* ETH_RGMII_TX_CTL */
<STM32_PINMUX('C', 1, AF11)>; /* ETH_MDC */
bias-disable;
drive-push-pull;
slew-rate = <2>;
};
pins2 {
pinmux = <STM32_PINMUX('A', 2, AF11)>; /* ETH_MDIO */
bias-disable;
drive-push-pull;
slew-rate = <0>;
};
pins3 {
pinmux = <STM32_PINMUX('C', 4, AF11)>, /* ETH_RGMII_RXD0 */
<STM32_PINMUX('C', 5, AF11)>, /* ETH_RGMII_RXD1 */
<STM32_PINMUX('H', 6, AF11)>, /* ETH_RGMII_RXD2 */
<STM32_PINMUX('B', 1, AF11)>, /* ETH_RGMII_RXD3 */
<STM32_PINMUX('A', 1, AF11)>, /* ETH_RGMII_RX_CLK */
<STM32_PINMUX('A', 7, AF11)>; /* ETH_RGMII_RX_CTL */
bias-disable;
};
};
ethernet0_rgmii_sleep_pins_d: rgmii-sleep-3 {
pins1 {
pinmux = <STM32_PINMUX('G', 5, ANALOG)>, /* ETH_RGMII_CLK125 */
<STM32_PINMUX('G', 4, ANALOG)>, /* ETH_RGMII_GTX_CLK */
<STM32_PINMUX('G', 13, ANALOG)>, /* ETH_RGMII_TXD0 */
<STM32_PINMUX('G', 14, ANALOG)>, /* ETH_RGMII_TXD1 */
<STM32_PINMUX('C', 2, ANALOG)>, /* ETH_RGMII_TXD2 */
<STM32_PINMUX('E', 2, ANALOG)>, /* ETH_RGMII_TXD3 */
<STM32_PINMUX('B', 11, ANALOG)>, /* ETH_RGMII_TX_CTL */
<STM32_PINMUX('A', 2, ANALOG)>, /* ETH_MDIO */
<STM32_PINMUX('C', 1, ANALOG)>, /* ETH_MDC */
<STM32_PINMUX('C', 4, ANALOG)>, /* ETH_RGMII_RXD0 */
<STM32_PINMUX('C', 5, ANALOG)>, /* ETH_RGMII_RXD1 */
<STM32_PINMUX('H', 6, ANALOG)>, /* ETH_RGMII_RXD2 */
<STM32_PINMUX('B', 1, ANALOG)>, /* ETH_RGMII_RXD3 */
<STM32_PINMUX('A', 1, ANALOG)>, /* ETH_RGMII_RX_CLK */
<STM32_PINMUX('A', 7, ANALOG)>; /* ETH_RGMII_RX_CTL */
};
};
ethernet0_rmii_pins_a: rmii-0 { ethernet0_rmii_pins_a: rmii-0 {
pins1 { pins1 {
pinmux = <STM32_PINMUX('G', 13, AF11)>, /* ETH1_RMII_TXD0 */ pinmux = <STM32_PINMUX('G', 13, AF11)>, /* ETH1_RMII_TXD0 */
...@@ -1441,6 +1491,30 @@ pins { ...@@ -1441,6 +1491,30 @@ pins {
}; };
}; };
sai2b_pins_d: sai2b-3 {
pins1 {
pinmux = <STM32_PINMUX('H', 2, AF10)>, /* SAI2_SCK_B */
<STM32_PINMUX('C', 0, AF8)>, /* SAI2_FS_B */
<STM32_PINMUX('H', 3, AF10)>; /* SAI2_MCLK_B */
slew-rate = <0>;
drive-push-pull;
bias-disable;
};
pins2 {
pinmux = <STM32_PINMUX('F', 11, AF10)>; /* SAI2_SD_B */
bias-disable;
};
};
sai2b_sleep_pins_d: sai2b-sleep-3 {
pins1 {
pinmux = <STM32_PINMUX('H', 2, ANALOG)>, /* SAI2_SCK_B */
<STM32_PINMUX('C', 0, ANALOG)>, /* SAI2_FS_B */
<STM32_PINMUX('H', 3, ANALOG)>, /* SAI2_MCLK_B */
<STM32_PINMUX('F', 11, ANALOG)>; /* SAI2_SD_B */
};
};
sai4a_pins_a: sai4a-0 { sai4a_pins_a: sai4a-0 {
pins { pins {
pinmux = <STM32_PINMUX('B', 5, AF10)>; /* SAI4_SD_A */ pinmux = <STM32_PINMUX('B', 5, AF10)>; /* SAI4_SD_A */
...@@ -1522,6 +1596,60 @@ pins { ...@@ -1522,6 +1596,60 @@ pins {
}; };
}; };
sdmmc1_b4_pins_b: sdmmc1-b4-1 {
pins1 {
pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
<STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
<STM32_PINMUX('E', 6, AF8)>, /* SDMMC1_D2 */
<STM32_PINMUX('C', 11, AF12)>, /* SDMMC1_D3 */
<STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
slew-rate = <1>;
drive-push-pull;
bias-disable;
};
pins2 {
pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
slew-rate = <2>;
drive-push-pull;
bias-disable;
};
};
sdmmc1_b4_od_pins_b: sdmmc1-b4-od-1 {
pins1 {
pinmux = <STM32_PINMUX('C', 8, AF12)>, /* SDMMC1_D0 */
<STM32_PINMUX('C', 9, AF12)>, /* SDMMC1_D1 */
<STM32_PINMUX('E', 6, AF8)>, /* SDMMC1_D2 */
<STM32_PINMUX('C', 11, AF12)>; /* SDMMC1_D3 */
slew-rate = <1>;
drive-push-pull;
bias-disable;
};
pins2 {
pinmux = <STM32_PINMUX('C', 12, AF12)>; /* SDMMC1_CK */
slew-rate = <2>;
drive-push-pull;
bias-disable;
};
pins3 {
pinmux = <STM32_PINMUX('D', 2, AF12)>; /* SDMMC1_CMD */
slew-rate = <1>;
drive-open-drain;
bias-disable;
};
};
sdmmc1_b4_sleep_pins_b: sdmmc1-b4-sleep-1 {
pins {
pinmux = <STM32_PINMUX('C', 8, ANALOG)>, /* SDMMC1_D0 */
<STM32_PINMUX('C', 9, ANALOG)>, /* SDMMC1_D1 */
<STM32_PINMUX('E', 6, ANALOG)>, /* SDMMC1_D2 */
<STM32_PINMUX('C', 11, ANALOG)>, /* SDMMC1_D3 */
<STM32_PINMUX('C', 12, ANALOG)>, /* SDMMC1_CK */
<STM32_PINMUX('D', 2, ANALOG)>; /* SDMMC1_CMD */
};
};
sdmmc1_dir_pins_a: sdmmc1-dir-0 { sdmmc1_dir_pins_a: sdmmc1-dir-0 {
pins1 { pins1 {
pinmux = <STM32_PINMUX('F', 2, AF11)>, /* SDMMC1_D0DIR */ pinmux = <STM32_PINMUX('F', 2, AF11)>, /* SDMMC1_D0DIR */
...@@ -1759,6 +1887,27 @@ pins { ...@@ -1759,6 +1887,27 @@ pins {
}; };
}; };
sdmmc2_d47_pins_e: sdmmc2-d47-4 {
pins {
pinmux = <STM32_PINMUX('A', 8, AF9)>, /* SDMMC2_D4 */
<STM32_PINMUX('A', 9, AF10)>, /* SDMMC2_D5 */
<STM32_PINMUX('C', 6, AF10)>, /* SDMMC2_D6 */
<STM32_PINMUX('D', 3, AF9)>; /* SDMMC2_D7 */
slew-rate = <1>;
drive-push-pull;
bias-pull-up;
};
};
sdmmc2_d47_sleep_pins_e: sdmmc2-d47-sleep-4 {
pins {
pinmux = <STM32_PINMUX('A', 8, ANALOG)>, /* SDMMC2_D4 */
<STM32_PINMUX('A', 9, ANALOG)>, /* SDMMC2_D5 */
<STM32_PINMUX('C', 6, ANALOG)>, /* SDMMC2_D6 */
<STM32_PINMUX('D', 3, ANALOG)>; /* SDMMC2_D7 */
};
};
sdmmc3_b4_pins_a: sdmmc3-b4-0 { sdmmc3_b4_pins_a: sdmmc3-b4-0 {
pins1 { pins1 {
pinmux = <STM32_PINMUX('F', 0, AF9)>, /* SDMMC3_D0 */ pinmux = <STM32_PINMUX('F', 0, AF9)>, /* SDMMC3_D0 */
...@@ -2124,6 +2273,33 @@ pins { ...@@ -2124,6 +2273,33 @@ pins {
}; };
}; };
usart1_pins_a: usart1-0 {
pins1 {
pinmux = <STM32_PINMUX('A', 12, AF7)>; /* USART1_RTS */
bias-disable;
drive-push-pull;
slew-rate = <0>;
};
pins2 {
pinmux = <STM32_PINMUX('A', 11, AF7)>; /* USART1_CTS_NSS */
bias-disable;
};
};
usart1_idle_pins_a: usart1-idle-0 {
pins1 {
pinmux = <STM32_PINMUX('A', 12, ANALOG)>, /* USART1_RTS */
<STM32_PINMUX('A', 11, AF7)>; /* USART1_CTS_NSS */
};
};
usart1_sleep_pins_a: usart1-sleep-0 {
pins {
pinmux = <STM32_PINMUX('A', 12, ANALOG)>, /* USART1_RTS */
<STM32_PINMUX('A', 11, ANALOG)>; /* USART1_CTS_NSS */
};
};
usart2_pins_a: usart2-0 { usart2_pins_a: usart2-0 {
pins1 { pins1 {
pinmux = <STM32_PINMUX('F', 5, AF7)>, /* USART2_TX */ pinmux = <STM32_PINMUX('F', 5, AF7)>, /* USART2_TX */
...@@ -2226,6 +2402,23 @@ pins2 { ...@@ -2226,6 +2402,23 @@ pins2 {
}; };
}; };
usart3_idle_pins_a: usart3-idle-0 {
pins1 {
pinmux = <STM32_PINMUX('B', 10, ANALOG)>; /* USART3_TX */
};
pins2 {
pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
bias-disable;
};
};
usart3_sleep_pins_a: usart3-sleep-0 {
pins {
pinmux = <STM32_PINMUX('B', 10, ANALOG)>, /* USART3_TX */
<STM32_PINMUX('B', 12, ANALOG)>; /* USART3_RX */
};
};
usart3_pins_b: usart3-1 { usart3_pins_b: usart3-1 {
pins1 { pins1 {
pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */ pinmux = <STM32_PINMUX('B', 10, AF7)>, /* USART3_TX */
...@@ -2463,4 +2656,42 @@ pins2 { ...@@ -2463,4 +2656,42 @@ pins2 {
bias-disable; bias-disable;
}; };
}; };
spi1_sleep_pins_a: spi1-sleep-0 {
pins {
pinmux = <STM32_PINMUX('Z', 0, ANALOG)>, /* SPI1_SCK */
<STM32_PINMUX('Z', 1, ANALOG)>, /* SPI1_MISO */
<STM32_PINMUX('Z', 2, ANALOG)>; /* SPI1_MOSI */
};
};
usart1_pins_b: usart1-1 {
pins1 {
pinmux = <STM32_PINMUX('Z', 7, AF7)>; /* USART1_TX */
bias-disable;
drive-push-pull;
slew-rate = <0>;
};
pins2 {
pinmux = <STM32_PINMUX('Z', 6, AF7)>; /* USART1_RX */
bias-disable;
};
};
usart1_idle_pins_b: usart1-idle-1 {
pins1 {
pinmux = <STM32_PINMUX('Z', 7, ANALOG)>; /* USART1_TX */
};
pins2 {
pinmux = <STM32_PINMUX('Z', 6, AF7)>; /* USART1_RX */
bias-disable;
};
};
usart1_sleep_pins_b: usart1-sleep-1 {
pins {
pinmux = <STM32_PINMUX('Z', 7, ANALOG)>, /* USART1_TX */
<STM32_PINMUX('Z', 6, ANALOG)>; /* USART1_RX */
};
};
}; };
...@@ -1093,6 +1093,8 @@ adc: adc@48003000 { ...@@ -1093,6 +1093,8 @@ adc: adc@48003000 {
adc1: adc@0 { adc1: adc@0 {
compatible = "st,stm32mp1-adc"; compatible = "st,stm32mp1-adc";
#io-channel-cells = <1>; #io-channel-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0>; reg = <0x0>;
interrupt-parent = <&adc>; interrupt-parent = <&adc>;
interrupts = <0>; interrupts = <0>;
...@@ -1104,12 +1106,24 @@ adc1: adc@0 { ...@@ -1104,12 +1106,24 @@ adc1: adc@0 {
adc2: adc@100 { adc2: adc@100 {
compatible = "st,stm32mp1-adc"; compatible = "st,stm32mp1-adc";
#io-channel-cells = <1>; #io-channel-cells = <1>;
#address-cells = <1>;
#size-cells = <0>;
reg = <0x100>; reg = <0x100>;
interrupt-parent = <&adc>; interrupt-parent = <&adc>;
interrupts = <1>; interrupts = <1>;
dmas = <&dmamux1 10 0x400 0x01>; dmas = <&dmamux1 10 0x400 0x01>;
dma-names = "rx"; dma-names = "rx";
nvmem-cells = <&vrefint>;
nvmem-cell-names = "vrefint";
status = "disabled"; status = "disabled";
channel@13 {
reg = <13>;
label = "vrefint";
};
channel@14 {
reg = <14>;
label = "vddcore";
};
}; };
}; };
...@@ -1529,11 +1543,6 @@ ltdc: display-controller@5a001000 { ...@@ -1529,11 +1543,6 @@ ltdc: display-controller@5a001000 {
clock-names = "lcd"; clock-names = "lcd";
resets = <&rcc LTDC_R>; resets = <&rcc LTDC_R>;
status = "disabled"; status = "disabled";
port {
#address-cells = <1>;
#size-cells = <0>;
};
}; };
iwdg2: watchdog@5a002000 { iwdg2: watchdog@5a002000 {
...@@ -1620,6 +1629,12 @@ bsec: efuse@5c005000 { ...@@ -1620,6 +1629,12 @@ bsec: efuse@5c005000 {
reg = <0x5c005000 0x400>; reg = <0x5c005000 0x400>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
part_number_otp: part-number-otp@4 {
reg = <0x4 0x1>;
};
vrefint: vrefin-cal@52 {
reg = <0x52 0x2>;
};
ts_cal1: calib@5c { ts_cal1: calib@5c {
reg = <0x5c 0x2>; reg = <0x5c 0x2>;
}; };
...@@ -1820,8 +1835,8 @@ m4_rproc: m4@10000000 { ...@@ -1820,8 +1835,8 @@ m4_rproc: m4@10000000 {
<0x30000000 0x40000>, <0x30000000 0x40000>,
<0x38000000 0x10000>; <0x38000000 0x10000>;
resets = <&rcc MCU_R>; resets = <&rcc MCU_R>;
reset-names = "mcu_rst";
st,syscfg-holdboot = <&rcc 0x10C 0x1>; st,syscfg-holdboot = <&rcc 0x10C 0x1>;
st,syscfg-tz = <&rcc 0x000 0x1>;
st,syscfg-pdds = <&pwr_mcu 0x0 0x1>; st,syscfg-pdds = <&pwr_mcu 0x0 0x1>;
st,syscfg-rsc-tbl = <&tamp 0x144 0xFFFFFFFF>; st,syscfg-rsc-tbl = <&tamp 0x144 0xFFFFFFFF>;
st,syscfg-m4-state = <&tamp 0x148 0xFFFFFFFF>; st,syscfg-m4-state = <&tamp 0x148 0xFFFFFFFF>;
......
...@@ -24,14 +24,7 @@ dsi: dsi@5a000000 { ...@@ -24,14 +24,7 @@ dsi: dsi@5a000000 {
clock-names = "pclk", "ref", "px_clk"; clock-names = "pclk", "ref", "px_clk";
resets = <&rcc DSI_R>; resets = <&rcc DSI_R>;
reset-names = "apb"; reset-names = "apb";
#address-cells = <1>;
#size-cells = <0>;
status = "disabled"; status = "disabled";
ports {
#address-cells = <1>;
#size-cells = <0>;
};
}; };
}; };
}; };
...@@ -55,8 +55,11 @@ &mdma1 { ...@@ -55,8 +55,11 @@ &mdma1 {
resets = <&scmi_reset RST_SCMI_MDMA>; resets = <&scmi_reset RST_SCMI_MDMA>;
}; };
&mlahb { &m4_rproc {
resets = <&scmi_reset RST_SCMI_MCU>; /delete-property/ st,syscfg-holdboot;
resets = <&scmi_reset RST_SCMI_MCU>,
<&scmi_reset RST_SCMI_MCU_HOLD_BOOT>;
reset-names = "mcu_rst", "hold_boot";
}; };
&rcc { &rcc {
......
...@@ -49,6 +49,9 @@ &dsi { ...@@ -49,6 +49,9 @@ &dsi {
phy-dsi-supply = <&reg18>; phy-dsi-supply = <&reg18>;
ports { ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 { port@0 {
reg = <0>; reg = <0>;
dsi_in: endpoint { dsi_in: endpoint {
...@@ -104,8 +107,7 @@ &ltdc { ...@@ -104,8 +107,7 @@ &ltdc {
status = "okay"; status = "okay";
port { port {
ltdc_ep0_out: endpoint@0 { ltdc_ep0_out: endpoint {
reg = <0>;
remote-endpoint = <&dsi_in>; remote-endpoint = <&dsi_in>;
}; };
}; };
......
...@@ -49,6 +49,9 @@ &dsi { ...@@ -49,6 +49,9 @@ &dsi {
phy-dsi-supply = <&reg18>; phy-dsi-supply = <&reg18>;
ports { ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 { port@0 {
reg = <0>; reg = <0>;
dsi_in_ltdc: endpoint { dsi_in_ltdc: endpoint {
...@@ -104,8 +107,7 @@ &ltdc { ...@@ -104,8 +107,7 @@ &ltdc {
status = "okay"; status = "okay";
port { port {
ltdc_out_dsi: endpoint@0 { ltdc_out_dsi: endpoint {
reg = <0>;
remote-endpoint = <&dsi_in_ltdc>; remote-endpoint = <&dsi_in_ltdc>;
}; };
}; };
......
...@@ -81,8 +81,7 @@ &ltdc { ...@@ -81,8 +81,7 @@ &ltdc {
status = "okay"; status = "okay";
port { port {
ltdc_ep0_out: endpoint@0 { ltdc_ep0_out: endpoint {
reg = <0>;
remote-endpoint = <&panel_in>; remote-endpoint = <&panel_in>;
}; };
}; };
......
...@@ -287,7 +287,7 @@ &usart2 { ...@@ -287,7 +287,7 @@ &usart2 {
pinctrl-names = "default", "sleep"; pinctrl-names = "default", "sleep";
pinctrl-0 = <&usart2_pins_b>; pinctrl-0 = <&usart2_pins_b>;
pinctrl-1 = <&usart2_sleep_pins_b>; pinctrl-1 = <&usart2_sleep_pins_b>;
st,hw-flow-ctrl; uart-has-rtscts;
/delete-property/dmas; /delete-property/dmas;
/delete-property/dma-names; /delete-property/dma-names;
status = "okay"; status = "okay";
...@@ -297,7 +297,7 @@ &usart2 { ...@@ -297,7 +297,7 @@ &usart2 {
&uart4 { &uart4 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&uart4_pins_c>; pinctrl-0 = <&uart4_pins_c>;
st,hw-flow-ctrl; uart-has-rtscts;
/delete-property/dmas; /delete-property/dmas;
/delete-property/dma-names; /delete-property/dma-names;
status = "okay"; status = "okay";
......
...@@ -61,8 +61,11 @@ &mdma1 { ...@@ -61,8 +61,11 @@ &mdma1 {
resets = <&scmi_reset RST_SCMI_MDMA>; resets = <&scmi_reset RST_SCMI_MDMA>;
}; };
&mlahb { &m4_rproc {
resets = <&scmi_reset RST_SCMI_MCU>; /delete-property/ st,syscfg-holdboot;
resets = <&scmi_reset RST_SCMI_MCU>,
<&scmi_reset RST_SCMI_MCU_HOLD_BOOT>;
reset-names = "mcu_rst", "hold_boot";
}; };
&rcc { &rcc {
......
...@@ -31,10 +31,15 @@ &cryp1 { ...@@ -31,10 +31,15 @@ &cryp1 {
}; };
&dsi { &dsi {
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
phy-dsi-supply = <&reg18>; phy-dsi-supply = <&reg18>;
ports { ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 { port@0 {
reg = <0>; reg = <0>;
dsi_in: endpoint { dsi_in: endpoint {
...@@ -82,6 +87,9 @@ &ltdc { ...@@ -82,6 +87,9 @@ &ltdc {
status = "okay"; status = "okay";
port { port {
#address-cells = <1>;
#size-cells = <0>;
ltdc_ep1_out: endpoint@1 { ltdc_ep1_out: endpoint@1 {
reg = <1>; reg = <1>;
remote-endpoint = <&dsi_in>; remote-endpoint = <&dsi_in>;
......
...@@ -60,8 +60,11 @@ &mdma1 { ...@@ -60,8 +60,11 @@ &mdma1 {
resets = <&scmi_reset RST_SCMI_MDMA>; resets = <&scmi_reset RST_SCMI_MDMA>;
}; };
&mlahb { &m4_rproc {
resets = <&scmi_reset RST_SCMI_MCU>; /delete-property/ st,syscfg-holdboot;
resets = <&scmi_reset RST_SCMI_MCU>,
<&scmi_reset RST_SCMI_MCU_HOLD_BOOT>;
reset-names = "mcu_rst", "hold_boot";
}; };
&rcc { &rcc {
......
...@@ -103,10 +103,20 @@ &adc { ...@@ -103,10 +103,20 @@ &adc {
vref-supply = <&vdda>; vref-supply = <&vdda>;
status = "disabled"; status = "disabled";
adc1: adc@0 { adc1: adc@0 {
st,adc-channels = <0 1 6>;
/* 16.5 ck_cycles sampling time */
st,min-sample-time-nsecs = <400>;
status = "okay"; status = "okay";
channel@0 {
reg = <0>;
/* 16.5 ck_cycles sampling time */
st,min-sample-time-ns = <400>;
};
channel@1 {
reg = <1>;
st,min-sample-time-ns = <400>;
};
channel@6 {
reg = <6>;
st,min-sample-time-ns = <400>;
};
}; };
}; };
......
...@@ -97,9 +97,11 @@ &adc { ...@@ -97,9 +97,11 @@ &adc {
adc1: adc@0 { adc1: adc@0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&adc1_in6_pins_a>; pinctrl-0 = <&adc1_in6_pins_a>;
st,min-sample-time-nsecs = <5000>;
st,adc-channels = <6>;
status = "disabled"; status = "disabled";
channel@6 {
reg = <6>;
st,min-sample-time-ns = <5000>;
};
}; };
adc2: adc@100 { adc2: adc@100 {
......
...@@ -66,8 +66,11 @@ &mdma1 { ...@@ -66,8 +66,11 @@ &mdma1 {
resets = <&scmi_reset RST_SCMI_MDMA>; resets = <&scmi_reset RST_SCMI_MDMA>;
}; };
&mlahb { &m4_rproc {
resets = <&scmi_reset RST_SCMI_MCU>; /delete-property/ st,syscfg-holdboot;
resets = <&scmi_reset RST_SCMI_MCU>,
<&scmi_reset RST_SCMI_MCU_HOLD_BOOT>;
reset-names = "mcu_rst", "hold_boot";
}; };
&rcc { &rcc {
......
...@@ -101,9 +101,14 @@ dcmi_0: endpoint { ...@@ -101,9 +101,14 @@ dcmi_0: endpoint {
&dsi { &dsi {
phy-dsi-supply = <&reg18>; phy-dsi-supply = <&reg18>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay"; status = "okay";
ports { ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 { port@0 {
reg = <0>; reg = <0>;
dsi_in: endpoint { dsi_in: endpoint {
...@@ -119,7 +124,7 @@ dsi_out: endpoint { ...@@ -119,7 +124,7 @@ dsi_out: endpoint {
}; };
}; };
panel-dsi@0 { panel@0 {
compatible = "raydium,rm68200"; compatible = "raydium,rm68200";
reg = <0>; reg = <0>;
reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>; reset-gpios = <&gpiof 15 GPIO_ACTIVE_LOW>;
...@@ -185,7 +190,9 @@ ov5640: camera@3c { ...@@ -185,7 +190,9 @@ ov5640: camera@3c {
reg = <0x3c>; reg = <0x3c>;
clocks = <&clk_ext_camera>; clocks = <&clk_ext_camera>;
clock-names = "xclk"; clock-names = "xclk";
AVDD-supply = <&v2v8>;
DOVDD-supply = <&v2v8>; DOVDD-supply = <&v2v8>;
DVDD-supply = <&v2v8>;
powerdown-gpios = <&stmfx_pinctrl 18 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL)>; powerdown-gpios = <&stmfx_pinctrl 18 (GPIO_ACTIVE_HIGH | GPIO_PUSH_PULL)>;
reset-gpios = <&stmfx_pinctrl 19 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>; reset-gpios = <&stmfx_pinctrl 19 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
rotation = <180>; rotation = <180>;
...@@ -239,8 +246,7 @@ &ltdc { ...@@ -239,8 +246,7 @@ &ltdc {
status = "okay"; status = "okay";
port { port {
ltdc_ep0_out: endpoint@0 { ltdc_ep0_out: endpoint {
reg = <0>;
remote-endpoint = <&dsi_in>; remote-endpoint = <&dsi_in>;
}; };
}; };
......
...@@ -161,8 +161,7 @@ &ltdc { ...@@ -161,8 +161,7 @@ &ltdc {
status = "okay"; status = "okay";
port { port {
ltdc_ep0_out: endpoint@0 { ltdc_ep0_out: endpoint {
reg = <0>;
remote-endpoint = <&panel_input>; remote-endpoint = <&panel_input>;
}; };
}; };
......
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/*
* Copyright (C) Phytec GmbH 2019-2020 - All Rights Reserved
* Author: Dom VOVARD <dom.vovard@linrt.com>.
*/
/dts-v1/;
#include <dt-bindings/pinctrl/stm32-pinfunc.h>
#include "stm32mp157.dtsi"
#include "stm32mp15xc.dtsi"
#include "stm32mp15xxac-pinctrl.dtsi"
#include "stm32mp157c-phycore-stm32mp15-som.dtsi"
/ {
model = "PHYTEC phyCORE-STM32MP1-3 Dev Board";
compatible = "phytec,phycore-stm32mp1-3",
"phytec,phycore-stm32mp157c-som", "st,stm32mp157";
aliases {
mmc0 = &sdmmc1;
mmc1 = &sdmmc2;
mmc2 = &sdmmc3;
serial0 = &uart4;
serial1 = &usart3;
serial2 = &usart1;
};
};
&cryp1 {
status = "okay";
};
&dts {
status = "okay";
};
&fmc {
status = "disabled";
};
&gpu {
status = "okay";
};
&i2c4_eeprom {
status = "okay";
};
&i2c4_rtc {
status = "okay";
};
&qspi {
status = "okay";
};
&sdmmc2 {
status = "okay";
};
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/*
* Copyright (C) 2022-2023 Steffen Trumtrar <kernel@pengutronix.de>
* Copyright (C) Phytec GmbH 2019-2020 - All Rights Reserved
* Author: Dom VOVARD <dom.vovard@linrt.com>.
*/
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/leds/leds-pca9532.h>
#include <dt-bindings/mfd/st,stpmic1.h>
#include <dt-bindings/net/ti-dp83867.h>
#include "stm32mp15-pinctrl.dtsi"
/ {
model = "PHYTEC phyCORE-STM32MP15 SOM";
compatible = "phytec,phycore-stm32mp157c-som", "st,stm32mp157";
aliases {
ethernet0 = &ethernet0;
rtc0 = &i2c4_rtc;
rtc1 = &rtc;
};
chosen {
stdout-path = "serial0:115200n8";
};
gpio-keys {
compatible = "gpio-keys";
key-home {
label = "Home";
gpios = <&gpioa 13 GPIO_ACTIVE_LOW>;
linux,code = <KEY_HOME>;
};
key-enter {
label = "Enter";
gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
linux,code = <KEY_ENTER>;
};
};
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
retram: retram@38000000 {
compatible = "shared-dma-pool";
reg = <0x38000000 0x10000>;
no-map;
};
mcuram: mcuram@30000000 {
compatible = "shared-dma-pool";
reg = <0x30000000 0x40000>;
no-map;
};
mcuram2: mcuram2@10000000 {
compatible = "shared-dma-pool";
reg = <0x10000000 0x40000>;
no-map;
};
vdev0vring0: vdev0vring0@10040000 {
compatible = "shared-dma-pool";
reg = <0x10040000 0x1000>;
no-map;
};
vdev0vring1: vdev0vring1@10041000 {
compatible = "shared-dma-pool";
reg = <0x10041000 0x1000>;
no-map;
};
vdev0buffer: vdev0buffer@10042000 {
compatible = "shared-dma-pool";
reg = <0x10042000 0x4000>;
no-map;
};
};
sound {
compatible = "audio-graph-card";
label = "STM32MP1-PHYCORE";
routing =
"Playback", "MCLK", /* Set a route between "MCLK" and "playback" widgets */
"Capture", "MCLK";
dais = <&sai2b_port>,
<&sai2a_port>;
};
regulator_vin: regulator {
compatible = "regulator-fixed";
regulator-name = "vin";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
};
&ethernet0 {
pinctrl-0 = <&ethernet0_rgmii_pins_d>;
pinctrl-1 = <&ethernet0_rgmii_sleep_pins_d>;
pinctrl-names = "default", "sleep";
phy-mode = "rgmii-id";
max-speed = <1000>;
phy-handle = <&phy0>;
st,eth-clk-sel;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
phy0: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
interrupt-parent = <&gpiog>;
interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
ti,min-output-impedance;
enet-phy-lane-no-swap;
ti,clk-output-sel = <DP83867_CLK_O_SEL_OFF>;
};
};
};
&i2c1 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c1_pins_b>;
pinctrl-1 = <&i2c1_sleep_pins_b>;
i2c-scl-rising-time-ns = <100>;
i2c-scl-falling-time-ns = <7>;
status = "okay";
codec@18 {
compatible = "ti,tlv320aic3007";
reg = <0x18>;
#sound-dai-cells = <0>;
ai3x-micbias-vg = <2>;
AVDD-supply = <&v3v3>;
IOVDD-supply = <&v3v3>;
DRVDD-supply = <&v3v3>;
DVDD-supply = <&v1v8_audio>;
clocks = <&sai2b>;
port {
#address-cells = <1>;
#size-cells = <0>;
tlv320_tx_endpoint: endpoint@0 {
reg = <0>;
remote-endpoint = <&sai2b_endpoint>;
frame-master;
bitclock-master;
};
tlv320_rx_endpoint: endpoint@1 {
reg = <1>;
remote-endpoint = <&sai2a_endpoint>;
frame-master;
bitclock-master;
};
};
};
touch@44 {
compatible = "st,stmpe811";
reg = <0x44>;
interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
interrupt-parent = <&gpioi>;
vio-supply = <&v3v3>;
vcc-supply = <&v3v3>;
touchscreen {
compatible = "st,stmpe-ts";
st,sample-time = <4>;
st,mod-12b = <1>;
st,ref-sel = <0>;
st,adc-freq = <1>;
st,ave-ctrl = <1>;
st,touch-det-delay = <2>;
st,settling = <2>;
st,fraction-z = <7>;
st,i-drive = <1>;
};
};
leds@62 {
compatible = "nxp,pca9533";
reg = <0x62>;
led-0 {
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_POWER;
type = <PCA9532_TYPE_LED>;
};
led-1 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_POWER;
type = <PCA9532_TYPE_LED>;
};
led-2 {
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_HEARTBEAT;
type = <PCA9532_TYPE_LED>;
linux,default-trigger = "heartbeat";
};
};
};
&i2c4 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&i2c4_pins_a>;
pinctrl-1 = <&i2c4_sleep_pins_a>;
i2c-scl-rising-time-ns = <185>;
i2c-scl-falling-time-ns = <20>;
status = "okay";
pmic@33 {
compatible = "st,stpmic1";
reg = <0x33>;
interrupts-extended = <&gpioa 0 IRQ_TYPE_EDGE_FALLING>;
interrupt-controller;
#interrupt-cells = <2>;
regulators {
compatible = "st,stpmic1-regulators";
buck1-supply = <&regulator_vin>;
buck2-supply = <&regulator_vin>;
buck3-supply = <&regulator_vin>;
buck4-supply = <&regulator_vin>;
ldo1-supply = <&v3v3>;
ldo2-supply = <&v3v3>;
ldo3-supply = <&vdd_ddr>;
ldo4-supply = <&regulator_vin>;
ldo5-supply = <&v3v3>;
ldo6-supply = <&v3v3>;
boost-supply = <&regulator_vin>;
pwr_sw1-supply = <&bst_out>;
pwr_sw2-supply = <&bst_out>;
vddcore: buck1 {
regulator-name = "vddcore";
regulator-min-microvolt = <1200000>;
regulator-max-microvolt = <1350000>;
regulator-always-on;
regulator-initial-mode = <0>;
};
vdd_ddr: buck2 {
regulator-name = "vdd_ddr";
regulator-min-microvolt = <1350000>;
regulator-max-microvolt = <1350000>;
regulator-always-on;
regulator-initial-mode = <0>;
};
vdd: buck3 {
regulator-name = "vdd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
st,mask-reset;
regulator-initial-mode = <0>;
};
v3v3: buck4 {
regulator-name = "v3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-always-on;
regulator-initial-mode = <0>;
};
v1v8_audio: ldo1 {
regulator-name = "v1v8_audio";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
interrupts = <IT_CURLIM_LDO1 0>;
};
vdd_eth_2v5: ldo2 {
regulator-name = "dd_eth_2v5";
regulator-min-microvolt = <2500000>;
regulator-max-microvolt = <2500000>;
regulator-always-on;
interrupts = <IT_CURLIM_LDO2 0>;
};
vtt_ddr: ldo3 {
regulator-name = "vtt_ddr";
regulator-min-microvolt = <500000>;
regulator-max-microvolt = <750000>;
regulator-always-on;
regulator-over-current-protection;
};
vdd_usb: ldo4 {
regulator-name = "vdd_usb";
interrupts = <IT_CURLIM_LDO4 0>;
};
vdda: ldo5 {
regulator-name = "vdda";
regulator-min-microvolt = <2900000>;
regulator-max-microvolt = <2900000>;
interrupts = <IT_CURLIM_LDO5 0>;
regulator-boot-on;
};
vdd_eth_1v0: ldo6 {
regulator-name = "vdd_eth_1v0";
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1000000>;
regulator-always-on;
interrupts = <IT_CURLIM_LDO6 0>;
};
vref_ddr: vref_ddr {
regulator-name = "vref_ddr";
regulator-always-on;
};
bst_out: boost {
regulator-name = "bst_out";
interrupts = <IT_OCP_BOOST 0>;
};
vbus_otg: pwr_sw1 {
regulator-name = "vbus_otg";
interrupts = <IT_OCP_OTG 0>;
regulator-active-discharge = <1>;
};
vbus_sw: pwr_sw2 {
regulator-name = "vbus_sw";
interrupts = <IT_OCP_SWOUT 0>;
regulator-active-discharge = <1>;
};
};
onkey {
compatible = "st,stpmic1-onkey";
interrupts = <IT_PONKEY_F 0>,
<IT_PONKEY_R 0>;
interrupt-names = "onkey-falling",
"onkey-rising";
power-off-time-sec = <10>;
};
watchdog {
compatible = "st,stpmic1-wdt";
};
};
i2c4_eeprom: eeprom@50 {
compatible = "microchip,24c32",
"atmel,24c32";
reg = <0x50>;
};
i2c4_rtc: rtc@52 {
compatible = "microcrystal,rv3028";
reg = <0x52>;
};
};
&ipcc {
status = "okay";
};
&iwdg2 {
timeout-sec = <32>;
status = "okay";
};
&m_can2 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&m_can2_pins_a>;
pinctrl-1 = <&m_can2_sleep_pins_a>;
status = "okay";
};
&m4_rproc {
memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
<&vdev0vring1>, <&vdev0buffer>;
mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>, <&ipcc 3>;
mbox-names = "vq0", "vq1", "shutdown", "detach";
interrupt-parent = <&exti>;
interrupts = <68 1>;
status = "okay";
};
&pwr_regulators {
vdd-supply = <&vdd>;
vdd_3v3_usbfs-supply = <&vdd_usb>;
};
&qspi {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a>;
pinctrl-1 = <&qspi_clk_sleep_pins_a &qspi_bk1_sleep_pins_a>;
status = "okay";
flash0: flash@0 {
compatible = "winbond,w25q128", "jedec,spi-nor";
reg = <0>;
spi-rx-bus-width = <4>;
spi-max-frequency = <50000000>;
m25p,fast-read;
#address-cells = <1>;
#size-cells = <1>;
};
};
&rng1 {
status = "okay";
};
&rtc {
status = "okay";
};
&sai2 {
clocks = <&rcc SAI2>, <&rcc PLL3_Q>, <&rcc PLL3_R>;
clock-names = "pclk", "x8k", "x11k";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sai2a_pins_b>, <&sai2b_pins_d>;
pinctrl-1 = <&sai2a_sleep_pins_b>, <&sai2b_sleep_pins_d>;
status = "okay";
};
&sai2a {
dma-names = "rx";
st,sync = <&sai2b 2>;
clocks = <&rcc SAI2_K>, <&sai2b>;
clock-names = "sai_ck", "MCLK";
#clock-cells = <0>;
sai2a_port: port {
sai2a_endpoint: endpoint {
remote-endpoint = <&tlv320_rx_endpoint>;
mclk-fs = <256>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <16>;
};
};
};
&sai2b {
dma-names = "tx";
#clock-cells = <0>;
sai2b_port: port {
sai2b_endpoint: endpoint {
remote-endpoint = <&tlv320_tx_endpoint>;
mclk-fs = <256>;
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <16>;
};
};
};
&sdmmc1 {
pinctrl-names = "default", "opendrain", "sleep";
pinctrl-0 = <&sdmmc1_b4_pins_b>;
pinctrl-1 = <&sdmmc1_b4_od_pins_b>;
pinctrl-2 = <&sdmmc1_b4_sleep_pins_b>;
cd-gpios = <&gpiof 3 GPIO_ACTIVE_LOW>;
disable-wp;
st,neg-edge;
bus-width = <4>;
vmmc-supply = <&v3v3>;
status = "okay";
};
&sdmmc2 {
pinctrl-names = "default", "opendrain", "sleep";
pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_e>;
pinctrl-1 = <&sdmmc2_b4_od_pins_a &sdmmc2_d47_pins_e>;
pinctrl-2 = <&sdmmc2_b4_sleep_pins_a &sdmmc2_d47_sleep_pins_e>;
non-removable;
no-sd;
no-sdio;
st,neg-edge;
bus-width = <8>;
vmmc-supply = <&v3v3>;
vqmmc-supply = <&v3v3>;
mmc-ddr-3_3v;
};
&spi1 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&spi1_pins_a>;
pinctrl-1 = <&spi1_sleep_pins_a>;
cs-gpios = <&gpioz 3 0>;
status = "okay";
};
&uart4 {
pinctrl-names = "default", "sleep", "idle";
pinctrl-0 = <&uart4_pins_a>;
pinctrl-1 = <&uart4_sleep_pins_a>;
pinctrl-2 = <&uart4_idle_pins_a>;
pinctrl-3 = <&uart4_pins_a>;
/delete-property/dmas;
/delete-property/dma-names;
status = "okay";
};
&usart1 {
pinctrl-names = "default", "sleep", "idle";
pinctrl-0 = <&usart1_pins_b &usart1_pins_a>;
pinctrl-1 = <&usart1_sleep_pins_b &usart1_sleep_pins_a>;
pinctrl-2 = <&usart1_idle_pins_b &usart1_idle_pins_a>;
uart-has-rtscts;
status = "okay";
};
&usart3 {
pinctrl-names = "default", "sleep", "idle";
pinctrl-0 = <&usart3_pins_a>;
pinctrl-1 = <&usart3_sleep_pins_a>;
pinctrl-2 = <&usart3_idle_pins_a>;
status = "okay";
};
&usbh_ehci {
phys = <&usbphyc_port0>;
phy-names = "usb";
status = "okay";
};
&usbh_ohci {
phys = <&usbphyc_port0>;
phy-names = "usb";
status = "okay";
};
&usbotg_hs {
phys = <&usbphyc_port1 0>;
phy-names = "usb2-phy";
status = "okay";
};
&usbphyc {
status = "okay";
};
&usbphyc_port0 {
phy-supply = <&vdd_usb>;
};
&usbphyc_port1 {
phy-supply = <&vdd_usb>;
};
...@@ -137,10 +137,13 @@ reg_panel_supply: regulator-panel-supply { ...@@ -137,10 +137,13 @@ reg_panel_supply: regulator-panel-supply {
sound { sound {
compatible = "audio-graph-card"; compatible = "audio-graph-card";
routing = widgets = "Headphone", "Headphone Jack",
"MIC_IN", "Capture", "Line", "Line In Jack",
"Capture", "Mic Bias", "Microphone", "Microphone Jack";
"Playback", "HP_OUT"; routing = "Headphone Jack", "HP_OUT",
"LINE_IN", "Line In Jack",
"MIC_IN", "Microphone Jack",
"Microphone Jack", "Mic Bias";
dais = <&sai2a_port &sai2b_port>; dais = <&sai2a_port &sai2b_port>;
status = "okay"; status = "okay";
}; };
......
...@@ -80,17 +80,19 @@ &adc { ...@@ -80,17 +80,19 @@ &adc {
vdda-supply = <&vdda>; vdda-supply = <&vdda>;
vref-supply = <&vdda>; vref-supply = <&vdda>;
status = "okay"; status = "okay";
};
adc1: adc@0 { &adc1 {
st,min-sample-time-nsecs = <5000>; channel@0 {
st,adc-channels = <0>; reg = <0>;
status = "okay"; st,min-sample-time-ns = <5000>;
}; };
};
adc2: adc@100 { &adc2 {
st,adc-channels = <1>; channel@1 {
st,min-sample-time-nsecs = <5000>; reg = <1>;
status = "okay"; st,min-sample-time-ns = <5000>;
}; };
}; };
......
...@@ -87,7 +87,7 @@ sd_switch: regulator-sd_switch { ...@@ -87,7 +87,7 @@ sd_switch: regulator-sd_switch {
sound { sound {
compatible = "audio-graph-card"; compatible = "audio-graph-card";
label = "STM32MP1-AV96-HDMI"; label = "STM32-AV96-HDMI";
dais = <&sai2a_port>; dais = <&sai2a_port>;
status = "okay"; status = "okay";
}; };
...@@ -111,17 +111,39 @@ &adc { ...@@ -111,17 +111,39 @@ &adc {
vdda-supply = <&vdda>; vdda-supply = <&vdda>;
vref-supply = <&vdda>; vref-supply = <&vdda>;
status = "okay"; status = "okay";
};
adc1: adc@0 { &adc1 {
st,adc-channels = <0 1 6>; channel@0 {
st,min-sample-time-nsecs = <5000>; reg = <0>;
status = "okay"; st,min-sample-time-ns = <5000>;
}; };
adc2: adc@100 { channel@1 {
st,adc-channels = <0 1 2>; reg = <1>;
st,min-sample-time-nsecs = <5000>; st,min-sample-time-ns = <5000>;
status = "okay"; };
channel@6 {
reg = <6>;
st,min-sample-time-ns = <5000>;
};
};
&adc2 {
channel@0 {
reg = <0>;
st,min-sample-time-ns = <5000>;
};
channel@1 {
reg = <1>;
st,min-sample-time-ns = <5000>;
};
channel@2 {
reg = <2>;
st,min-sample-time-ns = <5000>;
}; };
}; };
...@@ -321,6 +343,12 @@ adv7513_i2s0: endpoint { ...@@ -321,6 +343,12 @@ adv7513_i2s0: endpoint {
}; };
}; };
}; };
dh_mac_eeprom: eeprom@53 {
compatible = "atmel,24c02";
reg = <0x53>;
pagesize = <16>;
};
}; };
&ltdc { &ltdc {
...@@ -330,11 +358,7 @@ &ltdc { ...@@ -330,11 +358,7 @@ &ltdc {
status = "okay"; status = "okay";
port { port {
#address-cells = <1>; ltdc_ep0_out: endpoint {
#size-cells = <0>;
ltdc_ep0_out: endpoint@0 {
reg = <0>;
remote-endpoint = <&adv7513_in>; remote-endpoint = <&adv7513_in>;
}; };
}; };
...@@ -452,7 +476,7 @@ &usart2 { ...@@ -452,7 +476,7 @@ &usart2 {
pinctrl-names = "default", "sleep"; pinctrl-names = "default", "sleep";
pinctrl-0 = <&usart2_pins_a>; pinctrl-0 = <&usart2_pins_a>;
pinctrl-1 = <&usart2_sleep_pins_a>; pinctrl-1 = <&usart2_sleep_pins_a>;
st,hw-flow-ctrl; uart-has-rtscts;
/delete-property/dmas; /delete-property/dmas;
/delete-property/dma-names; /delete-property/dma-names;
status = "okay"; status = "okay";
......
...@@ -57,15 +57,35 @@ &adc { /* X11 ADC inputs */ ...@@ -57,15 +57,35 @@ &adc { /* X11 ADC inputs */
status = "okay"; status = "okay";
adc1: adc@0 { adc1: adc@0 {
st,adc-channels = <0 1 6>;
st,min-sample-time-nsecs = <5000>;
status = "okay"; status = "okay";
channel@0 {
reg = <0>;
st,min-sample-time-ns = <5000>;
};
channel@1 {
reg = <1>;
st,min-sample-time-ns = <5000>;
};
channel@6 {
reg = <6>;
st,min-sample-time-ns = <5000>;
};
}; };
adc2: adc@100 { adc2: adc@100 {
st,adc-channels = <0 1 2>;
st,min-sample-time-nsecs = <5000>;
status = "okay"; status = "okay";
channel@0 {
reg = <0>;
st,min-sample-time-ns = <5000>;
};
channel@1 {
reg = <1>;
st,min-sample-time-ns = <5000>;
};
channel@2 {
reg = <2>;
st,min-sample-time-ns = <5000>;
};
}; };
}; };
...@@ -192,6 +212,12 @@ eeprom@50 { ...@@ -192,6 +212,12 @@ eeprom@50 {
reg = <0x50>; reg = <0x50>;
pagesize = <16>; pagesize = <16>;
}; };
dh_mac_eeprom: eeprom@53 {
compatible = "atmel,24c02";
reg = <0x53>;
pagesize = <16>;
};
}; };
&sdmmc1 { /* MicroSD */ &sdmmc1 { /* MicroSD */
......
...@@ -213,12 +213,6 @@ watchdog { ...@@ -213,12 +213,6 @@ watchdog {
status = "disabled"; status = "disabled";
}; };
}; };
eeprom@53 {
compatible = "atmel,24c02";
reg = <0x53>;
pagesize = <16>;
};
}; };
&ipcc { &ipcc {
......
...@@ -41,15 +41,35 @@ &adc { ...@@ -41,15 +41,35 @@ &adc {
status = "okay"; status = "okay";
adc1: adc@0 { adc1: adc@0 {
st,adc-channels = <0 1 6>;
st,min-sample-time-nsecs = <5000>;
status = "okay"; status = "okay";
channel@0 {
reg = <0>;
st,min-sample-time-ns = <5000>;
};
channel@1 {
reg = <1>;
st,min-sample-time-ns = <5000>;
};
channel@6 {
reg = <6>;
st,min-sample-time-ns = <5000>;
};
}; };
adc2: adc@100 { adc2: adc@100 {
st,adc-channels = <0 1 2>;
st,min-sample-time-nsecs = <5000>;
status = "okay"; status = "okay";
channel@0 {
reg = <0>;
st,min-sample-time-ns = <5000>;
};
channel@1 {
reg = <1>;
st,min-sample-time-ns = <5000>;
};
channel@2 {
reg = <2>;
st,min-sample-time-ns = <5000>;
};
}; };
}; };
...@@ -90,6 +110,14 @@ phy0: ethernet-phy@7 { ...@@ -90,6 +110,14 @@ phy0: ethernet-phy@7 {
}; };
}; };
&i2c4 {
dh_mac_eeprom: eeprom@53 {
compatible = "atmel,24c02";
reg = <0x53>;
pagesize = <16>;
};
};
&sdmmc1 { &sdmmc1 {
pinctrl-names = "default", "opendrain", "sleep"; pinctrl-names = "default", "opendrain", "sleep";
pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>; pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_b>;
......
...@@ -93,28 +93,39 @@ vin: vin { ...@@ -93,28 +93,39 @@ vin: vin {
&adc { &adc {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&adc12_ain_pins_a>, <&adc12_usb_cc_pins_a>; pinctrl-0 = <&adc12_usb_cc_pins_a>;
vdd-supply = <&vdd>; vdd-supply = <&vdd>;
vdda-supply = <&vdd>; vdda-supply = <&vdd>;
vref-supply = <&vrefbuf>; vref-supply = <&vrefbuf>;
status = "disabled"; status = "okay";
adc1: adc@0 { adc1: adc@0 {
status = "okay";
/* /*
* Type-C USB_PWR_CC1 & USB_PWR_CC2 on in18 & in19. * Type-C USB_PWR_CC1 & USB_PWR_CC2 on in18 & in19.
* Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C: * Use at least 5 * RC time, e.g. 5 * (Rp + Rd) * C:
* 5 * (56 + 47kOhms) * 5pF => 2.5us. * 5 * (56 + 47kOhms) * 5pF => 2.5us.
* Use arbitrary margin here (e.g. 5us). * Use arbitrary margin here (e.g. 5us).
*/ */
st,min-sample-time-nsecs = <5000>; channel@18 {
/* AIN connector, USB Type-C CC1 & CC2 */ reg = <18>;
st,adc-channels = <0 1 6 13 18 19>; st,min-sample-time-ns = <5000>;
status = "okay"; };
channel@19 {
reg = <19>;
st,min-sample-time-ns = <5000>;
};
}; };
adc2: adc@100 { adc2: adc@100 {
/* AIN connector, USB Type-C CC1 & CC2 */
st,adc-channels = <0 1 2 6 18 19>;
st,min-sample-time-nsecs = <5000>;
status = "okay"; status = "okay";
/* USB Type-C CC1 & CC2 */
channel@18 {
reg = <18>;
st,min-sample-time-ns = <5000>;
};
channel@19 {
reg = <19>;
st,min-sample-time-ns = <5000>;
};
}; };
}; };
...@@ -435,7 +446,7 @@ &i2s2 { ...@@ -435,7 +446,7 @@ &i2s2 {
i2s2_port: port { i2s2_port: port {
i2s2_endpoint: endpoint { i2s2_endpoint: endpoint {
remote-endpoint = <&sii9022_tx_endpoint>; remote-endpoint = <&sii9022_tx_endpoint>;
format = "i2s"; dai-format = "i2s";
mclk-fs = <256>; mclk-fs = <256>;
}; };
}; };
...@@ -457,8 +468,7 @@ &ltdc { ...@@ -457,8 +468,7 @@ &ltdc {
status = "okay"; status = "okay";
port { port {
ltdc_ep0_out: endpoint@0 { ltdc_ep0_out: endpoint {
reg = <0>;
remote-endpoint = <&sii9022_in>; remote-endpoint = <&sii9022_in>;
}; };
}; };
......
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