]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: stm32mp15: alignment with v5.11-rc2
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 11 Jan 2021 11:33:36 +0000 (12:33 +0100)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Tue, 9 Feb 2021 09:56:06 +0000 (10:56 +0100)
Device tree alignment with Linux kernel v5.11-rc2
- fix DCMI DMA features on stm32mp15 family
- Add alternate pinmux for FMC EBI bus
- Harmonize EHCI/OHCI DT nodes name on stm32mp15
- update sdmmc IP version for STM32MP15
- Add LP timer irqs on stm32mp151
- Add LP timer wakeup-source on stm32mp151
- enable HASH by default on stm32mp15
- enable CRC1 by default on stm32mp15
- enable CRYP by default on stm32mp15
- set bus-type in DCMI endpoint for stm32mp157c-ev1 board
- reorder spi4 within stm32mp15-pinctrl
- add STUSB1600 Type-C using I2C4 on stm32mp15xx-dkx
- fix mdma1 clients channel priority level on stm32mp151
- fix dmamux reg property on stm32mp151
- adjust USB OTG gadget fifo sizes in stm32mp151
- update stm32mp151 for remote proc synchronization support
- support child mfd cells for the stm32mp1 TAMP syscon

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/dts/stm32mp15-pinctrl.dtsi
arch/arm/dts/stm32mp151.dtsi
arch/arm/dts/stm32mp153.dtsi
arch/arm/dts/stm32mp157c-dk2.dts
arch/arm/dts/stm32mp157c-ed1.dts
arch/arm/dts/stm32mp157c-ev1.dts
arch/arm/dts/stm32mp15xx-dhcom-u-boot.dtsi
arch/arm/dts/stm32mp15xx-dkx.dtsi

index 154832983cf17d8093c430f9540267f8f81e9b0a..dd4bd1e55433b1c25fe152873e79685b976cc8b8 100644 (file)
                };
        };
 
+       fmc_pins_b: fmc-1 {
+               pins {
+                       pinmux = <STM32_PINMUX('D', 4, AF12)>, /* FMC_NOE */
+                                <STM32_PINMUX('D', 5, AF12)>, /* FMC_NWE */
+                                <STM32_PINMUX('B', 7, AF12)>, /* FMC_NL */
+                                <STM32_PINMUX('D', 14, AF12)>, /* FMC_D0 */
+                                <STM32_PINMUX('D', 15, AF12)>, /* FMC_D1 */
+                                <STM32_PINMUX('D', 0, AF12)>, /* FMC_D2 */
+                                <STM32_PINMUX('D', 1, AF12)>, /* FMC_D3 */
+                                <STM32_PINMUX('E', 7, AF12)>, /* FMC_D4 */
+                                <STM32_PINMUX('E', 8, AF12)>, /* FMC_D5 */
+                                <STM32_PINMUX('E', 9, AF12)>, /* FMC_D6 */
+                                <STM32_PINMUX('E', 10, AF12)>, /* FMC_D7 */
+                                <STM32_PINMUX('E', 11, AF12)>, /* FMC_D8 */
+                                <STM32_PINMUX('E', 12, AF12)>, /* FMC_D9 */
+                                <STM32_PINMUX('E', 13, AF12)>, /* FMC_D10 */
+                                <STM32_PINMUX('E', 14, AF12)>, /* FMC_D11 */
+                                <STM32_PINMUX('E', 15, AF12)>, /* FMC_D12 */
+                                <STM32_PINMUX('D', 8, AF12)>, /* FMC_D13 */
+                                <STM32_PINMUX('D', 9, AF12)>, /* FMC_D14 */
+                                <STM32_PINMUX('D', 10, AF12)>, /* FMC_D15 */
+                                <STM32_PINMUX('G', 9, AF12)>, /* FMC_NE2_FMC_NCE */
+                                <STM32_PINMUX('G', 12, AF12)>; /* FMC_NE4 */
+                       bias-disable;
+                       drive-push-pull;
+                       slew-rate = <3>;
+               };
+       };
+
+       fmc_sleep_pins_b: fmc-sleep-1 {
+               pins {
+                       pinmux = <STM32_PINMUX('D', 4, ANALOG)>, /* FMC_NOE */
+                                <STM32_PINMUX('D', 5, ANALOG)>, /* FMC_NWE */
+                                <STM32_PINMUX('B', 7, ANALOG)>, /* FMC_NL */
+                                <STM32_PINMUX('D', 14, ANALOG)>, /* FMC_D0 */
+                                <STM32_PINMUX('D', 15, ANALOG)>, /* FMC_D1 */
+                                <STM32_PINMUX('D', 0, ANALOG)>, /* FMC_D2 */
+                                <STM32_PINMUX('D', 1, ANALOG)>, /* FMC_D3 */
+                                <STM32_PINMUX('E', 7, ANALOG)>, /* FMC_D4 */
+                                <STM32_PINMUX('E', 8, ANALOG)>, /* FMC_D5 */
+                                <STM32_PINMUX('E', 9, ANALOG)>, /* FMC_D6 */
+                                <STM32_PINMUX('E', 10, ANALOG)>, /* FMC_D7 */
+                                <STM32_PINMUX('E', 11, ANALOG)>, /* FMC_D8 */
+                                <STM32_PINMUX('E', 12, ANALOG)>, /* FMC_D9 */
+                                <STM32_PINMUX('E', 13, ANALOG)>, /* FMC_D10 */
+                                <STM32_PINMUX('E', 14, ANALOG)>, /* FMC_D11 */
+                                <STM32_PINMUX('E', 15, ANALOG)>, /* FMC_D12 */
+                                <STM32_PINMUX('D', 8, ANALOG)>, /* FMC_D13 */
+                                <STM32_PINMUX('D', 9, ANALOG)>, /* FMC_D14 */
+                                <STM32_PINMUX('D', 10, ANALOG)>, /* FMC_D15 */
+                                <STM32_PINMUX('G', 9, ANALOG)>, /* FMC_NE2_FMC_NCE */
+                                <STM32_PINMUX('G', 12, ANALOG)>; /* FMC_NE4 */
+               };
+       };
+
        i2c1_pins_a: i2c1-0 {
                pins {
                        pinmux = <STM32_PINMUX('D', 12, AF5)>, /* I2C1_SCL */
                };
        };
 
+       sdmmc2_d47_pins_d: sdmmc2-d47-3 {
+               pins {
+                       pinmux = <STM32_PINMUX('A', 8, AF9)>, /* SDMMC2_D4 */
+                                <STM32_PINMUX('A', 9, AF10)>, /* SDMMC2_D5 */
+                                <STM32_PINMUX('E', 5, AF9)>, /* SDMMC2_D6 */
+                                <STM32_PINMUX('C', 7, AF10)>; /* SDMMC2_D7 */
+               };
+       };
+
+       sdmmc2_d47_sleep_pins_d: sdmmc2-d47-sleep-3 {
+               pins {
+                       pinmux = <STM32_PINMUX('A', 8, ANALOG)>, /* SDMMC2_D4 */
+                                <STM32_PINMUX('A', 9, ANALOG)>, /* SDMMC2_D5 */
+                                <STM32_PINMUX('E', 5, ANALOG)>, /* SDMMC2_D6 */
+                                <STM32_PINMUX('C', 7, ANALOG)>; /* SDMMC2_D7 */
+               };
+       };
+
        sdmmc3_b4_pins_a: sdmmc3-b4-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('F', 0, AF9)>, /* SDMMC3_D0 */
        };
 
        stusb1600_pins_a: stusb1600-0 {
-                       pins {
-                               pinmux = <STM32_PINMUX('I', 11, ANALOG)>;
-                               bias-pull-up;
+               pins {
+                       pinmux = <STM32_PINMUX('I', 11, ANALOG)>;
+                       bias-pull-up;
                };
        };
 
                };
        };
 
+       uart8_rtscts_pins_a: uart8rtscts-0 {
+               pins {
+                       pinmux = <STM32_PINMUX('G', 7, AF8)>, /* UART8_RTS */
+                                <STM32_PINMUX('G', 10, AF8)>; /* UART8_CTS */
+                       bias-disable;
+               };
+       };
+
        usart2_pins_a: usart2-0 {
                pins1 {
                        pinmux = <STM32_PINMUX('F', 5, AF7)>, /* USART2_TX */
index 206d3d3c789f8d1cefd4a4370b18b2330f4279b1..eedea6f4b85f048f8a9c725563174fdbcb778c3e 100644 (file)
                };
        };
 
+       arm-pmu {
+               compatible = "arm,cortex-a7-pmu";
+               interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-affinity = <&cpu0>;
+               interrupt-parent = <&intc>;
+       };
+
        psci {
                compatible = "arm,psci-1.0";
                method = "smc";
                        #size-cells = <0>;
                        compatible = "st,stm32-lptimer";
                        reg = <0x40009000 0x400>;
+                       interrupts-extended = <&exti 47 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc LPTIM1_K>;
                        clock-names = "mux";
+                       wakeup-source;
                        status = "disabled";
 
                        pwm {
 
                dmamux1: dma-router@48002000 {
                        compatible = "st,stm32h7-dmamux";
-                       reg = <0x48002000 0x1c>;
+                       reg = <0x48002000 0x40>;
                        #dma-cells = <3>;
                        dma-requests = <128>;
                        dma-masters = <&dma1 &dma2>;
 
                sdmmc3: sdmmc@48004000 {
                        compatible = "arm,pl18x", "arm,primecell";
-                       arm,primecell-periphid = <0x10153180>;
+                       arm,primecell-periphid = <0x00253180>;
                        reg = <0x48004000 0x400>;
                        interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
                        interrupt-names = "cmd_irq";
                        resets = <&rcc USBO_R>;
                        reset-names = "dwc2";
                        interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
-                       g-rx-fifo-size = <256>;
+                       g-rx-fifo-size = <512>;
                        g-np-tx-fifo-size = <32>;
-                       g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
+                       g-tx-fifo-size = <256 16 16 16 16 16 16 16>;
                        dr_mode = "otg";
                        usb33d-supply = <&usb33>;
                        status = "disabled";
                        resets = <&rcc CAMITF_R>;
                        clocks = <&rcc DCMI>;
                        clock-names = "mclk";
-                       dmas = <&dmamux1 75 0x400 0x0d>;
+                       dmas = <&dmamux1 75 0x400 0x01>;
                        dma-names = "tx";
                        status = "disabled";
                };
                        #size-cells = <0>;
                        compatible = "st,stm32-lptimer";
                        reg = <0x50021000 0x400>;
+                       interrupts-extended = <&exti 48 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc LPTIM2_K>;
                        clock-names = "mux";
+                       wakeup-source;
                        status = "disabled";
 
                        pwm {
                        #size-cells = <0>;
                        compatible = "st,stm32-lptimer";
                        reg = <0x50022000 0x400>;
+                       interrupts-extended = <&exti 50 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc LPTIM3_K>;
                        clock-names = "mux";
+                       wakeup-source;
                        status = "disabled";
 
                        pwm {
                lptimer4: timer@50023000 {
                        compatible = "st,stm32-lptimer";
                        reg = <0x50023000 0x400>;
+                       interrupts-extended = <&exti 52 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc LPTIM4_K>;
                        clock-names = "mux";
+                       wakeup-source;
                        status = "disabled";
 
                        pwm {
                lptimer5: timer@50024000 {
                        compatible = "st,stm32-lptimer";
                        reg = <0x50024000 0x400>;
+                       interrupts-extended = <&exti 53 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc LPTIM5_K>;
                        clock-names = "mux";
+                       wakeup-source;
                        status = "disabled";
 
                        pwm {
                        interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&rcc HASH1>;
                        resets = <&rcc HASH1_R>;
-                       dmas = <&mdma1 31 0x10 0x1000A02 0x0 0x0>;
+                       dmas = <&mdma1 31 0x2 0x1000A02 0x0 0x0>;
                        dma-names = "in";
                        dma-maxburst = <2>;
                        status = "disabled";
                        reg = <0x58003000 0x1000>, <0x70000000 0x10000000>;
                        reg-names = "qspi", "qspi_mm";
                        interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
-                       dmas = <&mdma1 22 0x10 0x100002 0x0 0x0>,
-                              <&mdma1 22 0x10 0x100008 0x0 0x0>;
+                       dmas = <&mdma1 22 0x2 0x100002 0x0 0x0>,
+                              <&mdma1 22 0x2 0x100008 0x0 0x0>;
                        dma-names = "tx", "rx";
                        clocks = <&rcc QSPI_K>;
                        resets = <&rcc QSPI_R>;
 
                sdmmc1: sdmmc@58005000 {
                        compatible = "arm,pl18x", "arm,primecell";
-                       arm,primecell-periphid = <0x10153180>;
+                       arm,primecell-periphid = <0x00253180>;
                        reg = <0x58005000 0x1000>;
                        interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
                        interrupt-names = "cmd_irq";
 
                sdmmc2: sdmmc@58007000 {
                        compatible = "arm,pl18x", "arm,primecell";
-                       arm,primecell-periphid = <0x10153180>;
+                       arm,primecell-periphid = <0x00253180>;
                        reg = <0x58007000 0x1000>;
                        interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
                        interrupt-names = "cmd_irq";
                        status = "disabled";
                };
 
-               usbh_ohci: usbh-ohci@5800c000 {
+               usbh_ohci: usb@5800c000 {
                        compatible = "generic-ohci";
                        reg = <0x5800c000 0x1000>;
                        clocks = <&rcc USBH>;
                        status = "disabled";
                };
 
-               usbh_ehci: usbh-ehci@5800d000 {
+               usbh_ehci: usb@5800d000 {
                        compatible = "generic-ehci";
                        reg = <0x5800d000 0x1000>;
                        clocks = <&rcc USBH>;
                        status = "disabled";
                };
 
+               tamp: tamp@5c00a000 {
+                       compatible = "st,stm32-tamp", "syscon", "simple-mfd";
+                       reg = <0x5c00a000 0x400>;
+               };
+
                /*
                 * Break node order to solve dependency probe issue between
                 * pinctrl and exti.
                        st,syscfg-holdboot = <&rcc 0x10C 0x1>;
                        st,syscfg-tz = <&rcc 0x000 0x1>;
                        st,syscfg-pdds = <&pwr_mcu 0x0 0x1>;
+                       st,syscfg-rsc-tbl = <&tamp 0x144 0xFFFFFFFF>;
+                       st,syscfg-m4-state = <&tamp 0x148 0xFFFFFFFF>;
                        status = "disabled";
                };
        };
index 6d9ab08667fccff92f9267bff10e33f6cbdd72a7..1c1889b194cfcc719f9ca200a1d1c0660d612388 100644 (file)
                };
        };
 
+       arm-pmu {
+               interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>,
+                            <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>;
+               interrupt-affinity = <&cpu0>, <&cpu1>;
+       };
+
        soc {
                m_can1: can@4400e000 {
                        compatible = "bosch,m_can";
index 045636555dddfc44325ebd4e99e30a3a9239dae7..2bc92ef3aeb9570d496f521a142326832cc379c0 100644 (file)
        };
 };
 
+&cryp1 {
+       status = "okay";
+};
+
 &dsi {
        status = "okay";
        phy-dsi-supply = <&reg18>;
index dd911c99329da015d17f96ea833a802a29c9f061..6e89f88a17d2d6d5f2a1a4e321cf0077b8caa185 100644 (file)
                states = <1800000 0x1>,
                         <2900000 0x0>;
        };
+
+       vin: vin {
+               compatible = "regulator-fixed";
+               regulator-name = "vin";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+       };
 };
 
 &adc {
        cpu-supply = <&vddcore>;
 };
 
+&crc1 {
+       status = "okay";
+};
+
+&cryp1 {
+       status = "okay";
+};
+
 &dac {
        pinctrl-names = "default";
        pinctrl-0 = <&dac_ch1_pins_a &dac_ch2_pins_a>;
        contiguous-area = <&gpu_reserved>;
 };
 
+&hash1 {
+       status = "okay";
+};
+
 &i2c4 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&i2c4_pins_a>;
 
                regulators {
                        compatible = "st,stpmic1-regulators";
+                       buck1-supply = <&vin>;
+                       buck2-supply = <&vin>;
+                       buck3-supply = <&vin>;
+                       buck4-supply = <&vin>;
                        ldo1-supply = <&v3v3>;
                        ldo2-supply = <&v3v3>;
                        ldo3-supply = <&vdd_ddr>;
+                       ldo4-supply = <&vin>;
                        ldo5-supply = <&v3v3>;
                        ldo6-supply = <&v3v3>;
+                       vref_ddr-supply = <&vin>;
+                       boost-supply = <&vin>;
                        pwr_sw1-supply = <&bst_out>;
                        pwr_sw2-supply = <&bst_out>;
 
index a55e80ce260211a90c8e780e050645c2e5d10a6a..5c5b1ddf7bfd21d7252fb4ec98ca088d2af948a4 100644 (file)
@@ -90,6 +90,7 @@
        port {
                dcmi_0: endpoint {
                        remote-endpoint = <&ov5640_0>;
+                       bus-type = <5>;
                        bus-width = <8>;
                        hsync-active = <0>;
                        vsync-active = <0>;
index 6868769c6e847549c24cbcbdeae31d740139b4d5..11bc247065b2f9ea98da352db970ee6eed2433a3 100644 (file)
        pinctrl-1 = <&fmc_sleep_pins_b &mco2_sleep_pins_a>;
        pinctrl-names = "default", "sleep";
 
-       fmc_pins_b: fmc-0 {
-               pins1 {
-                       pinmux = <STM32_PINMUX('D', 4, AF12)>, /* FMC_NOE */
-                                <STM32_PINMUX('D', 5, AF12)>, /* FMC_NWE */
-                                <STM32_PINMUX('B', 7, AF12)>, /* FMC_NL */
-                                <STM32_PINMUX('D', 14, AF12)>, /* FMC_D0 */
-                                <STM32_PINMUX('D', 15, AF12)>, /* FMC_D1 */
-                                <STM32_PINMUX('D', 0, AF12)>, /* FMC_D2 */
-                                <STM32_PINMUX('D', 1, AF12)>, /* FMC_D3 */
-                                <STM32_PINMUX('E', 7, AF12)>, /* FMC_D4 */
-                                <STM32_PINMUX('E', 8, AF12)>, /* FMC_D5 */
-                                <STM32_PINMUX('E', 9, AF12)>, /* FMC_D6 */
-                                <STM32_PINMUX('E', 10, AF12)>, /* FMC_D7 */
-                                <STM32_PINMUX('E', 11, AF12)>, /* FMC_D8 */
-                                <STM32_PINMUX('E', 12, AF12)>, /* FMC_D9 */
-                                <STM32_PINMUX('E', 13, AF12)>, /* FMC_D10 */
-                                <STM32_PINMUX('E', 14, AF12)>, /* FMC_D11 */
-                                <STM32_PINMUX('E', 15, AF12)>, /* FMC_D12 */
-                                <STM32_PINMUX('D', 8, AF12)>, /* FMC_D13 */
-                                <STM32_PINMUX('D', 9, AF12)>, /* FMC_D14 */
-                                <STM32_PINMUX('D', 10, AF12)>, /* FMC_D15 */
-                                <STM32_PINMUX('G', 9, AF12)>, /* FMC_NE2_FMC_NCE */
-                                <STM32_PINMUX('G', 12, AF12)>; /* FMC_NE4 */
-                       bias-disable;
-                       drive-push-pull;
-                       slew-rate = <3>;
-               };
-       };
-
-       fmc_sleep_pins_b: fmc-sleep-0 {
-               pins {
-                       pinmux = <STM32_PINMUX('D', 4, ANALOG)>, /* FMC_NOE */
-                                <STM32_PINMUX('D', 5, ANALOG)>, /* FMC_NWE */
-                                <STM32_PINMUX('B', 7, ANALOG)>, /* FMC_NL */
-                                <STM32_PINMUX('D', 14, ANALOG)>, /* FMC_D0 */
-                                <STM32_PINMUX('D', 15, ANALOG)>, /* FMC_D1 */
-                                <STM32_PINMUX('D', 0, ANALOG)>, /* FMC_D2 */
-                                <STM32_PINMUX('D', 1, ANALOG)>, /* FMC_D3 */
-                                <STM32_PINMUX('E', 7, ANALOG)>, /* FMC_D4 */
-                                <STM32_PINMUX('E', 8, ANALOG)>, /* FMC_D5 */
-                                <STM32_PINMUX('E', 9, ANALOG)>, /* FMC_D6 */
-                                <STM32_PINMUX('E', 10, ANALOG)>, /* FMC_D7 */
-                                <STM32_PINMUX('E', 11, ANALOG)>, /* FMC_D8 */
-                                <STM32_PINMUX('E', 12, ANALOG)>, /* FMC_D9 */
-                                <STM32_PINMUX('E', 13, ANALOG)>, /* FMC_D10 */
-                                <STM32_PINMUX('E', 14, ANALOG)>, /* FMC_D11 */
-                                <STM32_PINMUX('E', 15, ANALOG)>, /* FMC_D12 */
-                                <STM32_PINMUX('D', 8, ANALOG)>, /* FMC_D13 */
-                                <STM32_PINMUX('D', 9, ANALOG)>, /* FMC_D14 */
-                                <STM32_PINMUX('D', 10, ANALOG)>, /* FMC_D15 */
-                                <STM32_PINMUX('G', 9, ANALOG)>, /* FMC_NE2_FMC_NCE */
-                                <STM32_PINMUX('G', 12, ANALOG)>; /* FMC_NE4 */
-               };
-       };
-
        mco2_pins_a: mco2-0 {
                pins {
                        pinmux = <STM32_PINMUX('G', 2, AF1)>; /* MCO2 */
index aa4aa83e05f1753d3e621d374b13459c660aa27c..68987f64c587b56156b123752a1d4bee6765f3f1 100644 (file)
                dais = <&sai2a_port &sai2b_port &i2s2_port>;
                status = "okay";
        };
+
+       vin: vin {
+               compatible = "regulator-fixed";
+               regulator-name = "vin";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               regulator-always-on;
+       };
 };
 
 &adc {
        status = "okay";
 };
 
+&crc1 {
+       status = "okay";
+};
+
 &dts {
        status = "okay";
 };
        contiguous-area = <&gpu_reserved>;
 };
 
+&hash1 {
+       status = "okay";
+};
+
 &i2c1 {
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&i2c1_pins_a>;
        /delete-property/dmas;
        /delete-property/dma-names;
 
-       typec: stusb1600@28 {
+       stusb1600@28 {
                compatible = "st,stusb1600";
                reg = <0x28>;
                interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
                interrupt-parent = <&gpioi>;
                pinctrl-names = "default";
                pinctrl-0 = <&stusb1600_pins_a>;
-
                status = "okay";
+               vdd-supply = <&vin>;
 
-               typec_con: connector {
+               connector {
                        compatible = "usb-c-connector";
                        label = "USB-C";
-                       power-role = "sink";
-                       power-opmode = "default";
+                       power-role = "dual";
+                       typec-power-opmode = "default";
+
+                       port {
+                               con_usbotg_hs_ep: endpoint {
+                                       remote-endpoint = <&usbotg_hs_ep>;
+                               };
+                       };
                };
        };
 
 
                regulators {
                        compatible = "st,stpmic1-regulators";
+                       buck1-supply = <&vin>;
+                       buck2-supply = <&vin>;
+                       buck3-supply = <&vin>;
+                       buck4-supply = <&vin>;
                        ldo1-supply = <&v3v3>;
+                       ldo2-supply = <&vin>;
                        ldo3-supply = <&vdd_ddr>;
+                       ldo4-supply = <&vin>;
+                       ldo5-supply = <&vin>;
                        ldo6-supply = <&v3v3>;
+                       vref_ddr-supply = <&vin>;
+                       boost-supply = <&vin>;
                        pwr_sw1-supply = <&bst_out>;
                        pwr_sw2-supply = <&bst_out>;
 
        phy-names = "usb2-phy";
        usb-role-switch;
        status = "okay";
+
+       port {
+               usbotg_hs_ep: endpoint {
+                       remote-endpoint = <&con_usbotg_hs_ep>;
+               };
+       };
 };
 
 &usbphyc {