Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: media: camss: Restrict bus-type property

The CSIPHY of Qualcomm SoCs support both D-PHY and C-PHY standards for
CSI-2, but not any others so restrict the bus-type property describing
this to the supported values.

The only exception here is MSM8916 which only supports D-PHY. C-PHY was
introduced with newer SoCs.

Do note, that currently the Linux driver only supports D-PHY.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>

authored by

Luca Weiss and committed by
Hans Verkuil
be526da7 4acbaa87

+133
+8
Documentation/devicetree/bindings/media/qcom,msm8916-camss.yaml
··· 93 93 minItems: 1 94 94 maxItems: 4 95 95 96 + bus-type: 97 + enum: 98 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 99 + 96 100 required: 97 101 - data-lanes 98 102 ··· 115 111 data-lanes: 116 112 minItems: 1 117 113 maxItems: 4 114 + 115 + bus-type: 116 + enum: 117 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 118 118 119 119 required: 120 120 - data-lanes
+15
Documentation/devicetree/bindings/media/qcom,msm8953-camss.yaml
··· 112 112 minItems: 1 113 113 maxItems: 4 114 114 115 + bus-type: 116 + enum: 117 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 118 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 119 + 115 120 required: 116 121 - data-lanes 117 122 ··· 136 131 minItems: 1 137 132 maxItems: 4 138 133 134 + bus-type: 135 + enum: 136 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 137 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 138 + 139 139 required: 140 140 - data-lanes 141 141 ··· 159 149 data-lanes: 160 150 minItems: 1 161 151 maxItems: 4 152 + 153 + bus-type: 154 + enum: 155 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 156 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 162 157 163 158 required: 164 159 - data-lanes
+20
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml
··· 115 115 minItems: 1 116 116 maxItems: 4 117 117 118 + bus-type: 119 + enum: 120 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 121 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 122 + 118 123 required: 119 124 - data-lanes 120 125 ··· 138 133 data-lanes: 139 134 minItems: 1 140 135 maxItems: 4 136 + 137 + bus-type: 138 + enum: 139 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 140 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 141 141 142 142 required: 143 143 - data-lanes ··· 163 153 minItems: 1 164 154 maxItems: 4 165 155 156 + bus-type: 157 + enum: 158 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 159 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 160 + 166 161 required: 167 162 - data-lanes 168 163 ··· 186 171 data-lanes: 187 172 minItems: 1 188 173 maxItems: 4 174 + 175 + bus-type: 176 + enum: 177 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 178 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 189 179 190 180 required: 191 181 - data-lanes
+20
Documentation/devicetree/bindings/media/qcom,sc8280xp-camss.yaml
··· 143 143 minItems: 1 144 144 maxItems: 4 145 145 146 + bus-type: 147 + enum: 148 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 149 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 150 + 146 151 required: 147 152 - clock-lanes 148 153 - data-lanes ··· 170 165 data-lanes: 171 166 minItems: 1 172 167 maxItems: 4 168 + 169 + bus-type: 170 + enum: 171 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 172 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 173 173 174 174 required: 175 175 - clock-lanes ··· 199 189 minItems: 1 200 190 maxItems: 4 201 191 192 + bus-type: 193 + enum: 194 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 195 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 196 + 202 197 required: 203 198 - clock-lanes 204 199 - data-lanes ··· 226 211 data-lanes: 227 212 minItems: 1 228 213 maxItems: 4 214 + 215 + bus-type: 216 + enum: 217 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 218 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 229 219 230 220 required: 231 221 - clock-lanes
+20
Documentation/devicetree/bindings/media/qcom,sdm660-camss.yaml
··· 121 121 minItems: 1 122 122 maxItems: 4 123 123 124 + bus-type: 125 + enum: 126 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 127 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 128 + 124 129 required: 125 130 - data-lanes 126 131 ··· 144 139 data-lanes: 145 140 minItems: 1 146 141 maxItems: 4 142 + 143 + bus-type: 144 + enum: 145 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 146 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 147 147 148 148 required: 149 149 - data-lanes ··· 169 159 minItems: 1 170 160 maxItems: 4 171 161 162 + bus-type: 163 + enum: 164 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 165 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 166 + 172 167 required: 173 168 - data-lanes 174 169 ··· 192 177 data-lanes: 193 178 minItems: 1 194 179 maxItems: 4 180 + 181 + bus-type: 182 + enum: 183 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 184 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 195 185 196 186 required: 197 187 - data-lanes
+20
Documentation/devicetree/bindings/media/qcom,sdm845-camss.yaml
··· 108 108 minItems: 1 109 109 maxItems: 4 110 110 111 + bus-type: 112 + enum: 113 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 114 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 115 + 111 116 required: 112 117 - data-lanes 113 118 ··· 131 126 data-lanes: 132 127 minItems: 1 133 128 maxItems: 4 129 + 130 + bus-type: 131 + enum: 132 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 133 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 134 134 135 135 required: 136 136 - data-lanes ··· 156 146 minItems: 1 157 147 maxItems: 4 158 148 149 + bus-type: 150 + enum: 151 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 152 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 153 + 159 154 required: 160 155 - data-lanes 161 156 ··· 179 164 data-lanes: 180 165 minItems: 1 181 166 maxItems: 4 167 + 168 + bus-type: 169 + enum: 170 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 171 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 182 172 183 173 required: 184 174 - data-lanes
+30
Documentation/devicetree/bindings/media/qcom,sm8250-camss.yaml
··· 128 128 minItems: 1 129 129 maxItems: 4 130 130 131 + bus-type: 132 + enum: 133 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 134 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 135 + 131 136 required: 132 137 - clock-lanes 133 138 - data-lanes ··· 155 150 data-lanes: 156 151 minItems: 1 157 152 maxItems: 4 153 + 154 + bus-type: 155 + enum: 156 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 157 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 158 158 159 159 required: 160 160 - clock-lanes ··· 184 174 minItems: 1 185 175 maxItems: 4 186 176 177 + bus-type: 178 + enum: 179 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 180 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 181 + 187 182 required: 188 183 - clock-lanes 189 184 - data-lanes ··· 211 196 data-lanes: 212 197 minItems: 1 213 198 maxItems: 4 199 + 200 + bus-type: 201 + enum: 202 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 203 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 214 204 215 205 required: 216 206 - clock-lanes ··· 240 220 minItems: 1 241 221 maxItems: 4 242 222 223 + bus-type: 224 + enum: 225 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 226 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 227 + 243 228 required: 244 229 - clock-lanes 245 230 - data-lanes ··· 267 242 data-lanes: 268 243 minItems: 1 269 244 maxItems: 4 245 + 246 + bus-type: 247 + enum: 248 + - 1 # MEDIA_BUS_TYPE_CSI2_CPHY 249 + - 4 # MEDIA_BUS_TYPE_CSI2_DPHY 270 250 271 251 required: 272 252 - clock-lanes