linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * Re: [PATCH 1/2] ls2080a/dts: Add little endian property for GPIO IP block
           [not found] <1446549552-40675-1-git-send-email-Gang.Liu@freescale.com>
           [not found] ` <1446549552-40675-2-git-send-email-Gang.Liu@freescale.com>
    @ 2015-11-16 15:11 ` Linus Walleij
      2015-11-16 18:56   ` Li Yang
      1 sibling, 1 reply; 8+ messages in thread
    From: Linus Walleij @ 2015-11-16 15:11 UTC (permalink / raw)
      To: Liu Gang
      Cc: Rob Herring, Bhupesh Sharma, devicetree@vger.kernel.org,
    	linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
    	b07421, R58472
    
    On Tue, Nov 3, 2015 at 12:19 PM, Liu Gang <Gang.Liu@freescale.com> wrote:
    
    > The GPIO block for ls2080a platform has little endian registers,
    > the GPIO driver needs this property to read/write registers by
    > right interface.
    >
    > Signed-off-by: Liu Gang <Gang.Liu@freescale.com>
    >
    > diff --git a/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt b/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt
    > index f2455c5..c836dab 100644
    > --- a/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt
    > +++ b/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt
    > @@ -10,6 +10,9 @@ Required properties:
    >    the second cell is used to specify the gpio polarity:
    >        0 = active high
    >        1 = active low
    > +- little-endian : Should be set if the GPIO has little endian
    > +                 registers. No the property means the GPIO
    > +                 registers are big endian mode.
    
    That is a very generic binding and I would like the devicetree
    maintainers to say something about this.
    
    I would be OK if this is specified for *all* gpiochips in
    Documentation/devicetree/bindings/gpio/gpio.txt
    or even higher up in the desriptions.
    
    Just for Freescale seems a bit too local.
    
    Yours,
    Linus Walleij
    
    ^ permalink raw reply	[flat|nested] 8+ messages in thread
  • * [PATCH 1/2] ls2080a/dts: Add little endian property for GPIO IP block
    @ 2015-11-04  6:48 Liu Gang
      2015-11-05 13:27 ` Rob Herring
      2015-11-24  6:57 ` Shawn Guo
      0 siblings, 2 replies; 8+ messages in thread
    From: Liu Gang @ 2015-11-04  6:48 UTC (permalink / raw)
      To: robh+dt, linus.walleij, arnd, shawnguo
      Cc: bhupesh.sharma, devicetree, linux-gpio, linux-arm-kernel, b07421,
    	R58472, Gang.Liu
    
    The GPIO block for ls2080a platform has little endian registers,
    the GPIO driver needs this property to read/write registers by
    right interface.
    
    Signed-off-by: Liu Gang <Gang.Liu@freescale.com>
    
    diff --git a/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt b/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt
    index f2455c5..c836dab 100644
    --- a/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt
    +++ b/Documentation/devicetree/bindings/gpio/gpio-mpc8xxx.txt
    @@ -10,6 +10,9 @@ Required properties:
       the second cell is used to specify the gpio polarity:
           0 = active high
           1 = active low
    +- little-endian : Should be set if the GPIO has little endian
    +		  registers. No the property means the GPIO
    +		  registers are big endian mode.
     
     Example:
     
    diff --git a/arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi
    index f3c59f9..41bb8c1 100644
    --- a/arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi
    +++ b/arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi
    @@ -277,6 +277,7 @@
     			reg = <0x0 0x2300000 0x0 0x10000>;
     			interrupts = <0 36 0x4>; /* Level high type */
     			gpio-controller;
    +			little-endian;
     			#gpio-cells = <2>;
     			interrupt-controller;
     			#interrupt-cells = <2>;
    @@ -287,6 +288,7 @@
     			reg = <0x0 0x2310000 0x0 0x10000>;
     			interrupts = <0 36 0x4>; /* Level high type */
     			gpio-controller;
    +			little-endian;
     			#gpio-cells = <2>;
     			interrupt-controller;
     			#interrupt-cells = <2>;
    @@ -297,6 +299,7 @@
     			reg = <0x0 0x2320000 0x0 0x10000>;
     			interrupts = <0 37 0x4>; /* Level high type */
     			gpio-controller;
    +			little-endian;
     			#gpio-cells = <2>;
     			interrupt-controller;
     			#interrupt-cells = <2>;
    @@ -307,6 +310,7 @@
     			reg = <0x0 0x2330000 0x0 0x10000>;
     			interrupts = <0 37 0x4>; /* Level high type */
     			gpio-controller;
    +			little-endian;
     			#gpio-cells = <2>;
     			interrupt-controller;
     			#interrupt-cells = <2>;
    -- 
    2.1.0.27.g96db324
    
    
    ^ permalink raw reply related	[flat|nested] 8+ messages in thread

    end of thread, other threads:[~2015-11-24  6:58 UTC | newest]
    
    Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1446549552-40675-1-git-send-email-Gang.Liu@freescale.com>
         [not found] ` <1446549552-40675-2-git-send-email-Gang.Liu@freescale.com>
    2015-11-16 15:09   ` [PATCH 2/2] drivers/gpio: Port gpio driver to layerscape platform Linus Walleij
    2015-11-16 15:11 ` [PATCH 1/2] ls2080a/dts: Add little endian property for GPIO IP block Linus Walleij
    2015-11-16 18:56   ` Li Yang
         [not found]     ` <CADRPPNROHmnOHfpAtaii5Hr3hzUmn4BL5OpQ4Q4hr9BGLq8s0Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
    2015-11-16 19:12       ` Scott Wood
    2015-11-17 14:36     ` Linus Walleij
    2015-11-04  6:48 Liu Gang
    2015-11-05 13:27 ` Rob Herring
    2015-11-24  6:57 ` Shawn Guo
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).