/* * wm8770.h -- WM8770 ASoC driver * * Copyright 2010 Wolfson Microelectronics plc * * Author: Dimitris Papastamos * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef _WM8770_H #define _WM8770_H /* Registers */ #define WM8770_VOUT1LVOL 0 #define WM8770_VOUT1RVOL 0x1 #define WM8770_VOUT2LVOL 0x2 #define WM8770_VOUT2RVOL 0x3 #define WM8770_VOUT3LVOL 0x4 #define WM8770_VOUT3RVOL 0x5 #define WM8770_VOUT4LVOL 0x6 #define WM8770_VOUT4RVOL 0x7 #define WM8770_MSALGVOL 0x8 #define WM8770_DAC1LVOL 0x9 #define WM8770_DAC1RVOL 0xa #define WM8770_DAC2LVOL 0xb #define WM8770_DAC2RVOL 0xc #define WM8770_DAC3LVOL 0xd #define WM8770_DAC3RVOL 0xe #define WM8770_DAC4LVOL 0xf #define WM8770_DAC4RVOL 0x10 #define WM8770_MSDIGVOL 0x11 #define WM8770_DACPHASE 0x12 #define WM8770_DACCTRL1 0x13 #define WM8770_DACMUTE 0x14 #define WM8770_DACCTRL2 0x15 #define WM8770_IFACECTRL 0x16 #define WM8770_MSTRCTRL 0x17 #define WM8770_PWDNCTRL 0x18 #define WM8770_ADCLCTRL 0x19 #define WM8770_ADCRCTRL 0x1a #define WM8770_ADCMUX 0x1b #define WM8770_OUTMUX1 0x1c #define WM8770_OUTMUX2 0x1d #define WM8770_RESET 0x31 #define WM8770_CACHEREGNUM 0x20 #endif b17deb7a1494845c45d71ba8e'>treecommitdiff
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-04-28 17:27:31 -0400
committerDavid S. Miller <davem@davemloft.net>2016-04-28 17:27:31 -0400
commitbd34cf66cc48a5fb17deb7a1494845c45d71ba8e (patch)
tree0c49b6362be9e3f3a528af84f83389c93782f12d /Documentation/devicetree
parentbbdd09ebd7ce87d2122fcc7d97f35a4f8931bc55 (diff)
parent06cd6d6eda4bedbb826ed36e4c89734ea364ec4b (diff)
Merge branch 'cpsw-phy-handle-fixes'
David Rivshin says: ==================== drivers: net: cpsw: phy-handle fixes This series fixes a number of related issues around using phy-handle properties in cpsw emac nodes. Patch 1 fixes a bug if more than one slave is used, and either slave uses the phy-handle property in the devicetree. Patch 2 fixes a NULL pointer dereference which can occur if a phy-handle property is used and of_phy_connect() return NULL, such as with a bad devicetree. Patch 3 fixes an issue where the phy-mode property would be ignored if a phy-handle property was used. This also fixes a bogus error message that would be emitted. Patch 4 fixes makes the binding documentation more explicit that exactly one PHY property should be used, and also marks phy_id as deprecated. Patch 5 cleans up the fixed-link case to work like the now-fixed phy-handle case. I have tested on the following hardware configurations: - (EVMSK) dual emac, phy_id property in both slaves - (EVMSK) dual emac, phy-handle property in both slaves - (EVMSK) a bad phy-handle property pointing to &mmc1 - (EVMSK) phy_id property with incorrect PHY address - (BeagleBoneBlack) single emac, phy_id property - (custom) single emac, fixed-link subnode Andrew Goodbody reported testing v2 on a board that doesn't use dual_emac mode, but with 2 PHYs using phy-handle properties [1]. Nicolas Chauvet reported testing v2 on an HP t410 (dm8148). Markus Brunner reported testing v1 on the following [2]: - emac0 with phy_id and emac1 with fixed phy - emac0 with phy-handle and emac1 with fixed phy - emac0 with fixed phy and emac1 with fixed phy [1] https://lkml.org/lkml/2016/4/22/537 [2] http://www.spinics.net/lists/netdev/msg357890.html ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/devicetree')