* [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards.
@ 2016-11-24 14:13 ` Markus Reichl
2016-11-24 14:29 ` Tobias Jakobi
2016-11-25 13:39 ` Marek Szyprowski
0 siblings, 2 replies; 8+ messages in thread
From: Markus Reichl @ 2016-11-24 14:13 UTC (permalink / raw)
To: linux-samsung-soc, Krzysztof Kozlowski, Kukjin Kim,
Marek Szyprowski, Javier Martinez Canillas, Tobias Jakobi
Odroid-X and -X2 have SPI_1 routed to an external connector.
Enable SPI_1 on X and -X2.
Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
---
Tested on X, U3.
---
arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 8 ++++++++
arch/arm/boot/dts/exynos4412-odroidu3.dts | 7 -------
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
index 7dc1009..c919405 100644
--- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
+++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
@@ -559,6 +559,14 @@
status = "okay";
};
+&spi_1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi1_bus>;
+ num-cs = <1>;
+ cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
+ status = "okay";
+};
+
&tmu {
vtmu-supply = <&ldo10_reg>;
status = "okay";
diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts
index fc14da5..4bd215f 100644
--- a/arch/arm/boot/dts/exynos4412-odroidu3.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts
@@ -124,10 +124,3 @@
"Speakers", "SPKL",
"Speakers", "SPKR";
};
-
-&spi_1 {
- pinctrl-names = "default";
- pinctrl-0 = <&spi1_bus>;
- cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
- status = "okay";
-};
--
2.1.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards.
2016-11-24 14:13 ` [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards Markus Reichl
@ 2016-11-24 14:29 ` Tobias Jakobi
2016-11-24 14:35 ` Markus Reichl
2016-11-25 13:39 ` Marek Szyprowski
1 sibling, 1 reply; 8+ messages in thread
From: Tobias Jakobi @ 2016-11-24 14:29 UTC (permalink / raw)
To: Markus Reichl, linux-samsung-soc, Krzysztof Kozlowski,
Kukjin Kim, Marek Szyprowski, Javier Martinez Canillas,
Tobias Jakobi
Hey Markus,
you should probably mention why the node was removed from the U3 dts. I
guess this is due to the SPI not being routed anywhere there?
- Tobias
Markus Reichl wrote:
> Odroid-X and -X2 have SPI_1 routed to an external connector.
> Enable SPI_1 on X and -X2.
>
> Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
> ---
> Tested on X, U3.
> ---
> arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 8 ++++++++
> arch/arm/boot/dts/exynos4412-odroidu3.dts | 7 -------
> 2 files changed, 8 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
> index 7dc1009..c919405 100644
> --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
> +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
> @@ -559,6 +559,14 @@
> status = "okay";
> };
>
> +&spi_1 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&spi1_bus>;
> + num-cs = <1>;
> + cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
> + status = "okay";
> +};
> +
> &tmu {
> vtmu-supply = <&ldo10_reg>;
> status = "okay";
> diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts
> index fc14da5..4bd215f 100644
> --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts
> +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts
> @@ -124,10 +124,3 @@
> "Speakers", "SPKL",
> "Speakers", "SPKR";
> };
> -
> -&spi_1 {
> - pinctrl-names = "default";
> - pinctrl-0 = <&spi1_bus>;
> - cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
> - status = "okay";
> -};
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards.
2016-11-24 14:29 ` Tobias Jakobi
@ 2016-11-24 14:35 ` Markus Reichl
2016-11-24 14:38 ` Tobias Jakobi
0 siblings, 1 reply; 8+ messages in thread
From: Markus Reichl @ 2016-11-24 14:35 UTC (permalink / raw)
To: Tobias Jakobi, linux-samsung-soc, Krzysztof Kozlowski,
Kukjin Kim, Marek Szyprowski, Javier Martinez Canillas
Hi Tobias,
Am 24.11.2016 um 15:29 schrieb Tobias Jakobi:
> Hey Markus,
>
> you should probably mention why the node was removed from the U3 dts. I
> guess this is due to the SPI not being routed anywhere there?
I put the node into exynos4412-odroid-common, so it will be there
on X, X2 and U3.
We need it on U3, too, because on U3+ SPI is routed to an external connector.
(Presently we do not separate between U3 and U3+. They are different only with
SPI and USB-OTG).
Thanks for looking at,
--
Markus
>
> - Tobias
>
> Markus Reichl wrote:
>> Odroid-X and -X2 have SPI_1 routed to an external connector.
>> Enable SPI_1 on X and -X2.
>>
>> Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
>> ---
>> Tested on X, U3.
>> ---
>> arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 8 ++++++++
>> arch/arm/boot/dts/exynos4412-odroidu3.dts | 7 -------
>> 2 files changed, 8 insertions(+), 7 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
>> index 7dc1009..c919405 100644
>> --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
>> +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
>> @@ -559,6 +559,14 @@
>> status = "okay";
>> };
>>
>> +&spi_1 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&spi1_bus>;
>> + num-cs = <1>;
>> + cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
>> + status = "okay";
>> +};
>> +
>> &tmu {
>> vtmu-supply = <&ldo10_reg>;
>> status = "okay";
>> diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts
>> index fc14da5..4bd215f 100644
>> --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts
>> +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts
>> @@ -124,10 +124,3 @@
>> "Speakers", "SPKL",
>> "Speakers", "SPKR";
>> };
>> -
>> -&spi_1 {
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&spi1_bus>;
>> - cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
>> - status = "okay";
>> -};
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards.
2016-11-24 14:35 ` Markus Reichl
@ 2016-11-24 14:38 ` Tobias Jakobi
0 siblings, 0 replies; 8+ messages in thread
From: Tobias Jakobi @ 2016-11-24 14:38 UTC (permalink / raw)
To: Markus Reichl, linux-samsung-soc, Krzysztof Kozlowski,
Kukjin Kim, Marek Szyprowski, Javier Martinez Canillas
Ah sorry, I didn't look carefully and thought you moved the node from
the U3 to the X DTS. Mea culpa! :(
- Tobias
Markus Reichl wrote:
> Hi Tobias,
>
> Am 24.11.2016 um 15:29 schrieb Tobias Jakobi:
>> Hey Markus,
>>
>> you should probably mention why the node was removed from the U3 dts. I
>> guess this is due to the SPI not being routed anywhere there?
>
> I put the node into exynos4412-odroid-common, so it will be there
> on X, X2 and U3.
> We need it on U3, too, because on U3+ SPI is routed to an external connector.
> (Presently we do not separate between U3 and U3+. They are different only with
> SPI and USB-OTG).
>
> Thanks for looking at,
> --
> Markus
>
>>
>> - Tobias
>>
>> Markus Reichl wrote:
>>> Odroid-X and -X2 have SPI_1 routed to an external connector.
>>> Enable SPI_1 on X and -X2.
>>>
>>> Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
>>> ---
>>> Tested on X, U3.
>>> ---
>>> arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 8 ++++++++
>>> arch/arm/boot/dts/exynos4412-odroidu3.dts | 7 -------
>>> 2 files changed, 8 insertions(+), 7 deletions(-)
>>>
>>> diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
>>> index 7dc1009..c919405 100644
>>> --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
>>> +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
>>> @@ -559,6 +559,14 @@
>>> status = "okay";
>>> };
>>>
>>> +&spi_1 {
>>> + pinctrl-names = "default";
>>> + pinctrl-0 = <&spi1_bus>;
>>> + num-cs = <1>;
>>> + cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
>>> + status = "okay";
>>> +};
>>> +
>>> &tmu {
>>> vtmu-supply = <&ldo10_reg>;
>>> status = "okay";
>>> diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts
>>> index fc14da5..4bd215f 100644
>>> --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts
>>> +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts
>>> @@ -124,10 +124,3 @@
>>> "Speakers", "SPKL",
>>> "Speakers", "SPKR";
>>> };
>>> -
>>> -&spi_1 {
>>> - pinctrl-names = "default";
>>> - pinctrl-0 = <&spi1_bus>;
>>> - cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
>>> - status = "okay";
>>> -};
>>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards.
2016-11-24 14:13 ` [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards Markus Reichl
2016-11-24 14:29 ` Tobias Jakobi
@ 2016-11-25 13:39 ` Marek Szyprowski
2016-11-25 14:02 ` Markus Reichl
1 sibling, 1 reply; 8+ messages in thread
From: Marek Szyprowski @ 2016-11-25 13:39 UTC (permalink / raw)
To: Markus Reichl, linux-samsung-soc, Krzysztof Kozlowski,
Kukjin Kim, Javier Martinez Canillas, Tobias Jakobi
Hi Markus,
On 2016-11-24 15:13, Markus Reichl wrote:
> Odroid-X and -X2 have SPI_1 routed to an external connector.
> Enable SPI_1 on X and -X2.
>
> Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
Thanks for this patch. Maybe it would make sense also to enable I2C
controller,
which is also available on the external connector?
Then I would also like to add some kind of comment in the DTS on which
pins given
bus/feature is available. This should help a lot people trying to
connect external
sensors to the Odroid boards.
For this patch:
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
> ---
> Tested on X, U3.
> ---
> arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 8 ++++++++
> arch/arm/boot/dts/exynos4412-odroidu3.dts | 7 -------
> 2 files changed, 8 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
> index 7dc1009..c919405 100644
> --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
> +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
> @@ -559,6 +559,14 @@
> status = "okay";
> };
>
> +&spi_1 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&spi1_bus>;
> + num-cs = <1>;
> + cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
> + status = "okay";
> +};
> +
> &tmu {
> vtmu-supply = <&ldo10_reg>;
> status = "okay";
> diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts
> index fc14da5..4bd215f 100644
> --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts
> +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts
> @@ -124,10 +124,3 @@
> "Speakers", "SPKL",
> "Speakers", "SPKR";
> };
> -
> -&spi_1 {
> - pinctrl-names = "default";
> - pinctrl-0 = <&spi1_bus>;
> - cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
> - status = "okay";
> -};
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards.
2016-11-25 13:39 ` Marek Szyprowski
@ 2016-11-25 14:02 ` Markus Reichl
2016-11-25 14:45 ` Marek Szyprowski
0 siblings, 1 reply; 8+ messages in thread
From: Markus Reichl @ 2016-11-25 14:02 UTC (permalink / raw)
To: Marek Szyprowski, linux-samsung-soc, Krzysztof Kozlowski,
Kukjin Kim, Javier Martinez Canillas, Tobias Jakobi
Hi Marek,
Am 25.11.2016 um 14:39 schrieb Marek Szyprowski:
> Hi Markus,
>
>
> On 2016-11-24 15:13, Markus Reichl wrote:
>> Odroid-X and -X2 have SPI_1 routed to an external connector.
>> Enable SPI_1 on X and -X2.
>>
>> Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
>
> Thanks for this patch. Maybe it would make sense also to enable I2C controller,
> which is also available on the external connector?
On -X and -X2 I2C-1 is routed to the connector. This bus has been already enabled,
because the onboard MAX98090 codec is connected to it, too.
On U3 there is no native I2C-Bus on the connector. One would have to emulate it
with the provided GPIOs using i2c-gpio. I think that should not go into the generic
DTS.
>
> Then I would also like to add some kind of comment in the DTS on which pins given
> bus/feature is available. This should help a lot people trying to connect external
> sensors to the Odroid boards.
Ok, will add comments about the pin layout in future patches.
>
> For this patch:
>
> Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Thanks Marek,
---
Markus
>
>> ---
>> Tested on X, U3.
>> ---
>> arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 8 ++++++++
>> arch/arm/boot/dts/exynos4412-odroidu3.dts | 7 -------
>> 2 files changed, 8 insertions(+), 7 deletions(-)
>>
>> diff --git a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
>> index 7dc1009..c919405 100644
>> --- a/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
>> +++ b/arch/arm/boot/dts/exynos4412-odroid-common.dtsi
>> @@ -559,6 +559,14 @@
>> status = "okay";
>> };
>> +&spi_1 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&spi1_bus>;
>> + num-cs = <1>;
>> + cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
>> + status = "okay";
>> +};
>> +
>> &tmu {
>> vtmu-supply = <&ldo10_reg>;
>> status = "okay";
>> diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts
>> index fc14da5..4bd215f 100644
>> --- a/arch/arm/boot/dts/exynos4412-odroidu3.dts
>> +++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts
>> @@ -124,10 +124,3 @@
>> "Speakers", "SPKL",
>> "Speakers", "SPKR";
>> };
>> -
>> -&spi_1 {
>> - pinctrl-names = "default";
>> - pinctrl-0 = <&spi1_bus>;
>> - cs-gpios = <&gpb 5 GPIO_ACTIVE_HIGH>;
>> - status = "okay";
>> -};
>
> Best regards
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards.
2016-11-25 14:02 ` Markus Reichl
@ 2016-11-25 14:45 ` Marek Szyprowski
2016-11-25 14:53 ` Markus Reichl
0 siblings, 1 reply; 8+ messages in thread
From: Marek Szyprowski @ 2016-11-25 14:45 UTC (permalink / raw)
To: Markus Reichl, linux-samsung-soc, Krzysztof Kozlowski,
Kukjin Kim, Javier Martinez Canillas, Tobias Jakobi
Hi Markus,
On 2016-11-25 15:02, Markus Reichl wrote:
> Am 25.11.2016 um 14:39 schrieb Marek Szyprowski:
>> On 2016-11-24 15:13, Markus Reichl wrote:
>>> Odroid-X and -X2 have SPI_1 routed to an external connector.
>>> Enable SPI_1 on X and -X2.
>>>
>>> Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
>> Thanks for this patch. Maybe it would make sense also to enable I2C controller,
>> which is also available on the external connector?
> On -X and -X2 I2C-1 is routed to the connector. This bus has been already enabled,
> because the onboard MAX98090 codec is connected to it, too.
Right, I was convinced that there is a second i2c bus routed there on
X/X2, but it
turned out to be the same bus a the one used for audio codec.
> On U3 there is no native I2C-Bus on the connector. One would have to emulate it
> with the provided GPIOs using i2c-gpio. I think that should not go into the generic
> DTS.
Right. No point adding software emulated buses.
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards.
2016-11-25 14:45 ` Marek Szyprowski
@ 2016-11-25 14:53 ` Markus Reichl
0 siblings, 0 replies; 8+ messages in thread
From: Markus Reichl @ 2016-11-25 14:53 UTC (permalink / raw)
To: Marek Szyprowski, linux-samsung-soc, Krzysztof Kozlowski,
Kukjin Kim, Javier Martinez Canillas, Tobias Jakobi
Hi Marek,
Am 25.11.2016 um 15:45 schrieb Marek Szyprowski:
> On 2016-11-25 15:02, Markus Reichl wrote:
>> Am 25.11.2016 um 14:39 schrieb Marek Szyprowski:
>>> On 2016-11-24 15:13, Markus Reichl wrote:
>>>> Odroid-X and -X2 have SPI_1 routed to an external connector.
>>>> Enable SPI_1 on X and -X2.
>>>>
>>>> Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
>>> Thanks for this patch. Maybe it would make sense also to enable I2C controller,
>>> which is also available on the external connector?
>> On -X and -X2 I2C-1 is routed to the connector. This bus has been already enabled,
>> because the onboard MAX98090 codec is connected to it, too.
>
> Right, I was convinced that there is a second i2c bus routed there on X/X2, but it
> turned out to be the same bus a the one used for audio codec.
You are right, there is a second i2c bus (I2C-5) on the header pins 7/8.
I will send a patch to enable I2C-5 when I have had the chance to successfully
test it with a sensor.
--
Markus
>
>> On U3 there is no native I2C-Bus on the connector. One would have to emulate it
>> with the provided GPIOs using i2c-gpio. I think that should not go into the generic
>> DTS.
>
> Right. No point adding software emulated buses.
>
> Best regards
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-11-25 14:53 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20161124141334epcas4p438d988d4762321a072ceb2d02a3450cd@epcas4p4.samsung.com>
2016-11-24 14:13 ` [PATCH] ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards Markus Reichl
2016-11-24 14:29 ` Tobias Jakobi
2016-11-24 14:35 ` Markus Reichl
2016-11-24 14:38 ` Tobias Jakobi
2016-11-25 13:39 ` Marek Szyprowski
2016-11-25 14:02 ` Markus Reichl
2016-11-25 14:45 ` Marek Szyprowski
2016-11-25 14:53 ` Markus Reichl
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.