arm: dts: aspeed: witherspoon: Add devices
Subsystems (2)
PATCH 1/1 arm: dts: aspeed: witherspoon: Add devices
From: Matt Spinler <[email protected]>
Add more I2C devices and the rear LEDs.
--- arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 39 ++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 3 deletions(-)
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +36 -3
@@ -19,6 +19,22 @@ memory { reg = <0x80000000 0x40000000>; }; + + leds { + compatible = "gpio-leds"; + + rear-fault-led { + gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>; + }; + + rear-id-led { + gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_LOW>; + }; + + rear-power-led { + gpios = <&gpio ASPEED_GPIO(N, 3) GPIO_ACTIVE_LOW>; + }; + }; }; &fmc {
@@ -115,25 +131,38 @@ compatible = "bosch,bmp180"; reg = <0x77>; }; + + max31785@52 { + compatible = "maxim,max31785"; + reg = <0x52>; + }; }; &i2c4 { status = "okay"; - /* CP1 TMP423A */ /* CP1 VDN & VDDR */ /* CP1 VDD & VCS */ /* CP1 VIO */ + + tmp423a@4c { + compatible = "ti,tmp423"; + reg = <0x4c>; + }; }; &i2c5 { status = "okay"; - /* CP1 TMP423A */ /* CP1 VDN & VDDR */ /* CP1 VDD & VCS */ /* CP1 VIO */ + + tmp423a@4c { + compatible = "ti,tmp423"; + reg = <0x4c>; + }; }; &i2c6 {
@@ -152,13 +181,17 @@ &i2c9 { status = "okay"; - /* Tmp275 */ /* MUX * -> PCIe Slot 3 * -> PCIe Slot 4 * -> PCA9517 -> PEX8725 */ + + tmp275@4a { + compatible = "ti,tmp275"; + reg = <0x4a>; + }; }; &i2c10 {
Signature · 1 line
2.11.0
Joel Stanley
maintainerQuoted 3 lines · Matt Spinler
From: Matt Spinler <[email protected]>
Add more I2C devices and the rear LEDs.
Please make the subject line more descriptive. "add i2c and led devices".
Quoted 11 lines
Signed-off-by Matt Spinler <[email protected]>--- arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 39 ++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 3 deletions(-)arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +0
-0
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts line 26
Quoted 8 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +5
-0@@ -19,6 +19,22 @@ memory { reg = <0x80000000 0x40000000>; }; + + leds { + compatible = "gpio-leds"; + + rear-fault-led {
Follow the naming of the other machines. This should be "rear-fault".
Are there other fault leds? If not, call it "fault".
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts line 27
Quoted 1 line
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +1
-0+ gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;
Did you attempt to compile this patch? It doesn't build for me, with the first error on this line.
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts line 30
Quoted 3 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +3
-0+ }; + + rear-id-led {
Same here. Call it "identify". as in the other dts.
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts line 34
Quoted 4 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +4
-0+ gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_LOW>; + }; + + rear-power-led {
power.
Quoted 73 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +23
-4+ gpios = <&gpio ASPEED_GPIO(N, 3) GPIO_ACTIVE_LOW>; + }; + }; }; &fmc {@@ -115,25 +131,38 @@ compatible = "bosch,bmp180"; reg = <0x77>; }; + + max31785@52 { + compatible = "maxim,max31785"; + reg = <0x52>; + }; }; &i2c4 { status = "okay"; - /* CP1 TMP423A */ /* CP1 VDN & VDDR */ /* CP1 VDD & VCS */ /* CP1 VIO */ + + tmp423a@4c { + compatible = "ti,tmp423"; + reg = <0x4c>; + }; }; &i2c5 { status = "okay"; - /* CP1 TMP423A */ /* CP1 VDN & VDDR */ /* CP1 VDD & VCS */ /* CP1 VIO */ + + tmp423a@4c { + compatible = "ti,tmp423"; + reg = <0x4c>; + }; }; &i2c6 {@@ -152,13 +181,17 @@ &i2c9 { status = "okay"; - /* Tmp275 */ /* MUX * -> PCIe Slot 3 * -> PCIe Slot 4 * -> PCA9517 -> PEX8725 */ + + tmp275@4a { + compatible = "ti,tmp275"; + reg = <0x4a>; + }; }; &i2c10 { --2.11.0
_______________________________________________
openbmc mailing list
[email protected]
https://lists.ozlabs.org/listinfo/openbmc
Quoted 6 lines · Joel Stanley
Quoted 3 lines · Matt Spinler
From: Matt Spinler <[email protected]>
Add more I2C devices and the rear LEDs.
Please make the subject line more descriptive. "add i2c and led devices".
Sure. Was just trying to fit in the 50 characters.
Quoted 20 lines
Quoted 10 lines
Signed-off-by Matt Spinler <[email protected]>--- arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 39 ++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 3 deletions(-)arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +0
-0arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts line 26
Quoted 8 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +5
-0@@ -19,6 +19,22 @@ memory { reg = <0x80000000 0x40000000>; }; + + leds { + compatible = "gpio-leds"; + + rear-fault-led {Follow the naming of the other machines. This should be "rear-fault".
Quoted 1 line
Are there other fault leds? If not, call it "fault".
There's also a set of front LEDs for these functions. They're off of a 9552 and just I haven't gotten to their representation yet. When I eventually get the autogeneration of the device tree working, these names will be whatever they show up as in the MRW. I will change these to 'rear-fault', etc.
Quoted 4 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts line 27
Quoted 2 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +1
-0+ gpios = <&gpio ASPEED_GPIO(N, 2) GPIO_ACTIVE_LOW>;Did you attempt to compile this patch? It doesn't build for me, with the first error on this line.
Doh! I merged it from another tree where I tested it, but missed updating the gpio include to the aspeed version.
Quoted 4 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts line 30
Quoted 3 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +3
-0+ }; + + rear-id-led {Same here. Call it "identify". as in the other dts.
Will change it to rear-identify as mentioned above.
Quoted 6 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts line 34
Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +4
-0+ gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_LOW>; + }; + + rear-power-led {power.
Will be rear-power.
Quoted 74 lines
Quoted 74 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +23
-4+ gpios = <&gpio ASPEED_GPIO(N, 3) GPIO_ACTIVE_LOW>; + }; + }; }; &fmc {@@ -115,25 +131,38 @@ compatible = "bosch,bmp180"; reg = <0x77>; }; + + max31785@52 { + compatible = "maxim,max31785"; + reg = <0x52>; + }; }; &i2c4 { status = "okay"; - /* CP1 TMP423A */ /* CP1 VDN & VDDR */ /* CP1 VDD & VCS */ /* CP1 VIO */ + + tmp423a@4c { + compatible = "ti,tmp423"; + reg = <0x4c>; + }; }; &i2c5 { status = "okay"; - /* CP1 TMP423A */ /* CP1 VDN & VDDR */ /* CP1 VDD & VCS */ /* CP1 VIO */ + + tmp423a@4c { + compatible = "ti,tmp423"; + reg = <0x4c>; + }; }; &i2c6 {@@ -152,13 +181,17 @@ &i2c9 { status = "okay"; - /* Tmp275 */ /* MUX * -> PCIe Slot 3 * -> PCIe Slot 4 * -> PCA9517 -> PEX8725 */ + + tmp275@4a { + compatible = "ti,tmp275"; + reg = <0x4a>; + }; }; &i2c10 { --2.11.0
_______________________________________________
openbmc mailing list
[email protected]
https://lists.ozlabs.org/listinfo/openbmc
Quoted 7 lines · Matt Spinler
Quoted 7 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts line 26
Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts +5
-0+ + leds { + compatible = "gpio-leds"; + + rear-fault-led {Follow the naming of the other machines. This should be "rear-fault".
Quoted 6 lines
Quoted 1 line
Are there other fault leds? If not, call it "fault".
There's also a set of front LEDs for these functions. They're off of a 9552 and just I haven't gotten to their representation yet. When I eventually get the autogeneration of the device tree working, these names will be whatever they show up as in the MRW.
I will change these to 'rear-fault', etc.
Is there any concern with name collisions with removing the 'led' portion of the name? If, for example, we have a button (GPIO) and LED with the name 'power is there any problem instead of being named 'power-button' and 'power-led'?
Signature · 1 line
Patrick Williams