]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: r8a7791: Add GyroADC clock and device node
authorMarek Vasut <marek.vasut@gmail.com>
Mon, 24 Apr 2017 15:26:32 +0000 (17:26 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Mon, 15 May 2017 07:06:41 +0000 (09:06 +0200)
Add node for the GyroADC block and it's associated clock.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7791.dtsi

index 540c5b27b8428f1a51579369232f09d20d8c4f92..b730c889a40454771dcd1b54e21e2832c4fbde3f 100644 (file)
                status = "disabled";
        };
 
+       adc: adc@e6e54000 {
+               compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc";
+               reg = <0 0xe6e54000 0 64>;
+               clocks = <&mstp9_clks R8A7791_CLK_GYROADC>;
+               clock-names = "fck";
+               power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
+               status = "disabled";
+       };
+
        scif2: serial@e6e58000 {
                compatible = "renesas,scif-r8a7791", "renesas,rcar-gen2-scif",
                             "renesas,scif";
                mstp9_clks: mstp9_clks@e6150994 {
                        compatible = "renesas,r8a7791-mstp-clocks", "renesas,cpg-mstp-clocks";
                        reg = <0 0xe6150994 0 4>, <0 0xe61509a4 0 4>;
-                       clocks = <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
+                       clocks = <&p_clk>,
+                                <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
                                 <&cp_clk>, <&cp_clk>, <&cp_clk>, <&cp_clk>,
                                 <&p_clk>, <&p_clk>, <&cpg_clocks R8A7791_CLK_QSPI>, <&hp_clk>,
                                 <&cp_clk>, <&hp_clk>, <&hp_clk>, <&hp_clk>,
                                 <&hp_clk>, <&hp_clk>;
                        #clock-cells = <1>;
                        clock-indices = <
+                               R8A7791_CLK_GYROADC
                                R8A7791_CLK_GPIO7 R8A7791_CLK_GPIO6 R8A7791_CLK_GPIO5 R8A7791_CLK_GPIO4
                                R8A7791_CLK_GPIO3 R8A7791_CLK_GPIO2 R8A7791_CLK_GPIO1 R8A7791_CLK_GPIO0
                                R8A7791_CLK_RCAN1 R8A7791_CLK_RCAN0 R8A7791_CLK_QSPI_MOD R8A7791_CLK_I2C5
                                R8A7791_CLK_I2C1 R8A7791_CLK_I2C0
                        >;
                        clock-output-names =
+                               "gyroadc",
                                "gpio7", "gpio6", "gpio5", "gpio4", "gpio3", "gpio2", "gpio1", "gpio0",
                                "rcan1", "rcan0", "qspi_mod", "i2c5", "i2c6", "i2c4", "i2c3", "i2c2",
                                "i2c1", "i2c0";