ARM: OMAP: DTS/HWMOD/defconfig changes for USB3
Subsystems (6)
v2 cover ARM: OMAP: DTS/HWMOD/defconfig changes for USB3
With these patches (plus a few others on the driver side which will be going upstream soon) I could get functional USB3 with my omap5-uevm platform.
Changes since v1:
- split ocp2scp dts and hwmod data into separate patches
- reorganize the series in order to group DTS, hwmod and defconfig changes
Benoit Cousson (1):
arm: omap5: hwmod: add missing ocp2scp hwmod data
Felipe Balbi (4):
arm: omap5: dts: fix reg property size
arm: omap5: dts: fix ocp2scp DTS data
arm: omap5: dts: add palmas-usb node
arm: omap2plus_defconfig: enable dwc3 and dependencies
arch/arm/boot/dts/omap5-uevm.dts | 10 +++++++ arch/arm/boot/dts/omap5.dtsi | 9 +++--- arch/arm/configs/omap2plus_defconfig | 9 ++++++ arch/arm/mach-omap2/omap_hwmod_54xx_data.c | 45 ++++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.3.3.754.g9c3c367
PATCH v2 1/5 arm: omap5: dts: fix reg property size
USB3 block has a 64KiB space, another 64KiB is
used for the wrapper.
Without this change, resource_size() will get
confused and driver won't probe because size
will be negative.
--- arch/arm/boot/dts/omap5.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/omap5.dtsi +2 -2
@@ -637,7 +637,7 @@ omap_dwc3 at 4a020000 { compatible = "ti,dwc3"; ti,hwmods = "usb_otg_ss"; - reg = <0x4a020000 0x1000>; + reg = <0x4a020000 0x10000>; interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; #address-cells = <1>; #size-cells = <1>;
@@ -645,7 +645,7 @@ ranges; dwc3 at 4a030000 { compatible = "synopsys,dwc3"; - reg = <0x4a030000 0x1000>; + reg = <0x4a030000 0x10000>; interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>; usb-phy = <&usb2_phy>, <&usb3_phy>; tx-fifo-resize;
Signature · 1 line
1.8.3.3.754.g9c3c367
PATCH v2 2/5 arm: omap5: dts: fix ocp2scp DTS data
In reply to Felipe Balbithis patch fixes the DTS data for ocp2scp
node by adding the missing reg property.
--- arch/arm/boot/dts/omap5.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/omap5.dtsi +2 -1
@@ -652,10 +652,11 @@ }; }; - ocp2scp { + ocp2scp at 4a080000 { compatible = "ti,omap-ocp2scp"; #address-cells = <1>; #size-cells = <1>; + reg = <0x4a080000 0x20>; ranges; ti,hwmods = "ocp2scp1"; usb2_phy: usb2phy at 4a084000 {
Signature · 1 line
1.8.3.3.754.g9c3c367
PATCH v2 3/5 arm: omap5: dts: add palmas-usb node
In reply to Felipe BalbiWithout this node, there will be no palmas
driver to notify dwc3 that a cable has
been connected and, without that, dwc3
will never initialize.
--- arch/arm/boot/dts/omap5-uevm.dts | 10 ++++++++++ arch/arm/boot/dts/omap5.dtsi | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-)
arch/arm/boot/dts/omap5-uevm.dts +10 -0
@@ -272,6 +272,11 @@ interrupt-controller; #interrupt-cells = <2>; + extcon_usb3: palmas_usb { + compatible = "ti,palmas-usb"; + ti,wakeup; + }; + palmas_pmic { compatible = "ti,palmas-pmic"; interrupt-parent = <&palmas>;
@@ -450,6 +455,11 @@ phys = <0 &hsusb2_phy &hsusb3_phy>; }; +&usb3 { + extcon = <&extcon_usb3>; + vbus-supply = <&smps10_reg>; +}; + &mcspi1 { };
arch/arm/boot/dts/omap5.dtsi +1 -1
@@ -634,7 +634,7 @@ ti,type = <2>; }; - omap_dwc3 at 4a020000 { + usb3: omap_dwc3 at 4a020000 { compatible = "ti,dwc3"; ti,hwmods = "usb_otg_ss"; reg = <0x4a020000 0x10000>;
Signature · 1 line
1.8.3.3.754.g9c3c367
PATCH v2 4/5 arm: omap5: hwmod: add missing ocp2scp hwmod data
In reply to Felipe BalbiFrom: Benoit Cousson <[email protected]>
without that hwmod data, USB3 will not in OMAP5 boards.
--- arch/arm/mach-omap2/omap_hwmod_54xx_data.c | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+)
arch/arm/mach-omap2/omap_hwmod_54xx_data.c +45 -0
@@ -1114,6 +1114,42 @@ static struct omap_hwmod omap54xx_mpu_hwmod = { };/* +* 'ocp2scp' class +* bridge to transform ocp interface protocol to scp (serial control port) +* protocol +*/ + +static struct omap_hwmod_class_sysconfig omap54xx_ocp2scp_sysc = { + .rev_offs =0x0000 , + .sysc_offs =0x0010 , + .syss_offs =0x0014 , + .sysc_flags = (SYSC_HAS_AUTOIDLE |SYSC_HAS_SIDLEMODE | +SYSC_HAS_SOFTRESET |SYSS_HAS_RESET_STATUS ), + .idlemodes = (SIDLE_FORCE |SIDLE_NO |SIDLE_SMART ), + .sysc_fields = &omap_hwmod_sysc_type1, +}; + +static struct omap_hwmod_class omap54xx_ocp2scp_hwmod_class = { + .name ="ocp2scp" , + .sysc = &omap54xx_ocp2scp_sysc, +}; + +/* ocp2scp1 */ +static struct omap_hwmod omap54xx_ocp2scp1_hwmod = { + .name ="ocp2scp1" , + .class = &omap54xx_ocp2scp_hwmod_class, + .clkdm_name ="l3init_clkdm" , + .main_clk ="l4_root_clk_div" , + .prcm = { + .omap4 = { + .clkctrl_offs =OMAP54XX_CM_L3INIT_OCP2SCP1_CLKCTRL_OFFSET , + .context_offs =OMAP54XX_RM_L3INIT_OCP2SCP1_CONTEXT_OFFSET , + .modulemode =MODULEMODE_HWCTRL , + }, + }, +}; + +/* * 'timer' class * general purpose timer module with accurate 1ms tick * This class contains several variants: ['timer_1ms', 'timer']
@@ -1919,6 +1955,14 @@ static struct omap_hwmod_ocp_if omap54xx_l4_cfg__mpu = { .user = OCP_USER_MPU | OCP_USER_SDMA, }; +/* l4_cfg -> ocp2scp1 */ +static struct omap_hwmod_ocp_if omap54xx_l4_cfg__ocp2scp1 = { + .master = &omap54xx_l4_cfg_hwmod, + .slave = &omap54xx_ocp2scp1_hwmod, + .clk ="l4_root_clk_div" , + .user =OCP_USER_MPU |OCP_USER_SDMA , +}; +/* l4_wkup -> timer1 */ static struct omap_hwmod_ocp_if omap54xx_l4_wkup__timer1 = { .master = &omap54xx_l4_wkup_hwmod,
@@ -2121,6 +2165,7 @@ static struct omap_hwmod_ocp_if *omap54xx_hwmod_ocp_ifs[] __initdata = { &omap54xx_l4_per__mmc4, &omap54xx_l4_per__mmc5, &omap54xx_l4_cfg__mpu, + &omap54xx_l4_cfg__ocp2scp1, &omap54xx_l4_wkup__timer1, &omap54xx_l4_per__timer2, &omap54xx_l4_per__timer3,
Signature · 1 line
1.8.3.3.754.g9c3c367
PATCH v2 5/5 arm: omap2plus_defconfig: enable dwc3 and dependencies
In reply to Felipe BalbiDWC3 enables USB3 functionality for OMAP5 boards, it's safe to enable those drivers in omap2plus_defconfig.
--- arch/arm/configs/omap2plus_defconfig | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm/configs/omap2plus_defconfig +9 -0
@@ -81,6 +81,7 @@ CONFIG_CMA=y CONFIG_CONNECTOR=y CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y +CONFIG_OMAP_OCP2SCP=y CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_CHAR=y
@@ -167,9 +168,11 @@ CONFIG_THERMAL_GOV_USER_SPACE=y CONFIG_CPU_THERMAL=y CONFIG_OMAP_WATCHDOG=y CONFIG_TWL4030_WATCHDOG=y +CONFIG_MFD_PALMAS=y CONFIG_MFD_TPS65217=y CONFIG_MFD_TPS65910=y CONFIG_TWL6040_CORE=y +CONFIG_REGULATOR_PALMAS=y CONFIG_REGULATOR_TWL4030=y CONFIG_REGULATOR_TPS65023=y CONFIG_REGULATOR_TPS6507X=y
@@ -222,10 +225,14 @@ CONFIG_USB_MON=y CONFIG_USB_WDM=y CONFIG_USB_STORAGE=y CONFIG_USB_LIBUSUAL=y +CONFIG_USB_DWC3=m +CONFIG_USB_DWC3_OMAP=m CONFIG_USB_TEST=y CONFIG_USB_PHY=y CONFIG_NOP_USB_XCEIV=y CONFIG_USB_GADGET=y +CONFIG_OMAP_USB2=y +CONFIG_OMAP_USB3=y CONFIG_USB_GADGET_DEBUG=y CONFIG_USB_GADGET_DEBUG_FILES=y CONFIG_USB_GADGET_DEBUG_FS=y
@@ -258,6 +265,8 @@ CONFIG_TI_THERMAL=y CONFIG_OMAP4_THERMAL=y CONFIG_OMAP5_THERMAL=y CONFIG_DRA752_THERMAL=y +CONFIG_EXTCON=y +CONFIG_EXTCON_PALMAS=y CONFIG_EXT2_FS=y CONFIG_EXT3_FS=y # CONFIG_EXT3_FS_XATTR is not set
Signature · 1 line
1.8.3.3.754.g9c3c367
Re: [PATCH v2 5/5] arm: omap2plus_defconfig: enable dwc3 and dependencies
Quoted 4 lines · Felipe Balbi
DWC3 enables USB3 functionality for OMAP5 boards, it's safe to enable those drivers in
omap2plus_defconfig.Signed-off-by Felipe Balbi <[email protected]>
Looks like Benoit will take this, so:
Quoted 55 lines
--- arch/arm/configs/omap2plus_defconfig | 9 +++++++++ 1 file changed, 9 insertions(+)arch/arm/configs/omap2plus_defconfig +9
-0@@ -81,6 +81,7 @@ CONFIG_CMA=y CONFIG_CONNECTOR=y CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y +CONFIG_OMAP_OCP2SCP=y CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_CHAR=y@@ -167,9 +168,11 @@ CONFIG_THERMAL_GOV_USER_SPACE=y CONFIG_CPU_THERMAL=y CONFIG_OMAP_WATCHDOG=y CONFIG_TWL4030_WATCHDOG=y +CONFIG_MFD_PALMAS=y CONFIG_MFD_TPS65217=y CONFIG_MFD_TPS65910=y CONFIG_TWL6040_CORE=y +CONFIG_REGULATOR_PALMAS=y CONFIG_REGULATOR_TWL4030=y CONFIG_REGULATOR_TPS65023=y CONFIG_REGULATOR_TPS6507X=y@@ -222,10 +225,14 @@ CONFIG_USB_MON=y CONFIG_USB_WDM=y CONFIG_USB_STORAGE=y CONFIG_USB_LIBUSUAL=y +CONFIG_USB_DWC3=m +CONFIG_USB_DWC3_OMAP=m CONFIG_USB_TEST=y CONFIG_USB_PHY=y CONFIG_NOP_USB_XCEIV=y CONFIG_USB_GADGET=y +CONFIG_OMAP_USB2=y +CONFIG_OMAP_USB3=y CONFIG_USB_GADGET_DEBUG=y CONFIG_USB_GADGET_DEBUG_FILES=y CONFIG_USB_GADGET_DEBUG_FS=y@@ -258,6 +265,8 @@ CONFIG_TI_THERMAL=y CONFIG_OMAP4_THERMAL=y CONFIG_OMAP5_THERMAL=y CONFIG_DRA752_THERMAL=y +CONFIG_EXTCON=y +CONFIG_EXTCON_PALMAS=y CONFIG_EXT2_FS=y CONFIG_EXT3_FS=y # CONFIG_EXT3_FS_XATTR is not setSignature · 1 line
1.8.3.3.754.g9c3c367
PATCH v3 1/1 arm: omap5: dts: add palmas-usb node
In reply to Felipe BalbiFrom: Felipe Balbi <[email protected]>
Without this node, there will be no palmas
driver to notify dwc3 that a cable has
been connected and, without that, dwc3
will never initialize.
[ kishon at ti.com : fix vbus-supply value after SMPS10 is modeled as 2 regulators]
---
Change from v2:
fix vbus-supply value after SMPS10 is modeled as 2 regulators. This is needed after SMPS10 is modeled as 2 regulators.
[1] models SMPS10 as 2 regulators.
[2] splits the SMPS10 node into two to represent the 2 regulators.
[1] -> http://comments.gmane.org/gmane.linux.kernel/1542521
[2] -> http://www.mail-archive.com/linux-omap at vger.kernel.org/msg93779.html
arch/arm/boot/dts/omap5-uevm.dts | 10 ++++++++++ arch/arm/boot/dts/omap5.dtsi | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-)
arch/arm/boot/dts/omap5-uevm.dts +10 -0
@@ -272,6 +272,11 @@ interrupt-controller; #interrupt-cells = <2>; + extcon_usb3: palmas_usb { + compatible = "ti,palmas-usb"; + ti,wakeup; + }; + palmas_pmic { compatible = "ti,palmas-pmic"; interrupt-parent = <&palmas>;
@@ -450,6 +455,11 @@ phys = <0 &hsusb2_phy &hsusb3_phy>; }; +&usb3 { + extcon = <&extcon_usb3>; + vbus-supply = <&smps10_out1_reg>; +}; + &mcspi1 { };
arch/arm/boot/dts/omap5.dtsi +1 -1
@@ -634,7 +634,7 @@ ti,type = <2>; }; - omap_dwc3 at 4a020000 { + usb3: omap_dwc3 at 4a020000 { compatible = "ti,dwc3"; ti,hwmods = "usb_otg_ss"; reg = <0x4a020000 0x10000>;
Signature · 1 line
1.7.10.4
Re: [PATCH v3] arm: omap5: dts: add palmas-usb node
Quoted 8 lines · Kishon Vijay Abraham I
From: Felipe Balbi <[email protected]>
Without this node, there will be no palmas
driver to notify dwc3 that a cable has
been connected and, without that, dwc3
will never initialize.
arch/arm/boot/dts/omap5-uevm.dts line 276
Quoted 6 lines
arch/arm/boot/dts/omap5-uevm.dts +2
-0interrupt-controller; #interrupt-cells = <2>; + extcon_usb3: palmas_usb { + compatible = "ti,palmas-usb";
This isn't so much a comment on this patch as the Palmas binding:
Presumably, the Palmas device contains a USB VID detector, not a whole USB controller. I'd expect the compatible value to indicate this more directly, i.e. be something like ti,palmas-usb-vid or ti,palmas-usb-vid-detector.
PATCH 1/2 extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*
In reply to Kishon Vijay Abraham IThe Palmas device contains only a USB VID detector, so added a compatible type *ti,palmas-usb-vid*. Dint remove the existing compatible types for backward compatibility.
--- Documentation/devicetree/bindings/extcon/extcon-twl.txt | 3 ++- drivers/extcon/extcon-palmas.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/extcon/extcon-twl.txt +2 -1
@@ -2,7 +2,8 @@ EXTCON FOR TWL CHIPS PALMAS USB COMPARATOR Required Properties: - - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" + - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" or + "ti,palmas-usb-vid". - vbus-supply : phandle to the regulator device tree node. Optional Properties:
drivers/extcon/extcon-palmas.c +1 -0
@@ -223,6 +223,7 @@ static int palmas_usb_remove(struct platform_device *pdev)static struct of_device_id of_palmas_match_tbl[] = { { .compatible ="ti,palmas-usb" , }, + { .compatible ="ti,palmas-usb-vid" , }, { .compatible ="ti,twl6035-usb" , }, {/* end */ } };
Signature · 1 line
1.7.10.4
PATCH v4 2/2 arm: omap5: dts: add palmas-usb node
From: Felipe Balbi <[email protected]>
Without this node, there will be no palmas
driver to notify dwc3 that a cable has
been connected and, without that, dwc3
will never initialize.
[ kishon at ti.com : fix vbus-supply value after SMPS10 is modeled as 2 regulators]
---
Changes from v3:
* Changed the compatible type to ti,palmas-usb-vid
Changes from v2:
fix vbus-supply value after SMPS10 is modeled as 2 regulators. This is needed after SMPS10 is modeled as 2 regulators.
[1] models SMPS10 as 2 regulators.
[2] splits the SMPS10 node into two to represent the 2 regulators.
[1] -> http://comments.gmane.org/gmane.linux.kernel/1542521
[2] -> http://www.mail-archive.com/linux-omap at vger.kernel.org/msg93779.html
arch/arm/boot/dts/omap5-uevm.dts | 10 ++++++++++ arch/arm/boot/dts/omap5.dtsi | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-)
arch/arm/boot/dts/omap5-uevm.dts +10 -0
@@ -272,6 +272,11 @@ interrupt-controller; #interrupt-cells = <2>; + extcon_usb3: palmas_usb { + compatible = "ti,palmas-usb-vid"; + ti,wakeup; + }; + palmas_pmic { compatible = "ti,palmas-pmic"; interrupt-parent = <&palmas>;
@@ -460,6 +465,11 @@ phys = <0 &hsusb2_phy &hsusb3_phy>; }; +&usb3 { + extcon = <&extcon_usb3>; + vbus-supply = <&smps10_out1_reg>; +}; + &mcspi1 { };
arch/arm/boot/dts/omap5.dtsi +1 -1
@@ -634,7 +634,7 @@ ti,type = <2>; }; - omap_dwc3 at 4a020000 { + usb3: omap_dwc3 at 4a020000 { compatible = "ti,dwc3"; ti,hwmods = "usb_otg_ss"; reg = <0x4a020000 0x10000>;
Signature · 1 line
1.7.10.4
Chanwoo Choi
maintainerRe: [PATCH 1/2] extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*
In reply to Kishon Vijay Abraham IHi Kishon,
Quoted 30 lines · Kishon Vijay Abraham I
The Palmas device contains only a USB VID detector, so added a compatible type *ti,palmas-usb-vid*. Dint remove the existing compatible types for backward compatibility.
Signed-off-by Kishon Vijay Abraham I <[email protected]>--- Documentation/devicetree/bindings/extcon/extcon-twl.txt | 3 ++- drivers/extcon/extcon-palmas.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/extcon/extcon-twl.txt +2
-1@@ -2,7 +2,8 @@ EXTCON FOR TWL CHIPS PALMAS USB COMPARATOR Required Properties: - - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" + - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" or + "ti,palmas-usb-vid". - vbus-supply : phandle to the regulator device tree node. Optional Properties:drivers/extcon/extcon-palmas.c +0
-0
drivers/extcon/extcon-palmas.c static int palmas_usb_remove(struct platform_device *pdev) · line 229
Quoted 7 lines
drivers/extcon/extcon-palmas.c +1
-0@@ -223,6 +223,7 @@ static int palmas_usb_remove(struct platform_device *pdev)static struct of_device_id of_palmas_match_tbl[] = { { .compatible ="ti,palmas-usb" , }, + { .compatible ="ti,palmas-usb-vid" , }, { .compatible ="ti,twl6035-usb" , }, {/* end */ } };
This patch has a conflict. You have to always implement patch on extcon branch including latest patch. You need to resend v2 patch based on extcon-next branch.
'extcon-twl.txt' is renamed as 'extcon-palmas.txt' on following patch:
http://git.kernel.org/cgit/linux/kernel/git/chanwoo/extcon.git/commit/?h=extcon-next&id=80d644b297dc26c5126858555044edef76f4ffe8
And, 'vbus-supply' phandle was removed on following patch:
http://git.kernel.org/cgit/linux/kernel/git/chanwoo/extcon.git/commit/?h=extcon-next&id=26ece4f0b7d2264282d9077d1843ff1e98189b6c
Thanks,
Chanwoo Choi
Re: [PATCH 1/2] extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*
Quoted 44 lines · Chanwoo Choi
Hi Kishon,
Quoted 30 lines · Kishon Vijay Abraham I
The Palmas device contains only a USB VID detector, so added a compatible type *ti,palmas-usb-vid*. Dint remove the existing compatible types for backward compatibility.
Signed-off-by Kishon Vijay Abraham I <[email protected]>--- Documentation/devicetree/bindings/extcon/extcon-twl.txt | 3 ++- drivers/extcon/extcon-palmas.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/extcon/extcon-twl.txt +2
-1@@ -2,7 +2,8 @@ EXTCON FOR TWL CHIPS PALMAS USB COMPARATOR Required Properties: - - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" + - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" or + "ti,palmas-usb-vid". - vbus-supply : phandle to the regulator device tree node. Optional Properties:drivers/extcon/extcon-palmas.c +0
-0drivers/extcon/extcon-palmas.c static int palmas_usb_remove(struct platform_device *pdev) · line 229
Quoted 7 lines
drivers/extcon/extcon-palmas.c +1
-0@@ -223,6 +223,7 @@ static int palmas_usb_remove(struct platform_device *pdev)static struct of_device_id of_palmas_match_tbl[] = { { .compatible ="ti,palmas-usb" , }, + { .compatible ="ti,palmas-usb-vid" , }, { .compatible ="ti,twl6035-usb" , }, {/* end */ } };This patch has a conflict. You have to always implement patch on extcon branch including latest patch. You need to resend v2 patch based on extcon-next branch.
Quoted 5 lines
'extcon-twl.txt' is renamed as 'extcon-palmas.txt' on following patch:
http://git.kernel.org/cgit/linux/kernel/git/chanwoo/extcon.git/commit/?h=extcon-next&id=80d644b297dc26c5126858555044edef76f4ffe8And, 'vbus-supply' phandle was removed on following patch:
http://git.kernel.org/cgit/linux/kernel/git/chanwoo/extcon.git/commit/?h=extcon-next&id=26ece4f0b7d2264282d9077d1843ff1e98189b6c
Alright. I'll send the patch shortly.
Thanks
Kishon
Re: [PATCH 1/2] extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*
In reply to Kishon Vijay Abraham IQuoted 2 lines · Kishon Vijay Abraham I
The Palmas device contains only a USB VID detector, so added a compatible type *ti,palmas-usb-vid*. Dint remove the existing compatible
s/Dint/Didn't/
Documentation/devicetree/bindings/extcon/extcon-twl.txt EXTCON FOR TWL CHIPS · line 6
Quoted 7 lines
Documentation/devicetree/bindings/extcon/extcon-twl.txt +2
-1PALMAS USB COMPARATOR Required Properties: - - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" + - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" or + "ti,palmas-usb-vid".
So are ti,palmas-usb and ti,twl6035-usb full EHCI controllers then?
Re: [PATCH 1/2] extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*
Hi,
Quoted 8 lines · Stephen Warren
Quoted 2 lines · Kishon Vijay Abraham I
The Palmas device contains only a USB VID detector, so added a compatible type *ti,palmas-usb-vid*. Dint remove the existing compatible
s/Dint/Didn't/
Quoted 1 line
Documentation/devicetree/bindings/extcon/extcon-twl.txt +0
-0
Quoted 7 lines
Quoted 5 lines
PALMAS USB COMPARATOR
Required Properties:
- - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb"
+ - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" or
+ "ti,palmas-usb-vid".So are ti,palmas-usb and ti,twl6035-usb full EHCI controllers then?
No. I thought I shouldn't remove those if someone is already using those compatible value.
Thanks
Kishon
Re: [PATCH 1/2] extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*
Quoted 17 lines · Kishon Vijay Abraham I
Hi,
Quoted 14 lines · Stephen Warren
Quoted 2 lines · Kishon Vijay Abraham I
The Palmas device contains only a USB VID detector, so added a compatible type *ti,palmas-usb-vid*. Dint remove the existing compatible
s/Dint/Didn't/
Quoted 7 lines
Documentation/devicetree/bindings/extcon/extcon-twl.txt +2
-1PALMAS USB COMPARATOR Required Properties: - - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" + - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" or + "ti,palmas-usb-vid".
Quoted 4 lines
Quoted 1 line
So are ti,palmas-usb and ti,twl6035-usb full EHCI controllers then?
No. I thought I shouldn't remove those if someone is already using those compatible value.
Sigh. Perhaps it's best to be consistent with the existing bad naming then:-(
Re: [PATCH 1/2] extcon: palmas: Added a new compatible type *ti, palmas-usb-vid*
In reply to Kishon Vijay Abraham IHi Kishon,
Quoted 17 lines · Kishon Vijay Abraham I
Hi,
Quoted 14 lines · Stephen Warren
Quoted 2 lines · Kishon Vijay Abraham I
The Palmas device contains only a USB VID detector, so added a compatible type *ti,palmas-usb-vid*. Dint remove the existing compatible
s/Dint/Didn't/
Quoted 7 lines
Documentation/devicetree/bindings/extcon/extcon-twl.txt +2
-1PALMAS USB COMPARATOR Required Properties: - - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" + - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" or + "ti,palmas-usb-vid".
Quoted 4 lines
Quoted 1 line
So are ti,palmas-usb and ti,twl6035-usb full EHCI controllers then?
No. I thought I shouldn't remove those if someone is already using those compatible value.
Well, I think we still have a short period of time where we can clean some badly defined bindings before it is really too late.
Both kernel and DTS are still in sync for the moment, so changing both at the same time should be safe.
Regards,
Benoit