2019-09-13 16:58:04

by Eddie James

[permalink] [raw]
Subject: [PATCH 0/2] i2c: Aspeed: Add AST2600 compatible string

Update the Aspeed I2C driver with the AST2600 compatible string. The default
driver behavior works fine with the AST2600. A new compatible string is needed
to avoid the AST2400 and AST2500 behavior.

Eddie James (2):
i2c: Aspeed: Add AST2600 compatible
dt-bindings: i2c: Aspeed: Add AST2600 compatible

Documentation/devicetree/bindings/i2c/i2c-aspeed.txt | 3 ++-
drivers/i2c/busses/i2c-aspeed.c | 4 ++++
2 files changed, 6 insertions(+), 1 deletion(-)

--
1.8.3.1


2019-09-14 01:24:31

by Eddie James

[permalink] [raw]
Subject: [PATCH 2/2] dt-bindings: i2c: Aspeed: Add AST2600 compatible

Document the AST2600 I2C bus compatible string.

Signed-off-by: Eddie James <[email protected]>
---
Documentation/devicetree/bindings/i2c/i2c-aspeed.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt b/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt
index 8fbd863..b47f6cc 100644
--- a/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt
+++ b/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt
@@ -1,4 +1,4 @@
-Device tree configuration for the I2C busses on the AST24XX and AST25XX SoCs.
+Device tree configuration for the I2C busses on the AST24XX, AST25XX, and AST26XX SoCs.

Required Properties:
- #address-cells : should be 1
@@ -6,6 +6,7 @@ Required Properties:
- reg : address offset and range of bus
- compatible : should be "aspeed,ast2400-i2c-bus"
or "aspeed,ast2500-i2c-bus"
+ or "aspeed,ast2600-i2c-bus"
- clocks : root clock of bus, should reference the APB
clock in the second cell
- resets : phandle to reset controller with the reset number in
--
1.8.3.1

2019-09-14 02:34:52

by Eddie James

[permalink] [raw]
Subject: [PATCH 1/2] i2c: Aspeed: Add AST2600 compatible

The driver default behavior works with the AST2600. We need a new
compatible though to make sure the driver doesn't enable AST2400 or
AST2500 behavior.

Signed-off-by: Eddie James <[email protected]>
---
drivers/i2c/busses/i2c-aspeed.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/i2c/busses/i2c-aspeed.c b/drivers/i2c/busses/i2c-aspeed.c
index fa66951..c2a6e5a 100644
--- a/drivers/i2c/busses/i2c-aspeed.c
+++ b/drivers/i2c/busses/i2c-aspeed.c
@@ -938,6 +938,10 @@ static int aspeed_i2c_reset(struct aspeed_i2c_bus *bus)
.compatible = "aspeed,ast2500-i2c-bus",
.data = aspeed_i2c_25xx_get_clk_reg_val,
},
+ {
+ .compatible = "aspeed,ast2600-i2c-bus",
+ .data = aspeed_i2c_25xx_get_clk_reg_val,
+ },
{ },
};
MODULE_DEVICE_TABLE(of, aspeed_i2c_bus_of_table);
--
1.8.3.1

2019-09-30 20:54:01

by Rob Herring (Arm)

[permalink] [raw]
Subject: Re: [PATCH 2/2] dt-bindings: i2c: Aspeed: Add AST2600 compatible

On Fri, Sep 13, 2019 at 11:35:10AM -0500, Eddie James wrote:
> Document the AST2600 I2C bus compatible string.
>
> Signed-off-by: Eddie James <[email protected]>
> ---
> Documentation/devicetree/bindings/i2c/i2c-aspeed.txt | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt b/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt
> index 8fbd863..b47f6cc 100644
> --- a/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt
> +++ b/Documentation/devicetree/bindings/i2c/i2c-aspeed.txt
> @@ -1,4 +1,4 @@
> -Device tree configuration for the I2C busses on the AST24XX and AST25XX SoCs.
> +Device tree configuration for the I2C busses on the AST24XX, AST25XX, and AST26XX SoCs.

Perhaps s/buses/busses/ while you're here.

Acked-by: Rob Herring <[email protected]>

>
> Required Properties:
> - #address-cells : should be 1
> @@ -6,6 +6,7 @@ Required Properties:
> - reg : address offset and range of bus
> - compatible : should be "aspeed,ast2400-i2c-bus"
> or "aspeed,ast2500-i2c-bus"
> + or "aspeed,ast2600-i2c-bus"
> - clocks : root clock of bus, should reference the APB
> clock in the second cell
> - resets : phandle to reset controller with the reset number in
> --
> 1.8.3.1
>

2019-10-21 12:24:05

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH 2/2] dt-bindings: i2c: Aspeed: Add AST2600 compatible

On Fri, Sep 13, 2019 at 11:35:10AM -0500, Eddie James wrote:
> Document the AST2600 I2C bus compatible string.
>
> Signed-off-by: Eddie James <[email protected]>

Applied to for-next, thanks!


Attachments:
(No filename) (205.00 B)
signature.asc (849.00 B)
Download all attachments

2019-10-21 12:25:48

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH 1/2] i2c: Aspeed: Add AST2600 compatible

On Fri, Sep 13, 2019 at 11:35:09AM -0500, Eddie James wrote:
> The driver default behavior works with the AST2600. We need a new
> compatible though to make sure the driver doesn't enable AST2400 or
> AST2500 behavior.
>
> Signed-off-by: Eddie James <[email protected]>

Applied to for-next, thanks!


Attachments:
(No filename) (315.00 B)
signature.asc (849.00 B)
Download all attachments