blob: 2e5c6747ccd432ae92d63dd628fca7ce47808799 [file] [log] [blame]
// Copyright 2020 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 display;
using fuchsia.hardware.amlogiccanvas;
using fuchsia.hardware.gpio;
using fuchsia.gpio;
using fuchsia.platform;
using fuchsia.display;
using fuchsia.hardware.sysmem;
using fuchsia.amlogic.platform;
using fuchsia.devicetree;
primary node "pdev" {
if fuchsia.devicetree.FIRST_COMPATIBLE == "amlogic,display" {
true;
} else {
fuchsia.BIND_PROTOCOL == fuchsia.platform.BIND_PROTOCOL.DEVICE;
fuchsia.BIND_PLATFORM_DEV_VID == fuchsia.amlogic.platform.BIND_PLATFORM_DEV_VID.AMLOGIC;
fuchsia.BIND_PLATFORM_DEV_DID == fuchsia.amlogic.platform.BIND_PLATFORM_DEV_DID.DISPLAY;
accept fuchsia.BIND_PLATFORM_DEV_PID {
fuchsia.amlogic.platform.BIND_PLATFORM_DEV_PID.A311D,
fuchsia.amlogic.platform.BIND_PLATFORM_DEV_PID.S905D2,
fuchsia.amlogic.platform.BIND_PLATFORM_DEV_PID.S905D3,
fuchsia.amlogic.platform.BIND_PLATFORM_DEV_PID.T931,
}
}
}
node "gpio-lcd-reset" {
fuchsia.hardware.gpio.Service == fuchsia.hardware.gpio.Service.ZirconTransport;
fuchsia.gpio.FUNCTION == fuchsia.gpio.FUNCTION.LCD_RESET;
}
optional node "gpio-hdmi-hotplug-detect" {
fuchsia.hardware.gpio.Service == fuchsia.hardware.gpio.Service.ZirconTransport;
fuchsia.gpio.FUNCTION == fuchsia.gpio.FUNCTION.HDMI_HOTPLUG_DETECT;
}
node "sysmem" {
fuchsia.hardware.sysmem.Service == fuchsia.hardware.sysmem.Service.ZirconTransport;
}
node "canvas" {
fuchsia.hardware.amlogiccanvas.Service == fuchsia.hardware.amlogiccanvas.Service.ZirconTransport;
}
optional node "mipi-dsi-display" {
fuchsia.display.OUTPUT == fuchsia.display.OUTPUT.MIPI_DSI;
}
optional node "hdmi-display" {
fuchsia.display.OUTPUT == fuchsia.display.OUTPUT.HDMI;
}