From patchwork Wed Jun 15 10:27:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 635803 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-qg0-x23f.google.com (mail-qg0-x23f.google.com [IPv6:2607:f8b0:400d:c04::23f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rV2ld0jzKz9t1t for ; Wed, 15 Jun 2016 20:27:57 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=TTZ0w4Hy; dkim-atps=neutral Received: by mail-qg0-x23f.google.com with SMTP id z21sf5753221qge.1 for ; Wed, 15 Jun 2016 03:27:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=qbqCi5/jqi61Yr9TV269YJG9SJFBOxmiWAQ82CKYB0A=; b=TTZ0w4HyVSlqqUQ/uB9fBAePyunbjhAshvQ28wVtQSwjvtOZ0IRTwsHCH3sfY65Aa5 4kkn1a4SKOCW39ZGtY3WCaoy27pYIAcUiUvtf3sgJGc6funljd/JmH/jumneqfxzbZLw nEayVxxmBy0x/j7VUmSvV+iVF5c0nPKSLhGGi1lj0cq5QS4QY7UpMTPz1dK1AGV/wb2W oeT4/ZvJ4HV1EkS1Vwun/pM4MDawBAGaGRbH7bUBLYmQJhaCrj/lqQIUq97nsmGdZiIb hUBFOda5U8NkVZztLDGd1xttmfMnWvBjAM64MfpFuNmhn4HvyDOAcDQ3ED9C7kt/Z468 uRew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=qbqCi5/jqi61Yr9TV269YJG9SJFBOxmiWAQ82CKYB0A=; b=ankrQVtf0skCHoo/n+C2wzVtiUVSxdpU7dZYUnU+gHbe1JnmsDIhbVve8HBrUkO4h0 KipNLNHKWwilcpdB8oSUhJ7YSySjLUDX5ab228d4KsQGYDrIEsFiju6U+F5D50Y+yO9R B47R+XQAE5ulGwgZshmY0SUET7Gdm+/HvfHwrcuJTfDoFAOgX1bdL3LyKrOnjfOODrcI hk981p+e4goP0vRR811wlVlMncCPV0IMcTmKMdJfSGrmwUvRMsFeSeks1AcmZ7tfGXuB YRvKSRJSbxlCTsOn61humX82ZkbFQg362VaGvDbUzrHflac068jhcbAT7LBQt8ZJFE0V bbPA== Sender: rtc-linux@googlegroups.com X-Gm-Message-State: ALyK8tJOckZEFF9NKFqQCgKhI2733aWRSPw5kPOo2dGWMFpWBROE07zIvmgheFaRv+D4xw== X-Received: by 10.140.89.234 with SMTP id v97mr461037qgd.0.1465986475006; Wed, 15 Jun 2016 03:27:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.140.92.145 with SMTP id b17ls434257qge.1.gmail; Wed, 15 Jun 2016 03:27:54 -0700 (PDT) X-Received: by 10.31.161.83 with SMTP id k80mr19918398vke.3.1465986474778; Wed, 15 Jun 2016 03:27:54 -0700 (PDT) Received: from wens.csie.org (mirror2.csie.ntu.edu.tw. [140.112.30.76]) by gmr-mx.google.com with ESMTPS id e68si3383279pfa.0.2016.06.15.03.27.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jun 2016 03:27:54 -0700 (PDT) Received-SPF: neutral (google.com: 140.112.30.76 is neither permitted nor denied by best guess record for domain of wens@wens.csie.org) client-ip=140.112.30.76; Received: by wens.csie.org (Postfix, from userid 1000) id 82C265F901; Wed, 15 Jun 2016 18:27:51 +0800 (CST) From: Chen-Yu Tsai To: Mark Brown , Lee Jones , Alessandro Zummo , Alexandre Belloni , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Maxime Ripard , Michael Turquette , Stephen Boyd Cc: Chen-Yu Tsai , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [rtc-linux] [PATCH v2 02/10] mfd: ac100: Add device tree bindings for X-Powers AC100 codec/RTC combo IC Date: Wed, 15 Jun 2016 18:27:39 +0800 Message-Id: <1465986467-14802-3-git-send-email-wens@csie.org> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1465986467-14802-1-git-send-email-wens@csie.org> References: <1465986467-14802-1-git-send-email-wens@csie.org> X-Original-Sender: wens@csie.org X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 140.112.30.76 is neither permitted nor denied by best guess record for domain of wens@wens.csie.org) smtp.mailfrom=wens@wens.csie.org Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Chen-Yu Tsai Acked-by: Rob Herring --- Documentation/devicetree/bindings/mfd/ac100.txt | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/ac100.txt diff --git a/Documentation/devicetree/bindings/mfd/ac100.txt b/Documentation/devicetree/bindings/mfd/ac100.txt new file mode 100644 index 000000000000..fbab623e6fba --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/ac100.txt @@ -0,0 +1,42 @@ +X-Powers AC100 Codec/RTC IC device tree bindings + +AC100 is a audio codec and RTC subsystem combo IC. The 2 parts are +separated, including power supplies and interrupt lines, but share +a common register address space and host interface. + +Required properties: +- compatible: "x-powers,ac100" +- reg: The I2C slave address or RSB hardware address for the chip +- sub-nodes: + - codec + - compatible: "x-powers,ac100-codec" + - interrupt-parent: The parent interrupt controller + - interrupts: SoC NMI / GPIO interrupt connected to the IRQ_AUDIO pin + - rtc + - compatible: "x-powers,ac100-rtc" + - interrupt-parent: The parent interrupt controller + - interrupts: SoC NMI / GPIO interrupt connected to the IRQ_RTC pin + - #clock-cells: shall be 1 + - clock-output-names: "cko1_rtc", "cko2_rtc", "cko3_rtc" + - see clock/clock-bindings.txt for common clock bindings + +Example: + +ac100: codec@e89 { + compatible = "x-powers,ac100"; + reg = <0xe89>; + + ac100_codec { + compatible = "x-powers,ac100-codec"; + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; + + ac100_rtc { + compatible = "x-powers,ac100-rtc"; + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + #clock-cells = <1>; + clock-output-names = "cko1_rtc", "cko2_rtc", "cko3_rtc"; + }; +};