* [PATCH 0/4] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 @ 2014-09-16 16:35 Dmitry Lifshitz 2014-09-16 16:35 ` [PATCH 1/4] ARM: dts: cm-t54: add HDMI/DVI display data Dmitry Lifshitz ` (4 more replies) 0 siblings, 5 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-16 16:35 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel Cc: Dmitry Lifshitz Add CM-T54 DT nodes: * enable HDMI/DVI/LCD video output support * add ADS7846 touchscreen support * enchance DWC3 setup to enable power supply for USB3.0 OTG port Dmitry Lifshitz (4): ARM: dts: cm-t54: add HDMI/DVI display data ARM: dts: cm-t54: add Startek LCD support ARM: dts: cm-t54: add ADS7846 touchscreen support ARM: dts: cm-t54: setup omap_dwc3 arch/arm/boot/dts/omap5-cm-t54.dts | 268 ++++++++++++++++++++++++++++++++++++ 1 files changed, 268 insertions(+), 0 deletions(-) -- 1.7.5.4 ^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 1/4] ARM: dts: cm-t54: add HDMI/DVI display data 2014-09-16 16:35 [PATCH 0/4] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz @ 2014-09-16 16:35 ` Dmitry Lifshitz 2014-09-16 16:46 ` Nishanth Menon 2014-09-16 16:35 ` [PATCH 2/4] ARM: dts: cm-t54: add Startek LCD support Dmitry Lifshitz ` (3 subsequent siblings) 4 siblings, 1 reply; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-16 16:35 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel Cc: Dmitry Lifshitz Add DSS related pinmux and display data nodes required to support HDMI and DVI video out on CM-T54. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> --- arch/arm/boot/dts/omap5-cm-t54.dts | 158 ++++++++++++++++++++++++++++++++++++ 1 files changed, 158 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts index 429471a..9cb40d6 100644 --- a/arch/arm/boot/dts/omap5-cm-t54.dts +++ b/arch/arm/boot/dts/omap5-cm-t54.dts @@ -66,6 +66,69 @@ default-state = "off"; }; }; + + aliases { + display0 = &hdmi0; + display1 = &dvi0; + }; + + hdmi0: connector@0 { + compatible = "hdmi-connector"; + label = "hdmi"; + + type = "a"; + + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_conn_pins>; + + hpd-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; /* GPIO 193, HPD */ + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&hdmi_out>; + }; + }; + }; + + tfp410: encoder@0 { + compatible = "ti,tfp410"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + tfp410_in: endpoint@0 { + remote-endpoint = <&dpi_dvi_out>; + }; + }; + + port@1 { + reg = <1>; + + tfp410_out: endpoint@0 { + remote-endpoint = <&dvi_connector_in>; + }; + }; + }; + }; + + dvi0: connector@1 { + compatible = "dvi-connector"; + label = "dvi"; + + digital; + + ddc-i2c-bus = <&i2c2>; + + port { + dvi_connector_in: endpoint { + remote-endpoint = <&tfp410_out>; + }; + }; + }; }; &omap5_pmx_core { @@ -88,6 +151,13 @@ >; }; + i2c2_pins: pinmux_i2c2_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x01b8, PIN_INPUT | MUX_MODE0) /* i2c2_scl */ + OMAP5_IOPAD(0x01ba, PIN_INPUT | MUX_MODE0) /* i2c2_sda */ + >; + }; + mmc1_pins: pinmux_mmc1_pins { pinctrl-single,pins = < OMAP5_IOPAD(0x01e2, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_clk */ @@ -144,6 +214,53 @@ OMAP5_IOPAD(0x00b6, PIN_OUTPUT | MUX_MODE6) /* hsi2_acdata.gpio3_83 */ >; }; + + dss_hdmi_pins: pinmux_dss_hdmi_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x013c, PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_cec.hdmi_cec */ + OMAP5_IOPAD(0x0140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl.hdmi_ddc_scl */ + OMAP5_IOPAD(0x0142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda.hdmi_ddc_sda */ + >; + }; + + hdmi_conn_pins: pinmux_hdmi_conn_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* hdmi_hpd.gpio7_193 */ + >; + }; + + dss_dpi_pins: pinmux_dss_dpi_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x0104, PIN_OUTPUT | MUX_MODE3) /* dispc_data15 */ + OMAP5_IOPAD(0x0106, PIN_OUTPUT | MUX_MODE3) /* dispc_data14 */ + OMAP5_IOPAD(0x0108, PIN_OUTPUT | MUX_MODE3) /* dispc_data13 */ + OMAP5_IOPAD(0x010a, PIN_OUTPUT | MUX_MODE3) /* dispc_data12 */ + OMAP5_IOPAD(0x010c, PIN_OUTPUT | MUX_MODE3) /* dispc_data11 */ + OMAP5_IOPAD(0x010e, PIN_OUTPUT | MUX_MODE3) /* dispc_data10 */ + OMAP5_IOPAD(0x0110, PIN_OUTPUT | MUX_MODE3) /* dispc_data9 */ + OMAP5_IOPAD(0x0112, PIN_OUTPUT | MUX_MODE3) /* dispc_data8 */ + OMAP5_IOPAD(0x0114, PIN_OUTPUT | MUX_MODE3) /* dispc_data7 */ + OMAP5_IOPAD(0x0116, PIN_OUTPUT | MUX_MODE3) /* dispc_data6 */ + OMAP5_IOPAD(0x0118, PIN_OUTPUT | MUX_MODE3) /* dispc_data5 */ + OMAP5_IOPAD(0x011a, PIN_OUTPUT | MUX_MODE3) /* dispc_data4 */ + OMAP5_IOPAD(0x011c, PIN_OUTPUT | MUX_MODE3) /* dispc_data3 */ + OMAP5_IOPAD(0x011e, PIN_OUTPUT | MUX_MODE3) /* dispc_data2 */ + OMAP5_IOPAD(0x0120, PIN_OUTPUT | MUX_MODE3) /* dispc_data1 */ + OMAP5_IOPAD(0x0122, PIN_OUTPUT | MUX_MODE3) /* dispc_data0 */ + OMAP5_IOPAD(0x0124, PIN_OUTPUT | MUX_MODE3) /* dispc_vsync */ + OMAP5_IOPAD(0x0126, PIN_OUTPUT | MUX_MODE3) /* dispc_hsync */ + OMAP5_IOPAD(0x0128, PIN_OUTPUT | MUX_MODE3) /* dispc_de */ + OMAP5_IOPAD(0x012a, PIN_OUTPUT | MUX_MODE3) /* dispc_pclk */ + OMAP5_IOPAD(0x012c, PIN_OUTPUT | MUX_MODE3) /* dispc_data17 */ + OMAP5_IOPAD(0x012e, PIN_OUTPUT | MUX_MODE3) /* dispc_data16 */ + OMAP5_IOPAD(0x0130, PIN_OUTPUT | MUX_MODE3) /* dispc_data18 */ + OMAP5_IOPAD(0x0132, PIN_OUTPUT | MUX_MODE3) /* dispc_data19 */ + OMAP5_IOPAD(0x0134, PIN_OUTPUT | MUX_MODE3) /* dispc_data20 */ + OMAP5_IOPAD(0x0136, PIN_OUTPUT | MUX_MODE3) /* dispc_data21 */ + OMAP5_IOPAD(0x0138, PIN_OUTPUT | MUX_MODE3) /* dispc_data22 */ + OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* dispc_data23 */ + >; + }; }; &mmc1 { @@ -398,6 +515,13 @@ }; }; +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + + clock-frequency = <100000>; +}; + &usbhshost { port2-mode = "ehci-hsic"; port3-mode = "ehci-hsic"; @@ -410,3 +534,37 @@ &cpu0 { cpu0-supply = <&smps123_reg>; }; + +&dss { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&dss_dpi_pins>; + + port { + dpi_dvi_out: endpoint@0 { + remote-endpoint = <&tfp410_in>; + data-lines = <24>; + }; + }; +}; + +&dsi2 { + status = "ok"; + vdd-supply = <&ldo4_reg>; +}; + +&hdmi { + status = "ok"; + vdda-supply = <&ldo4_reg>; + + pinctrl-names = "default"; + pinctrl-0 = <&dss_hdmi_pins>; + + port { + hdmi_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + lanes = <1 0 3 2 5 4 7 6>; + }; + }; +}; -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH 1/4] ARM: dts: cm-t54: add HDMI/DVI display data 2014-09-16 16:35 ` [PATCH 1/4] ARM: dts: cm-t54: add HDMI/DVI display data Dmitry Lifshitz @ 2014-09-16 16:46 ` Nishanth Menon 0 siblings, 0 replies; 14+ messages in thread From: Nishanth Menon @ 2014-09-16 16:46 UTC (permalink / raw) To: Dmitry Lifshitz, Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel On 09/16/2014 11:35 AM, Dmitry Lifshitz wrote: > Add DSS related pinmux and display data nodes required to support HDMI > and DVI video out on CM-T54. > > Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> > --- > arch/arm/boot/dts/omap5-cm-t54.dts | 158 ++++++++++++++++++++++++++++++++++++ > 1 files changed, 158 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts > index 429471a..9cb40d6 100644 > --- a/arch/arm/boot/dts/omap5-cm-t54.dts > +++ b/arch/arm/boot/dts/omap5-cm-t54.dts > @@ -66,6 +66,69 @@ > default-state = "off"; > }; > }; > + > + aliases { > + display0 = &hdmi0; > + display1 = &dvi0; > + }; Should probably maintain all the aliases in one place at the top of the dts? > + > + hdmi0: connector@0 { > + compatible = "hdmi-connector"; > + label = "hdmi"; > + > + type = "a"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&hdmi_conn_pins>; > + > + hpd-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; /* GPIO 193, HPD */ > + > + port { > + hdmi_connector_in: endpoint { > + remote-endpoint = <&hdmi_out>; > + }; > + }; > + }; > + > + tfp410: encoder@0 { > + compatible = "ti,tfp410"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + tfp410_in: endpoint@0 { > + remote-endpoint = <&dpi_dvi_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + > + tfp410_out: endpoint@0 { > + remote-endpoint = <&dvi_connector_in>; > + }; > + }; > + }; > + }; > + > + dvi0: connector@1 { > + compatible = "dvi-connector"; > + label = "dvi"; > + > + digital; > + > + ddc-i2c-bus = <&i2c2>; > + > + port { > + dvi_connector_in: endpoint { > + remote-endpoint = <&tfp410_out>; > + }; > + }; > + }; > }; > > &omap5_pmx_core { > @@ -88,6 +151,13 @@ > >; > }; > > + i2c2_pins: pinmux_i2c2_pins { > + pinctrl-single,pins = < > + OMAP5_IOPAD(0x01b8, PIN_INPUT | MUX_MODE0) /* i2c2_scl */ > + OMAP5_IOPAD(0x01ba, PIN_INPUT | MUX_MODE0) /* i2c2_sda */ > + >; > + }; > + > mmc1_pins: pinmux_mmc1_pins { > pinctrl-single,pins = < > OMAP5_IOPAD(0x01e2, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_clk */ > @@ -144,6 +214,53 @@ > OMAP5_IOPAD(0x00b6, PIN_OUTPUT | MUX_MODE6) /* hsi2_acdata.gpio3_83 */ > >; > }; > + > + dss_hdmi_pins: pinmux_dss_hdmi_pins { > + pinctrl-single,pins = < > + OMAP5_IOPAD(0x013c, PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_cec.hdmi_cec */ > + OMAP5_IOPAD(0x0140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl.hdmi_ddc_scl */ > + OMAP5_IOPAD(0x0142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda.hdmi_ddc_sda */ > + >; > + }; > + > + hdmi_conn_pins: pinmux_hdmi_conn_pins { > + pinctrl-single,pins = < > + OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* hdmi_hpd.gpio7_193 */ > + >; > + }; > + > + dss_dpi_pins: pinmux_dss_dpi_pins { > + pinctrl-single,pins = < > + OMAP5_IOPAD(0x0104, PIN_OUTPUT | MUX_MODE3) /* dispc_data15 */ > + OMAP5_IOPAD(0x0106, PIN_OUTPUT | MUX_MODE3) /* dispc_data14 */ > + OMAP5_IOPAD(0x0108, PIN_OUTPUT | MUX_MODE3) /* dispc_data13 */ > + OMAP5_IOPAD(0x010a, PIN_OUTPUT | MUX_MODE3) /* dispc_data12 */ > + OMAP5_IOPAD(0x010c, PIN_OUTPUT | MUX_MODE3) /* dispc_data11 */ > + OMAP5_IOPAD(0x010e, PIN_OUTPUT | MUX_MODE3) /* dispc_data10 */ > + OMAP5_IOPAD(0x0110, PIN_OUTPUT | MUX_MODE3) /* dispc_data9 */ > + OMAP5_IOPAD(0x0112, PIN_OUTPUT | MUX_MODE3) /* dispc_data8 */ > + OMAP5_IOPAD(0x0114, PIN_OUTPUT | MUX_MODE3) /* dispc_data7 */ > + OMAP5_IOPAD(0x0116, PIN_OUTPUT | MUX_MODE3) /* dispc_data6 */ > + OMAP5_IOPAD(0x0118, PIN_OUTPUT | MUX_MODE3) /* dispc_data5 */ > + OMAP5_IOPAD(0x011a, PIN_OUTPUT | MUX_MODE3) /* dispc_data4 */ > + OMAP5_IOPAD(0x011c, PIN_OUTPUT | MUX_MODE3) /* dispc_data3 */ > + OMAP5_IOPAD(0x011e, PIN_OUTPUT | MUX_MODE3) /* dispc_data2 */ > + OMAP5_IOPAD(0x0120, PIN_OUTPUT | MUX_MODE3) /* dispc_data1 */ > + OMAP5_IOPAD(0x0122, PIN_OUTPUT | MUX_MODE3) /* dispc_data0 */ > + OMAP5_IOPAD(0x0124, PIN_OUTPUT | MUX_MODE3) /* dispc_vsync */ > + OMAP5_IOPAD(0x0126, PIN_OUTPUT | MUX_MODE3) /* dispc_hsync */ > + OMAP5_IOPAD(0x0128, PIN_OUTPUT | MUX_MODE3) /* dispc_de */ > + OMAP5_IOPAD(0x012a, PIN_OUTPUT | MUX_MODE3) /* dispc_pclk */ > + OMAP5_IOPAD(0x012c, PIN_OUTPUT | MUX_MODE3) /* dispc_data17 */ > + OMAP5_IOPAD(0x012e, PIN_OUTPUT | MUX_MODE3) /* dispc_data16 */ > + OMAP5_IOPAD(0x0130, PIN_OUTPUT | MUX_MODE3) /* dispc_data18 */ > + OMAP5_IOPAD(0x0132, PIN_OUTPUT | MUX_MODE3) /* dispc_data19 */ > + OMAP5_IOPAD(0x0134, PIN_OUTPUT | MUX_MODE3) /* dispc_data20 */ > + OMAP5_IOPAD(0x0136, PIN_OUTPUT | MUX_MODE3) /* dispc_data21 */ > + OMAP5_IOPAD(0x0138, PIN_OUTPUT | MUX_MODE3) /* dispc_data22 */ > + OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* dispc_data23 */ > + >; > + }; > }; > > &mmc1 { > @@ -398,6 +515,13 @@ > }; > }; > > +&i2c2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&i2c2_pins>; > + > + clock-frequency = <100000>; > +}; > + > &usbhshost { > port2-mode = "ehci-hsic"; > port3-mode = "ehci-hsic"; > @@ -410,3 +534,37 @@ > &cpu0 { > cpu0-supply = <&smps123_reg>; > }; > + > +&dss { > + status = "ok"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&dss_dpi_pins>; > + > + port { > + dpi_dvi_out: endpoint@0 { > + remote-endpoint = <&tfp410_in>; > + data-lines = <24>; > + }; > + }; > +}; > + > +&dsi2 { > + status = "ok"; > + vdd-supply = <&ldo4_reg>; > +}; > + > +&hdmi { > + status = "ok"; > + vdda-supply = <&ldo4_reg>; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&dss_hdmi_pins>; > + > + port { > + hdmi_out: endpoint { > + remote-endpoint = <&hdmi_connector_in>; > + lanes = <1 0 3 2 5 4 7 6>; > + }; > + }; > +}; > -- Regards, Nishanth Menon ^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH 2/4] ARM: dts: cm-t54: add Startek LCD support 2014-09-16 16:35 [PATCH 0/4] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz 2014-09-16 16:35 ` [PATCH 1/4] ARM: dts: cm-t54: add HDMI/DVI display data Dmitry Lifshitz @ 2014-09-16 16:35 ` Dmitry Lifshitz [not found] ` <1410885322-5928-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> ` (2 subsequent siblings) 4 siblings, 0 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-16 16:35 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel Cc: Dmitry Lifshitz Add DT support for Startek KD050C LCD 800x480 panel. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> --- arch/arm/boot/dts/omap5-cm-t54.dts | 44 ++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts index 9cb40d6..588cc2a 100644 --- a/arch/arm/boot/dts/omap5-cm-t54.dts +++ b/arch/arm/boot/dts/omap5-cm-t54.dts @@ -70,8 +70,41 @@ aliases { display0 = &hdmi0; display1 = &dvi0; + display2 = &lcd0; }; + lcd0: display { + compatible = "startek,startek-kd050c", "panel-dpi"; + label = "lcd"; + + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + + enable-gpios = <&gpio8 3 GPIO_ACTIVE_HIGH>; + + panel-timing { + clock-frequency = <33000000>; + hactive = <800>; + vactive = <480>; + hfront-porch = <40>; + hback-porch = <40>; + hsync-len = <43>; + vback-porch = <29>; + vfront-porch = <13>; + vsync-len = <3>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + port { + lcd_in: endpoint { + remote-endpoint = <&dpi_lcd_out>; + }; + }; + }; + hdmi0: connector@0 { compatible = "hdmi-connector"; label = "hdmi"; @@ -223,6 +256,12 @@ >; }; + lcd_pins: pinmux_lcd_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x0172, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* timer11_pwm_evt.gpio8_227 */ + >; + }; + hdmi_conn_pins: pinmux_hdmi_conn_pins { pinctrl-single,pins = < OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* hdmi_hpd.gpio7_193 */ @@ -546,6 +585,11 @@ remote-endpoint = <&tfp410_in>; data-lines = <24>; }; + + dpi_lcd_out: endpoint@1 { + remote-endpoint = <&lcd_in>; + data-lines = <24>; + }; }; }; -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 14+ messages in thread
[parent not found: <1410885322-5928-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>]
* [PATCH 3/4] ARM: dts: cm-t54: add ADS7846 touchscreen support [not found] ` <1410885322-5928-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> @ 2014-09-16 16:35 ` Dmitry Lifshitz 0 siblings, 0 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-16 16:35 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Cc: Dmitry Lifshitz Add ADS7846 touchscreen support. Signed-off-by: Dmitry Lifshitz <lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> --- arch/arm/boot/dts/omap5-cm-t54.dts | 61 ++++++++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts index 588cc2a..9cfcad5 100644 --- a/arch/arm/boot/dts/omap5-cm-t54.dts +++ b/arch/arm/boot/dts/omap5-cm-t54.dts @@ -45,6 +45,13 @@ enable-active-high; }; + ads7846reg: ads7846-reg { + compatible = "regulator-fixed"; + regulator-name = "ads7846-reg"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + /* HS USB Host PHY on PORT 2 */ hsusb2_phy: hsusb2_phy { compatible = "usb-nop-xceiv"; @@ -164,6 +171,15 @@ }; }; +&omap5_pmx_wkup { + + ads7846_pins: pinmux_ads7846_pins { + pinctrl-single,pins = < + 0x02 (PIN_INPUT_PULLDOWN | MUX_MODE6) /* llib_wakereqin.gpio1_wk15 */ + >; + }; +}; + &omap5_pmx_core { pinctrl-names = "default"; pinctrl-0 = < @@ -300,6 +316,51 @@ OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* dispc_data23 */ >; }; + + mcspi2_pins: pinmux_mcspi1_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x00fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk.mcspi2_clk */ + OMAP5_IOPAD(0x00fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo.mcspi2_simo */ + OMAP5_IOPAD(0x0100, PIN_INPUT | MUX_MODE0) /* mcspi2_somi.mcspi2_somi */ + OMAP5_IOPAD(0x0102, PIN_INPUT | MUX_MODE0) /* mcspi2_cs0.mcspi2_cs0 */ + >; + }; +}; + +&mcspi2 { + pinctrl-names = "default"; + pinctrl-0 = <&mcspi2_pins>; + + /* touch controller */ + ads7846@0 { + pinctrl-names = "default"; + pinctrl-0 = <&ads7846_pins>; + + compatible = "ti,ads7846"; + vcc-supply = <&ads7846reg>; + + reg = <0>; /* CS0 */ + spi-max-frequency = <1500000>; + + interrupt-parent = <&gpio1>; + interrupts = <15 0>; /* gpio1_wk15 */ + pendown-gpio = <&gpio1 15 0>; + + + ti,x-min = /bits/ 16 <0x0>; + ti,x-max = /bits/ 16 <0x0fff>; + ti,y-min = /bits/ 16 <0x0>; + ti,y-max = /bits/ 16 <0x0fff>; + + ti,x-plate-ohms = /bits/ 16 <180>; + ti,pressure-max = /bits/ 16 <255>; + + ti,debounce-max = /bits/ 16 <30>; + ti,debounce-tol = /bits/ 16 <10>; + ti,debounce-rep = /bits/ 16 <1>; + + linux,wakeup; + }; }; &mmc1 { -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH 4/4] ARM: dts: cm-t54: setup omap_dwc3 2014-09-16 16:35 [PATCH 0/4] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz ` (2 preceding siblings ...) [not found] ` <1410885322-5928-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> @ 2014-09-16 16:35 ` Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz 4 siblings, 0 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-16 16:35 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel Cc: Dmitry Lifshitz Add "extcon" and "vbus-supply" properties of DWC3 node. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> --- arch/arm/boot/dts/omap5-cm-t54.dts | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts index 9cfcad5..855cb88a 100644 --- a/arch/arm/boot/dts/omap5-cm-t54.dts +++ b/arch/arm/boot/dts/omap5-cm-t54.dts @@ -631,6 +631,11 @@ phys = <0 &hsusb2_phy &hsusb3_phy>; }; +&usb3 { + extcon = <&extcon_usb3>; + vbus-supply = <&smps10_out1_reg>; +}; + &cpu0 { cpu0-supply = <&smps123_reg>; }; -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 2014-09-16 16:35 [PATCH 0/4] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz ` (3 preceding siblings ...) 2014-09-16 16:35 ` [PATCH 4/4] ARM: dts: cm-t54: setup omap_dwc3 Dmitry Lifshitz @ 2014-09-17 12:10 ` Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 1/6] ARM: dts: sbc-t54: fix mux mode comment style Dmitry Lifshitz ` (6 more replies) 4 siblings, 7 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-17 12:10 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel Cc: Dmitry Lifshitz Add CM-T54 DT nodes: * enable HDMI/DVI/LCD video output support * add ADS7846 touchscreen support * enchance DWC3 setup to enable power supply for USB3.0 OTG port v2: * Fixed comment style issue for mux mode. Follow the convention mode0_name.modeX_name for pins which mux mode differs from MUX_MODE0 * Moved aliases node to the top of dts file Dmitry Lifshitz (6): ARM: dts: sbc-t54: fix mux mode comment style ARM: dts: cm-t54: fix mux mode comment style ARM: dts: cm-t54: add HDMI/DVI display data ARM: dts: cm-t54: add Startek LCD support ARM: dts: cm-t54: add ADS7846 touchscreen support ARM: dts: cm-t54: setup omap_dwc3 arch/arm/boot/dts/omap5-cm-t54.dts | 272 ++++++++++++++++++++++++++++++++++- arch/arm/boot/dts/omap5-sbc-t54.dts | 4 +- 2 files changed, 272 insertions(+), 4 deletions(-) -- 1.7.5.4 ^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v2 1/6] ARM: dts: sbc-t54: fix mux mode comment style 2014-09-17 12:10 ` [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz @ 2014-09-17 12:10 ` Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 2/6] ARM: dts: cm-t54: " Dmitry Lifshitz ` (5 subsequent siblings) 6 siblings, 0 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-17 12:10 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel Cc: Dmitry Lifshitz Follow the comment style of mode0_name.modeX_name for pins which mux mode differs from MUX_MODE0. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> --- v2: New patch arch/arm/boot/dts/omap5-sbc-t54.dts | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/omap5-sbc-t54.dts b/arch/arm/boot/dts/omap5-sbc-t54.dts index 8e89793..337bbbc 100644 --- a/arch/arm/boot/dts/omap5-sbc-t54.dts +++ b/arch/arm/boot/dts/omap5-sbc-t54.dts @@ -19,8 +19,8 @@ mmc1_aux_pins: pinmux_mmc1_aux_pins { pinctrl-single,pins = < - OMAP5_IOPAD(0x0174, PIN_INPUT_PULLUP | MUX_MODE6) /* gpio8_228 */ - OMAP5_IOPAD(0x0176, PIN_INPUT_PULLUP | MUX_MODE6) /* gpio8_229 */ + OMAP5_IOPAD(0x0174, PIN_INPUT_PULLUP | MUX_MODE6) /* timer5_pwm_evt.gpio8_228 */ + OMAP5_IOPAD(0x0176, PIN_INPUT_PULLUP | MUX_MODE6) /* timer6_pwm_evt.gpio8_229 */ >; }; }; -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 2/6] ARM: dts: cm-t54: fix mux mode comment style 2014-09-17 12:10 ` [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 1/6] ARM: dts: sbc-t54: fix mux mode comment style Dmitry Lifshitz @ 2014-09-17 12:10 ` Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 3/6] ARM: dts: cm-t54: add HDMI/DVI display data Dmitry Lifshitz ` (4 subsequent siblings) 6 siblings, 0 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-17 12:10 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel Cc: Dmitry Lifshitz Follow the comment style of mode0_name.modeX_name for pins which mux mode differs from MUX_MODE0. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> --- v2: New patch arch/arm/boot/dts/omap5-cm-t54.dts | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts index 429471a..44a9f23 100644 --- a/arch/arm/boot/dts/omap5-cm-t54.dts +++ b/arch/arm/boot/dts/omap5-cm-t54.dts @@ -127,8 +127,8 @@ wlan_gpios_pins: pinmux_wlan_gpios_pins { pinctrl-single,pins = < - OMAP5_IOPAD(0x019c, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* gpio4_109 */ - OMAP5_IOPAD(0x019e, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* gpio4_110 */ + OMAP5_IOPAD(0x019c, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* abemcpdm_ul_data.gpio4_109 */ + OMAP5_IOPAD(0x019e, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* abemcpdm_dl_data.gpio4_110 */ >; }; -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 3/6] ARM: dts: cm-t54: add HDMI/DVI display data 2014-09-17 12:10 ` [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 1/6] ARM: dts: sbc-t54: fix mux mode comment style Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 2/6] ARM: dts: cm-t54: " Dmitry Lifshitz @ 2014-09-17 12:10 ` Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 4/6] ARM: dts: cm-t54: add Startek LCD support Dmitry Lifshitz ` (3 subsequent siblings) 6 siblings, 0 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-17 12:10 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel Cc: Dmitry Lifshitz Add DSS related pinmux and display data nodes required to support HDMI and DVI video out on CM-T54. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> --- v2: * Fixed comment style issue for mux mode. Follow the convention mode0_name.modeX_name for pins which mux mode differs from MUX_MODE0 * Moved aliases node to the top of dts file arch/arm/boot/dts/omap5-cm-t54.dts | 158 ++++++++++++++++++++++++++++++++++++ 1 files changed, 158 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts index 44a9f23..d2f241d 100644 --- a/arch/arm/boot/dts/omap5-cm-t54.dts +++ b/arch/arm/boot/dts/omap5-cm-t54.dts @@ -16,6 +16,11 @@ reg = <0x80000000 0x7F000000>; /* 2048 MB */ }; + aliases { + display0 = &hdmi0; + display1 = &dvi0; + }; + vmmcsd_fixed: fixed-regulator-mmcsd { compatible = "regulator-fixed"; regulator-name = "vmmcsd_fixed"; @@ -66,6 +71,64 @@ default-state = "off"; }; }; + + hdmi0: connector@0 { + compatible = "hdmi-connector"; + label = "hdmi"; + + type = "a"; + + pinctrl-names = "default"; + pinctrl-0 = <&hdmi_conn_pins>; + + hpd-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; /* GPIO 193, HPD */ + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&hdmi_out>; + }; + }; + }; + + tfp410: encoder@0 { + compatible = "ti,tfp410"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + tfp410_in: endpoint@0 { + remote-endpoint = <&dpi_dvi_out>; + }; + }; + + port@1 { + reg = <1>; + + tfp410_out: endpoint@0 { + remote-endpoint = <&dvi_connector_in>; + }; + }; + }; + }; + + dvi0: connector@1 { + compatible = "dvi-connector"; + label = "dvi"; + + digital; + + ddc-i2c-bus = <&i2c2>; + + port { + dvi_connector_in: endpoint { + remote-endpoint = <&tfp410_out>; + }; + }; + }; }; &omap5_pmx_core { @@ -88,6 +151,13 @@ >; }; + i2c2_pins: pinmux_i2c2_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x01b8, PIN_INPUT | MUX_MODE0) /* i2c2_scl */ + OMAP5_IOPAD(0x01ba, PIN_INPUT | MUX_MODE0) /* i2c2_sda */ + >; + }; + mmc1_pins: pinmux_mmc1_pins { pinctrl-single,pins = < OMAP5_IOPAD(0x01e2, PIN_INPUT_PULLUP | MUX_MODE0) /* sdcard_clk */ @@ -144,6 +214,53 @@ OMAP5_IOPAD(0x00b6, PIN_OUTPUT | MUX_MODE6) /* hsi2_acdata.gpio3_83 */ >; }; + + dss_hdmi_pins: pinmux_dss_hdmi_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x013c, PIN_INPUT_PULLUP | MUX_MODE0) /* hdmi_cec */ + OMAP5_IOPAD(0x0140, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_scl */ + OMAP5_IOPAD(0x0142, PIN_INPUT | MUX_MODE0) /* hdmi_ddc_sda */ + >; + }; + + hdmi_conn_pins: pinmux_hdmi_conn_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* hdmi_hpd.gpio7_193 */ + >; + }; + + dss_dpi_pins: pinmux_dss_dpi_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x0104, PIN_OUTPUT | MUX_MODE3) /* rfbi_data15.dispc_data15 */ + OMAP5_IOPAD(0x0106, PIN_OUTPUT | MUX_MODE3) /* rfbi_data14.dispc_data14 */ + OMAP5_IOPAD(0x0108, PIN_OUTPUT | MUX_MODE3) /* rfbi_data13.dispc_data13 */ + OMAP5_IOPAD(0x010a, PIN_OUTPUT | MUX_MODE3) /* rfbi_data12.dispc_data12 */ + OMAP5_IOPAD(0x010c, PIN_OUTPUT | MUX_MODE3) /* rfbi_data11.dispc_data11 */ + OMAP5_IOPAD(0x010e, PIN_OUTPUT | MUX_MODE3) /* rfbi_data10.dispc_data10 */ + OMAP5_IOPAD(0x0110, PIN_OUTPUT | MUX_MODE3) /* rfbi_data9.dispc_data9 */ + OMAP5_IOPAD(0x0112, PIN_OUTPUT | MUX_MODE3) /* rfbi_data8.dispc_data8 */ + OMAP5_IOPAD(0x0114, PIN_OUTPUT | MUX_MODE3) /* rfbi_data7.dispc_data7 */ + OMAP5_IOPAD(0x0116, PIN_OUTPUT | MUX_MODE3) /* rfbi_data6.dispc_data6 */ + OMAP5_IOPAD(0x0118, PIN_OUTPUT | MUX_MODE3) /* rfbi_data5.dispc_data5 */ + OMAP5_IOPAD(0x011a, PIN_OUTPUT | MUX_MODE3) /* rfbi_data4.dispc_data4 */ + OMAP5_IOPAD(0x011c, PIN_OUTPUT | MUX_MODE3) /* rfbi_data3.dispc_data3 */ + OMAP5_IOPAD(0x011e, PIN_OUTPUT | MUX_MODE3) /* rfbi_data2.dispc_data2 */ + OMAP5_IOPAD(0x0120, PIN_OUTPUT | MUX_MODE3) /* rfbi_data1.dispc_data1 */ + OMAP5_IOPAD(0x0122, PIN_OUTPUT | MUX_MODE3) /* rfbi_data0.dispc_data0 */ + OMAP5_IOPAD(0x0124, PIN_OUTPUT | MUX_MODE3) /* rfbi_we.dispc_vsync */ + OMAP5_IOPAD(0x0126, PIN_OUTPUT | MUX_MODE3) /* rfbi_cs0.dispc_hsync */ + OMAP5_IOPAD(0x0128, PIN_OUTPUT | MUX_MODE3) /* rfbi_a0.dispc_de */ + OMAP5_IOPAD(0x012a, PIN_OUTPUT | MUX_MODE3) /* rfbi_re.dispc_pclk */ + OMAP5_IOPAD(0x012c, PIN_OUTPUT | MUX_MODE3) /* rfbi_hsync0.dispc_data17 */ + OMAP5_IOPAD(0x012e, PIN_OUTPUT | MUX_MODE3) /* rfbi_te_vsync0.dispc_data16 */ + OMAP5_IOPAD(0x0130, PIN_OUTPUT | MUX_MODE3) /* gpio6_182.dispc_data18 */ + OMAP5_IOPAD(0x0132, PIN_OUTPUT | MUX_MODE3) /* gpio6_183.dispc_data19 */ + OMAP5_IOPAD(0x0134, PIN_OUTPUT | MUX_MODE3) /* gpio6_184.dispc_data20 */ + OMAP5_IOPAD(0x0136, PIN_OUTPUT | MUX_MODE3) /* gpio6_185.dispc_data21 */ + OMAP5_IOPAD(0x0138, PIN_OUTPUT | MUX_MODE3) /* gpio6_186.dispc_data22 */ + OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* gpio6_187.dispc_data23 */ + >; + }; }; &mmc1 { @@ -398,6 +515,13 @@ }; }; +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins>; + + clock-frequency = <100000>; +}; + &usbhshost { port2-mode = "ehci-hsic"; port3-mode = "ehci-hsic"; @@ -410,3 +534,37 @@ &cpu0 { cpu0-supply = <&smps123_reg>; }; + +&dss { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&dss_dpi_pins>; + + port { + dpi_dvi_out: endpoint@0 { + remote-endpoint = <&tfp410_in>; + data-lines = <24>; + }; + }; +}; + +&dsi2 { + status = "ok"; + vdd-supply = <&ldo4_reg>; +}; + +&hdmi { + status = "ok"; + vdda-supply = <&ldo4_reg>; + + pinctrl-names = "default"; + pinctrl-0 = <&dss_hdmi_pins>; + + port { + hdmi_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + lanes = <1 0 3 2 5 4 7 6>; + }; + }; +}; -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 4/6] ARM: dts: cm-t54: add Startek LCD support 2014-09-17 12:10 ` [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz ` (2 preceding siblings ...) 2014-09-17 12:10 ` [PATCH v2 3/6] ARM: dts: cm-t54: add HDMI/DVI display data Dmitry Lifshitz @ 2014-09-17 12:10 ` Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 5/6] ARM: dts: cm-t54: add ADS7846 touchscreen support Dmitry Lifshitz ` (2 subsequent siblings) 6 siblings, 0 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-17 12:10 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel Cc: Dmitry Lifshitz Add DT support for Startek KD050C LCD 800x480 panel. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> --- v2: Rebased on top of the previous patch changes arch/arm/boot/dts/omap5-cm-t54.dts | 44 ++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts index d2f241d..e7afeb4 100644 --- a/arch/arm/boot/dts/omap5-cm-t54.dts +++ b/arch/arm/boot/dts/omap5-cm-t54.dts @@ -19,6 +19,7 @@ aliases { display0 = &hdmi0; display1 = &dvi0; + display2 = &lcd0; }; vmmcsd_fixed: fixed-regulator-mmcsd { @@ -72,6 +73,38 @@ }; }; + lcd0: display { + compatible = "startek,startek-kd050c", "panel-dpi"; + label = "lcd"; + + pinctrl-names = "default"; + pinctrl-0 = <&lcd_pins>; + + enable-gpios = <&gpio8 3 GPIO_ACTIVE_HIGH>; + + panel-timing { + clock-frequency = <33000000>; + hactive = <800>; + vactive = <480>; + hfront-porch = <40>; + hback-porch = <40>; + hsync-len = <43>; + vback-porch = <29>; + vfront-porch = <13>; + vsync-len = <3>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <1>; + pixelclk-active = <1>; + }; + + port { + lcd_in: endpoint { + remote-endpoint = <&dpi_lcd_out>; + }; + }; + }; + hdmi0: connector@0 { compatible = "hdmi-connector"; label = "hdmi"; @@ -223,6 +256,12 @@ >; }; + lcd_pins: pinmux_lcd_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x0172, PIN_OUTPUT_PULLDOWN | MUX_MODE6) /* timer11_pwm_evt.gpio8_227 */ + >; + }; + hdmi_conn_pins: pinmux_hdmi_conn_pins { pinctrl-single,pins = < OMAP5_IOPAD(0x013e, PIN_INPUT | MUX_MODE6) /* hdmi_hpd.gpio7_193 */ @@ -546,6 +585,11 @@ remote-endpoint = <&tfp410_in>; data-lines = <24>; }; + + dpi_lcd_out: endpoint@1 { + remote-endpoint = <&lcd_in>; + data-lines = <24>; + }; }; }; -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH v2 5/6] ARM: dts: cm-t54: add ADS7846 touchscreen support 2014-09-17 12:10 ` [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz ` (3 preceding siblings ...) 2014-09-17 12:10 ` [PATCH v2 4/6] ARM: dts: cm-t54: add Startek LCD support Dmitry Lifshitz @ 2014-09-17 12:10 ` Dmitry Lifshitz [not found] ` <1410955808-2174-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> 2014-09-18 16:08 ` [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Tony Lindgren 6 siblings, 0 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-17 12:10 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap, devicetree, linux-arm-kernel Cc: Dmitry Lifshitz Add ADS7846 touchscreen support. Signed-off-by: Dmitry Lifshitz <lifshitz@compulab.co.il> --- v2: Fixed comment style issue for mux mode. arch/arm/boot/dts/omap5-cm-t54.dts | 61 ++++++++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts index e7afeb4..de76550 100644 --- a/arch/arm/boot/dts/omap5-cm-t54.dts +++ b/arch/arm/boot/dts/omap5-cm-t54.dts @@ -51,6 +51,13 @@ enable-active-high; }; + ads7846reg: ads7846-reg { + compatible = "regulator-fixed"; + regulator-name = "ads7846-reg"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + /* HS USB Host PHY on PORT 2 */ hsusb2_phy: hsusb2_phy { compatible = "usb-nop-xceiv"; @@ -164,6 +171,15 @@ }; }; +&omap5_pmx_wkup { + + ads7846_pins: pinmux_ads7846_pins { + pinctrl-single,pins = < + 0x02 (PIN_INPUT_PULLDOWN | MUX_MODE6) /* llib_wakereqin.gpio1_wk15 */ + >; + }; +}; + &omap5_pmx_core { pinctrl-names = "default"; pinctrl-0 = < @@ -300,6 +316,51 @@ OMAP5_IOPAD(0x013a, PIN_OUTPUT | MUX_MODE3) /* gpio6_187.dispc_data23 */ >; }; + + mcspi2_pins: pinmux_mcspi1_pins { + pinctrl-single,pins = < + OMAP5_IOPAD(0x00fc, PIN_INPUT | MUX_MODE0) /* mcspi2_clk */ + OMAP5_IOPAD(0x00fe, PIN_INPUT | MUX_MODE0) /* mcspi2_simo */ + OMAP5_IOPAD(0x0100, PIN_INPUT | MUX_MODE0) /* mcspi2_somi */ + OMAP5_IOPAD(0x0102, PIN_INPUT | MUX_MODE0) /* mcspi2_cs0 */ + >; + }; +}; + +&mcspi2 { + pinctrl-names = "default"; + pinctrl-0 = <&mcspi2_pins>; + + /* touch controller */ + ads7846@0 { + pinctrl-names = "default"; + pinctrl-0 = <&ads7846_pins>; + + compatible = "ti,ads7846"; + vcc-supply = <&ads7846reg>; + + reg = <0>; /* CS0 */ + spi-max-frequency = <1500000>; + + interrupt-parent = <&gpio1>; + interrupts = <15 0>; /* gpio1_wk15 */ + pendown-gpio = <&gpio1 15 0>; + + + ti,x-min = /bits/ 16 <0x0>; + ti,x-max = /bits/ 16 <0x0fff>; + ti,y-min = /bits/ 16 <0x0>; + ti,y-max = /bits/ 16 <0x0fff>; + + ti,x-plate-ohms = /bits/ 16 <180>; + ti,pressure-max = /bits/ 16 <255>; + + ti,debounce-max = /bits/ 16 <30>; + ti,debounce-tol = /bits/ 16 <10>; + ti,debounce-rep = /bits/ 16 <1>; + + linux,wakeup; + }; }; &mmc1 { -- 1.7.5.4 ^ permalink raw reply related [flat|nested] 14+ messages in thread
[parent not found: <1410955808-2174-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org>]
* [PATCH v2 6/6] ARM: dts: cm-t54: setup omap_dwc3 [not found] ` <1410955808-2174-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> @ 2014-09-17 12:10 ` Dmitry Lifshitz 0 siblings, 0 replies; 14+ messages in thread From: Dmitry Lifshitz @ 2014-09-17 12:10 UTC (permalink / raw) To: Benoît Cousson, Tony Lindgren, linux-omap-u79uwXL29TY76Z2rM5mHXA, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Cc: Dmitry Lifshitz Add "extcon" and "vbus-supply" properties of DWC3 node. Signed-off-by: Dmitry Lifshitz <lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> --- v2: No changes arch/arm/boot/dts/omap5-cm-t54.dts | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts index de76550..f712e23 100644 --- a/arch/arm/boot/dts/omap5-cm-t54.dts +++ b/arch/arm/boot/dts/omap5-cm-t54.dts @@ -631,6 +631,11 @@ phys = <0 &hsusb2_phy &hsusb3_phy>; }; +&usb3 { + extcon = <&extcon_usb3>; + vbus-supply = <&smps10_out1_reg>; +}; + &cpu0 { cpu0-supply = <&smps123_reg>; }; -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 2014-09-17 12:10 ` [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz ` (5 preceding siblings ...) [not found] ` <1410955808-2174-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> @ 2014-09-18 16:08 ` Tony Lindgren 6 siblings, 0 replies; 14+ messages in thread From: Tony Lindgren @ 2014-09-18 16:08 UTC (permalink / raw) To: Dmitry Lifshitz Cc: Benoît Cousson, linux-omap, devicetree, linux-arm-kernel * Dmitry Lifshitz <lifshitz@compulab.co.il> [140917 05:10]: > Add CM-T54 DT nodes: > > * enable HDMI/DVI/LCD video output support > * add ADS7846 touchscreen support > * enchance DWC3 setup to enable power supply for USB3.0 OTG port > > v2: * Fixed comment style issue for mux mode. > Follow the convention mode0_name.modeX_name for pins > which mux mode differs from MUX_MODE0 > > * Moved aliases node to the top of dts file > > Dmitry Lifshitz (6): > ARM: dts: sbc-t54: fix mux mode comment style > ARM: dts: cm-t54: fix mux mode comment style > ARM: dts: cm-t54: add HDMI/DVI display data > ARM: dts: cm-t54: add Startek LCD support > ARM: dts: cm-t54: add ADS7846 touchscreen support > ARM: dts: cm-t54: setup omap_dwc3 > > arch/arm/boot/dts/omap5-cm-t54.dts | 272 ++++++++++++++++++++++++++++++++++- > arch/arm/boot/dts/omap5-sbc-t54.dts | 4 +- > 2 files changed, 272 insertions(+), 4 deletions(-) Applying all into omap-for-v3.18/dt thanks. Tony ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-09-18 16:08 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-09-16 16:35 [PATCH 0/4] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz 2014-09-16 16:35 ` [PATCH 1/4] ARM: dts: cm-t54: add HDMI/DVI display data Dmitry Lifshitz 2014-09-16 16:46 ` Nishanth Menon 2014-09-16 16:35 ` [PATCH 2/4] ARM: dts: cm-t54: add Startek LCD support Dmitry Lifshitz [not found] ` <1410885322-5928-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> 2014-09-16 16:35 ` [PATCH 3/4] ARM: dts: cm-t54: add ADS7846 touchscreen support Dmitry Lifshitz 2014-09-16 16:35 ` [PATCH 4/4] ARM: dts: cm-t54: setup omap_dwc3 Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 1/6] ARM: dts: sbc-t54: fix mux mode comment style Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 2/6] ARM: dts: cm-t54: " Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 3/6] ARM: dts: cm-t54: add HDMI/DVI display data Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 4/6] ARM: dts: cm-t54: add Startek LCD support Dmitry Lifshitz 2014-09-17 12:10 ` [PATCH v2 5/6] ARM: dts: cm-t54: add ADS7846 touchscreen support Dmitry Lifshitz [not found] ` <1410955808-2174-1-git-send-email-lifshitz-UTxiZqZC01RS1MOuV/RT9w@public.gmane.org> 2014-09-17 12:10 ` [PATCH v2 6/6] ARM: dts: cm-t54: setup omap_dwc3 Dmitry Lifshitz 2014-09-18 16:08 ` [PATCH v2 0/6] ARM: dts: cm-t54: enable video out, touchscreen and USB3.0 Tony Lindgren
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).