blob: 5ae72fdebb1c4c40b971e8f9a226fea32cb960d1 [file] [log] [blame]
// Copyright 2021 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.
composite aml_pwm_regulator;
using fuchsia.gpio;
using fuchsia.platform;
using fuchsia.hardware.pwm;
using fuchsia.pwm;
using fuchsia.devicetree;
primary node "pwm" {
fuchsia.hardware.pwm.Service == fuchsia.hardware.pwm.Service.ZirconTransport;
}
node "pdev" {
if fuchsia.devicetree.FIRST_COMPATIBLE == "amlogic,pwm-regulator" {
true;
} else {
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.PWM_VREG;
}
}
node "gpio-init" {
fuchsia.BIND_INIT_STEP == fuchsia.gpio.BIND_INIT_STEP.GPIO;
}