All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@bootlin.com>
To: Vasily Khoruzhick <anarsoul@gmail.com>
Cc: Mark Rutland <mark.rutland@arm.com>,
	devicetree@vger.kernel.org,
	Catalin Marinas <catalin.marinas@arm.com>,
	Will Deacon <will.deacon@arm.com>, Chen-Yu Tsai <wens@csie.org>,
	Rob Herring <robh+dt@kernel.org>,
	arm-linux <linux-arm-kernel@lists.infradead.org>,
	Icenowy Zheng <icenowy@aosc.io>
Subject: Re: [PATCH 1/3] arm64: allwinner: a64: add R_I2C controller
Date: Mon, 4 Jun 2018 10:51:11 +0200	[thread overview]
Message-ID: <20180604085111.s23qamdethe6sr6d@flea> (raw)
In-Reply-To: <CA+E=qVfH3wWsSdzGn353q0Jf-PQ8cjU-i5osLOV1c4qWVGrR5A@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2678 bytes --]

On Fri, Jun 01, 2018 at 10:30:00AM -0700, Vasily Khoruzhick wrote:
> >> ---
> >>  arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 17 +++++++++++++++++
> >>  1 file changed, 17 insertions(+)
> >>
> >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
> >> index 1b2ef28c42bd..b5e903ccf0ec 100644
> >> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
> >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
> >> @@ -46,6 +46,7 @@
> >>  #include <dt-bindings/clock/sun8i-r-ccu.h>
> >>  #include <dt-bindings/interrupt-controller/arm-gic.h>
> >>  #include <dt-bindings/reset/sun50i-a64-ccu.h>
> >> +#include <dt-bindings/reset/sun8i-r-ccu.h>
> >>
> >>  / {
> >>       interrupt-parent = <&gic>;
> >> @@ -655,6 +656,17 @@
> >>                       #reset-cells = <1>;
> >>               };
> >>
> >> +             r_i2c: i2c@1f02400 {
> >> +                     compatible = "allwinner,sun6i-a31-i2c";
> >
> > You should add an a64 compatible here
> 
> We don't have it for regular i2c, why should I add it here?

We miss some of them. Adding for i2c would make sense too.

> >> +                     reg = <0x01f02400 0x400>;
> >> +                     interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
> >> +                     clocks = <&r_ccu CLK_APB0_I2C>;
> >> +                     resets = <&r_ccu RST_APB0_I2C>;
> >> +                     status = "disabled";
> >> +                     #address-cells = <1>;
> >> +                     #size-cells = <0>;
> >> +             };
> >> +
> >>               r_pio: pinctrl@1f02c00 {
> >>                       compatible = "allwinner,sun50i-a64-r-pinctrl";
> >>                       reg = <0x01f02c00 0x400>;
> >> @@ -670,6 +682,11 @@
> >>                               pins = "PL0", "PL1";
> >>                               function = "s_rsb";
> >>                       };
> >> +
> >> +                     r_i2c_pins_a: i2c-a {
> >> +                             pins = "PL8", "PL9";
> >> +                             function = "s_i2c";
> >> +                     };
> >
> > This should be ordered by alphabetical order
> 
> OK
> 
> > If this is the only muxing option, you can also add it to the i2c DT
> > node.
> 
> It's not the only option, but other option conflicts with rsb. Should
> I still add it to i2c DT node?

I guess you can put it there, the muxing will only be enforced if the
device is enabled, and there should be only one of RSB or I2C that
would be.

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

WARNING: multiple messages have this Message-ID (diff)
From: maxime.ripard@bootlin.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] arm64: allwinner: a64: add R_I2C controller
Date: Mon, 4 Jun 2018 10:51:11 +0200	[thread overview]
Message-ID: <20180604085111.s23qamdethe6sr6d@flea> (raw)
In-Reply-To: <CA+E=qVfH3wWsSdzGn353q0Jf-PQ8cjU-i5osLOV1c4qWVGrR5A@mail.gmail.com>

On Fri, Jun 01, 2018 at 10:30:00AM -0700, Vasily Khoruzhick wrote:
> >> ---
> >>  arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 17 +++++++++++++++++
> >>  1 file changed, 17 insertions(+)
> >>
> >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
> >> index 1b2ef28c42bd..b5e903ccf0ec 100644
> >> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
> >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
> >> @@ -46,6 +46,7 @@
> >>  #include <dt-bindings/clock/sun8i-r-ccu.h>
> >>  #include <dt-bindings/interrupt-controller/arm-gic.h>
> >>  #include <dt-bindings/reset/sun50i-a64-ccu.h>
> >> +#include <dt-bindings/reset/sun8i-r-ccu.h>
> >>
> >>  / {
> >>       interrupt-parent = <&gic>;
> >> @@ -655,6 +656,17 @@
> >>                       #reset-cells = <1>;
> >>               };
> >>
> >> +             r_i2c: i2c at 1f02400 {
> >> +                     compatible = "allwinner,sun6i-a31-i2c";
> >
> > You should add an a64 compatible here
> 
> We don't have it for regular i2c, why should I add it here?

We miss some of them. Adding for i2c would make sense too.

> >> +                     reg = <0x01f02400 0x400>;
> >> +                     interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
> >> +                     clocks = <&r_ccu CLK_APB0_I2C>;
> >> +                     resets = <&r_ccu RST_APB0_I2C>;
> >> +                     status = "disabled";
> >> +                     #address-cells = <1>;
> >> +                     #size-cells = <0>;
> >> +             };
> >> +
> >>               r_pio: pinctrl at 1f02c00 {
> >>                       compatible = "allwinner,sun50i-a64-r-pinctrl";
> >>                       reg = <0x01f02c00 0x400>;
> >> @@ -670,6 +682,11 @@
> >>                               pins = "PL0", "PL1";
> >>                               function = "s_rsb";
> >>                       };
> >> +
> >> +                     r_i2c_pins_a: i2c-a {
> >> +                             pins = "PL8", "PL9";
> >> +                             function = "s_i2c";
> >> +                     };
> >
> > This should be ordered by alphabetical order
> 
> OK
> 
> > If this is the only muxing option, you can also add it to the i2c DT
> > node.
> 
> It's not the only option, but other option conflicts with rsb. Should
> I still add it to i2c DT node?

I guess you can put it there, the muxing will only be enforced if the
device is enabled, and there should be only one of RSB or I2C that
would be.

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180604/51e52d58/attachment.sig>

  reply	other threads:[~2018-06-04  8:51 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-01  6:28 [PATCH 0/3] arm64: allwinner: a64: Add initial support for Pinebook Vasily Khoruzhick
2018-06-01  6:28 ` Vasily Khoruzhick
2018-06-01  6:28 ` [PATCH 1/3] arm64: allwinner: a64: add R_I2C controller Vasily Khoruzhick
2018-06-01  6:28   ` Vasily Khoruzhick
2018-06-01  9:16   ` Maxime Ripard
2018-06-01  9:16     ` Maxime Ripard
2018-06-01 17:30     ` Vasily Khoruzhick
2018-06-01 17:30       ` Vasily Khoruzhick
2018-06-04  8:51       ` Maxime Ripard [this message]
2018-06-04  8:51         ` Maxime Ripard
2018-06-01  6:29 ` [PATCH 2/3] dts: sunxi: A64: Add PWM controllers Vasily Khoruzhick
2018-06-01  6:29   ` Vasily Khoruzhick
2018-06-01  9:18   ` Maxime Ripard
2018-06-01  9:18     ` Maxime Ripard
2018-06-01 17:31     ` Vasily Khoruzhick
2018-06-01 17:31       ` Vasily Khoruzhick
2018-06-01  6:29 ` [PATCH 3/3] arm64: dts: allwinner: add support for Pinebook Vasily Khoruzhick
2018-06-01  6:29   ` Vasily Khoruzhick
2018-06-01  9:23   ` Maxime Ripard
2018-06-01  9:23     ` Maxime Ripard
2018-06-01 17:37     ` Vasily Khoruzhick
2018-06-01 17:37       ` Vasily Khoruzhick
2018-06-04  8:49       ` Maxime Ripard
2018-06-04  8:49         ` Maxime Ripard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180604085111.s23qamdethe6sr6d@flea \
    --to=maxime.ripard@bootlin.com \
    --cc=anarsoul@gmail.com \
    --cc=catalin.marinas@arm.com \
    --cc=devicetree@vger.kernel.org \
    --cc=icenowy@aosc.io \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=wens@csie.org \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.