linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] ARM: dts: igep00x0 and sl50 board fixes
@ 2016-01-16 10:51 Enric Balletbo i Serra
  2016-01-16 10:51 ` [PATCH 1/4] ARM: dts: igep00x0: Specify the device to be used for boot console output Enric Balletbo i Serra
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Enric Balletbo i Serra @ 2016-01-16 10:51 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-omap, Tony Lindgren, Javier Martinez Canillas,
	Linus Walleij, Pau Pajuel

Hi Tony,

Please take in consideration the following patches for some of the boards
that I am currently maitaining. The first two patches apply to the IGEP
boards and the latest two apply to the SL50 board.

The patches are rebased on top of your omap-for-v4.5 branch.

Thanks,

Enric Balletbo i Serra (3):
  ARM: dts: igep00x0: Specify the device to be used for boot console
    output.
  ARM: dts: am335x-sl50: Specify the device to be used for boot console
    output.
  ARM: dts: am335x-sl50: Fix audio codec setup.

Pau Pajuel (1):
  ARM: dts: omap3-igep0030-common: Add USB Host support

 arch/arm/boot/dts/am335x-sl50.dts            | 24 ++++++++++++++--
 arch/arm/boot/dts/omap3-igep.dtsi            |  4 +++
 arch/arm/boot/dts/omap3-igep0030-common.dtsi | 41 ++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+), 2 deletions(-)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH 1/4] ARM: dts: igep00x0: Specify the device to be used for boot console output.
  2016-01-16 10:51 [PATCH 0/4] ARM: dts: igep00x0 and sl50 board fixes Enric Balletbo i Serra
@ 2016-01-16 10:51 ` Enric Balletbo i Serra
  2016-02-02 19:02   ` Javier Martinez Canillas
  2016-01-16 10:51 ` [PATCH 2/4] ARM: dts: omap3-igep0030-common: Add USB Host support Enric Balletbo i Serra
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Enric Balletbo i Serra @ 2016-01-16 10:51 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-omap, Tony Lindgren, Javier Martinez Canillas,
	Linus Walleij, Pau Pajuel

UART3 device is the device to be used for boot console output.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
 arch/arm/boot/dts/omap3-igep.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-igep.dtsi b/arch/arm/boot/dts/omap3-igep.dtsi
index 3caf062..4fc7e0f 100644
--- a/arch/arm/boot/dts/omap3-igep.dtsi
+++ b/arch/arm/boot/dts/omap3-igep.dtsi
@@ -18,6 +18,10 @@
 		reg = <0x80000000 0x20000000>; /* 512 MB */
 	};
 
+	chosen {
+		stdout-path = &uart3;
+	};
+
 	sound {
 		compatible = "ti,omap-twl4030";
 		ti,model = "igep2";
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/4] ARM: dts: omap3-igep0030-common: Add USB Host support
  2016-01-16 10:51 [PATCH 0/4] ARM: dts: igep00x0 and sl50 board fixes Enric Balletbo i Serra
  2016-01-16 10:51 ` [PATCH 1/4] ARM: dts: igep00x0: Specify the device to be used for boot console output Enric Balletbo i Serra
@ 2016-01-16 10:51 ` Enric Balletbo i Serra
  2016-02-02 19:03   ` Javier Martinez Canillas
  2016-01-16 10:51 ` [PATCH 3/4] ARM: dts: am335x-sl50: Specify the device to be used for boot console output Enric Balletbo i Serra
  2016-01-16 10:51 ` [PATCH 4/4] ARM: dts: am335x-sl50: Fix audio codec setup Enric Balletbo i Serra
  3 siblings, 1 reply; 10+ messages in thread
From: Enric Balletbo i Serra @ 2016-01-16 10:51 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-omap, Tony Lindgren, Javier Martinez Canillas,
	Linus Walleij, Pau Pajuel

From: Pau Pajuel <ppajuel@gmail.com>

Provide RESET GPIO for the USB PHY, the USB Host port mode and
the PHY device for the controller. Also provides pin multiplexer
information for USB host pins.

Signed-off-by: Pau Pajuel <ppajuel@gmail.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
 arch/arm/boot/dts/omap3-igep0030-common.dtsi | 41 ++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/arch/arm/boot/dts/omap3-igep0030-common.dtsi b/arch/arm/boot/dts/omap3-igep0030-common.dtsi
index 640f066..63f8b9a 100644
--- a/arch/arm/boot/dts/omap3-igep0030-common.dtsi
+++ b/arch/arm/boot/dts/omap3-igep0030-common.dtsi
@@ -33,9 +33,28 @@
 			 default-state = "off";
 		};
 	};
+
+	hsusb2_phy: hsusb2_phy {
+		compatible = "usb-nop-xceiv";
+		reset-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;		/* gpio_54 */
+	};
 };
 
 &omap3_pmx_core {
+	pinctrl-names = "default";
+	pinctrl-0 = <&hsusb2_pins>;
+
+	hsusb2_pins: pinmux_hsusb2_pins {
+		pinctrl-single,pins = <
+			OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi1_cs3.hsusb2_data2 */
+			OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_clk.hsusb2_data7 */
+			OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_simo.hsusb2_data4 */
+			OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_somi.hsusb2_data5 */
+			OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_cs0.hsusb2_data6 */
+			OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* mcspi2_cs1.hsusb2_data3 */
+		>;
+	};
+
 	uart2_pins: pinmux_uart2_pins {
 		pinctrl-single,pins = <
 			OMAP3_CORE1_IOPAD(0x216c, PIN_INPUT | MUX_MODE1)	/* mcbsp3_dx.uart2_cts */
@@ -47,6 +66,20 @@
 };
 
 &omap3_pmx_core2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&hsusb2_core2_pins>;
+
+	hsusb2_core2_pins: pinmux_hsusb2_core2_pins {
+		pinctrl-single,pins = <
+			OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3)		      /* etk_d10.hsusb2_clk */
+			OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3)		      /* etk_d11.hsusb2_stp */
+			OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d12.hsusb2_dir */
+			OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d13.hsusb2_nxt */
+			OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d14.hsusb2_data0 */
+			OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3)	/* etk_d15.hsusb2_data1 */
+		>;
+	};
+
 	leds_core2_pins: pinmux_leds_core2_pins {
 		pinctrl-single,pins = <
 			OMAP3630_CORE2_IOPAD(0x25e0, PIN_OUTPUT | MUX_MODE4)	/* etk_d2.gpio_16 */
@@ -54,6 +87,14 @@
 	};
 };
 
+&usbhshost {
+	port2-mode = "ehci-phy";
+};
+
+&usbhsehci {
+	phys = <0 &hsusb2_phy>;
+};
+
 &uart2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart2_pins>;
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/4] ARM: dts: am335x-sl50: Specify the device to be used for boot console output.
  2016-01-16 10:51 [PATCH 0/4] ARM: dts: igep00x0 and sl50 board fixes Enric Balletbo i Serra
  2016-01-16 10:51 ` [PATCH 1/4] ARM: dts: igep00x0: Specify the device to be used for boot console output Enric Balletbo i Serra
  2016-01-16 10:51 ` [PATCH 2/4] ARM: dts: omap3-igep0030-common: Add USB Host support Enric Balletbo i Serra
@ 2016-01-16 10:51 ` Enric Balletbo i Serra
  2016-02-02 19:04   ` Javier Martinez Canillas
  2016-01-16 10:51 ` [PATCH 4/4] ARM: dts: am335x-sl50: Fix audio codec setup Enric Balletbo i Serra
  3 siblings, 1 reply; 10+ messages in thread
From: Enric Balletbo i Serra @ 2016-01-16 10:51 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-omap, Tony Lindgren, Javier Martinez Canillas,
	Linus Walleij, Pau Pajuel

UART0 device is the device to be used for boot console output.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
 arch/arm/boot/dts/am335x-sl50.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-sl50.dts b/arch/arm/boot/dts/am335x-sl50.dts
index d38edfa..9e1dac6 100644
--- a/arch/arm/boot/dts/am335x-sl50.dts
+++ b/arch/arm/boot/dts/am335x-sl50.dts
@@ -19,6 +19,10 @@
 		};
 	};
 
+	chosen {
+		stdout-path = &uart0;
+	};
+
 	leds {
 		compatible = "gpio-leds";
 		pinctrl-names = "default";
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/4] ARM: dts: am335x-sl50: Fix audio codec setup.
  2016-01-16 10:51 [PATCH 0/4] ARM: dts: igep00x0 and sl50 board fixes Enric Balletbo i Serra
                   ` (2 preceding siblings ...)
  2016-01-16 10:51 ` [PATCH 3/4] ARM: dts: am335x-sl50: Specify the device to be used for boot console output Enric Balletbo i Serra
@ 2016-01-16 10:51 ` Enric Balletbo i Serra
  2016-02-02 19:07   ` Javier Martinez Canillas
  3 siblings, 1 reply; 10+ messages in thread
From: Enric Balletbo i Serra @ 2016-01-16 10:51 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-omap, Tony Lindgren, Javier Martinez Canillas,
	Linus Walleij, Pau Pajuel

The MCLK is provided by an external clock of 24.576MHz.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
 arch/arm/boot/dts/am335x-sl50.dts | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/am335x-sl50.dts b/arch/arm/boot/dts/am335x-sl50.dts
index 9e1dac6..a676869 100644
--- a/arch/arm/boot/dts/am335x-sl50.dts
+++ b/arch/arm/boot/dts/am335x-sl50.dts
@@ -67,12 +67,28 @@
 		default-brightness-level = <6>;
 	};
 
+	clocks {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		/* audio external oscillator */
+		tlv320aic3x_mclk: oscillator@0 {
+			compatible = "fixed-clock";
+			#clock-cells = <0>;
+			clock-frequency  = <24576000>;	/* 24.576MHz */
+		};
+	};
+
 	sound {
 		compatible = "ti,da830-evm-audio";
 		ti,model = "AM335x-SL50";
 		ti,audio-codec = <&audio_codec>;
 		ti,mcasp-controller = <&mcasp0>;
-		ti,codec-clock-rate = <12000000>;
+
+		clocks = <&tlv320aic3x_mclk>;
+		clock-names = "mclk";
+
 		ti,audio-routing =
 			"Headphone Jack",	"HPLOUT",
 			"Headphone Jack",	"HPROUT",
@@ -230,7 +246,7 @@
 			AM33XX_IOPAD(0x994, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcasp0_fsx.mcasp0_fsx */
 			AM33XX_IOPAD(0x990, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcasp0_aclkx.mcasp0_aclkx */
 			AM33XX_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcasp0_axr0.mcasp0_axr0 */
-			AM33XX_IOPAD(0x99c, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mcasp0_ahclkr.mcasp0_axr2*/
+			AM33XX_IOPAD(0x99c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mcasp0_ahclkr.mcasp0_axr2 */
 		>;
 	};
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/4] ARM: dts: igep00x0: Specify the device to be used for boot console output.
  2016-01-16 10:51 ` [PATCH 1/4] ARM: dts: igep00x0: Specify the device to be used for boot console output Enric Balletbo i Serra
@ 2016-02-02 19:02   ` Javier Martinez Canillas
  2016-02-12 21:58     ` Tony Lindgren
  0 siblings, 1 reply; 10+ messages in thread
From: Javier Martinez Canillas @ 2016-02-02 19:02 UTC (permalink / raw)
  To: Enric Balletbo i Serra, linux-kernel
  Cc: linux-omap, Tony Lindgren, Linus Walleij, Pau Pajuel

Hello Enric,

On 01/16/2016 07:51 AM, Enric Balletbo i Serra wrote:
> UART3 device is the device to be used for boot console output.
>
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> ---

Patch looks good to me.

Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 2/4] ARM: dts: omap3-igep0030-common: Add USB Host support
  2016-01-16 10:51 ` [PATCH 2/4] ARM: dts: omap3-igep0030-common: Add USB Host support Enric Balletbo i Serra
@ 2016-02-02 19:03   ` Javier Martinez Canillas
  0 siblings, 0 replies; 10+ messages in thread
From: Javier Martinez Canillas @ 2016-02-02 19:03 UTC (permalink / raw)
  To: Enric Balletbo i Serra, linux-kernel
  Cc: linux-omap, Tony Lindgren, Linus Walleij, Pau Pajuel

Hello Enric,

On 01/16/2016 07:51 AM, Enric Balletbo i Serra wrote:
> From: Pau Pajuel <ppajuel@gmail.com>
>
> Provide RESET GPIO for the USB PHY, the USB Host port mode and
> the PHY device for the controller. Also provides pin multiplexer
> information for USB host pins.
>
> Signed-off-by: Pau Pajuel <ppajuel@gmail.com>
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> ---

Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 3/4] ARM: dts: am335x-sl50: Specify the device to be used for boot console output.
  2016-01-16 10:51 ` [PATCH 3/4] ARM: dts: am335x-sl50: Specify the device to be used for boot console output Enric Balletbo i Serra
@ 2016-02-02 19:04   ` Javier Martinez Canillas
  0 siblings, 0 replies; 10+ messages in thread
From: Javier Martinez Canillas @ 2016-02-02 19:04 UTC (permalink / raw)
  To: Enric Balletbo i Serra, linux-kernel
  Cc: linux-omap, Tony Lindgren, Linus Walleij, Pau Pajuel

Hello Enric,

On 01/16/2016 07:51 AM, Enric Balletbo i Serra wrote:
> UART0 device is the device to be used for boot console output.
>
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> ---

Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 4/4] ARM: dts: am335x-sl50: Fix audio codec setup.
  2016-01-16 10:51 ` [PATCH 4/4] ARM: dts: am335x-sl50: Fix audio codec setup Enric Balletbo i Serra
@ 2016-02-02 19:07   ` Javier Martinez Canillas
  0 siblings, 0 replies; 10+ messages in thread
From: Javier Martinez Canillas @ 2016-02-02 19:07 UTC (permalink / raw)
  To: Enric Balletbo i Serra, linux-kernel
  Cc: linux-omap, Tony Lindgren, Linus Walleij, Pau Pajuel

Hello Enric,

On 01/16/2016 07:51 AM, Enric Balletbo i Serra wrote:
> The MCLK is provided by an external clock of 24.576MHz.
>
> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> ---
>   arch/arm/boot/dts/am335x-sl50.dts | 20 ++++++++++++++++++--
>   1 file changed, 18 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/am335x-sl50.dts b/arch/arm/boot/dts/am335x-sl50.dts
> index 9e1dac6..a676869 100644
> --- a/arch/arm/boot/dts/am335x-sl50.dts
> +++ b/arch/arm/boot/dts/am335x-sl50.dts
> @@ -67,12 +67,28 @@
>   		default-brightness-level = <6>;
>   	};
>
> +	clocks {
> +		compatible = "simple-bus";
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		/* audio external oscillator */
> +		tlv320aic3x_mclk: oscillator@0 {
> +			compatible = "fixed-clock";
> +			#clock-cells = <0>;
> +			clock-frequency  = <24576000>;	/* 24.576MHz */
> +		};
> +	};
> +
>   	sound {
>   		compatible = "ti,da830-evm-audio";
>   		ti,model = "AM335x-SL50";
>   		ti,audio-codec = <&audio_codec>;
>   		ti,mcasp-controller = <&mcasp0>;
> -		ti,codec-clock-rate = <12000000>;
> +
> +		clocks = <&tlv320aic3x_mclk>;
> +		clock-names = "mclk";
> +
>   		ti,audio-routing =
>   			"Headphone Jack",	"HPLOUT",
>   			"Headphone Jack",	"HPROUT",
> @@ -230,7 +246,7 @@
>   			AM33XX_IOPAD(0x994, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcasp0_fsx.mcasp0_fsx */
>   			AM33XX_IOPAD(0x990, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcasp0_aclkx.mcasp0_aclkx */
>   			AM33XX_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE0)	/* mcasp0_axr0.mcasp0_axr0 */
> -			AM33XX_IOPAD(0x99c, PIN_INPUT_PULLDOWN | MUX_MODE2)	/* mcasp0_ahclkr.mcasp0_axr2*/
> +			AM33XX_IOPAD(0x99c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)	/* mcasp0_ahclkr.mcasp0_axr2 */

Please also mention this change in the commit message.

>   		>;
>   	};
>
>

after the updated commit message:

Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>

Best regards,
-- 
Javier Martinez Canillas
Open Source Group
Samsung Research America

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH 1/4] ARM: dts: igep00x0: Specify the device to be used for boot console output.
  2016-02-02 19:02   ` Javier Martinez Canillas
@ 2016-02-12 21:58     ` Tony Lindgren
  0 siblings, 0 replies; 10+ messages in thread
From: Tony Lindgren @ 2016-02-12 21:58 UTC (permalink / raw)
  To: Javier Martinez Canillas
  Cc: Enric Balletbo i Serra, linux-kernel, linux-omap, Linus Walleij,
	Pau Pajuel

* Javier Martinez Canillas <javier@osg.samsung.com> [160202 11:03]:
> Hello Enric,
> 
> On 01/16/2016 07:51 AM, Enric Balletbo i Serra wrote:
> >UART3 device is the device to be used for boot console output.
> >
> >Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> >---
> 
> Patch looks good to me.
> 
> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>

Applying all four into omap-for-v4.5/dt thanks.

Tony

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-02-12 21:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-16 10:51 [PATCH 0/4] ARM: dts: igep00x0 and sl50 board fixes Enric Balletbo i Serra
2016-01-16 10:51 ` [PATCH 1/4] ARM: dts: igep00x0: Specify the device to be used for boot console output Enric Balletbo i Serra
2016-02-02 19:02   ` Javier Martinez Canillas
2016-02-12 21:58     ` Tony Lindgren
2016-01-16 10:51 ` [PATCH 2/4] ARM: dts: omap3-igep0030-common: Add USB Host support Enric Balletbo i Serra
2016-02-02 19:03   ` Javier Martinez Canillas
2016-01-16 10:51 ` [PATCH 3/4] ARM: dts: am335x-sl50: Specify the device to be used for boot console output Enric Balletbo i Serra
2016-02-02 19:04   ` Javier Martinez Canillas
2016-01-16 10:51 ` [PATCH 4/4] ARM: dts: am335x-sl50: Fix audio codec setup Enric Balletbo i Serra
2016-02-02 19:07   ` Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).