From patchwork Sat Mar 23 21:16:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 10867209 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BB26418EC for ; Sat, 23 Mar 2019 21:19:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 99B5B2855E for ; Sat, 23 Mar 2019 21:19:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DA042997D; Sat, 23 Mar 2019 21:19:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3D9E52855E for ; Sat, 23 Mar 2019 21:19:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=7DCGVQxUD7eDX+SXaDNsCLDn3T8kKwwOubzQ/KeSeBc=; b=uJHsJ9fB81jtJu KUp6W2qJc8VF462i0UIsmS6HOsOwW4h7NNjhNneFPYEY5UnsLIiluUf0TQGcYg9RqyxNwb/DiJhjS SezfdGsyQvN0EqaExyzD1NJC9RrgoyHPVSeCzjBgug1MzK74C6gYoFbz97VsoO3unOfv3mxpYwFBD k01V508gHC/uxfxV7hgt7hJTPxpPCkhoImpk1VnempfC3zOvfCK0Fam4OlahHXbzqVj+lj6/mZ3Vh Phuas20I72Ok3v1CI0noVW4vbnMaqa2LvVgxilm85X/ZHu3HOz289Ew4fBcncMFz2OZQKQnUeZub9 AQno3ROgOeCxkmLn+Y5g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7o3B-0006th-MC; Sat, 23 Mar 2019 21:19:33 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7o0t-0004Gc-5s for linux-mediatek@lists.infradead.org; Sat, 23 Mar 2019 21:17:24 +0000 Received: by mail-wr1-x442.google.com with SMTP id y13so6011760wrd.3 for ; Sat, 23 Mar 2019 14:17:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K20dmGWJ700LL+vpJjpcnDlimzQRZKLYUWDMmgR6T8c=; b=Ax2CAfHOTtSVpQD45ZlHkjQ1osTfDL6m+S2jsdo6/daBbRaOSRhb+YHpJsmcYagxYl LzuawF35/KY3VeCxMJrCCt+W7l6v/DBsN+vtzTjsEqUzAKuGpJ6P5J1BPeA25dM0SGYk UXh99ev8n35Vc82HR/XgHc+9ssKMZYPFZ00ck2Sob/F0CdVs/FHZ08EMlRwwsY6RGdpn qHhMd8SEeqbFRz14MnvdcwneYd+jFv37DFIa3Hodt0wMui421gW0RZnIbk0/J7GwYQ4D eX+VS7aSmMoA803EHq3QY3hUL7+i3kub/m14dyWIUREkoaiSny3QdlFMtg53culKeldb NRjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K20dmGWJ700LL+vpJjpcnDlimzQRZKLYUWDMmgR6T8c=; b=drfyp2/tV9B5OvGCoY5r0jPgjh5Ps6gUTKgXnBp4AvWNM6lRdTA0i8sNOec5UzbEF1 DkRTlqZHg7cQqCLB9kLZfNTgaiNuAlnPAJSNf03xGP+8QRq0SAQU8TQ7KpedsqqHOLm7 koJEO8ecdVtH0K1EzGTSCmzDF6qvhTe+jyxDE0DaT4aS2IRGreMWu9t90pRhbhDnMuPx 10d2O+OvEycHd+ymmXgaPn0h4eJ94bv0KX++TpFuuZwxn/1BznrVBXJzWSRHJMaxtOAa VFyVDckzicew1tqs5Ifi4HeO6MAICXZR9iN2sgqF3vo3L2Xf2fmU6iEYGIGnkWmAebfr kJVA== X-Gm-Message-State: APjAAAUa1U11UPavqRPy+mJI3KsbInkvBb35dJZxX5P+o0sdlSrYTE5U CUhgUfT65AL651HYL2v7MceTfA== X-Google-Smtp-Source: APXvYqzvPU9gvnf+4ndL3DNOrj6Hhfv+9uwIhBaEw+FF+rFWoOLTgkZJrKyNDTGLxRXVrXwEUc4CcA== X-Received: by 2002:a05:6000:1291:: with SMTP id f17mr10665878wrx.201.1553375829378; Sat, 23 Mar 2019 14:17:09 -0700 (PDT) Received: from localhost.localdomain (cag06-8-78-203-165-84.fbx.proxad.net. [78.203.165.84]) by smtp.gmail.com with ESMTPSA id y66sm8050503wmd.37.2019.03.23.14.17.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Mar 2019 14:17:08 -0700 (PDT) From: Fabien Parent To: matthias.bgg@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH 12/24] dt-bindings: mediatek: infracfg: add support for MT8516 Date: Sat, 23 Mar 2019 22:16:00 +0100 Message-Id: <20190323211612.860-13-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190323211612.860-1-fparent@baylibre.com> References: <20190323211612.860-1-fparent@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190323_141711_650201_110F307A X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, ryder.lee@mediatek.com, linux-watchdog@vger.kernel.org, jjian.zhou@mediatek.com, wenzhen.yu@mediatek.com, stephane.leprovost@mediatek.com, sean.wang@kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, yong.mao@mediatek.com, linux-spi@vger.kernel.org, linux-gpio@vger.kernel.org, linux-mediatek@lists.infradead.org, hsin-hsiung.wang@mediatek.com, linux-serial@vger.kernel.org, Fabien Parent , linux-clk@vger.kernel.org, chaotian.jing@mediatek.com, linux-i2c@vger.kernel.org Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add binding documentation of infracfg for MT8516 SoC. Signed-off-by: Fabien Parent Acked-by: Rob Herring --- .../bindings/arm/mediatek/mediatek,infracfg.txt | 1 + include/dt-bindings/clock/mt8516-clk.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt index 417bd83d1378..cbc38a8ee985 100644 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,infracfg.txt @@ -15,6 +15,7 @@ Required Properties: - "mediatek,mt7629-infracfg", "syscon" - "mediatek,mt8135-infracfg", "syscon" - "mediatek,mt8173-infracfg", "syscon" + - "mediatek,mt8516-infracfg", "syscon" - #clock-cells: Must be 1 - #reset-cells: Must be 1 diff --git a/include/dt-bindings/clock/mt8516-clk.h b/include/dt-bindings/clock/mt8516-clk.h index 8d44cb32efba..956ee2c0748e 100644 --- a/include/dt-bindings/clock/mt8516-clk.h +++ b/include/dt-bindings/clock/mt8516-clk.h @@ -8,6 +8,15 @@ #ifndef _DT_BINDINGS_CLK_MT8516_H #define _DT_BINDINGS_CLK_MT8516_H +/* INFRACFG */ + +#define CLK_IFR_MUX1_SEL 0 +#define CLK_IFR_ETH_25M_SEL 1 +#define CLK_IFR_I2C0_SEL 2 +#define CLK_IFR_I2C1_SEL 3 +#define CLK_IFR_I2C2_SEL 4 +#define CLK_IFR_NR_CLK 5 + /* TOPCKGEN */ #define CLK_TOP_CLK_NULL 0