ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards.
Subsystems (2)
PATCH 1/1 ARM: dts: exynos: Enable SPI on 4412 based odroid-X and -X2 boards.
Odroid-X and -X2 have SPI_1 routed to an external connector. Enable SPI_1 on X and -X2.
---
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(-)
arch/arm/boot/dts/exynos4412-odroid-common.dtsi +8 -0
@@ -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";
arch/arm/boot/dts/exynos4412-odroidu3.dts +0 -7
@@ -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"; -};
Signature · 1 line
2.1.4
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
Quoted 46 lines · Markus Reichl
Odroid-X and -X2 have
SPI_1routed to an external connector. EnableSPI_1on X and -X2.Signed-off-by Markus Reichl <[email protected]>---
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(-)arch/arm/boot/dts/exynos4412-odroid-common.dtsi +8
-0@@ -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";arch/arm/boot/dts/exynos4412-odroidu3.dts +0
-7@@ -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"; -};
Hi Tobias,
Am 24.11.2016 um 15:29 schrieb Tobias Jakobi:
Quoted 4 lines
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
Quoted 56 lines
- Tobias
Quoted 36 lines · Markus Reichl
Odroid-X and -X2 have
SPI_1routed to an external connector. EnableSPI_1on X and -X2.Signed-off-by Markus Reichl <[email protected]>---
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(-)arch/arm/boot/dts/exynos4412-odroid-common.dtsi +8
-0@@ -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";arch/arm/boot/dts/exynos4412-odroidu3.dts +0
-0arch/arm/boot/dts/exynos4412-odroidu3.dts line 133
Quoted 10 lines
arch/arm/boot/dts/exynos4412-odroidu3.dts +0
-7@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Ah sorry, I didn't look carefully and thought you moved the node from the U3 to the X DTS. Mea culpa! :(
- Tobias
Quoted 74 lines · Markus Reichl
Hi Tobias,
Am 24.11.2016 um 15:29 schrieb Tobias Jakobi:
Quoted 4 lines
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,
--
MarkusQuoted 56 lines
- Tobias
Quoted 36 lines · Markus Reichl
Odroid-X and -X2 have
SPI_1routed to an external connector. EnableSPI_1on X and -X2.Signed-off-by Markus Reichl <[email protected]>---
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(-)arch/arm/boot/dts/exynos4412-odroid-common.dtsi +8
-0@@ -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";arch/arm/boot/dts/exynos4412-odroidu3.dts +0
-0arch/arm/boot/dts/exynos4412-odroidu3.dts line 133
Quoted 10 lines
arch/arm/boot/dts/exynos4412-odroidu3.dts +0
-7@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Markus,
Quoted 4 lines · Markus Reichl
Odroid-X and -X2 have
SPI_1routed to an external connector. EnableSPI_1on X and -X2.Signed-off-by Markus Reichl <[email protected]>
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:
Quoted 31 lines
---
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(-)arch/arm/boot/dts/exynos4412-odroid-common.dtsi +8
-0@@ -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";arch/arm/boot/dts/exynos4412-odroidu3.dts +0
-0
arch/arm/boot/dts/exynos4412-odroidu3.dts line 133
Quoted 10 lines
arch/arm/boot/dts/exynos4412-odroidu3.dts +0
-7@@ -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
Signature · 2 lines
Marek Szyprowski, PhD Samsung R&D Institute Poland
Hi Marek,
Am 25.11.2016 um 14:39 schrieb Marek Szyprowski:
Quoted 11 lines
Hi Markus,
Quoted 4 lines · Markus Reichl
Odroid-X and -X2 have
SPI_1routed to an external connector. EnableSPI_1on X and -X2.Signed-off-by Markus Reichl <[email protected]>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.
Quoted 4 lines
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.
Quoted 4 lines
For this patch:
Acked-by Marek Szyprowski <[email protected]>
Thanks Marek,
---
Markus
Quoted 43 lines
Quoted 31 lines
---
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(-)arch/arm/boot/dts/exynos4412-odroid-common.dtsi +7
-0@@ -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";arch/arm/boot/dts/exynos4412-odroidu3.dts +0
-0arch/arm/boot/dts/exynos4412-odroidu3.dts line 133
Quoted 10 lines
arch/arm/boot/dts/exynos4412-odroidu3.dts +0
-7@@ -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
Hi Markus,
Quoted 10 lines · Markus Reichl
Am 25.11.2016 um 14:39 schrieb Marek Szyprowski:
Quoted 7 lines · Markus Reichl
Quoted 4 lines
Odroid-X and -X2 have
SPI_1routed to an external connector. EnableSPI_1on X and -X2.Signed-off-by Markus Reichl <[email protected]>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.
Quoted 3 lines
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
Signature · 2 lines
Marek Szyprowski, PhD Samsung R&D Institute Poland
Hi Marek,
Am 25.11.2016 um 15:45 schrieb Marek Szyprowski:
Quoted 6 lines · Markus Reichl
Quoted 5 lines
Am 25.11.2016 um 14:39 schrieb Marek Szyprowski:
Quoted 4 lines · Markus Reichl
Quoted 3 lines
Odroid-X and -X2 have
SPI_1routed to an external connector. EnableSPI_1on X and -X2.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Markus Reichl <[email protected]>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
Quoted 8 lines
Quoted 4 lines
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