Skip to content
Permalink
Browse files

dts: Fix handling of fixed-clock

A number of minor issues with the 'fixed-clock' support:
* Fix the #clock-cells to be 0
* Fix nxp_ke1xf.dtsi to set #clock-cells 0 and the clock reference to
  only be a phandle.
* Fix the generation script to only generate what it should for a
  'fixed-clock'

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information...
galak committed Jul 9, 2019
1 parent 22806d2 commit e5d838081cacf1314460cbce4f9314664147c899
Showing with 4 additions and 4 deletions.
  1. +2 −2 dts/arm/nxp/nxp_ke1xf.dtsi
  2. +1 −1 dts/bindings/clock/fixed-clock.yaml
  3. +1 −1 scripts/dts/extract/clocks.py
@@ -72,7 +72,7 @@
label = "PMC";
/* LPO clock */
clock-frequency = <125000>;
#clock-cells = <1>;
#clock-cells = <0>;
};

pcc: pcc@40065000 {
@@ -96,7 +96,7 @@
compatible = "nxp,kinetis-wdog32";
reg = <0x40052000 0x1000>;
interrupts = <22 0>;
clocks = <&pmc 0>;
clocks = <&pmc>;
clk-source = <1>;
clk-divider = <256>;
label = "WDT_0";
@@ -38,4 +38,4 @@ properties:
"#clock-cells":
type: int
category: required
description: should be 1.
description: should be 0.
@@ -47,7 +47,7 @@ def _extract_consumer(self, node_path, clocks, def_label):
else:
clock_cells.append(cell)
clock_cell_index += 1
if clock_cell_index > nr_clock_cells:
if clock_cell_index > nr_clock_cells or nr_clock_cells == 0:
# clock consumer device - clocks info
#####################################
prop_def = {}

0 comments on commit e5d8380

Please sign in to comment.
You can’t perform that action at this time.