1*833e5d42SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*833e5d42SEmmanuel Vadot# Copyright (C) STMicroelectronics 2025. 3*833e5d42SEmmanuel Vadot%YAML 1.2 4*833e5d42SEmmanuel Vadot--- 5*833e5d42SEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/st,stm32-hdp.yaml# 6*833e5d42SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 7*833e5d42SEmmanuel Vadot 8*833e5d42SEmmanuel Vadottitle: STM32 Hardware Debug Port Mux/Config 9*833e5d42SEmmanuel Vadot 10*833e5d42SEmmanuel Vadotmaintainers: 11*833e5d42SEmmanuel Vadot - Clément LE GOFFIC <legoffic.clement@gmail.com> 12*833e5d42SEmmanuel Vadot 13*833e5d42SEmmanuel Vadotdescription: 14*833e5d42SEmmanuel Vadot STMicroelectronics's STM32 MPUs integrate a Hardware Debug Port (HDP). 15*833e5d42SEmmanuel Vadot It allows to output internal signals on SoC's GPIO. 16*833e5d42SEmmanuel Vadot 17*833e5d42SEmmanuel Vadotproperties: 18*833e5d42SEmmanuel Vadot compatible: 19*833e5d42SEmmanuel Vadot enum: 20*833e5d42SEmmanuel Vadot - st,stm32mp131-hdp 21*833e5d42SEmmanuel Vadot - st,stm32mp151-hdp 22*833e5d42SEmmanuel Vadot - st,stm32mp251-hdp 23*833e5d42SEmmanuel Vadot 24*833e5d42SEmmanuel Vadot reg: 25*833e5d42SEmmanuel Vadot maxItems: 1 26*833e5d42SEmmanuel Vadot 27*833e5d42SEmmanuel Vadot clocks: 28*833e5d42SEmmanuel Vadot maxItems: 1 29*833e5d42SEmmanuel Vadot 30*833e5d42SEmmanuel VadotpatternProperties: 31*833e5d42SEmmanuel Vadot "^hdp[0-7]-pins$": 32*833e5d42SEmmanuel Vadot type: object 33*833e5d42SEmmanuel Vadot $ref: pinmux-node.yaml# 34*833e5d42SEmmanuel Vadot additionalProperties: false 35*833e5d42SEmmanuel Vadot 36*833e5d42SEmmanuel Vadot properties: 37*833e5d42SEmmanuel Vadot pins: 38*833e5d42SEmmanuel Vadot pattern: '^HDP[0-7]$' 39*833e5d42SEmmanuel Vadot 40*833e5d42SEmmanuel Vadot function: true 41*833e5d42SEmmanuel Vadot 42*833e5d42SEmmanuel Vadot required: 43*833e5d42SEmmanuel Vadot - function 44*833e5d42SEmmanuel Vadot - pins 45*833e5d42SEmmanuel Vadot 46*833e5d42SEmmanuel VadotallOf: 47*833e5d42SEmmanuel Vadot - $ref: pinctrl.yaml# 48*833e5d42SEmmanuel Vadot - if: 49*833e5d42SEmmanuel Vadot properties: 50*833e5d42SEmmanuel Vadot compatible: 51*833e5d42SEmmanuel Vadot contains: 52*833e5d42SEmmanuel Vadot const: st,stm32mp131-hdp 53*833e5d42SEmmanuel Vadot then: 54*833e5d42SEmmanuel Vadot patternProperties: 55*833e5d42SEmmanuel Vadot "^hdp[0-7]-pins$": 56*833e5d42SEmmanuel Vadot properties: 57*833e5d42SEmmanuel Vadot function: 58*833e5d42SEmmanuel Vadot enum: [ pwr_pwrwake_sys, pwr_stop_forbidden, pwr_stdby_wakeup, pwr_encomp_vddcore, 59*833e5d42SEmmanuel Vadot bsec_out_sec_niden, aiec_sys_wakeup, none, ddrctrl_lp_req, 60*833e5d42SEmmanuel Vadot pwr_ddr_ret_enable_n, dts_clk_ptat, sram3ctrl_tamp_erase_act, gpoval0, 61*833e5d42SEmmanuel Vadot pwr_sel_vth_vddcpu, pwr_mpu_ram_lowspeed, ca7_naxierrirq, pwr_okin_mr, 62*833e5d42SEmmanuel Vadot bsec_out_sec_dbgen, aiec_c1_wakeup, rcc_pwrds_mpu, ddrctrl_dfi_ctrlupd_req, 63*833e5d42SEmmanuel Vadot ddrctrl_cactive_ddrc_asr, sram3ctrl_hw_erase_act, nic400_s0_bready, gpoval1, 64*833e5d42SEmmanuel Vadot pwr_pwrwake_mpu, pwr_mpu_clock_disable_ack, ca7_ndbgreset_i, 65*833e5d42SEmmanuel Vadot bsec_in_rstcore_n, bsec_out_sec_bsc_dis, ddrctrl_dfi_init_complete, 66*833e5d42SEmmanuel Vadot ddrctrl_perf_op_is_refresh, ddrctrl_gskp_dfi_lp_req, sram3ctrl_sw_erase_act, 67*833e5d42SEmmanuel Vadot nic400_s0_bvalid, gpoval2, pwr_sel_vth_vddcore, pwr_mpu_clock_disable_req, 68*833e5d42SEmmanuel Vadot ca7_npmuirq0, ca7_nfiqout0, bsec_out_sec_dftlock, bsec_out_sec_jtag_dis, 69*833e5d42SEmmanuel Vadot rcc_pwrds_sys, sram3ctrl_tamp_erase_req, ddrctrl_stat_ddrc_reg_selfref_type0, 70*833e5d42SEmmanuel Vadot dts_valobus1_0, dts_valobus2_0, tamp_potential_tamp_erfcfg, nic400_s0_wready, 71*833e5d42SEmmanuel Vadot nic400_s0_rready, gpoval3, pwr_stop2_active, ca7_nl2reset_i, 72*833e5d42SEmmanuel Vadot ca7_npreset_varm_i, bsec_out_sec_dften, bsec_out_sec_dbgswenable, 73*833e5d42SEmmanuel Vadot eth1_out_pmt_intr_o, eth2_out_pmt_intr_o, ddrctrl_stat_ddrc_reg_selfref_type1, 74*833e5d42SEmmanuel Vadot ddrctrl_cactive_0, dts_valobus1_1, dts_valobus2_1, tamp_nreset_sram_ercfg, 75*833e5d42SEmmanuel Vadot nic400_s0_wlast, nic400_s0_rlast, gpoval4, ca7_standbywfil2, 76*833e5d42SEmmanuel Vadot pwr_vth_vddcore_ack, ca7_ncorereset_i, ca7_nirqout0, bsec_in_pwrok, 77*833e5d42SEmmanuel Vadot bsec_out_sec_deviceen, eth1_out_lpi_intr_o, eth2_out_lpi_intr_o, 78*833e5d42SEmmanuel Vadot ddrctrl_cactive_ddrc, ddrctrl_wr_credit_cnt, dts_valobus1_2, dts_valobus2_2, 79*833e5d42SEmmanuel Vadot pka_pka_itamp_out, nic400_s0_wvalid, nic400_s0_rvalid, gpoval5, 80*833e5d42SEmmanuel Vadot ca7_standbywfe0, pwr_vth_vddcpu_ack, ca7_evento, bsec_in_tamper_det, 81*833e5d42SEmmanuel Vadot bsec_out_sec_spniden, eth1_out_mac_speed_o1, eth2_out_mac_speed_o1, 82*833e5d42SEmmanuel Vadot ddrctrl_csysack_ddrc, ddrctrl_lpr_credit_cnt, dts_valobus1_3, dts_valobus2_3, 83*833e5d42SEmmanuel Vadot saes_tamper_out, nic400_s0_awready, nic400_s0_arready, gpoval6, 84*833e5d42SEmmanuel Vadot ca7_standbywfi0, pwr_rcc_vcpu_rdy, ca7_eventi, ca7_dbgack0, bsec_out_fuse_ok, 85*833e5d42SEmmanuel Vadot bsec_out_sec_spiden, eth1_out_mac_speed_o0, eth2_out_mac_speed_o0, 86*833e5d42SEmmanuel Vadot ddrctrl_csysreq_ddrc, ddrctrl_hpr_credit_cnt, dts_valobus1_4, dts_valobus2_4, 87*833e5d42SEmmanuel Vadot rng_tamper_out, nic400_s0_awavalid, nic400_s0_aravalid, gpoval7 ] 88*833e5d42SEmmanuel Vadot - if: 89*833e5d42SEmmanuel Vadot properties: 90*833e5d42SEmmanuel Vadot compatible: 91*833e5d42SEmmanuel Vadot contains: 92*833e5d42SEmmanuel Vadot const: st,stm32mp151-hdp 93*833e5d42SEmmanuel Vadot then: 94*833e5d42SEmmanuel Vadot patternProperties: 95*833e5d42SEmmanuel Vadot "^hdp[0-7]-pins$": 96*833e5d42SEmmanuel Vadot properties: 97*833e5d42SEmmanuel Vadot function: 98*833e5d42SEmmanuel Vadot enum: [ pwr_pwrwake_sys, cm4_sleepdeep, pwr_stdby_wkup, pwr_encomp_vddcore, 99*833e5d42SEmmanuel Vadot bsec_out_sec_niden, none, rcc_cm4_sleepdeep, gpu_dbg7, ddrctrl_lp_req, 100*833e5d42SEmmanuel Vadot pwr_ddr_ret_enable_n, dts_clk_ptat, gpoval0, pwr_pwrwake_mcu, cm4_halted, 101*833e5d42SEmmanuel Vadot ca7_naxierrirq, pwr_okin_mr, bsec_out_sec_dbgen, exti_sys_wakeup, 102*833e5d42SEmmanuel Vadot rcc_pwrds_mpu, gpu_dbg6, ddrctrl_dfi_ctrlupd_req, ddrctrl_cactive_ddrc_asr, 103*833e5d42SEmmanuel Vadot gpoval1, pwr_pwrwake_mpu, cm4_rxev, ca7_npmuirq1, ca7_nfiqout1, 104*833e5d42SEmmanuel Vadot bsec_in_rstcore_n, exti_c2_wakeup, rcc_pwrds_mcu, gpu_dbg5, 105*833e5d42SEmmanuel Vadot ddrctrl_dfi_init_complete, ddrctrl_perf_op_is_refresh, 106*833e5d42SEmmanuel Vadot ddrctrl_gskp_dfi_lp_req, gpoval2, pwr_sel_vth_vddcore, cm4_txev, ca7_npmuirq0, 107*833e5d42SEmmanuel Vadot ca7_nfiqout0, bsec_out_sec_dftlock, exti_c1_wakeup, rcc_pwrds_sys, gpu_dbg4, 108*833e5d42SEmmanuel Vadot ddrctrl_stat_ddrc_reg_selfref_type0, ddrctrl_cactive_1, dts_valobus1_0, 109*833e5d42SEmmanuel Vadot dts_valobus2_0, gpoval3, pwr_mpu_pdds_not_cstbydis, cm4_sleeping, ca7_nreset1, 110*833e5d42SEmmanuel Vadot ca7_nirqout1, bsec_out_sec_dften, bsec_out_sec_dbgswenable, 111*833e5d42SEmmanuel Vadot eth_out_pmt_intr_o, gpu_dbg3, ddrctrl_stat_ddrc_reg_selfref_type1, 112*833e5d42SEmmanuel Vadot ddrctrl_cactive_0, dts_valobus1_1, dts_valobus2_1, gpoval4, ca7_standbywfil2, 113*833e5d42SEmmanuel Vadot pwr_vth_vddcore_ack, ca7_nreset0, ca7_nirqout0, bsec_in_pwrok, 114*833e5d42SEmmanuel Vadot bsec_out_sec_deviceen, eth_out_lpi_intr_o, gpu_dbg2, ddrctrl_cactive_ddrc, 115*833e5d42SEmmanuel Vadot ddrctrl_wr_credit_cnt, dts_valobus1_2, dts_valobus2_2, gpoval5, 116*833e5d42SEmmanuel Vadot ca7_standbywfi1, ca7_standbywfe1, ca7_evento, ca7_dbgack1, 117*833e5d42SEmmanuel Vadot bsec_out_sec_spniden, eth_out_mac_speed_o1, gpu_dbg1, ddrctrl_csysack_ddrc, 118*833e5d42SEmmanuel Vadot ddrctrl_lpr_credit_cnt, dts_valobus1_3, dts_valobus2_3, gpoval6, 119*833e5d42SEmmanuel Vadot ca7_standbywfi0, ca7_standbywfe0, ca7_dbgack0, bsec_out_fuse_ok, 120*833e5d42SEmmanuel Vadot bsec_out_sec_spiden, eth_out_mac_speed_o0, gpu_dbg0, ddrctrl_csysreq_ddrc, 121*833e5d42SEmmanuel Vadot ddrctrl_hpr_credit_cnt, dts_valobus1_4, dts_valobus2_4, gpoval7 ] 122*833e5d42SEmmanuel Vadot - if: 123*833e5d42SEmmanuel Vadot properties: 124*833e5d42SEmmanuel Vadot compatible: 125*833e5d42SEmmanuel Vadot contains: 126*833e5d42SEmmanuel Vadot const: st,stm32mp251-hdp 127*833e5d42SEmmanuel Vadot then: 128*833e5d42SEmmanuel Vadot patternProperties: 129*833e5d42SEmmanuel Vadot "^hdp[0-7]-pins$": 130*833e5d42SEmmanuel Vadot properties: 131*833e5d42SEmmanuel Vadot function: 132*833e5d42SEmmanuel Vadot enum: [ pwr_pwrwake_sys, cpu2_sleep_deep, bsec_out_tst_sdr_unlock_or_disable_scan, 133*833e5d42SEmmanuel Vadot bsec_out_nidenm, bsec_out_nidena, cpu2_state_0, rcc_pwrds_sys, gpu_dbg7, 134*833e5d42SEmmanuel Vadot ddrss_csysreq_ddrc, ddrss_dfi_phyupd_req, cpu3_sleep_deep, 135*833e5d42SEmmanuel Vadot d2_gbl_per_clk_bus_req, pcie_usb_cxpl_debug_info_ei_0, 136*833e5d42SEmmanuel Vadot pcie_usb_cxpl_debug_info_ei_8, d3_state_0, gpoval0, pwr_pwrwake_cpu2, 137*833e5d42SEmmanuel Vadot cpu2_halted, cpu2_state_1, bsec_out_dbgenm, bsec_out_dbgena, exti1_sys_wakeup, 138*833e5d42SEmmanuel Vadot rcc_pwrds_cpu2, gpu_dbg6, ddrss_csysack_ddrc, ddrss_dfi_phymstr_req, 139*833e5d42SEmmanuel Vadot cpu3_halted, d2_gbl_per_dma_req, pcie_usb_cxpl_debug_info_ei_1, 140*833e5d42SEmmanuel Vadot pcie_usb_cxpl_debug_info_ei_9, d3_state_1, gpoval1, pwr_pwrwake_cpu1, 141*833e5d42SEmmanuel Vadot cpu2_rxev, cpu1_npumirq1, cpu1_nfiqout1, bsec_out_shdbgen, exti1_cpu2_wakeup, 142*833e5d42SEmmanuel Vadot rcc_pwrds_cpu1, gpu_dbg5, ddrss_cactive_ddrc, ddrss_dfi_lp_req, cpu3_rxev, 143*833e5d42SEmmanuel Vadot hpdma1_clk_bus_req, pcie_usb_cxpl_debug_info_ei_2, 144*833e5d42SEmmanuel Vadot pcie_usb_cxpl_debug_info_ei_10, d3_state_2, gpoval2, pwr_sel_vth_vddcpu, 145*833e5d42SEmmanuel Vadot cpu2_txev, cpu1_npumirq0, cpu1_nfiqout0, bsec_out_ddbgen, exti1_cpu1_wakeup, 146*833e5d42SEmmanuel Vadot cpu3_state_0, gpu_dbg4, ddrss_mcdcg_en, ddrss_dfi_freq_0, cpu3_txev, 147*833e5d42SEmmanuel Vadot hpdma2_clk_bus_req, pcie_usb_cxpl_debug_info_ei_3, 148*833e5d42SEmmanuel Vadot pcie_usb_cxpl_debug_info_ei_11, d1_state_0, gpoval3, pwr_sel_vth_vddcore, 149*833e5d42SEmmanuel Vadot cpu2_sleeping, cpu1_evento, cpu1_nirqout1, bsec_out_spnidena, exti2_d3_wakeup, 150*833e5d42SEmmanuel Vadot eth1_out_pmt_intr_o, gpu_dbg3, ddrss_dphycg_en, ddrss_obsp0, cpu3_sleeping, 151*833e5d42SEmmanuel Vadot hpdma3_clk_bus_req, pcie_usb_cxpl_debug_info_ei_4, 152*833e5d42SEmmanuel Vadot pcie_usb_cxpl_debug_info_ei_12, d1_state_1, gpoval4, cpu1_standby_wfil2, 153*833e5d42SEmmanuel Vadot none, cpu1_nirqout0, bsec_out_spidena, exti2_cpu3_wakeup, eth1_out_lpi_intr_o, 154*833e5d42SEmmanuel Vadot gpu_dbg2, ddrctrl_dfi_init_start, ddrss_obsp1, cpu3_state_1, 155*833e5d42SEmmanuel Vadot d3_gbl_per_clk_bus_req, pcie_usb_cxpl_debug_info_ei_5, 156*833e5d42SEmmanuel Vadot pcie_usb_cxpl_debug_info_ei_13, d1_state_2, gpoval5, cpu1_standby_wfi1, 157*833e5d42SEmmanuel Vadot cpu1_standby_wfe1, cpu1_halted1, cpu1_naxierrirq, bsec_out_spnidenm, 158*833e5d42SEmmanuel Vadot exti2_cpu2_wakeup, eth2_out_pmt_intr_o, gpu_dbg1, ddrss_dfi_init_complete, 159*833e5d42SEmmanuel Vadot ddrss_obsp2, d2_state_0, d3_gbl_per_dma_req, pcie_usb_cxpl_debug_info_ei_6, 160*833e5d42SEmmanuel Vadot pcie_usb_cxpl_debug_info_ei_14, cpu1_state_0, gpoval6, cpu1_standby_wfi0, 161*833e5d42SEmmanuel Vadot cpu1_standby_wfe0, cpu1_halted0, bsec_out_spidenm, exti2_cpu1__wakeup, 162*833e5d42SEmmanuel Vadot eth2_out_lpi_intr_o, gpu_dbg0, ddrss_dfi_ctrlupd_req, ddrss_obsp3, d2_state_1, 163*833e5d42SEmmanuel Vadot lpdma1_clk_bus_req, pcie_usb_cxpl_debug_info_ei_7, 164*833e5d42SEmmanuel Vadot pcie_usb_cxpl_debug_info_ei_15, cpu1_state_1, gpoval7 ] 165*833e5d42SEmmanuel Vadot 166*833e5d42SEmmanuel Vadotrequired: 167*833e5d42SEmmanuel Vadot - compatible 168*833e5d42SEmmanuel Vadot - reg 169*833e5d42SEmmanuel Vadot - clocks 170*833e5d42SEmmanuel Vadot 171*833e5d42SEmmanuel VadotadditionalProperties: false 172*833e5d42SEmmanuel Vadot 173*833e5d42SEmmanuel Vadotexamples: 174*833e5d42SEmmanuel Vadot - | 175*833e5d42SEmmanuel Vadot #include <dt-bindings/clock/stm32mp1-clks.h> 176*833e5d42SEmmanuel Vadot 177*833e5d42SEmmanuel Vadot pinctrl@54090000 { 178*833e5d42SEmmanuel Vadot compatible = "st,stm32mp151-hdp"; 179*833e5d42SEmmanuel Vadot reg = <0x54090000 0x400>; 180*833e5d42SEmmanuel Vadot clocks = <&rcc HDP>; 181*833e5d42SEmmanuel Vadot pinctrl-names = "default"; 182*833e5d42SEmmanuel Vadot pinctrl-0 = <&hdp2_gpo>; 183*833e5d42SEmmanuel Vadot hdp2_gpo: hdp2-pins { 184*833e5d42SEmmanuel Vadot function = "gpoval2"; 185*833e5d42SEmmanuel Vadot pins = "HDP2"; 186*833e5d42SEmmanuel Vadot }; 187*833e5d42SEmmanuel Vadot }; 188