- 10 9月, 2016 40 次提交
-
-
由 Chris Zhong 提交于
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: NChris Zhong <zyw@rock-chips.com> Reviewed-by: NTomasz Figa <tfiga@chromium.org> Reviewed-by: NKever Yang <kever.yang@rock-chips.com> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Chris Zhong 提交于
Add a PHY provider driver for the rk3399 SoC Type-c PHY. The USB Type-C PHY is designed to support the USB3 and DP applications. The USB3 operates in SuperSpeed mode and the DP can operate at RBR, HBR and HBR2 data rates. This driver create 2 PHY devices separately for USB3 and DisplyPort, and registers them under the child node. Signed-off-by: NChris Zhong <zyw@rock-chips.com> Signed-off-by: NKever Yang <kever.yang@rock-chips.com> Reviewed-by: NGuenter Roeck <groeck@chromium.org> Tested-by: NGuenter Roeck <groeck@chromium.org> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 David Lechner 提交于
The syscon device in board config/device tree has been renamed. Signed-off-by: NDavid Lechner <david@lechnology.com> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Kishon Vijay Abraham I 提交于
Merge branch 'ib-extcon-phy-4.9' of git://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon into next
-
由 Guenter Roeck 提交于
EXTCON_PROP_USB_SS (SuperSpeed)[1] is necessary to distinguish between USB/USB2 and USB3 connections on USB Type-C cables. [1] https://en.wikipedia.org/wiki/USB#Overview Cc: Chris Zhong <zyw@rock-chips.com> Signed-off-by: NGuenter Roeck <groeck@chromium.org> Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Chanwoo Choi 提交于
This patchs add the new EXTCON_CHG_WPT for Wireless Power Transfer[1]. The Wireless Power Transfer is the transmission of electronical energy from a power source. The EXTCON_CHG_WPT has the EXTCON_TYPE_CHG. [1] https://en.wikipedia.org/wiki/Wireless_power_transferSigned-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Chanwoo Choi 提交于
This patch adds the new EXTCON_DISP_HMD id for Head-mounted Display[1] device. The HMD device is usually for USB connector type So, the HMD connector has the two extcon types of both EXTCON_TYPE_DISP and EXTCON_TYPE_USB. [1] https://en.wikipedia.org/wiki/Head-mounted_displaySigned-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Chris Zhong 提交于
Add EXTCON_DISP_DP for the Display external connector. For Type-C connector the DisplayPort can work as an Alternate Mode(VESA DisplayPort Alt Mode on USB Type-C Standard). The Type-C support both normal and flipped orientation, so add a property to extcon. Signed-off-by: NChris Zhong <zyw@rock-chips.com> Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Tested-by: NChris Zhong <zyw@rock-chips.com> Tested-by: NGuenter Roeck <groeck@chromium.org> Reviewed-by: NGuenter Roeck <groeck@chromium.org>
-
由 Chanwoo Choi 提交于
This patch adds the synchronization extcon APIs to support the notifications for both state and property. When extcon_*_sync() functions is called, the extcon informs the information from extcon provider to extcon client. The extcon driver may need to change the both state and multiple properties at the same time. After setting the data of a external connector, the extcon send the notification to client driver with the extcon_*_sync(). The list of new extcon APIs as following: - extcon_sync() : Send the notification for each external connector to synchronize the information between extcon provider driver and extcon client driver. - extcon_set_state_sync() : Set the state of external connector with noti. - extcon_set_property_sync() : Set the property of external connector with noti. For example, case 1, change the state of external connector and synchronized the data. extcon_set_state_sync(edev, EXTCON_USB, 1); case 2, change both the state and property of external connector and synchronized the data. extcon_set_state(edev, EXTCON_USB, 1); extcon_set_property(edev, EXTCON_USB, EXTCON_PROP_USB_VBUS 1); extcon_sync(edev, EXTCON_USB); case 3, change the property of external connector and synchronized the data. extcon_set_property(edev, EXTCON_USB, EXTCON_PROP_USB_VBUS, 0); extcon_sync(edev, EXTCON_USB); case 4, change the property of external connector and synchronized the data. extcon_set_property_sync(edev, EXTCON_USB, EXTCON_PROP_USB_VBUS, 0); Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Tested-by: NChris Zhong <zyw@rock-chips.com> Tested-by: NGuenter Roeck <groeck@chromium.org> Reviewed-by: NGuenter Roeck <groeck@chromium.org>
-
由 Chanwoo Choi 提交于
This patch just renames the existing extcon_get/set_cable_state_() as following because of maintaining the function naming pattern like as extcon APIs for property. - extcon_set_cable_state_() -> extcon_set_state() - extcon_get_cable_state_() -> extcon_get_state() But, this patch remains the old extcon_set/get_cable_state_() functions to prevent the build break. After altering new APIs, remove the old APIs. Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Tested-by: NChris Zhong <zyw@rock-chips.com> Tested-by: NGuenter Roeck <groeck@chromium.org> Reviewed-by: NGuenter Roeck <groeck@chromium.org>
-
由 Chanwoo Choi 提交于
This patch adds the support of the property capability setting. This function decides the supported properties of each external connector on extcon provider driver. Ths list of new extcon APIs to get/set the capability of property as following: - int extcon_get_property_capability(struct extcon_dev *edev, unsigned int id, unsigned int prop); - int extcon_set_property_capability(struct extcon_dev *edev, unsigned int id, unsigned int prop); Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Tested-by: NChris Zhong <zyw@rock-chips.com> Tested-by: NGuenter Roeck <groeck@chromium.org> Reviewed-by: NGuenter Roeck <groeck@chromium.org>
-
由 Chanwoo Choi 提交于
This patch support the extcon property for the external connector because each external connector might have the property according to the H/W design and the specific characteristics. - EXTCON_PROP_USB_[property name] - EXTCON_PROP_CHG_[property name] - EXTCON_PROP_JACK_[property name] - EXTCON_PROP_DISP_[property name] Add the new extcon APIs to get/set the property value as following: - int extcon_get_property(struct extcon_dev *edev, unsigned int id, unsigned int prop, union extcon_property_value *prop_val) - int extcon_set_property(struct extcon_dev *edev, unsigned int id, unsigned int prop, union extcon_property_value prop_val) Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Tested-by: NChris Zhong <zyw@rock-chips.com> Tested-by: NGuenter Roeck <groeck@chromium.org> Reviewed-by: NGuenter Roeck <groeck@chromium.org>
-
由 Chanwoo Choi 提交于
This patch adds the new extcon type to group the each connecotr into following five category. This type would be used to handle the connectors as a group unit instead of a connector unit. - EXTCON_TYPE_USB : USB connector - EXTCON_TYPE_CHG : Charger connector - EXTCON_TYPE_JACK : Jack connector - EXTCON_TYPE_DISP : Display connector - EXTCON_TYPE_MISC : Miscellaneous connector Also, each external connector is possible to belong to one more extcon type. In caes of EXTCON_CHG_USB_SDP, it have the EXTCON_TYPE_CHG and EXTCON_TYPE_USB. Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Tested-by: NChris Zhong <zyw@rock-chips.com> Tested-by: NGuenter Roeck <groeck@chromium.org> Signed-off-by: NMyungJoo Ham <myungjoo.ham@samsung.com> Reviewed-by: NGuenter Roeck <groeck@chromium.org>
-
由 Maninder Singh 提交于
This patch fixes below compilation warning:- drivers/extcon/extcon.c: In function extcon_register_notifier: drivers/extcon/extcon.c:455:6: warning: idx may be used uninitialized in this function [-Wmaybe-uninitialized] if (idx >= 0) { Signed-off-by: NVaneet Narang <v.narang@samsung.com> Signed-off-by: NManinder Singh <maninder1.s@samsung.com> [cw00.choi : Modify the patch title using the a captical letter for first char] Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Chanwoo Choi 提交于
This patch restrict the usage of extcon_update_state() in the extcon core because the extcon_update_state() use the bit masking to change the state of external connector. When this function is used in device drivers, it may occur the probelm with the handling mistake of bit masking. Also, this patch removes the extcon_get/set_state() functions because these functions use the bit masking which is reluctant way. Instead, extcon provides the extcon_set/get_cable_state_() functions. Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Chanwoo Choi 提交于
This patch removes the state_store() which change the state of external connectors with bit masking on user-space. It is wrong access to modify the change the state of external connectors. Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Chanwoo Choi 提交于
This patch removes the usage of extcon_set_state() because it uses the bit masking to change the state of external connectors. The extcon framework should handle the state by extcon_set_cable_state_() with extcon id. Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Chanwoo Choi 提交于
This patch removes the usage of extcon_set_state() because it uses the bit masking to change the state of external connectors. The extcon framework should handle the state by extcon_set/get_cable_state_() with extcon id. Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Chanwoo Choi 提交于
This patch remvoes the usage of extcon_update_state() because the extcon_update_state() use directly the bit masking calculation to change the state of external connector without the unique id of external connector. It makes the code diffcult to read it. So, this patch uses the extcon_set_cable_state_() instead. Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Acked-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
-
由 Charles Keepax 提交于
There is no need for a semi-colon at the end of a switch statement so remove it. Signed-off-by: NCharles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Stephen Boyd 提交于
Sometimes drivers may call this API and expect it to fail because the extcon they're looking for is optional. Let's move these prints to debug level so it doesn't look like there's a problem when there isn't one. Signed-off-by: NStephen Boyd <stephen.boyd@linaro.org> Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Venkat Reddy Talla 提交于
Update cable state during boot to avoid any missing external cable events occurred before driver initialisation. Signed-off-by: NVenkat Reddy Talla <vreddytalla@nvidia.com> Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
-
由 Frank Wang 提交于
On kernel builds without COMMON_CLK, the newly added rockchip-inno-usb2 driver fails to build: drivers/phy/phy-rockchip-inno-usb2.c:124:16: error: field 'clk480m_hw' has incomplete type struct clk_hw clk480m_hw; In file included from include/linux/clk.h:16:0 from drivers/phy/phy-rockchip-inno-usb2.c:17: include/linux/kernel.h:831:48: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] const typeof( ((type *)0)->member ) *__mptr = (ptr); \ ... ... Signed-off-by: NFrank Wang <frank.wang@rock-chips.com> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Reviewed-by: NHeiko Stuebner <heiko@sntech.de>
-
由 Sekhar Nori 提交于
Commit 7e472402 ("phy: omap-usb2: Provide workaround for USB2PHY false disconnect") added a new binding for USB2 PHYs on DRA7x. But it has remained undocumented so far. Add documentation for the binding. Signed-off-by: NSekhar Nori <nsekhar@ti.com> Signed-off-by: NRoger Quadros <rogerq@ti.com> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Sekhar Nori 提交于
Relying on PM-ops for shutting down PHY clocks was a bad idea since the users (e.g. USB DWC3) might not have been suspended by then. Get rid of all PM-ops. It is the sole responsibility of the PHY user to properly turn OFF and de-initialize the PHY as part of its suspend routine. Enable/disable PHY clock as part of ->init()/->exit() call respectively. With this phy_init() and phy_exit() can be called by PHY user during suspend/resume. This is similar to what is done for ti-pipe3 driver. See 31c8954efb1b ("phy: ti-pipe3: fix suspend") The pm_runtime_enable() call in omap_usb2_probe() is still required because without it, phy_create() will not enable runtime PM on the phy device it creates and phy_init() will not call pm_runtime_get_sync(). Without pm_runtime_get_sync(), ocp2scp hwmod will _not_ enable the IP and, thus, we will have abort exceptions. Signed-off-by: NSekhar Nori <nsekhar@ti.com> Signed-off-by: NRoger Quadros <rogerq@ti.com> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Yoshihiro Shimoda 提交于
This driver can support for r8a7796 SoC. So, this patch adds it. Signed-off-by: NYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Acked-by: NGeert Uytterhoeven <geert+renesas@glider.be> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Yoshihiro Shimoda 提交于
The clocks property should be set to &cpg, not &mstpX_clks. Signed-off-by: NYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Reviewed-by: NGeert Uytterhoeven <geert+renesas@glider.be> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Axel Lin 提交于
Add missing .owner field in ns2_pci_phy_ops, which is used for refcounting. While at it, also makes ns2_pci_phy_ops const as it's never get modified. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Reviewed-and-tested-by: NJon Mason <jon.mason@broadcom.com> Reviewed-by: NPramod Kumar <pramodku@broadcom.com> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Axel Lin 提交于
By setting phy_set_drvdata(phy, mdiodev), struct ns2_pci_phy can be removed. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Reviewed-and-tested-by: NJon Mason <jon.mason@broadcom.com> Reviewed-by: NPramod Kumar <pramodku@broadcom.com> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Baoyou Xie 提交于
We get 1 warning when building kernel with W=1: drivers/phy/tegra/xusb.c:104:5: warning: no previous prototype for 'tegra_xusb_lane_lookup_function' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks it 'static'. Signed-off-by: NBaoyou Xie <baoyou.xie@linaro.org> Acked-by: NArnd Bergmann <arnd@arndb.de> Acked-by: NThierry Reding <treding@nvidia.com> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Baoyou Xie 提交于
We get 5 warnings when building kernel with W=1: drivers/phy/tegra/xusb.c:948:27: warning: no previous prototype for 'tegra_xusb_padctl_get' [-Wmissing-prototypes] drivers/phy/tegra/xusb.c:981:6: warning: no previous prototype for 'tegra_xusb_padctl_put' [-Wmissing-prototypes] drivers/phy/tegra/xusb.c:988:5: warning: no previous prototype for 'tegra_xusb_padctl_usb3_save_context' [-Wmissing-prototypes] drivers/phy/tegra/xusb.c:998:5: warning: no previous prototype for 'tegra_xusb_padctl_hsic_set_idle' [-Wmissing-prototypes] drivers/phy/tegra/xusb.c:1008:5: warning: no previous prototype for 'tegra_xusb_padctl_usb3_set_lfps_detect' [-Wmissing-prototypes] In fact, these functions are declared in linux/phy/tegra/xusb.h, so this patch adds missing header dependencies. Signed-off-by: NBaoyou Xie <baoyou.xie@linaro.org> Acked-by: NArnd Bergmann <arnd@arndb.de> Acked-by: NThierry Reding <treding@nvidia.com> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Shawn Lin 提交于
This patch to add a generic PHY driver for rockchip PCIe PHY. Access the PHY via registers provided by GRF (general register files) module. Signed-off-by: NShawn Lin <shawn.lin@rock-chips.com> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Shawn Lin 提交于
This patch adds a binding that describes the Rockchip PCIe PHY found on Rockchip SoCs PCIe interface. Signed-off-by: NShawn Lin <shawn.lin@rock-chips.com> Acked-by: NRob Herring <robh@kernel.org> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Frank Wang 提交于
The newer SoCs (rk3366, rk3399) take a different usb-phy IP block than rk3288 and before, and most of phy-related registers are also different from the past, so a new phy driver is required necessarily. Signed-off-by: NFrank Wang <frank.wang@rock-chips.com> Suggested-by: NHeiko Stuebner <heiko@sntech.de> Suggested-by: NGuenter Roeck <linux@roeck-us.net> Suggested-by: NDoug Anderson <dianders@chromium.org> Reviewed-by: NHeiko Stuebner <heiko@sntech.de> Reviewed-by: NGuenter Roeck <linux@roeck-us.net> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Frank Wang 提交于
Signed-off-by: NFrank Wang <frank.wang@rock-chips.com> Acked-by: NRob Herring <robh@kernel.org> Reviewed-by: NHeiko Stuebner <heiko@sntech.de> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Julia Lawall 提交于
Use of_property_read_bool to check for the existence of a property. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e1,e2,x; @@ - if (of_get_property(e1,e2,NULL)) - x = true; - else - x = false; + x = of_property_read_bool(e1,e2); // </smpl> Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Rafał Miłecki 提交于
Northstar is a family of SoCs used in home routers. They have USB 2.0 and 3.0 controllers with PHYs that need to be properly initialized. This driver provides PHY init support in a generic way and can be bound with XHCI controller driver. There aren't any public datasheets from Broadcom so we can't have nice defines for all used bits. It means we just follow Broadcom's initialization procedure using their magic values. We were quite lucky actually that Broadcom put some comments in their SDK reference code explaining what given writes are responsible for. Signed-off-by: NRafał Miłecki <rafal@milecki.pl> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Icenowy Zheng 提交于
There's something unknown in the pmu part that shared with H3. It's renamed as PMU_UNK1 from PMU_UNK_H3. Signed-off-by: NIcenowy Zheng <icenowy@aosc.xyz> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Icenowy Zheng 提交于
Update sun4i usb phy dt binding documentation to include support for Allwinner A64 usb phy. Signed-off-by: NIcenowy Zheng <icenowy@aosc.xyz> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-
由 Axel Lin 提交于
The 'reg' local variable does not need to be static. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Reviewed-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: NKishon Vijay Abraham I <kishon@ti.com>
-