Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp20089imu; Thu, 3 Jan 2019 13:10:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN6QhUCWx8sdfoJYfntt8fkZwq2WVkSkKUvCh3C+FNv046kqqmp0ufVwb9baWmrvBC/CBe4V X-Received: by 2002:a17:902:b112:: with SMTP id q18mr48752361plr.255.1546549817245; Thu, 03 Jan 2019 13:10:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546549817; cv=none; d=google.com; s=arc-20160816; b=R5qX08+IMB79GL4moyLCoTp/i3B8JSX4ynH91mIk8FEUdPbLOy33yXv79UkBONoixM oulNoj6Omc0r0NzmQjVMOj86CuUSooYePNcK2KWBUjEKadcbgdVlmfOo2hLQCeWBt9sH WwCYkfM91Rh8aqK4xXD13qqUpHWx0F1WFJpE2e6/j82WuTllUOjwsq+FxQFcbuTa6pCS oQFcr1ghSQYrJiubNVOwNcK0/IvxkxIM5my66yUnvjBuhuhMyz2puW/COR/BySyBw0RT 0TYHEIGJVJwcwAtEb8sjECqK3rlpULK21kryGRr7M7nPtcsO6IwljZaeNmqzMT5RzYss A7vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=G1VelCFHk487LDZk3rSTti0A+x1tj4BJ75Uu/m/XSgE=; b=KM09GsTSfSrT3UUvFRG25lvCiJ7hFzNXTC6yro3UG2gVxY4SgZAVIwEVTMoygO/m/K 7TGStw8VBta/P1GynSdb21nqOFc6vhUDvXeRl7psCb8dy+g2AvKyG9blpCkcRsORboda GixS4XPKcu8d+iIxi5CHN2X2i3u1TCJerkvllgzWxYLVak6ovaHR2av6vOluZGJ/W3tk RS+qo5+7XtVVjHZhjvU1R8nUnm0PM72sZlZXGZe7InIMeCsRJFxD5q0jD7DPoeFhZdCR UvH62bZKSo3oCdPnm5pZDanFmLAtuj+U1uCRe6yUYRviZBJ9wfQjMgkaPHGqsFz87dJG w0JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cYPPBzg6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si52515847pld.239.2019.01.03.13.10.02; Thu, 03 Jan 2019 13:10:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cYPPBzg6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731869AbfACOEK (ORCPT + 99 others); Thu, 3 Jan 2019 09:04:10 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:56336 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730271AbfACOEH (ORCPT ); Thu, 3 Jan 2019 09:04:07 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x03E411M105836; Thu, 3 Jan 2019 08:04:01 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1546524241; bh=G1VelCFHk487LDZk3rSTti0A+x1tj4BJ75Uu/m/XSgE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cYPPBzg6oTPn15k/pwUcvZa9ZQ2IN7P5twUmFe3t0LCeDfEojufiVjaRkaz6ds1aX tjh+NxoesRNtdqxZt6VF2wITA5iDW749Nvhfszj6DBM15Q244nRR/Ua7StPVgtAWzv YiVKZpJnrr+vFwqfGVKhTNjFWQJtPOXg5bWt3l4g= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x03E40OD020771 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 3 Jan 2019 08:04:00 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 3 Jan 2019 08:04:00 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 3 Jan 2019 08:04:00 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x03E3rlO021111; Thu, 3 Jan 2019 08:03:58 -0600 From: Peter Ujfalusi To: , CC: , , , , , Subject: [PATCH 2/3] bindings: sound: davinci-mcasp: Document GPIO support Date: Thu, 3 Jan 2019 16:05:51 +0200 Message-ID: <20190103140552.29809-3-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190103140552.29809-1-peter.ujfalusi@ti.com> References: <20190103140552.29809-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org McASP pins can be used as GPIO, add optional section to enable GPIO support for McASP. Signed-off-by: Peter Ujfalusi --- .../bindings/sound/davinci-mcasp-audio.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt b/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt index b279b6072bd5..a58f79f5345c 100644 --- a/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt +++ b/Documentation/devicetree/bindings/sound/davinci-mcasp-audio.txt @@ -45,6 +45,23 @@ Optional properties: - fck_parent : Should contain a valid clock name which will be used as parent for the McASP fck +Optional GPIO support: +If any McASP pin need to be used as GPIO then the McASP node must have: +... + gpio-controller + #gpio-cells = <2>; +... + +When requesting a GPIO, the first parameter is the PIN index in McASP_P* +registers. +For example to request the AXR2 pin of mcasp8: +function-gpios = <&mcasp8 2 0>; + +Or to request the ACLKR pin of mcasp8: +function-gpios = <&mcasp8 29 0>; + +For generic gpio information, please refer to bindings/gpio/gpio.txt + Example: mcasp0: mcasp0@1d00000 { -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki