[amlogic-clk] WIP devicetree support.

Change-Id: I2f9fb46e506a68110f5f1521443e0e6603cbd391
diff --git a/src/devices/clock/drivers/amlogic-clk/BUILD.gn b/src/devices/clock/drivers/amlogic-clk/BUILD.gn
index 88d9c0a..79c92f7 100644
--- a/src/devices/clock/drivers/amlogic-clk/BUILD.gn
+++ b/src/devices/clock/drivers/amlogic-clk/BUILD.gn
@@ -21,10 +21,12 @@
   rules = "aml-clk.bind"
   header_output = "aml-clk-bind.h"
   bind_output = "amlogic-clk.bindbc"
+  disable_fragment_gen = true
 
   tests = "bind-tests.json"
   deps = [
-    "//src/devices/bind/fuchsia.amlogic.platform",
+    #"//src/devices/bind/fuchsia.amlogic.platform",
+    "//src/devices/bind/fuchsia.devicetree",
     "//src/devices/bind/fuchsia.platform",
   ]
 }
diff --git a/src/devices/clock/drivers/amlogic-clk/aml-clk.bind b/src/devices/clock/drivers/amlogic-clk/aml-clk.bind
index 640daec..732df07 100644
--- a/src/devices/clock/drivers/amlogic-clk/aml-clk.bind
+++ b/src/devices/clock/drivers/amlogic-clk/aml-clk.bind
@@ -2,9 +2,18 @@
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
-using fuchsia.platform;
-using fuchsia.amlogic.platform;
+composite amlogic_clk;
 
+using fuchsia.platform;
+//using fuchsia.amlogic.platform;
+using fuchsia.devicetree;
+
+primary node "pdev" {
+  fuchsia.devicetree.first_compatible == "amlogic,g12b-clk";
+  //fuchsia.BIND_PROTOCOL == fuchsia.platform.BIND_PROTOCOL.DEVICE;
+}
+
+/*
 // Parent must publish the platform device protocol.
 fuchsia.BIND_PROTOCOL == fuchsia.platform.BIND_PROTOCOL.DEVICE;
 
@@ -21,3 +30,4 @@
   fuchsia.amlogic.platform.BIND_PLATFORM_DEV_DID.A5_CLK,
   fuchsia.amlogic.platform.BIND_PLATFORM_DEV_DID.A1_CLK,
 }
+*/
\ No newline at end of file