2014-01-07 18:54:51

by Tim Kryger

[permalink] [raw]
Subject: [RESEND PATCH] ARM: dts: bcm28155-ap: Fix Card Detection GPIO

The board schematic states that the "SD_CARD_DET_N gets pulled to GND
when card is inserted" so the polarity has been updated to active low.

Polarity is now specified with a GPIO define instead of a magic number.

Signed-off-by: Tim Kryger <[email protected]>
Reviewed-by: Matt Porter <[email protected]>
---
arch/arm/boot/dts/bcm28155-ap.dts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/bcm28155-ap.dts b/arch/arm/boot/dts/bcm28155-ap.dts
index 08e47c2..27dd110 100644
--- a/arch/arm/boot/dts/bcm28155-ap.dts
+++ b/arch/arm/boot/dts/bcm28155-ap.dts
@@ -13,6 +13,8 @@

/dts-v1/;

+#include <dt-bindings/gpio/gpio.h>
+
#include "bcm11351.dtsi"

/ {
@@ -40,7 +42,7 @@

sdio4: sdio@3f1b0000 {
max-frequency = <48000000>;
- cd-gpios = <&gpio 14 0>;
+ cd-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
status = "okay";
};
};
--
1.8.0.1


2014-01-08 23:38:53

by Christian Daudt

[permalink] [raw]
Subject: Re: [RESEND PATCH] ARM: dts: bcm28155-ap: Fix Card Detection GPIO

On Tue, Jan 7, 2014 at 10:53 AM, Tim Kryger <[email protected]> wrote:
> The board schematic states that the "SD_CARD_DET_N gets pulled to GND
> when card is inserted" so the polarity has been updated to active low.
>
> Polarity is now specified with a GPIO define instead of a magic number.
>
> Signed-off-by: Tim Kryger <[email protected]>
> Reviewed-by: Matt Porter <[email protected]>
> ---
> arch/arm/boot/dts/bcm28155-ap.dts | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/bcm28155-ap.dts b/arch/arm/boot/dts/bcm28155-ap.dts
> index 08e47c2..27dd110 100644
> --- a/arch/arm/boot/dts/bcm28155-ap.dts
> +++ b/arch/arm/boot/dts/bcm28155-ap.dts
> @@ -13,6 +13,8 @@
>
> /dts-v1/;
>
> +#include <dt-bindings/gpio/gpio.h>
> +
> #include "bcm11351.dtsi"
>
> / {
> @@ -40,7 +42,7 @@
>
> sdio4: sdio@3f1b0000 {
> max-frequency = <48000000>;
> - cd-gpios = <&gpio 14 0>;
> + cd-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
> status = "okay";
> };
> };
> --
> 1.8.0.1
>
Tim,
Does bcm11351-brt not also suffer from the same bug? If it does can
you pls update the patch to also fix it?

Thanks,
csd

2014-01-09 00:28:09

by Tim Kryger

[permalink] [raw]
Subject: Re: [RESEND PATCH] ARM: dts: bcm28155-ap: Fix Card Detection GPIO

On Wed, Jan 8, 2014 at 3:38 PM, Christian Daudt <[email protected]> wrote:
> On Tue, Jan 7, 2014 at 10:53 AM, Tim Kryger <[email protected]> wrote:
>> The board schematic states that the "SD_CARD_DET_N gets pulled to GND
>> when card is inserted" so the polarity has been updated to active low.
>>
>> Polarity is now specified with a GPIO define instead of a magic number.
>>
>> Signed-off-by: Tim Kryger <[email protected]>
>> Reviewed-by: Matt Porter <[email protected]>
>> ---
>> arch/arm/boot/dts/bcm28155-ap.dts | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boot/dts/bcm28155-ap.dts b/arch/arm/boot/dts/bcm28155-ap.dts
>> index 08e47c2..27dd110 100644
>> --- a/arch/arm/boot/dts/bcm28155-ap.dts
>> +++ b/arch/arm/boot/dts/bcm28155-ap.dts
>> @@ -13,6 +13,8 @@
>>
>> /dts-v1/;
>>
>> +#include <dt-bindings/gpio/gpio.h>
>> +
>> #include "bcm11351.dtsi"
>>
>> / {
>> @@ -40,7 +42,7 @@
>>
>> sdio4: sdio@3f1b0000 {
>> max-frequency = <48000000>;
>> - cd-gpios = <&gpio 14 0>;
>> + cd-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
>> status = "okay";
>> };
>> };
>> --
>> 1.8.0.1
>>
> Tim,
> Does bcm11351-brt not also suffer from the same bug? If it does can
> you pls update the patch to also fix it?
>
> Thanks,
> csd

The BRT and AP boards are similar so it may have the same problem but
I don't have a BRT and wouldn't be able to test any changes to its DTS
file.

-Tim

2014-01-09 00:54:22

by Christian Daudt

[permalink] [raw]
Subject: Re: [RESEND PATCH] ARM: dts: bcm28155-ap: Fix Card Detection GPIO

On Wed, Jan 8, 2014 at 4:28 PM, Tim Kryger <[email protected]> wrote:
> On Wed, Jan 8, 2014 at 3:38 PM, Christian Daudt <[email protected]> wrote:
>> On Tue, Jan 7, 2014 at 10:53 AM, Tim Kryger <[email protected]> wrote:
>>> The board schematic states that the "SD_CARD_DET_N gets pulled to GND
>>> when card is inserted" so the polarity has been updated to active low.
>>>
>>> Polarity is now specified with a GPIO define instead of a magic number.
>>>
>>> Signed-off-by: Tim Kryger <[email protected]>
>>> Reviewed-by: Matt Porter <[email protected]>
>>> ---
>>> arch/arm/boot/dts/bcm28155-ap.dts | 4 +++-
>>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/arch/arm/boot/dts/bcm28155-ap.dts b/arch/arm/boot/dts/bcm28155-ap.dts
>>> index 08e47c2..27dd110 100644
>>> --- a/arch/arm/boot/dts/bcm28155-ap.dts
>>> +++ b/arch/arm/boot/dts/bcm28155-ap.dts
>>> @@ -13,6 +13,8 @@
>>>
>>> /dts-v1/;
>>>
>>> +#include <dt-bindings/gpio/gpio.h>
>>> +
>>> #include "bcm11351.dtsi"
>>>
>>> / {
>>> @@ -40,7 +42,7 @@
>>>
>>> sdio4: sdio@3f1b0000 {
>>> max-frequency = <48000000>;
>>> - cd-gpios = <&gpio 14 0>;
>>> + cd-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
>>> status = "okay";
>>> };
>>> };
>>> --
>>> 1.8.0.1
>>>
>> Tim,
>> Does bcm11351-brt not also suffer from the same bug? If it does can
>> you pls update the patch to also fix it?
>>
>> Thanks,
>> csd
>
> The BRT and AP boards are similar so it may have the same problem but
> I don't have a BRT and wouldn't be able to test any changes to its DTS
> file.
>
> -Tim

[sorry for the resend for those that get it twice]
Agreed - it's time that dts file go away. In this case:
Acked-by: Christian Daudt <[email protected]>

Olof - can you pls pull in this patch. This is the bugfix that was
discussed in irc earlier today.

thanks,
csd

2014-01-24 18:48:43

by Tim Kryger

[permalink] [raw]
Subject: Re: [RESEND PATCH] ARM: dts: bcm28155-ap: Fix Card Detection GPIO

On Wed, Jan 8, 2014 at 4:54 PM, Christian Daudt <[email protected]> wrote:
> On Wed, Jan 8, 2014 at 4:28 PM, Tim Kryger <[email protected]> wrote:
>> On Wed, Jan 8, 2014 at 3:38 PM, Christian Daudt <[email protected]> wrote:
>>> On Tue, Jan 7, 2014 at 10:53 AM, Tim Kryger <[email protected]> wrote:
>>>> The board schematic states that the "SD_CARD_DET_N gets pulled to GND
>>>> when card is inserted" so the polarity has been updated to active low.
>>>>
>>>> Polarity is now specified with a GPIO define instead of a magic number.
>>>>
>>>> Signed-off-by: Tim Kryger <[email protected]>
>>>> Reviewed-by: Matt Porter <[email protected]>
>>>> ---
>>>> arch/arm/boot/dts/bcm28155-ap.dts | 4 +++-
>>>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>>>
>>>> diff --git a/arch/arm/boot/dts/bcm28155-ap.dts b/arch/arm/boot/dts/bcm28155-ap.dts
>>>> index 08e47c2..27dd110 100644
>>>> --- a/arch/arm/boot/dts/bcm28155-ap.dts
>>>> +++ b/arch/arm/boot/dts/bcm28155-ap.dts
>>>> @@ -13,6 +13,8 @@
>>>>
>>>> /dts-v1/;
>>>>
>>>> +#include <dt-bindings/gpio/gpio.h>
>>>> +
>>>> #include "bcm11351.dtsi"
>>>>
>>>> / {
>>>> @@ -40,7 +42,7 @@
>>>>
>>>> sdio4: sdio@3f1b0000 {
>>>> max-frequency = <48000000>;
>>>> - cd-gpios = <&gpio 14 0>;
>>>> + cd-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
>>>> status = "okay";
>>>> };
>>>> };
>>>> --
>>>> 1.8.0.1
>>>>
>>> Tim,
>>> Does bcm11351-brt not also suffer from the same bug? If it does can
>>> you pls update the patch to also fix it?
>>>
>>> Thanks,
>>> csd
>>
>> The BRT and AP boards are similar so it may have the same problem but
>> I don't have a BRT and wouldn't be able to test any changes to its DTS
>> file.
>>
>> -Tim
>
> [sorry for the resend for those that get it twice]
> Agreed - it's time that dts file go away. In this case:
> Acked-by: Christian Daudt <[email protected]>
>
> Olof - can you pls pull in this patch. This is the bugfix that was
> discussed in irc earlier today.
>
> thanks,
> csd

Christian,

I'm not sure Olof saw your reply. Olof and Kevin are now on CC.

Thanks,
Tim Kryger

2014-01-31 23:13:55

by Olof Johansson

[permalink] [raw]
Subject: Re: [RESEND PATCH] ARM: dts: bcm28155-ap: Fix Card Detection GPIO

On Fri, Jan 24, 2014 at 10:48:40AM -0800, Tim Kryger wrote:
> On Wed, Jan 8, 2014 at 4:54 PM, Christian Daudt <[email protected]> wrote:
> > On Wed, Jan 8, 2014 at 4:28 PM, Tim Kryger <[email protected]> wrote:
> >> On Wed, Jan 8, 2014 at 3:38 PM, Christian Daudt <[email protected]> wrote:
> >>> On Tue, Jan 7, 2014 at 10:53 AM, Tim Kryger <[email protected]> wrote:
> >>>> The board schematic states that the "SD_CARD_DET_N gets pulled to GND
> >>>> when card is inserted" so the polarity has been updated to active low.
> >>>>
> >>>> Polarity is now specified with a GPIO define instead of a magic number.
> >>>>
> >>>> Signed-off-by: Tim Kryger <[email protected]>
> >>>> Reviewed-by: Matt Porter <[email protected]>
> >>>> ---
> >>>> arch/arm/boot/dts/bcm28155-ap.dts | 4 +++-
> >>>> 1 file changed, 3 insertions(+), 1 deletion(-)
> >>>>
> >>>> diff --git a/arch/arm/boot/dts/bcm28155-ap.dts b/arch/arm/boot/dts/bcm28155-ap.dts
> >>>> index 08e47c2..27dd110 100644
> >>>> --- a/arch/arm/boot/dts/bcm28155-ap.dts
> >>>> +++ b/arch/arm/boot/dts/bcm28155-ap.dts
> >>>> @@ -13,6 +13,8 @@
> >>>>
> >>>> /dts-v1/;
> >>>>
> >>>> +#include <dt-bindings/gpio/gpio.h>
> >>>> +
> >>>> #include "bcm11351.dtsi"
> >>>>
> >>>> / {
> >>>> @@ -40,7 +42,7 @@
> >>>>
> >>>> sdio4: sdio@3f1b0000 {
> >>>> max-frequency = <48000000>;
> >>>> - cd-gpios = <&gpio 14 0>;
> >>>> + cd-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
> >>>> status = "okay";
> >>>> };
> >>>> };
> >>>> --
> >>>> 1.8.0.1
> >>>>
> >>> Tim,
> >>> Does bcm11351-brt not also suffer from the same bug? If it does can
> >>> you pls update the patch to also fix it?
> >>>
> >>> Thanks,
> >>> csd
> >>
> >> The BRT and AP boards are similar so it may have the same problem but
> >> I don't have a BRT and wouldn't be able to test any changes to its DTS
> >> file.
> >>
> >> -Tim
> >
> > [sorry for the resend for those that get it twice]
> > Agreed - it's time that dts file go away. In this case:
> > Acked-by: Christian Daudt <[email protected]>
> >
> > Olof - can you pls pull in this patch. This is the bugfix that was
> > discussed in irc earlier today.
> >
> > thanks,
> > csd
>
> Christian,
>
> I'm not sure Olof saw your reply. Olof and Kevin are now on CC.

Nope, applied now. Had to touch it up a bit since we're missing some of the
patches that this was based on for 3.14, but the cd-gpios property is fixed.


-Olof