1aa0c4b81SBjorn Andersson /* 2aa0c4b81SBjorn Andersson * This header provides constants for the Qualcomm RPM bindings. 3aa0c4b81SBjorn Andersson */ 4aa0c4b81SBjorn Andersson 5aa0c4b81SBjorn Andersson #ifndef _DT_BINDINGS_MFD_QCOM_RPM_H 6aa0c4b81SBjorn Andersson #define _DT_BINDINGS_MFD_QCOM_RPM_H 7aa0c4b81SBjorn Andersson 8aa0c4b81SBjorn Andersson /* 9aa0c4b81SBjorn Andersson * Constants use to identify individual resources in the RPM. 10aa0c4b81SBjorn Andersson */ 11aa0c4b81SBjorn Andersson #define QCOM_RPM_APPS_FABRIC_ARB 1 12aa0c4b81SBjorn Andersson #define QCOM_RPM_APPS_FABRIC_CLK 2 13aa0c4b81SBjorn Andersson #define QCOM_RPM_APPS_FABRIC_HALT 3 14aa0c4b81SBjorn Andersson #define QCOM_RPM_APPS_FABRIC_IOCTL 4 15aa0c4b81SBjorn Andersson #define QCOM_RPM_APPS_FABRIC_MODE 5 16aa0c4b81SBjorn Andersson #define QCOM_RPM_APPS_L2_CACHE_CTL 6 17aa0c4b81SBjorn Andersson #define QCOM_RPM_CFPB_CLK 7 18aa0c4b81SBjorn Andersson #define QCOM_RPM_CXO_BUFFERS 8 19aa0c4b81SBjorn Andersson #define QCOM_RPM_CXO_CLK 9 20aa0c4b81SBjorn Andersson #define QCOM_RPM_DAYTONA_FABRIC_CLK 10 21aa0c4b81SBjorn Andersson #define QCOM_RPM_DDR_DMM 11 22aa0c4b81SBjorn Andersson #define QCOM_RPM_EBI1_CLK 12 23aa0c4b81SBjorn Andersson #define QCOM_RPM_HDMI_SWITCH 13 24aa0c4b81SBjorn Andersson #define QCOM_RPM_MMFPB_CLK 14 25aa0c4b81SBjorn Andersson #define QCOM_RPM_MM_FABRIC_ARB 15 26aa0c4b81SBjorn Andersson #define QCOM_RPM_MM_FABRIC_CLK 16 27aa0c4b81SBjorn Andersson #define QCOM_RPM_MM_FABRIC_HALT 17 28aa0c4b81SBjorn Andersson #define QCOM_RPM_MM_FABRIC_IOCTL 18 29aa0c4b81SBjorn Andersson #define QCOM_RPM_MM_FABRIC_MODE 19 30aa0c4b81SBjorn Andersson #define QCOM_RPM_PLL_4 20 31aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO0 21 32aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO1 22 33aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO2 23 34aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO3 24 35aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO4 25 36aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO5 26 37aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO6 27 38aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO7 28 39aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO8 29 40aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO9 30 41aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO10 31 42aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO11 32 43aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO12 33 44aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO13 34 45aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO14 35 46aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO15 36 47aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO16 37 48aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO17 38 49aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO18 39 50aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO19 40 51aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO20 41 52aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO21 42 53aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO22 43 54aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO23 44 55aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO24 45 56aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LDO25 46 57aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LVS0 47 58aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_LVS1 48 59aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_NCP 49 60aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_SMPS0 50 61aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_SMPS1 51 62aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_SMPS2 52 63aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_SMPS3 53 64aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8058_SMPS4 54 65aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8821_LDO1 55 66aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8821_SMPS1 56 67aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8821_SMPS2 57 68aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LDO0 58 69aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LDO1 59 70aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LDO2 60 71aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LDO3 61 72aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LDO4 62 73aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LDO5 63 74aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LDO6 64 75aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LVS0 65 76aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LVS1 66 77aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LVS2 67 78aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_LVS3 68 79aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_MVS 69 80aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_SMPS0 70 81aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_SMPS1 71 82aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_SMPS2 72 83aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_SMPS3 73 84aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8901_SMPS4 74 85aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_CLK1 75 86aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_CLK2 76 87aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO1 77 88aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO2 78 89aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO3 79 90aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO4 80 91aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO5 81 92aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO6 82 93aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO7 83 94aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO8 84 95aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO9 85 96aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO10 86 97aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO11 87 98aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO12 88 99aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO13 89 100aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO14 90 101aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO15 91 102aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO16 92 103aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO17 93 104aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO18 94 105aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO19 95 106aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO20 96 107aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO21 97 108aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO22 98 109aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO23 99 110aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO24 100 111aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO25 101 112aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO26 102 113aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO27 103 114aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO28 104 115aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LDO29 105 116aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LVS1 106 117aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LVS2 107 118aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LVS3 108 119aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LVS4 109 120aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LVS5 110 121aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LVS6 111 122aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_LVS7 112 123aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_MVS 113 124aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_NCP 114 125aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_SMPS1 115 126aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_SMPS2 116 127aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_SMPS3 117 128aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_SMPS4 118 129aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_SMPS5 119 130aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_SMPS6 120 131aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_SMPS7 121 132aa0c4b81SBjorn Andersson #define QCOM_RPM_PM8921_SMPS8 122 133aa0c4b81SBjorn Andersson #define QCOM_RPM_PXO_CLK 123 134aa0c4b81SBjorn Andersson #define QCOM_RPM_QDSS_CLK 124 135aa0c4b81SBjorn Andersson #define QCOM_RPM_SFPB_CLK 125 136aa0c4b81SBjorn Andersson #define QCOM_RPM_SMI_CLK 126 137aa0c4b81SBjorn Andersson #define QCOM_RPM_SYS_FABRIC_ARB 127 138aa0c4b81SBjorn Andersson #define QCOM_RPM_SYS_FABRIC_CLK 128 139aa0c4b81SBjorn Andersson #define QCOM_RPM_SYS_FABRIC_HALT 129 140aa0c4b81SBjorn Andersson #define QCOM_RPM_SYS_FABRIC_IOCTL 130 141aa0c4b81SBjorn Andersson #define QCOM_RPM_SYS_FABRIC_MODE 131 142aa0c4b81SBjorn Andersson #define QCOM_RPM_USB_OTG_SWITCH 132 143aa0c4b81SBjorn Andersson #define QCOM_RPM_VDDMIN_GPIO 133 14430bc3aa5SJosh Cartwright #define QCOM_RPM_NSS_FABRIC_0_CLK 134 14530bc3aa5SJosh Cartwright #define QCOM_RPM_NSS_FABRIC_1_CLK 135 14630bc3aa5SJosh Cartwright #define QCOM_RPM_SMB208_S1a 136 14730bc3aa5SJosh Cartwright #define QCOM_RPM_SMB208_S1b 137 14830bc3aa5SJosh Cartwright #define QCOM_RPM_SMB208_S2a 138 14930bc3aa5SJosh Cartwright #define QCOM_RPM_SMB208_S2b 139 150*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_SMPS1 140 151*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_SMPS2 141 152*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_SMPS3 142 153*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_SMPS4 143 154*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_SMPS5 144 155*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO1 145 156*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO2 146 157*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO3 147 158*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO4 148 159*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO5 149 160*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO6 150 161*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO7 151 162*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO8 152 163*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO9 153 164*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO10 154 165*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO11 155 166*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO12 156 167*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO13 157 168*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LDO14 158 169*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_LVS1 159 170*eb87a669SNeil Armstrong #define QCOM_RPM_PM8018_NCP 160 171*eb87a669SNeil Armstrong #define QCOM_RPM_VOLTAGE_CORNER 161 172aa0c4b81SBjorn Andersson 173aa0c4b81SBjorn Andersson /* 174aa0c4b81SBjorn Andersson * Constants used to select force mode for regulators. 175aa0c4b81SBjorn Andersson */ 176aa0c4b81SBjorn Andersson #define QCOM_RPM_FORCE_MODE_NONE 0 177aa0c4b81SBjorn Andersson #define QCOM_RPM_FORCE_MODE_LPM 1 178aa0c4b81SBjorn Andersson #define QCOM_RPM_FORCE_MODE_HPM 2 179aa0c4b81SBjorn Andersson #define QCOM_RPM_FORCE_MODE_AUTO 3 180aa0c4b81SBjorn Andersson #define QCOM_RPM_FORCE_MODE_BYPASS 4 181aa0c4b81SBjorn Andersson 182aa0c4b81SBjorn Andersson #endif 183