1 root { 2 device_info { 3 match_attr = "hdf_manager"; 4 template host { 5 hostName = ""; 6 priority = 100; 7 template device { 8 template deviceNode { 9 policy = 0; 10 priority = 100; 11 preload = 0; 12 permission = 0664; 13 moduleName = ""; 14 serviceName = ""; 15 deviceMatchAttr = ""; 16 } 17 } 18 } 19 platform :: host { 20 hostName = "platform_host"; 21 priority = 50; 22 device_gpio :: device { 23 device0 :: deviceNode { 24 policy = 0; 25 priority = 10; 26 permission = 0644; 27 moduleName = "linux_gpio_adapter"; 28 deviceMatchAttr = "linux_gpio_adapter"; 29 } 30 } 31 device_watchdog :: device { 32 device0 :: deviceNode { 33 policy = 1; 34 priority = 20; 35 permission = 0644; 36 moduleName = "HDF_PLATFORM_WATCHDOG"; 37 serviceName = "HDF_PLATFORM_WATCHDOG_0"; 38 deviceMatchAttr = "rockchip_rk3568_watchdog_0"; 39 } 40 } 41 device_rtc :: device { 42 device0 :: deviceNode { 43 policy = 1; 44 priority = 30; 45 permission = 0644; 46 moduleName = "HDF_PLATFORM_RTC"; 47 serviceName = "HDF_PLATFORM_RTC"; 48 deviceMatchAttr = "hisilicon_hi35xx_rtc"; 49 } 50 } 51 52 device_uart :: device { 53 device0 :: deviceNode { 54 policy = 1; 55 priority = 40; 56 permission = 0644; 57 moduleName = "HDF_PLATFORM_UART"; 58 serviceName = "HDF_PLATFORM_UART_0"; 59 deviceMatchAttr = "rockchip_rk3568_uart_0"; 60 } 61 device1 :: deviceNode { 62 policy = 2; 63 permission = 0644; 64 priority = 40; 65 moduleName = "HDF_PLATFORM_UART"; 66 serviceName = "HDF_PLATFORM_UART_1"; 67 deviceMatchAttr = "rockchip_rk3568_uart_1"; 68 } 69 } 70 device_i2c :: device { 71 device0 :: deviceNode { 72 policy = 2; 73 priority = 50; 74 permission = 0644; 75 moduleName = "HDF_PLATFORM_I2C_MANAGER"; 76 serviceName = "HDF_PLATFORM_I2C_MANAGER"; 77 deviceMatchAttr = "hdf_platform_i2c_manager"; 78 } 79 device1 :: deviceNode { 80 policy = 0; 81 priority = 55; 82 permission = 0644; 83 moduleName = "linux_i2c_adapter"; 84 deviceMatchAttr = "linux_i2c_adapter"; 85 } 86 } 87 device_spi :: device { 88 device0 :: deviceNode { 89 policy = 1; 90 priority = 60; 91 permission = 0644; 92 moduleName = "HDF_PLATFORM_SPI"; 93 serviceName = "HDF_PLATFORM_SPI_0"; 94 deviceMatchAttr = "rockchip_rk3568_spi_0"; 95 } 96 device1 :: deviceNode { 97 policy = 1; 98 priority = 60; 99 permission = 0644; 100 moduleName = "HDF_PLATFORM_SPI"; 101 serviceName = "HDF_PLATFORM_SPI_1"; 102 deviceMatchAttr = "rockchip_rk3568_spi_1"; 103 } 104 device2 :: deviceNode { 105 policy = 1; 106 priority = 60; 107 permission = 0644; 108 moduleName = "HDF_PLATFORM_SPI"; 109 serviceName = "HDF_PLATFORM_SPI_2"; 110 deviceMatchAttr = "rockchip_rk3568_spi_2"; 111 } 112 device3 :: deviceNode { 113 policy = 1; 114 priority = 60; 115 permission = 0644; 116 moduleName = "HDF_PLATFORM_SPI"; 117 serviceName = "HDF_PLATFORM_SPI_3"; 118 deviceMatchAttr = "rockchip_rk3568_spi_3"; 119 } 120 } 121 device_sdio :: device { 122 device0 :: deviceNode { 123 policy = 1; 124 priority = 70; 125 permission = 0644; 126 moduleName = "HDF_PLATFORM_SDIO"; 127 serviceName = "HDF_PLATFORM_MMC_2"; 128 deviceMatchAttr = "hisilicon_hi35xx_sdio_0"; 129 } 130 } 131 device_emmc :: device { 132 device0 :: deviceNode { 133 policy = 2; 134 priority = 20; 135 permission = 0644; 136 moduleName = "HDF_PLATFORM_EMMC"; 137 serviceName = "HDF_PLATFORM_MMC_0"; 138 deviceMatchAttr = "hisilicon_hi35xx_emmc_0"; 139 } 140 } 141 device_pwm :: device { 142 device0 :: deviceNode { 143 policy = 1; 144 priority = 80; 145 permission = 0644; 146 moduleName = "HDF_PLATFORM_PWM"; 147 serviceName = "HDF_PLATFORM_PWM_0"; 148 deviceMatchAttr = "linux_pwm_adapter_0"; 149 } 150 device1 :: deviceNode { 151 policy = 1; 152 priority = 80; 153 permission = 0644; 154 moduleName = "HDF_PLATFORM_PWM"; 155 serviceName = "HDF_PLATFORM_PWM_1"; 156 deviceMatchAttr = "linux_pwm_adapter_1"; 157 } 158 device2 :: deviceNode { 159 policy = 1; 160 priority = 80; 161 permission = 0644; 162 moduleName = "HDF_PLATFORM_PWM"; 163 serviceName = "HDF_PLATFORM_PWM_2"; 164 deviceMatchAttr = "linux_pwm_adapter_2"; 165 } 166 device3 :: deviceNode { 167 policy = 1; 168 priority = 80; 169 permission = 0644; 170 moduleName = "HDF_PLATFORM_PWM"; 171 serviceName = "HDF_PLATFORM_PWM_3"; 172 deviceMatchAttr = "linux_pwm_adapter_3"; 173 } 174 device4 :: deviceNode { 175 policy = 1; 176 priority = 80; 177 permission = 0644; 178 moduleName = "HDF_PLATFORM_PWM"; 179 serviceName = "HDF_PLATFORM_PWM_4"; 180 deviceMatchAttr = "linux_pwm_adapter_4"; 181 } 182 } 183 device_mipi_dsi:: device { 184 device0 :: deviceNode { 185 policy = 0; 186 priority = 150; 187 permission = 0644; 188 moduleName = "HDF_MIPI_TX"; 189 serviceName = "HDF_MIPI_TX"; 190 } 191 } 192 } 193 display :: host { 194 hostName = "display_host"; 195 device_hdf_drm_panel :: device { 196 device0 :: deviceNode { 197 policy = 0; 198 priority = 197; 199 preload = 0; 200 moduleName = "HDF_DRMPANEL"; 201 } 202 } 203 device_hdf_disp :: device { 204 device0 :: deviceNode { 205 policy = 2; 206 priority = 196; 207 permission = 0660; 208 moduleName = "HDF_DISP"; 209 serviceName = "hdf_disp"; 210 } 211 } 212 device_hi35xx_disp :: device { 213 device0 :: deviceNode { 214 policy = 0; 215 priority = 195; 216 moduleName = "HI351XX_DISP"; 217 } 218 } 219 device_lcd :: device { 220 device0 :: deviceNode { 221 policy = 0; 222 priority = 100; 223 preload = 2; 224 moduleName = "LITE_LCDKIT"; 225 deviceMatchAttr = "hdf_lcdkit_driver"; 226 } 227 device1 :: deviceNode { 228 policy = 0; 229 priority = 100; 230 preload = 0; 231 moduleName = "LCD_ICN9700"; 232 } 233 device2 :: deviceNode { 234 policy = 0; 235 priority = 100; 236 preload = 2; 237 moduleName = "LCD_ST7789"; 238 } 239 device3 :: deviceNode { 240 policy = 0; 241 priority = 100; 242 preload = 0; 243 moduleName = "LCD_ILI9881CBOE"; 244 } 245 } 246 } 247 248 input :: host { 249 hostName = "input_host"; 250 priority = 100; 251 device_input_manager :: device { 252 device0 :: deviceNode { 253 policy = 2; 254 priority = 100; 255 preload = 0; 256 permission = 0660; 257 moduleName = "HDF_INPUT_MANAGER"; 258 serviceName = "hdf_input_host"; 259 deviceMatchAttr = ""; 260 } 261 } 262 device_hdf_touch :: device { 263 device0 :: deviceNode { 264 policy = 2; 265 priority = 120; 266 preload = 0; 267 permission = 0660; 268 moduleName = "HDF_TOUCH"; 269 serviceName = "hdf_input_event1"; 270 deviceMatchAttr = "touch_device1"; 271 } 272 } 273 274 device_touch_chip :: device { 275 device0 :: deviceNode { 276 policy = 0; 277 priority = 130; 278 preload = 0; 279 permission = 0660; 280 moduleName = "HDF_TOUCH_GT911"; 281 serviceName = "hdf_touch_gt911_service"; 282 deviceMatchAttr = "zsj_gt911_5p5"; 283 } 284 } 285 device_hdf_hid :: device { 286 device0 :: deviceNode { 287 policy = 2; 288 priority = 200; 289 preload = 0; 290 permission = 0660; 291 moduleName = "HDF_HID"; 292 } 293 } 294 } 295 296 network :: host { 297 hostName = "network_host"; 298 device_wifi :: device { 299 device0 :: deviceNode { 300 policy = 2; 301 priority = 100; 302 preload = 0; 303 permission = 0664; 304 moduleName = "HDF_WIFI"; 305 deviceMatchAttr = "hdf_wlan_driver"; 306 serviceName = "hdfwifi"; 307 } 308 } 309 device_wlan_chips :: device { 310 device0 :: deviceNode { 311 policy = 0; 312 preload = 2; 313 moduleName = "HDF_WLAN_CHIPS"; 314 deviceMatchAttr = "hdf_wlan_chips_hi3881"; 315 serviceName = "hisi"; 316 } 317 } 318 } 319 sensor :: host { 320 hostName = "sensor_host"; 321 device_sensor_manager :: device { 322 device0 :: deviceNode { 323 policy = 2; 324 priority = 100; 325 preload = 0; 326 permission = 0664; 327 moduleName = "HDF_SENSOR_MGR_AP"; 328 serviceName = "hdf_sensor_manager_ap"; 329 } 330 } 331 device_sensor_accel :: device { 332 device0 :: deviceNode { 333 policy = 1; 334 priority = 110; 335 preload = 0; 336 permission = 0664; 337 moduleName = "HDF_SENSOR_ACCEL"; 338 serviceName = "sensor_accel"; 339 deviceMatchAttr = "hdf_sensor_accel_driver"; 340 } 341 } 342 device_sensor_mxc6655xa :: device { 343 device0 :: deviceNode { 344 policy = 1; 345 priority = 120; 346 preload = 0; 347 permission = 0664; 348 moduleName = "HDF_SENSOR_ACCEL_MXC6655XA"; 349 serviceName = "hdf_accel_mxc6655xa"; 350 deviceMatchAttr = "hdf_sensor_accel_mxc6655xa_driver"; 351 } 352 } 353 354 } 355 usb_pnp_linux :: host { 356 hostName = "usb_pnp_linux_host"; 357 device_usb_pnp_linux :: device { 358 device0 :: deviceNode { 359 policy = 2; 360 priority = 100; 361 preload = 0; 362 permission = 0664; 363 moduleName = "HDF_USB_PNP_NOTIFY"; 364 serviceName = "hdf_usb_pnp_notify_service"; 365 deviceMatchAttr = "hdf_usb_pnp_notify_config"; 366 } 367 } 368 } 369 audio :: host { 370 hostName = "audio_host"; 371 priority = 60; 372 device_dai0 :: device { 373 device0 :: deviceNode { 374 policy = 1; 375 priority = 50; 376 preload = 0; 377 permission = 0666; 378 moduleName = "DAI_RK3568"; 379 serviceName = "dai_service"; 380 deviceMatchAttr = "hdf_dai_driver"; 381 } 382 } 383 device_codec :: device { 384 device0 :: deviceNode { 385 policy = 1; 386 priority = 50; 387 preload = 0; 388 permission = 0666; 389 moduleName = "CODEC_RK809"; 390 serviceName = "codec_service_0"; 391 deviceMatchAttr = "hdf_codec_driver"; 392 } 393 } 394 device_codec_ex :: device { 395 device0 :: deviceNode { 396 policy = 1; 397 priority = 50; 398 preload = 0; 399 permission = 0666; 400 moduleName = "CODEC_RK817"; 401 serviceName = "codec_service_1"; 402 deviceMatchAttr = "hdf_codec_driver_ex"; 403 } 404 } 405 device_dsp :: device { 406 device0 :: deviceNode { 407 policy = 1; 408 priority = 50; 409 preload = 0; 410 permission = 0666; 411 moduleName = "DSP_RK3568"; 412 serviceName = "dsp_service_0"; 413 deviceMatchAttr = "hdf_dsp_driver"; 414 } 415 } 416 device_dma :: device { 417 device0 :: deviceNode { 418 policy = 1; 419 priority = 50; 420 preload = 0; 421 permission = 0666; 422 moduleName = "DMA_RK3568"; 423 serviceName = "dma_service_0"; 424 deviceMatchAttr = "hdf_dma_driver"; 425 } 426 } 427 device_audio :: device { 428 device0 :: deviceNode { 429 policy = 2; 430 priority = 60; 431 preload = 0; 432 permission = 0666; 433 moduleName = "HDF_AUDIO"; 434 deviceMatchAttr = "hdf_audio_driver_0"; 435 serviceName = "hdf_audio_codec_dev0"; 436 } 437 device1 :: deviceNode { 438 policy = 2; 439 priority = 60; 440 preload = 0; 441 permission = 0666; 442 moduleName = "HDF_AUDIO"; 443 deviceMatchAttr = "hdf_audio_driver_1"; 444 serviceName = "hdf_audio_smartpa_dev0"; 445 } 446 } 447 device_stream :: device { 448 device0 :: deviceNode { 449 policy = 2; 450 priority = 80; 451 preload = 0; 452 permission = 0666; 453 moduleName = "HDF_AUDIO_STREAM"; 454 serviceName = "hdf_audio_render"; 455 } 456 device1 :: deviceNode { 457 policy = 2; 458 priority = 80; 459 preload = 0; 460 permission = 0666; 461 moduleName = "HDF_AUDIO_STREAM"; 462 serviceName = "hdf_audio_capture"; 463 } 464 } 465 device_control :: device { 466 device0 :: deviceNode { 467 policy = 2; 468 priority = 80; 469 preload = 0; 470 permission = 0666; 471 moduleName = "HDF_AUDIO_CONTROL"; 472 serviceName = "hdf_audio_control"; 473 } 474 } 475 } 476 vibrator :: host { 477 hostName = "vibrator_host"; 478 device_vibrator :: device { 479 device0 :: deviceNode { 480 policy = 2; 481 priority = 100; 482 preload = 0; 483 permission = 0664; 484 moduleName = "HDF_VIBRATOR"; 485 serviceName = "hdf_misc_vibrator"; 486 deviceMatchAttr = "hdf_vibrator_driver"; 487 } 488 } 489 device_linear_vibrator :: device { 490 device0 :: deviceNode { 491 policy = 1; 492 priority = 105; 493 preload = 0; 494 permission = 0664; 495 moduleName = "HDF_LINEAR_VIBRATOR"; 496 serviceName = "hdf_misc_linear_vibrator"; 497 deviceMatchAttr = "hdf_linear_vibrator_driver"; 498 } 499 } 500 } 501 light :: host { 502 hostName = "light_host"; 503 device_light :: device { 504 device0 :: deviceNode { 505 policy = 2; 506 priority = 100; 507 preload = 0; 508 permission = 0664; 509 moduleName = "HDF_LIGHT"; 510 serviceName = "hdf_light"; 511 deviceMatchAttr = "hdf_light_driver"; 512 } 513 } 514 } 515 } 516} 517