| // Copyright 2026 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| // WARNING: THIS FILE IS GENERATED BY dmlc. DO NOT EDIT. | |
| composite focaltech_touch; | |
| using fuchsia; | |
| primary parent "i2c" { | |
| fuchsia.Service == "fuchsia.hardware.i2c.Service"; | |
| } | |
| optional parent "gpio-init-0" { | |
| fuchsia.BIND_INIT_STEP == fuchsia.gpio.BIND_INIT_STEP.GPIO; | |
| } | |
| parent "gpio-int" { | |
| fuchsia.Service == "fuchsia.hardware.gpio.Service"; | |
| fuchsia.NAME == "gpio-int"; | |
| } | |
| parent "gpio-reset" { | |
| fuchsia.Service == "fuchsia.hardware.gpio.Service"; | |
| fuchsia.NAME == "gpio-reset"; | |
| } | |
| parent "pdev" { | |
| if fuchsia.BIND_PROTOCOL == fuchsia.platform.BIND_PROTOCOL.DEVICE { | |
| fuchsia.BIND_PLATFORM_DEV_VID == fuchsia.platform.BIND_PLATFORM_DEV_VID.GENERIC; | |
| fuchsia.BIND_PLATFORM_DEV_PID == fuchsia.platform.BIND_PLATFORM_DEV_PID.GENERIC; | |
| fuchsia.BIND_PLATFORM_DEV_DID == fuchsia.platform.BIND_PLATFORM_DEV_DID.FOCALTOUCH; | |
| fuchsia.BIND_PLATFORM_DEV_INSTANCE_ID == 0; | |
| } else if fuchsia.COMPATIBLE == "focaltech,ft3x27" { | |
| fuchsia.BIND_PLATFORM_DEV_VID == fuchsia.platform.BIND_PLATFORM_DEV_VID.GENERIC; | |
| } else if fuchsia.COMPATIBLE == "focaltech,ft6336" { | |
| fuchsia.BIND_PLATFORM_DEV_VID == fuchsia.platform.BIND_PLATFORM_DEV_VID.GENERIC; | |
| } else if fuchsia.COMPATIBLE == "focaltech,ft5726" { | |
| fuchsia.BIND_PLATFORM_DEV_VID == fuchsia.platform.BIND_PLATFORM_DEV_VID.GENERIC; | |
| } else { | |
| fuchsia.BIND_PLATFORM_DEV_VID == fuchsia.platform.BIND_PLATFORM_DEV_VID.GENERIC; | |
| fuchsia.COMPATIBLE == "focaltech,ft5336"; | |
| } | |
| } | |
| optional parent "pin-states-0" { | |
| fuchsia.Service == "fuchsia.hardware.pin.PinStatesService"; | |
| } | |