diff mbox

[linux] ARM: dts: aspeed: zaius: Add aliases for I2C buses

Message ID 20170607173400.46762-1-xow@google.com
State Rejected, archived
Headers show

Commit Message

Xo Wang June 7, 2017, 5:34 p.m. UTC
Make numbering for I2C buses consistent across boots by assigning
aliases to all the bus blocks in the peripheral, including the ones that
are currently disabled. This way, Linux reserves bus numbers for buses
that are disabled, instead of filling in those number gaps with logical
I2C buses from muxes.

Signed-off-by: Xo Wang <xow@google.com>
---
 arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

Joel Stanley June 16, 2017, 5:47 a.m. UTC | #1
Hey Xo,

For some reason I didn't get this mail from you. Luckily I saw it in patchwork.

On Thu, Jun 8, 2017 at 3:04 AM, Xo Wang <xow@google.com> wrote:
> Make numbering for I2C buses consistent across boots by assigning
> aliases to all the bus blocks in the peripheral, including the ones that
> are currently disabled. This way, Linux reserves bus numbers for buses
> that are disabled, instead of filling in those number gaps with logical
> I2C buses from muxes.

Thanks for the change. We already set these aliases in aspeed-g5.dtsi,
so you shouldn't need this patch.

Cheers,

Joel

>
> Signed-off-by: Xo Wang <xow@google.com>
> ---
>  arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> index 68baf3288263..353613344ea9 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
> @@ -9,6 +9,20 @@
>
>         aliases {
>                 serial4 = &uart5;
> +               i2c0 = &i2c0;
> +               i2c1 = &i2c1;
> +               i2c2 = &i2c2;
> +               i2c3 = &i2c3;
> +               i2c4 = &i2c4;
> +               i2c5 = &i2c5;
> +               i2c6 = &i2c6;
> +               i2c7 = &i2c7;
> +               i2c8 = &i2c8;
> +               i2c9 = &i2c9;
> +               i2c10 = &i2c10;
> +               i2c11 = &i2c11;
> +               i2c12 = &i2c12;
> +               i2c13 = &i2c13;
>         };
>
>         chosen {
diff mbox

Patch

diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
index 68baf3288263..353613344ea9 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts
@@ -9,6 +9,20 @@ 
 
 	aliases {
 		serial4 = &uart5;
+		i2c0 = &i2c0;
+		i2c1 = &i2c1;
+		i2c2 = &i2c2;
+		i2c3 = &i2c3;
+		i2c4 = &i2c4;
+		i2c5 = &i2c5;
+		i2c6 = &i2c6;
+		i2c7 = &i2c7;
+		i2c8 = &i2c8;
+		i2c9 = &i2c9;
+		i2c10 = &i2c10;
+		i2c11 = &i2c11;
+		i2c12 = &i2c12;
+		i2c13 = &i2c13;
 	};
 
 	chosen {