* [PATCH 0/2] ARM: dts: rskrza1: Add I2C and remaining LEDs
@ 2019-03-20 19:44 Geert Uytterhoeven
2019-03-20 19:44 ` [PATCH 1/2] ARM: dts: rskrza1: Add I2C support Geert Uytterhoeven
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Geert Uytterhoeven @ 2019-03-20 19:44 UTC (permalink / raw)
To: Simon Horman, Magnus Damm, Chris Brandt
Cc: linux-renesas-soc, devicetree, Geert Uytterhoeven
Hi Simon, Magnus, Chris,
This patch series adds support for devices on the I2C bus on the RSKRZA1
board, including the GPIO expander that drives 3 LEDs.
Thanks!
Geert Uytterhoeven (2):
ARM: dts: rskrza1: Add I2C support
ARM: dts: rskrza1: Add remaining LEDs
arch/arm/boot/dts/r7s72100-rskrza1.dts | 46 +++++++++++++++++++++++++-
1 file changed, 45 insertions(+), 1 deletion(-)
--
2.17.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 1/2] ARM: dts: rskrza1: Add I2C support 2019-03-20 19:44 [PATCH 0/2] ARM: dts: rskrza1: Add I2C and remaining LEDs Geert Uytterhoeven @ 2019-03-20 19:44 ` Geert Uytterhoeven 2019-03-22 10:23 ` Simon Horman 2019-03-20 19:44 ` [PATCH 2/2] ARM: dts: rskrza1: Add remaining LEDs Geert Uytterhoeven 2019-03-20 20:41 ` [PATCH 0/2] ARM: dts: rskrza1: Add I2C and " Chris Brandt 2 siblings, 1 reply; 8+ messages in thread From: Geert Uytterhoeven @ 2019-03-20 19:44 UTC (permalink / raw) To: Simon Horman, Magnus Damm, Chris Brandt Cc: linux-renesas-soc, devicetree, Geert Uytterhoeven Enable the I2C bus, and add the following devices: - Two CAT9554 port expanders (8 GPIOs, interrupt not wired by default), - R1EX24016ASAS0A EEPROM. The bus also contains a MAX9856 Audio Codec, which is not yet supported. All devices (incl. the audio codec) are documented to support an I2C bus running at 400 kHz. Pinctrl is based on the RZ/A BSP. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- Pending acceptance of the DT binding patches documenting the "onnn,cat9554" and "renesas,r1ex24016" compatible values. --- arch/arm/boot/dts/r7s72100-rskrza1.dts | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100-rskrza1.dts b/arch/arm/boot/dts/r7s72100-rskrza1.dts index 8ee44a100e9a44c4..60e80ecbbf6826bc 100644 --- a/arch/arm/boot/dts/r7s72100-rskrza1.dts +++ b/arch/arm/boot/dts/r7s72100-rskrza1.dts @@ -47,6 +47,34 @@ clock-frequency = <13330000>; }; +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pins>; + status = "okay"; + + clock-frequency = <400000>; + + io_expander1: gpio@20 { + compatible = "onnn,cat9554"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; + + io_expander2: gpio@21 { + compatible = "onnn,cat9554"; + reg = <0x21>; + gpio-controller; + #gpio-cells = <2>; + }; + + eeprom@50 { + compatible = "renesas,r1ex24016", "atmel,24c16"; + reg = <0x50>; + pagesize = <16>; + }; +}; + &usb_x1_clk { clock-frequency = <48000000>; }; @@ -56,6 +84,11 @@ }; &pinctrl { + /* RIIC ch3 (Port Expander, EEPROM (MAC Addr), Audio Codec) */ + i2c3_pins: i2c3 { + pinmux = <RZA1_PINMUX(1, 6, 1)>, /* RIIC3SCL */ + <RZA1_PINMUX(1, 7, 1)>; /* RIIC3SDA */ + }; /* Serial Console */ scif2_pins: serial2 { -- 2.17.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] ARM: dts: rskrza1: Add I2C support 2019-03-20 19:44 ` [PATCH 1/2] ARM: dts: rskrza1: Add I2C support Geert Uytterhoeven @ 2019-03-22 10:23 ` Simon Horman 2019-03-25 10:55 ` Geert Uytterhoeven 0 siblings, 1 reply; 8+ messages in thread From: Simon Horman @ 2019-03-22 10:23 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Magnus Damm, Chris Brandt, linux-renesas-soc, devicetree On Wed, Mar 20, 2019 at 08:44:09PM +0100, Geert Uytterhoeven wrote: > Enable the I2C bus, and add the following devices: > - Two CAT9554 port expanders (8 GPIOs, interrupt not wired by > default), > - R1EX24016ASAS0A EEPROM. > > The bus also contains a MAX9856 Audio Codec, which is not yet supported. > > All devices (incl. the audio codec) are documented to support an I2C bus > running at 400 kHz. > > Pinctrl is based on the RZ/A BSP. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > --- > Pending acceptance of the DT binding patches documenting the > "onnn,cat9554" and "renesas,r1ex24016" compatible values. Thanks. I'm marking this series as deferred pending acceptance of the bindings. Please repost or ping me once that has happened. > --- > arch/arm/boot/dts/r7s72100-rskrza1.dts | 33 ++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > > diff --git a/arch/arm/boot/dts/r7s72100-rskrza1.dts b/arch/arm/boot/dts/r7s72100-rskrza1.dts > index 8ee44a100e9a44c4..60e80ecbbf6826bc 100644 > --- a/arch/arm/boot/dts/r7s72100-rskrza1.dts > +++ b/arch/arm/boot/dts/r7s72100-rskrza1.dts > @@ -47,6 +47,34 @@ > clock-frequency = <13330000>; > }; > > +&i2c3 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c3_pins>; > + status = "okay"; > + > + clock-frequency = <400000>; > + > + io_expander1: gpio@20 { > + compatible = "onnn,cat9554"; > + reg = <0x20>; > + gpio-controller; > + #gpio-cells = <2>; > + }; > + > + io_expander2: gpio@21 { > + compatible = "onnn,cat9554"; > + reg = <0x21>; > + gpio-controller; > + #gpio-cells = <2>; > + }; > + > + eeprom@50 { > + compatible = "renesas,r1ex24016", "atmel,24c16"; > + reg = <0x50>; > + pagesize = <16>; > + }; > +}; > + > &usb_x1_clk { > clock-frequency = <48000000>; > }; > @@ -56,6 +84,11 @@ > }; > > &pinctrl { > + /* RIIC ch3 (Port Expander, EEPROM (MAC Addr), Audio Codec) */ > + i2c3_pins: i2c3 { > + pinmux = <RZA1_PINMUX(1, 6, 1)>, /* RIIC3SCL */ > + <RZA1_PINMUX(1, 7, 1)>; /* RIIC3SDA */ > + }; > > /* Serial Console */ > scif2_pins: serial2 { > -- > 2.17.1 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] ARM: dts: rskrza1: Add I2C support 2019-03-22 10:23 ` Simon Horman @ 2019-03-25 10:55 ` Geert Uytterhoeven 2019-03-27 12:08 ` Simon Horman 0 siblings, 1 reply; 8+ messages in thread From: Geert Uytterhoeven @ 2019-03-25 10:55 UTC (permalink / raw) To: Simon Horman Cc: Geert Uytterhoeven, Magnus Damm, Chris Brandt, Linux-Renesas, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS Hi Simon, On Fri, Mar 22, 2019 at 11:23 AM Simon Horman <horms@verge.net.au> wrote: > On Wed, Mar 20, 2019 at 08:44:09PM +0100, Geert Uytterhoeven wrote: > > Enable the I2C bus, and add the following devices: > > - Two CAT9554 port expanders (8 GPIOs, interrupt not wired by > > default), > > - R1EX24016ASAS0A EEPROM. > > > > The bus also contains a MAX9856 Audio Codec, which is not yet supported. > > > > All devices (incl. the audio codec) are documented to support an I2C bus > > running at 400 kHz. > > > > Pinctrl is based on the RZ/A BSP. > > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > > --- > > Pending acceptance of the DT binding patches documenting the > > "onnn,cat9554" and "renesas,r1ex24016" compatible values. > > Thanks. > > I'm marking this series as deferred pending acceptance of the bindings. > Please repost or ping me once that has happened. next-20190325 has: d333bad1f6f3e0df dt-bindings: at24: add Renesas R1EX24016 5c9f8cfe3cb67dcb dt-bindings: gpio: pca953x: Document onnn,cat9554 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] ARM: dts: rskrza1: Add I2C support 2019-03-25 10:55 ` Geert Uytterhoeven @ 2019-03-27 12:08 ` Simon Horman 0 siblings, 0 replies; 8+ messages in thread From: Simon Horman @ 2019-03-27 12:08 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Geert Uytterhoeven, Magnus Damm, Chris Brandt, Linux-Renesas, open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS On Mon, Mar 25, 2019 at 11:55:50AM +0100, Geert Uytterhoeven wrote: > Hi Simon, > > On Fri, Mar 22, 2019 at 11:23 AM Simon Horman <horms@verge.net.au> wrote: > > On Wed, Mar 20, 2019 at 08:44:09PM +0100, Geert Uytterhoeven wrote: > > > Enable the I2C bus, and add the following devices: > > > - Two CAT9554 port expanders (8 GPIOs, interrupt not wired by > > > default), > > > - R1EX24016ASAS0A EEPROM. > > > > > > The bus also contains a MAX9856 Audio Codec, which is not yet supported. > > > > > > All devices (incl. the audio codec) are documented to support an I2C bus > > > running at 400 kHz. > > > > > > Pinctrl is based on the RZ/A BSP. > > > > > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> > > > --- > > > Pending acceptance of the DT binding patches documenting the > > > "onnn,cat9554" and "renesas,r1ex24016" compatible values. > > > > Thanks. > > > > I'm marking this series as deferred pending acceptance of the bindings. > > Please repost or ping me once that has happened. > > next-20190325 has: > > d333bad1f6f3e0df dt-bindings: at24: add Renesas R1EX24016 > 5c9f8cfe3cb67dcb dt-bindings: gpio: pca953x: Document onnn,cat9554 Thanks, applied for v5.2. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/2] ARM: dts: rskrza1: Add remaining LEDs 2019-03-20 19:44 [PATCH 0/2] ARM: dts: rskrza1: Add I2C and remaining LEDs Geert Uytterhoeven 2019-03-20 19:44 ` [PATCH 1/2] ARM: dts: rskrza1: Add I2C support Geert Uytterhoeven @ 2019-03-20 19:44 ` Geert Uytterhoeven 2019-03-27 12:09 ` Simon Horman 2019-03-20 20:41 ` [PATCH 0/2] ARM: dts: rskrza1: Add I2C and " Chris Brandt 2 siblings, 1 reply; 8+ messages in thread From: Geert Uytterhoeven @ 2019-03-20 19:44 UTC (permalink / raw) To: Simon Horman, Magnus Damm, Chris Brandt Cc: linux-renesas-soc, devicetree, Geert Uytterhoeven Describe the remaining 3 LEDs, which are driven by the first CAT9554 port expander. Drop the superfluous status property from the leds node while at it. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> --- arch/arm/boot/dts/r7s72100-rskrza1.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r7s72100-rskrza1.dts b/arch/arm/boot/dts/r7s72100-rskrza1.dts index 60e80ecbbf6826bc..ff24301dc1be54de 100644 --- a/arch/arm/boot/dts/r7s72100-rskrza1.dts +++ b/arch/arm/boot/dts/r7s72100-rskrza1.dts @@ -34,12 +34,23 @@ }; leds { - status = "okay"; compatible = "gpio-leds"; led0 { gpios = <&port7 1 GPIO_ACTIVE_LOW>; }; + + led1 { + gpios = <&io_expander1 0 GPIO_ACTIVE_LOW>; + }; + + led2 { + gpios = <&io_expander1 1 GPIO_ACTIVE_LOW>; + }; + + led3 { + gpios = <&io_expander1 2 GPIO_ACTIVE_LOW>; + }; }; }; -- 2.17.1 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] ARM: dts: rskrza1: Add remaining LEDs 2019-03-20 19:44 ` [PATCH 2/2] ARM: dts: rskrza1: Add remaining LEDs Geert Uytterhoeven @ 2019-03-27 12:09 ` Simon Horman 0 siblings, 0 replies; 8+ messages in thread From: Simon Horman @ 2019-03-27 12:09 UTC (permalink / raw) To: Geert Uytterhoeven Cc: Magnus Damm, Chris Brandt, linux-renesas-soc, devicetree On Wed, Mar 20, 2019 at 08:44:10PM +0100, Geert Uytterhoeven wrote: > Describe the remaining 3 LEDs, which are driven by the first CAT9554 > port expander. > > Drop the superfluous status property from the leds node while at it. > > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Thanks, applied for v5.2. > --- > arch/arm/boot/dts/r7s72100-rskrza1.dts | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > > diff --git a/arch/arm/boot/dts/r7s72100-rskrza1.dts b/arch/arm/boot/dts/r7s72100-rskrza1.dts > index 60e80ecbbf6826bc..ff24301dc1be54de 100644 > --- a/arch/arm/boot/dts/r7s72100-rskrza1.dts > +++ b/arch/arm/boot/dts/r7s72100-rskrza1.dts > @@ -34,12 +34,23 @@ > }; > > leds { > - status = "okay"; > compatible = "gpio-leds"; > > led0 { > gpios = <&port7 1 GPIO_ACTIVE_LOW>; > }; > + > + led1 { > + gpios = <&io_expander1 0 GPIO_ACTIVE_LOW>; > + }; > + > + led2 { > + gpios = <&io_expander1 1 GPIO_ACTIVE_LOW>; > + }; > + > + led3 { > + gpios = <&io_expander1 2 GPIO_ACTIVE_LOW>; > + }; > }; > }; > > -- > 2.17.1 > ^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH 0/2] ARM: dts: rskrza1: Add I2C and remaining LEDs 2019-03-20 19:44 [PATCH 0/2] ARM: dts: rskrza1: Add I2C and remaining LEDs Geert Uytterhoeven 2019-03-20 19:44 ` [PATCH 1/2] ARM: dts: rskrza1: Add I2C support Geert Uytterhoeven 2019-03-20 19:44 ` [PATCH 2/2] ARM: dts: rskrza1: Add remaining LEDs Geert Uytterhoeven @ 2019-03-20 20:41 ` Chris Brandt 2 siblings, 0 replies; 8+ messages in thread From: Chris Brandt @ 2019-03-20 20:41 UTC (permalink / raw) To: Geert Uytterhoeven, Simon Horman, Magnus Damm Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Hi Geert, On Wed, Mar 20, 2019, Geert Uytterhoeven wrote: > Hi Simon, Magnus, Chris, > > This patch series adds support for devices on the I2C bus on the RSKRZA1 > board, including the GPIO expander that drives 3 LEDs. > > Thanks! Very cool. I figured there was a more graceful way of turning on/off those LEDs than what I was doing...which was just writing to the I2C bus in my LED heartbeat kernel thread. https://github.com/renesas-rz/rza_linux-4.19/blob/master/arch/arm/mach-shmobile/board-rskrza1.c#L145 Chris ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-03-27 12:09 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-03-20 19:44 [PATCH 0/2] ARM: dts: rskrza1: Add I2C and remaining LEDs Geert Uytterhoeven 2019-03-20 19:44 ` [PATCH 1/2] ARM: dts: rskrza1: Add I2C support Geert Uytterhoeven 2019-03-22 10:23 ` Simon Horman 2019-03-25 10:55 ` Geert Uytterhoeven 2019-03-27 12:08 ` Simon Horman 2019-03-20 19:44 ` [PATCH 2/2] ARM: dts: rskrza1: Add remaining LEDs Geert Uytterhoeven 2019-03-27 12:09 ` Simon Horman 2019-03-20 20:41 ` [PATCH 0/2] ARM: dts: rskrza1: Add I2C and " Chris Brandt
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).