]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
reset: uniphier: add analog amplifiers reset control
authorKatsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Sun, 13 Aug 2017 09:00:43 +0000 (18:00 +0900)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 14 Aug 2017 07:29:47 +0000 (09:29 +0200)
Add a reset line for analog signal amplifier core (ADAMV) on
UniPhier LD11/LD20 SoCs.

Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com>
Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Documentation/devicetree/bindings/reset/uniphier-reset.txt
drivers/reset/reset-uniphier.c

index b80ccc03ab9f62621d241385e6e2d2be4c9c298b..68a6f487c4092f205eb4cae09ca962195c15c06e 100644 (file)
@@ -90,3 +90,28 @@ Example:
 
                other nodes ...
        };
+
+
+Analog signal amplifier reset
+-----------------------------
+
+Required properties:
+- compatible: should be one of the following:
+    "socionext,uniphier-ld11-adamv-reset" - for LD11 SoC
+    "socionext,uniphier-ld20-adamv-reset" - for LD20 SoC
+- #reset-cells: should be 1.
+
+Example:
+
+       adamv@57920000 {
+               compatible = "socionext,uniphier-ld11-adamv",
+                            "simple-mfd", "syscon";
+               reg = <0x57920000 0x1000>;
+
+               adamv_rst: reset {
+                       compatible = "socionext,uniphier-ld11-adamv-reset";
+                       #reset-cells = <1>;
+               };
+
+               other nodes ...
+       };
index f60c137c17cb991321386982de5657969920f478..bda2dd196ae5d1bdd21412a4604defcc7d4db350 100644 (file)
@@ -196,6 +196,12 @@ static const struct uniphier_reset_data uniphier_pro4_peri_reset_data[] = {
        UNIPHIER_RESET_END,
 };
 
+/* Analog signal amplifiers reset data */
+static const struct uniphier_reset_data uniphier_ld11_adamv_reset_data[] = {
+       UNIPHIER_RESETX(0, 0x10, 6), /* EVEA */
+       UNIPHIER_RESET_END,
+};
+
 /* core implementaton */
 struct uniphier_reset_priv {
        struct reset_controller_dev rcdev;
@@ -415,6 +421,15 @@ static const struct of_device_id uniphier_reset_match[] = {
                .compatible = "socionext,uniphier-ld20-peri-reset",
                .data = uniphier_pro4_peri_reset_data,
        },
+       /* Analog signal amplifiers reset */
+       {
+               .compatible = "socionext,uniphier-ld11-adamv-reset",
+               .data = uniphier_ld11_adamv_reset_data,
+       },
+       {
+               .compatible = "socionext,uniphier-ld20-adamv-reset",
+               .data = uniphier_ld11_adamv_reset_data,
+       },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, uniphier_reset_match);