]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: octeon: dts: Add Octeon clock driver DT nodes
authorStefan Roese <sr@denx.de>
Thu, 30 Jul 2020 11:56:17 +0000 (13:56 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 3 Aug 2020 19:11:41 +0000 (21:11 +0200)
This patch adds the DT nodes for the Octeon clock support via the
common clk_ API.

Signed-off-by: Stefan Roese <sr@denx.de>
arch/mips/dts/mrvl,cn73xx.dtsi
arch/mips/dts/mrvl,octeon-ebb7304.dts

index 4c7b6e4160ac51bb298d7bb9828ebca0f81e5b95..7c0a8d73f0ef25b66077facabc6bd65fa7714ea8 100644 (file)
@@ -5,6 +5,8 @@
 
 /dts-v1/;
 
+#include <dt-bindings/clock/octeon-clock.h>
+
 / {
        #address-cells = <2>;
        #size-cells = <2>;
                        #size-cells = <1>;
                };
 
+               clk: clock {
+                       compatible = "mrvl,octeon-clk";
+                       #clock-cells = <1>;
+                       u-boot,dm-pre-reloc;
+               };
+
                gpio: gpio-controller@1070000000800 {
                        #gpio-cells = <2>;
                        compatible = "cavium,octeon-7890-gpio";
                        /* INT_ST, INT_TS, INT_CORE */
                        interrupts = <0x0b000 1>, <0x0b001 1>, <0x0b002 1>;
                        clock-frequency = <100000>;
+                       clocks = <&clk OCTEON_CLK_IO>;
                };
 
                i2c1: i2c@1180000001200 {
                        /* INT_ST, INT_TS, INT_CORE */
                        interrupts = <0x0b100 1>, <0x0b101 1>, <0x0b102 1>;
                        clock-frequency = <100000>;
+                       clocks = <&clk OCTEON_CLK_IO>;
                };
        };
 };
index 096e5c8f6671f67d977347402d45cd1ce770d9ad..c229aa5fc051511378b816df45be6c93129142fb 100644 (file)
@@ -5,7 +5,7 @@
 
 /dts-v1/;
 
-/include/ "mrvl,cn73xx.dtsi"
+#include "mrvl,cn73xx.dtsi"
 
 / {
        model = "cavium,ebb7304";