Skip to content

Commit

Permalink
reset: uniphier: add analog amplifiers reset control
Browse files Browse the repository at this point in the history
Add a reset line for analog signal amplifier core (ADAMV) on
UniPhier LD11/LD20 SoCs.

Signed-off-by: Katsuhiro Suzuki <[email protected]>
Acked-by: Masahiro Yamada <[email protected]>
Signed-off-by: Philipp Zabel <[email protected]>
  • Loading branch information
Katsuhiro Suzuki authored and pH5 committed Aug 14, 2017
1 parent 0f19543 commit ac0c735
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Documentation/devicetree/bindings/reset/uniphier-reset.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ...
};
15 changes: 15 additions & 0 deletions drivers/reset/reset-uniphier.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ac0c735

Please sign in to comment.