mpc8349emitx: add bindings for GPIO, I2C and leds
Subsystems (2)
cover mpc8349emitx: add bindings for GPIO, I2C and leds
Hello,
Please apply the following patches:
Dmitry Eremin-Solenikov (4):
mpc8349emitx: add gpio controller declarations
mpc8349emitx: populate I2C busses
mpc8349emitx: add OF descriptions of LocalBus devices
mpc8349emitx: add leds-gpio binding
arch/powerpc/boot/dts/mpc8349emitx.dts | 82 +++++++++++++++++++++++++++++++- 1 files changed, 81 insertions(+), 1 deletions(-)
PATCH 1/4 mpc8349emitx: add gpio controller declarations
mpc8349 bears two GPIO controllers. Enable support for them.
--- arch/powerpc/boot/dts/mpc8349emitx.dts | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-)
arch/powerpc/boot/dts/mpc8349emitx.dts +18 -0
@@ -63,6 +63,24 @@ reg = <0x200 0x100>; }; + gpio1: gpio-controller@c00 { + #gpio-cells = <2>; + compatible = "fsl,mpc8349-gpio"; + reg = <0xc00 0x100>; + interrupts = <74 0x8>; + interrupt-parent = <&ipic>; + gpio-controller; + }; + + gpio2: gpio-controller@d00 { + #gpio-cells = <2>; + compatible = "fsl,mpc8349-gpio"; + reg = <0xd00 0x100>; + interrupts = <75 0x8>; + interrupt-parent = <&ipic>; + gpio-controller; + }; + i2c@3000 { #address-cells = <1>; #size-cells = <0>;
Signature · 1 line
1.6.5
Kumar Gala
AppliedRe: [PATCH 1/4] mpc8349emitx: add gpio controller declarations
Quoted 6 lines · Dmitry Eremin-Solenikov
mpc8349 bears two GPIO controllers. Enable support for them.
Signed-off-by Dmitry Eremin-Solenikov <[email protected]>---
arch/powerpc/boot/dts/mpc8349emitx.dts| 18 ++++++++++++++++++1 files changed, 18 insertions(+), 0 deletions(-)
applied to next
- k
PATCH 2/4 mpc8349emitx: populate I2C busses
In reply to Dmitry Eremin-SolenikovAdd OF descriptions of EEPROM, two GPIO extenders and SPD hanging on I2C on this board.
--- arch/powerpc/boot/dts/mpc8349emitx.dts | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-)
arch/powerpc/boot/dts/mpc8349emitx.dts +25 -0
@@ -90,6 +90,12 @@ interrupts = <14 0x8>; interrupt-parent = <&ipic>; dfsrr; + + eeprom: at24@50 { + compatible = "st-micro,24c256"; + reg = <0x50>; + }; + }; i2c@3100 {
@@ -109,6 +115,25 @@ interrupt-parent = <&ipic>; }; + pcf1: iexp@38 { + #gpio-cells = <2>; + compatible = "ti,pcf8574a"; + reg = <0x38>; + gpio-controller; + }; + + pcf2: iexp@39 { + #gpio-cells = <2>; + compatible = "ti,pcf8574a"; + reg = <0x39>; + gpio-controller; + }; + + spd: at24@51 { + compatible = "at24,spd"; + reg = <0x51>; + }; + mcu_pio: mcu@a { #gpio-cells = <2>; compatible = "fsl,mc9s08qg8-mpc8349emitx",
Signature · 1 line
1.6.5
Kumar Gala
AppliedRe: [PATCH 2/4] mpc8349emitx: populate I2C busses
Quoted 7 lines · Dmitry Eremin-Solenikov
Add OF descriptions of EEPROM, two GPIO extenders and SPD hanging on I2C on this board.
Signed-off-by Dmitry Eremin-Solenikov <[email protected]>---
arch/powerpc/boot/dts/mpc8349emitx.dts| 25 +++++++++++++++++++++++++1 files changed, 25 insertions(+), 0 deletions(-)
applied to next
- k
PATCH 3/4 mpc8349emitx: add OF descriptions of LocalBus devices
In reply to Dmitry Eremin-SolenikovDescribe all LocalBus chipselects on MPC8349E-MITX board. Also add flash bindings.
--- arch/powerpc/boot/dts/mpc8349emitx.dts | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc8349emitx.dts +20 -1
@@ -374,7 +374,26 @@ compatible = "fsl,mpc8349e-localbus", "fsl,pq2pro-localbus"; reg = <0xe0005000 0xd8>; - ranges = <0x3 0x0 0xf0000000 0x210>; + ranges = <0x0 0x0 0xfe000000 0x1000000 /* flash */ + 0x1 0x0 0xf8000000 0x20000 /* VSC 7385 */ + 0x2 0x0 0xf9000000 0x200000 /* exp slot */ + 0x3 0x0 0xf0000000 0x210>; /* CF slot */ + + flash@0,0 { + compatible = "cfi-flash"; + reg = <0x0 0x0 0x800000>; + bank-width = <2>; + device-width = <1>; + }; + + flash@0,1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cfi-flash"; + reg = <0x0 0x800000 0x800000>; + bank-width = <2>; + device-width = <1>; + }; pata@3,0 { compatible = "fsl,mpc8349emitx-pata", "ata-generic";
Signature · 1 line
1.6.5
Re: [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices
arch/powerpc/boot/dts/mpc8349emitx.dts line 396
Quoted 8 lines · Dmitry Eremin-Solenikov
arch/powerpc/boot/dts/mpc8349emitx.dts +8
-0+ flash@0,1 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cfi-flash"; + reg = <0x0 0x800000 0x800000>; + bank-width = <2>; + device-width = <1>; + };
Should be "flash@0,800000".
-Scott
Re: [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices
Describe all LocalBus chipselects on MPC8349E-MITX board. Also add flash bindings.
--- arch/powerpc/boot/dts/mpc8349emitx.dts | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-)
arch/powerpc/boot/dts/mpc8349emitx.dts +20 -1
@@ -374,7 +374,26 @@ compatible = "fsl,mpc8349e-localbus", "fsl,pq2pro-localbus"; reg = <0xe0005000 0xd8>; - ranges = <0x3 0x0 0xf0000000 0x210>; + ranges = <0x0 0x0 0xfe000000 0x1000000 /* flash */ + 0x1 0x0 0xf8000000 0x20000 /* VSC 7385 */ + 0x2 0x0 0xf9000000 0x200000 /* exp slot */ + 0x3 0x0 0xf0000000 0x210>; /* CF slot */ + + flash@0,0 { + compatible = "cfi-flash"; + reg = <0x0 0x0 0x800000>; + bank-width = <2>; + device-width = <1>; + }; + + flash@0,800000 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "cfi-flash"; + reg = <0x0 0x800000 0x800000>; + bank-width = <2>; + device-width = <1>; + }; pata@3,0 { compatible = "fsl,mpc8349emitx-pata", "ata-generic";
Signature · 5 lines
1.6.5 -- With best wishes Dmitry
Kumar Gala
AppliedRe: [PATCH 3/4] mpc8349emitx: add OF descriptions of LocalBus devices
Quoted 7 lines · Dmitry Eremin-Solenikov
Describe all LocalBus chipselects on MPC8349E-MITX board. Also add flash bindings.
Signed-off-by Dmitry Eremin-Solenikov <[email protected]>---
arch/powerpc/boot/dts/mpc8349emitx.dts| 21 ++++++++++++++++++++-1 files changed, 20 insertions(+), 1 deletions(-)
applied to next
- k
PATCH 4/4 mpc8349emitx: add leds-gpio binding
In reply to Dmitry Eremin-Solenikov--- arch/powerpc/boot/dts/mpc8349emitx.dts | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-)
arch/powerpc/boot/dts/mpc8349emitx.dts +18 -0
@@ -318,6 +318,24 @@ reg = <0x700 0x100>; device_type = "ipic"; }; + + gpio-leds { + compatible = "gpio-leds"; + + green { + label = "Green"; + gpios = <&pcf1 0 1>; + linux,default-trigger = "heartbeat"; + }; + + yellow { + label = "Yellow"; + gpios = <&pcf1 1 1>; + /* linux,default-trigger = "heartbeat"; */ + default-state = "on"; + }; + }; + }; pci0: pci@e0008500 {
Signature · 1 line
1.6.5
Kumar Gala
AppliedRe: [PATCH 4/4] mpc8349emitx: add leds-gpio binding
Quoted 4 lines · Dmitry Eremin-Solenikov
Signed-off-by Dmitry Eremin-Solenikov <[email protected]>---
arch/powerpc/boot/dts/mpc8349emitx.dts| 18 ++++++++++++++++++1 files changed, 18 insertions(+), 0 deletions(-)
applied to next
- k