Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941948AbcJYT7S (ORCPT ); Tue, 25 Oct 2016 15:59:18 -0400 Received: from skprod3.natinst.com ([130.164.80.24]:48012 "EHLO ni.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933895AbcJYT7K (ORCPT ); Tue, 25 Oct 2016 15:59:10 -0400 From: Zach Brown To: CC: , , , , , , Subject: [RFC 1/2] mmc: sdhci: dt: Add device tree properties sdhci-caps and sdhci-caps-mask Date: Tue, 25 Oct 2016 14:58:57 -0500 Message-ID: <1477425538-3315-2-git-send-email-zach.brown@ni.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477425538-3315-1-git-send-email-zach.brown@ni.com> References: <1477425538-3315-1-git-send-email-zach.brown@ni.com> X-MIMETrack: Itemize by SMTP Server on US-AUS-MGWOut2/AUS/H/NIC(Release 8.5.3FP6 HF1218|December 12, 2014) at 10/25/2016 02:58:56 PM, Serialize by Router on US-AUS-MGWOut2/AUS/H/NIC(Release 8.5.3FP6 HF1218|December 12, 2014) at 10/25/2016 02:58:56 PM, Serialize complete at 10/25/2016 02:58:56 PM MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-25_18:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1610250329 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1592 Lines: 34 On some systems the sdhci capabilty registers are incorrect for one reason or another. The sdhci-caps-mask property specifies which bits in the registers are incorrect and should be turned off before using sdhci-caps to turn on bits. The sdhci-caps property specifies which bits should be turned on. Signed-off-by: Zach Brown --- Documentation/devicetree/bindings/mmc/mmc.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt index 8a37782..1415aa0 100644 --- a/Documentation/devicetree/bindings/mmc/mmc.txt +++ b/Documentation/devicetree/bindings/mmc/mmc.txt @@ -52,6 +52,13 @@ Optional properties: - no-sdio: controller is limited to send sdio cmd during initialization - no-sd: controller is limited to send sd cmd during initialization - no-mmc: controller is limited to send mmc cmd during initialization +- sdhci-caps-mask: The sdhci capabilities registers are incorrect. This 64bit + property corresponds to the bits in the sdhci capabilty registers. If the bit + is on in the mask then the bit is incorrect in the registers and should be + turned off. +- sdhci-caps: The sdhci capabilities registers are incorrect. This 64bit + property corresponds to the bits in the sdhci capability registers. If the + bit is on in the property then the bit should be on in the reigsters. *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line polarity properties, we have to fix the meaning of the "normal" and "inverted" -- 2.7.4