* [PATCH linux dev-4.7 0/2] ARM: enable bmp280-iio
@ 2017-03-28 13:10 Brad Bishop
2017-03-28 13:10 ` [PATCH linux dev-4.7 1/2] ARM: configs: aspeed: Enable hwmon-iio bridge Brad Bishop
2017-03-28 13:10 ` [PATCH linux dev-4.7 2/2] ARM: dts: Use IIO version of bmp180 on Witherspoon Brad Bishop
0 siblings, 2 replies; 6+ messages in thread
From: Brad Bishop @ 2017-03-28 13:10 UTC (permalink / raw)
To: openbmc
Enable the bmp280 IIO driver.
Enable the hwmon-iio bridge.
Use them on the Witherspoon system.
Brad Bishop (2):
ARM: configs: aspeed: Enable hwmon-iio bridge
ARM: dts: Use IIO version of bmp180 on Witherspoon
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 10 ++++++++--
arch/arm/configs/aspeed_g4_defconfig | 1 +
arch/arm/configs/aspeed_g5_defconfig | 1 +
3 files changed, 10 insertions(+), 2 deletions(-)
--
1.8.3.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH linux dev-4.7 1/2] ARM: configs: aspeed: Enable hwmon-iio bridge
2017-03-28 13:10 [PATCH linux dev-4.7 0/2] ARM: enable bmp280-iio Brad Bishop
@ 2017-03-28 13:10 ` Brad Bishop
2017-03-29 2:28 ` Joel Stanley
2017-03-28 13:10 ` [PATCH linux dev-4.7 2/2] ARM: dts: Use IIO version of bmp180 on Witherspoon Brad Bishop
1 sibling, 1 reply; 6+ messages in thread
From: Brad Bishop @ 2017-03-28 13:10 UTC (permalink / raw)
To: openbmc
Some OpenBMC systems will be using iio-hwmon so enable it
in our configs.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
---
arch/arm/configs/aspeed_g4_defconfig | 1 +
arch/arm/configs/aspeed_g5_defconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/arm/configs/aspeed_g4_defconfig b/arch/arm/configs/aspeed_g4_defconfig
index 45dee41..552297b 100644
--- a/arch/arm/configs/aspeed_g4_defconfig
+++ b/arch/arm/configs/aspeed_g4_defconfig
@@ -127,6 +127,7 @@ CONFIG_I2C_ASPEED=y
CONFIG_W1=y
CONFIG_W1_MASTER_GPIO=y
CONFIG_W1_SLAVE_THERM=y
+CONFIG_SENSORS_IIO_HWMON=y
CONFIG_SENSORS_MAX31785=y
CONFIG_SENSORS_LM75=y
CONFIG_SENSORS_NCT7904=y
diff --git a/arch/arm/configs/aspeed_g5_defconfig b/arch/arm/configs/aspeed_g5_defconfig
index 69d51f2..c5e7295 100644
--- a/arch/arm/configs/aspeed_g5_defconfig
+++ b/arch/arm/configs/aspeed_g5_defconfig
@@ -126,6 +126,7 @@ CONFIG_I2C_ASPEED=y
CONFIG_W1=y
CONFIG_W1_MASTER_GPIO=y
CONFIG_W1_SLAVE_THERM=y
+CONFIG_SENSORS_IIO_HWMON=y
CONFIG_SENSORS_MAX31785=y
CONFIG_SENSORS_LM75=y
CONFIG_SENSORS_NCT7904=y
--
1.8.3.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH linux dev-4.7 2/2] ARM: dts: Use IIO version of bmp180 on Witherspoon
2017-03-28 13:10 [PATCH linux dev-4.7 0/2] ARM: enable bmp280-iio Brad Bishop
2017-03-28 13:10 ` [PATCH linux dev-4.7 1/2] ARM: configs: aspeed: Enable hwmon-iio bridge Brad Bishop
@ 2017-03-28 13:10 ` Brad Bishop
2017-03-28 20:04 ` [PATCH linux dev-4.7 v2 " Brad Bishop
1 sibling, 1 reply; 6+ messages in thread
From: Brad Bishop @ 2017-03-28 13:10 UTC (permalink / raw)
To: openbmc
Early Witherspoon boards had a bmp180 but v2 boards
have a BMP280. Switch to the IIO driver that supports both.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Witherspoon: attach bmp180 to hwmon
---
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
index 6e7b5a4..658d9a7 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
@@ -58,6 +58,11 @@
enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
};
+
+ iio-hwmon {
+ compatible = "iio-hwmon";
+ io-channels = <&bmp 1>;
+ };
};
&fmc {
@@ -160,9 +165,10 @@
* Regs 3.3VS, 1.1VCS, 5VCS, 1.8V
*/
- bmp180@77 {
- compatible = "bosch,bmp180";
+ bmp: bmp180@77 {
+ compatible = "bosch,bmp280";
reg = <0x77>;
+ #io-channel-cells = <1>;
};
max31785@52 {
--
1.8.3.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH linux dev-4.7 v2 2/2] ARM: dts: Use IIO version of bmp180 on Witherspoon
2017-03-28 13:10 ` [PATCH linux dev-4.7 2/2] ARM: dts: Use IIO version of bmp180 on Witherspoon Brad Bishop
@ 2017-03-28 20:04 ` Brad Bishop
2017-03-29 2:32 ` Joel Stanley
0 siblings, 1 reply; 6+ messages in thread
From: Brad Bishop @ 2017-03-28 20:04 UTC (permalink / raw)
To: joel; +Cc: openbmc
Early Witherspoon boards had a bmp180 but v2 boards
have a BMP280. Switch to the IIO driver that supports both.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
---
v2:
Remove stray line from commit msg.
Fixed missed device name update.
---
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
index 6e7b5a4..e3a7b77 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
@@ -58,6 +58,11 @@
enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
};
+
+ iio-hwmon {
+ compatible = "iio-hwmon";
+ io-channels = <&bmp 1>;
+ };
};
&fmc {
@@ -160,9 +165,10 @@
* Regs 3.3VS, 1.1VCS, 5VCS, 1.8V
*/
- bmp180@77 {
- compatible = "bosch,bmp180";
+ bmp: bmp280@77 {
+ compatible = "bosch,bmp280";
reg = <0x77>;
+ #io-channel-cells = <1>;
};
max31785@52 {
--
1.8.3.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH linux dev-4.7 1/2] ARM: configs: aspeed: Enable hwmon-iio bridge
2017-03-28 13:10 ` [PATCH linux dev-4.7 1/2] ARM: configs: aspeed: Enable hwmon-iio bridge Brad Bishop
@ 2017-03-29 2:28 ` Joel Stanley
0 siblings, 0 replies; 6+ messages in thread
From: Joel Stanley @ 2017-03-29 2:28 UTC (permalink / raw)
To: Brad Bishop; +Cc: OpenBMC Maillist
On Tue, Mar 28, 2017 at 11:40 PM, Brad Bishop
<bradleyb@fuzziesquirrel.com> wrote:
> Some OpenBMC systems will be using iio-hwmon so enable it
> in our configs.
>
> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Looks good. Applied to dev-4.7.
Don't forget that the yocto images have their own version of the
configuration that you will need to update.
Cheers,
Joel
> ---
> arch/arm/configs/aspeed_g4_defconfig | 1 +
> arch/arm/configs/aspeed_g5_defconfig | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/arch/arm/configs/aspeed_g4_defconfig b/arch/arm/configs/aspeed_g4_defconfig
> index 45dee41..552297b 100644
> --- a/arch/arm/configs/aspeed_g4_defconfig
> +++ b/arch/arm/configs/aspeed_g4_defconfig
> @@ -127,6 +127,7 @@ CONFIG_I2C_ASPEED=y
> CONFIG_W1=y
> CONFIG_W1_MASTER_GPIO=y
> CONFIG_W1_SLAVE_THERM=y
> +CONFIG_SENSORS_IIO_HWMON=y
> CONFIG_SENSORS_MAX31785=y
> CONFIG_SENSORS_LM75=y
> CONFIG_SENSORS_NCT7904=y
> diff --git a/arch/arm/configs/aspeed_g5_defconfig b/arch/arm/configs/aspeed_g5_defconfig
> index 69d51f2..c5e7295 100644
> --- a/arch/arm/configs/aspeed_g5_defconfig
> +++ b/arch/arm/configs/aspeed_g5_defconfig
> @@ -126,6 +126,7 @@ CONFIG_I2C_ASPEED=y
> CONFIG_W1=y
> CONFIG_W1_MASTER_GPIO=y
> CONFIG_W1_SLAVE_THERM=y
> +CONFIG_SENSORS_IIO_HWMON=y
> CONFIG_SENSORS_MAX31785=y
> CONFIG_SENSORS_LM75=y
> CONFIG_SENSORS_NCT7904=y
> --
> 1.8.3.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH linux dev-4.7 v2 2/2] ARM: dts: Use IIO version of bmp180 on Witherspoon
2017-03-28 20:04 ` [PATCH linux dev-4.7 v2 " Brad Bishop
@ 2017-03-29 2:32 ` Joel Stanley
0 siblings, 0 replies; 6+ messages in thread
From: Joel Stanley @ 2017-03-29 2:32 UTC (permalink / raw)
To: Brad Bishop; +Cc: OpenBMC Maillist
On Wed, Mar 29, 2017 at 6:34 AM, Brad Bishop
<bradleyb@fuzziesquirrel.com> wrote:
> Early Witherspoon boards had a bmp180 but v2 boards
> have a BMP280. Switch to the IIO driver that supports both.
>
> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Applied to dev-4.7.
Cheers,
Joel
> ---
> v2:
> Remove stray line from commit msg.
> Fixed missed device name update.
> ---
> arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> index 6e7b5a4..e3a7b77 100644
> --- a/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> +++ b/arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts
> @@ -58,6 +58,11 @@
> enable-gpios = <&gpio ASPEED_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
> trans-gpios = <&gpio ASPEED_GPIO(R, 2) GPIO_ACTIVE_HIGH>;
> };
> +
> + iio-hwmon {
> + compatible = "iio-hwmon";
> + io-channels = <&bmp 1>;
> + };
> };
>
> &fmc {
> @@ -160,9 +165,10 @@
> * Regs 3.3VS, 1.1VCS, 5VCS, 1.8V
> */
>
> - bmp180@77 {
> - compatible = "bosch,bmp180";
> + bmp: bmp280@77 {
> + compatible = "bosch,bmp280";
> reg = <0x77>;
> + #io-channel-cells = <1>;
> };
>
> max31785@52 {
> --
> 1.8.3.1
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-03-29 2:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-28 13:10 [PATCH linux dev-4.7 0/2] ARM: enable bmp280-iio Brad Bishop
2017-03-28 13:10 ` [PATCH linux dev-4.7 1/2] ARM: configs: aspeed: Enable hwmon-iio bridge Brad Bishop
2017-03-29 2:28 ` Joel Stanley
2017-03-28 13:10 ` [PATCH linux dev-4.7 2/2] ARM: dts: Use IIO version of bmp180 on Witherspoon Brad Bishop
2017-03-28 20:04 ` [PATCH linux dev-4.7 v2 " Brad Bishop
2017-03-29 2:32 ` Joel Stanley
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.