Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4699329imd; Tue, 30 Oct 2018 06:14:01 -0700 (PDT) X-Google-Smtp-Source: AJdET5ecB1bTM1L84qRduJJ+t2ASGLMs4kHiHMYINlhVZvLl2L5d+JV3oVq1iQei6uu+8fx8MI5W X-Received: by 2002:a63:6c84:: with SMTP id h126-v6mr17928146pgc.237.1540905241623; Tue, 30 Oct 2018 06:14:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540905241; cv=none; d=google.com; s=arc-20160816; b=bJvXGtafJ7VjDFQ/02O/71dA8xSCpH7Q9Fd8yWt18B3CoqXexf8fVaVtY82pNzWmB6 y4q5Ptiv2i4J9/KZTeiStP2lN6hjrllocC8WszB0LGSLrwdH5esjxflMOWn2+qo8taJH gtmcHH8VkiDIZHh4s1Xon9ORMkOV58Ug+UDFzR/3NLt4d2B6nujbKjT7GoRfTDlmAlzJ 3/fQn0302RAy4c6QBiRT9oyjGCn+rCwlPxfNeVV/Y5E0kCixqn3sA9H2JeAQa4Euh0uh vEvwP9gfMhRHtX0hDdc4a6y7p2d3WPafSoKGQV6+gw/EA8gZdcqmMxuHJrIMyu90HPPc WuFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XrC8xFPbeEz5GfOc49fkwQzNqK0r/X7Qxa9aNATtfSU=; b=JCFxEOje3ci42isV/nOl5nytb18Hrtd/++ECG86lNe3Cc3tHzeXhPE9IPn9aZ5cj4d mQsmNZ/D5j+M7xJvuKcEqpB+OcT0BpYKEN5ECwZoQ59a+FvcY7AdS+CqasrMvoj/H8Bp XEoitXExEE+4VBKgoL0nrT7sX6c46u7XdYi95HBFIfL9V8j3gfkwN9wWI53d2Cap7QHS FzUUYx02B7ESHazp1DAeNBX9EzKrs1SpXtpmenBXQVbaV6p6T9SnmkKDcBV68mgaAdhj w0spTENGWn8LZtb9b0lmPdt6maN5mW2XTyEgU383curwJA/j9zIrHg/xu0Nm6Hw+pvPi tRMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f9KNOo5A; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8-v6si21905332plt.271.2018.10.30.06.13.43; Tue, 30 Oct 2018 06:14:01 -0700 (PDT) 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=@linaro.org header.s=google header.b=f9KNOo5A; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727944AbeJ3WEH (ORCPT + 99 others); Tue, 30 Oct 2018 18:04:07 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:37796 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727864AbeJ3WEH (ORCPT ); Tue, 30 Oct 2018 18:04:07 -0400 Received: by mail-lf1-f66.google.com with SMTP id p17so2350111lfh.4 for ; Tue, 30 Oct 2018 06:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XrC8xFPbeEz5GfOc49fkwQzNqK0r/X7Qxa9aNATtfSU=; b=f9KNOo5AAxX8B4e+6fkpEqkh/rqYSiMQ0CLhSXOl8wzHFK8nT+nO3/yoJNmH6zNYEQ qS3xhqU7cY42MoQtv5yfh4JzIwWYCnYRZXBWRpOFs7+cpGiO2KN6mCy22+5PK5jOjHX8 Zk/y/XweOoXubwPHX5ysFZJ88WqlHrVmi6Wcc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XrC8xFPbeEz5GfOc49fkwQzNqK0r/X7Qxa9aNATtfSU=; b=mVjTrsW91ckIizOmqqz5v1dtpeAxJmcc5bgrKQA+XTL6Zh0MHNB+mDPkhI8gVI3IXB ko0XhZk4DOz9wxTDdlVPlB9YE+WliUfOMe4AzejgNtN2sna0HR2KmmlDyVEMrz4fA1GY +pnIxkqwdFSf+n95FvrSyt+OHXJfBkv9jgZ+sj3kyG07+F1ZBfI4j1PD8iIxJ0It7cca 2/RZNr/FfaD70eXSu4++W9EN3zWHbhWH8OQQKNoXVrDzwsqK45Y/veiGRgNlctu7UZZZ anzTrzg+YPT/CcW07eu2rrAQ88Zf/+Olx1jubumgIlyJpXHcIUMqeBGZCNobsrFgOpA/ Ntjw== X-Gm-Message-State: AGRZ1gJNdR/HxJTy2MbQ46YmodFG4lcs6+ej5gfCEYKWbTIdDk2iqWRy /9mRI77077JKzyg8iuHYx2W8Np464E61tcyHUjht+Q== X-Received: by 2002:a19:2095:: with SMTP id g143-v6mr1827691lfg.62.1540905042408; Tue, 30 Oct 2018 06:10:42 -0700 (PDT) MIME-Version: 1.0 References: <20181019095003.26046-1-ckeepax@opensource.cirrus.com> In-Reply-To: <20181019095003.26046-1-ckeepax@opensource.cirrus.com> From: Linus Walleij Date: Tue, 30 Oct 2018 14:10:30 +0100 Message-ID: Subject: Re: [PATCH v3 1/5] mfd: lochnagar: Add initial binding documentation To: Charles Keepax Cc: Lee Jones , Michael Turquette , Stephen Boyd , Mark Brown , Rob Herring , Mark Rutland , Liam Girdwood , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , patches@opensource.cirrus.com, linux-clk , "open list:GPIO SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 19, 2018 at 11:50 AM Charles Keepax wrote: > + gf-aif2-txdat, usb-aif1, usb-aif2, adat-aif, soundcard-aif, > + > + - aif-master : Specifies that an AIF group will be used as a master > + interface (either this or aif-slave is required if a group is > + being muxed to an AIF) > + - aif-slave : Specifies that an AIF group will be used as a slave > + interface (either this or aif-master is required if a group is > + being muxed to an AIF) This is not properly described as pin config parameters, but that is how they are used in the driver. Please describe that this is supposed to augment the pin config of the pins. But I think it looks bogus. If the pins are already mixed to groups like that: > + pin-settings: pin-settings { > + ap-aif { > + aif-slave; > + groups = "gf-aif1"; > + function = "codec-aif3"; > + }; > + codec-aif { > + aif-master; > + groups = "codec-aif3"; > + function = "gf-aif1"; > + }; > + }; OK so what the "special properties" above indicates is really the direction of the pins, whether out (master) or in (slave". Just use the standard bool pin config properties: input-enable; output-enable; Reference Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt For this. If you want users to see that this is master and slave, just /* Write a comment */ in the device tree. Yours, Linus Walleij