From patchwork Wed Jul 3 12:26:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 168414 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp830413ilk; Wed, 3 Jul 2019 05:26:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjyKPWzVZApkymAYoQPFFQUO8iAiBgn13vfRvO4DMahwjSqEEMpbNNr0ygqE6zsHGJ8nUi X-Received: by 2002:a17:90a:3401:: with SMTP id o1mr12415054pjb.7.1562156794754; Wed, 03 Jul 2019 05:26:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562156794; cv=none; d=google.com; s=arc-20160816; b=0RhxbIJCd/zg6H8jp3/XdY2o+K7BvOWm8xUTjwG+VIjnGYEqubDbfblei1KQJMcbn+ lCAVMNDhLIKEqvyQgOWU718kgxe0YSP3cd9Y9SryShWPNePpbA5tt2N1bawfVElJLkfp XQnSWcFfk3yjM7Q4GQHBNXvOr5lNErd0TWxuoy258XhWb3QRAX9QZrtMjbiK062axqHc Acc+PBKokGuBOi1hl26DKCOU6/5wPaebFw1MgxE+5AJG+MkiqdIpHv0WS3sMXSSXfCDq wWVAKJtHjKa+028usRqAVWevhGlBhDJW1X7RCXgaS9ClUilxvttENIpLmdFT4EpNigfq gZ6Q== 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=plGjGyOid1jI+Xxis9Als2EenBhEyLHhPcpZxpUYN30=; b=oYTNslfrVCi5JX/CldxBNdLNCkuiMIlQpdlklHSGM8kXrqQI7zvm1aYeOURKlFqdgl 1DuVrwCLuPDY9/8SzUWHRB6wPFE5oZW/F28gyro7BYNu7GFgvaSZ1wHA0QWN+PrwhTZW IDJ8vt+B8jlA3fjARW0fSTcIZ0bDNFunD5mR+BXI9GTA5wGNdVxoVNvb29D6/GNjCw/9 BonUVxlVGwHv1va59j98CZdM+Y6B1OmBnOhtDvbe3oZvfKJnfA7RrTxoCcVsQJNY2HPu O9OidlsVOPx6AS3VNCKldfVgQYO55yCZyu49ftdPm2AcXv4kZOGo+6G+lziUF3pKc88J AH6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="vKwjNK/h"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21si2172742plq.91.2019.07.03.05.26.34; Wed, 03 Jul 2019 05:26:34 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="vKwjNK/h"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726966AbfGCM03 (ORCPT + 30 others); Wed, 3 Jul 2019 08:26:29 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35340 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbfGCM0Z (ORCPT ); Wed, 3 Jul 2019 08:26:25 -0400 Received: by mail-wm1-f65.google.com with SMTP id c6so2190232wml.0 for ; Wed, 03 Jul 2019 05:26:23 -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=plGjGyOid1jI+Xxis9Als2EenBhEyLHhPcpZxpUYN30=; b=vKwjNK/hbuj6CRQyXmuujsWGLSTqcTiws2yP8LSdxlJtYieRupvb/tstkm0v5ucpoy DLpHwzTi00otlUo6DokRJOPR5J/p/RZI63uNqAGusirRv93U+drv1lY6fDhVtuCo/4XM 4+fumzfXgWgThbkFfyKfdF24HsLshbXFCe5whSS88ST24f3VZJ2sZOIQjj+pt0kqX1oZ cvARhlbm8Q52SR73bwi4J7gDhg/3Qcwt2teLzkl94He8lRjO25Eae31tJ+uVIF93V3x0 s9LEIT3KkZsss+DitpyzKUALqapb8sLePy/fqGvXgf9fQ8XXkJwj2URsmlbhXxU3JhTa ukMg== 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=plGjGyOid1jI+Xxis9Als2EenBhEyLHhPcpZxpUYN30=; b=NZ8n4KZVN557GUuC0gFW7JOjlISnSNdntaulRhYWQl/kMIiI8jklrPXmkil3aDn7xx QArB4SQ/6XpTz3XQ6c3463KuFtkCp1B24/mYHqjlieHQ73YmIgTTtL6C1D9/s6MpXNi2 LSPCGOaVTQx3RccbycndLbTh9C2Wnh7mWmdfs3pymvleq5mqVUonEumuBJvIGUQxP/TN Kq4IzSCbNNQF0x+83MC/Zt81p5OFVcckZVTYJ4ozArFxP+gEjBgcX2HZGw5rFlQ55DKD arGyyaPPWtsFNKoBiKZ5tvg7eiUqlHSfNqJcpuoUl/3fvw/+eM4FnqE1z0TpbpMHn3LF kboQ== X-Gm-Message-State: APjAAAUGLRciFWN3uLb5pAkwl7BpmoKmXyJ+fhaz8KTHQjH/sfM5lPXb imEy+yRZ8oG5B04df5LNCTmLIg== X-Received: by 2002:a1c:630a:: with SMTP id x10mr8506501wmb.113.1562156783223; Wed, 03 Jul 2019 05:26:23 -0700 (PDT) Received: from starbuck.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id v67sm2868132wme.24.2019.07.03.05.26.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 03 Jul 2019 05:26:22 -0700 (PDT) From: Jerome Brunet To: Neil Armstrong Cc: Jerome Brunet , Kevin Hilman , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: clock: meson: add resets to the audio clock controller Date: Wed, 3 Jul 2019 14:26:13 +0200 Message-Id: <20190703122614.3579-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190703122614.3579-1-jbrunet@baylibre.com> References: <20190703122614.3579-1-jbrunet@baylibre.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the documentation and bindings for the resets provided by the g12a audio clock controller Signed-off-by: Jerome Brunet --- .../bindings/clock/amlogic,axg-audio-clkc.txt | 1 + .../reset/amlogic,meson-g12a-audio-reset.h | 38 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 include/dt-bindings/reset/amlogic,meson-g12a-audio-reset.h -- 2.21.0 diff --git a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.txt index 0f777749f4f1..b3957d10d241 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.txt +++ b/Documentation/devicetree/bindings/clock/amlogic,axg-audio-clkc.txt @@ -22,6 +22,7 @@ Required Properties: components. - resets : phandle of the internal reset line - #clock-cells : should be 1. +- #reset-cells : should be 1 on the g12a (and following) soc family Each clock is assigned an identifier and client nodes can use this identifier to specify the clock which they consume. All available clocks are defined as diff --git a/include/dt-bindings/reset/amlogic,meson-g12a-audio-reset.h b/include/dt-bindings/reset/amlogic,meson-g12a-audio-reset.h new file mode 100644 index 000000000000..14b78dabed0e --- /dev/null +++ b/include/dt-bindings/reset/amlogic,meson-g12a-audio-reset.h @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (c) 2019 BayLibre, SAS. + * Author: Jerome Brunet + * + */ + +#ifndef _DT_BINDINGS_AMLOGIC_MESON_G12A_AUDIO_RESET_H +#define _DT_BINDINGS_AMLOGIC_MESON_G12A_AUDIO_RESET_H + +#define AUD_RESET_PDM 0 +#define AUD_RESET_TDMIN_A 1 +#define AUD_RESET_TDMIN_B 2 +#define AUD_RESET_TDMIN_C 3 +#define AUD_RESET_TDMIN_LB 4 +#define AUD_RESET_LOOPBACK 5 +#define AUD_RESET_TODDR_A 6 +#define AUD_RESET_TODDR_B 7 +#define AUD_RESET_TODDR_C 8 +#define AUD_RESET_FRDDR_A 9 +#define AUD_RESET_FRDDR_B 10 +#define AUD_RESET_FRDDR_C 11 +#define AUD_RESET_TDMOUT_A 12 +#define AUD_RESET_TDMOUT_B 13 +#define AUD_RESET_TDMOUT_C 14 +#define AUD_RESET_SPDIFOUT 15 +#define AUD_RESET_SPDIFOUT_B 16 +#define AUD_RESET_SPDIFIN 17 +#define AUD_RESET_EQDRC 18 +#define AUD_RESET_RESAMPLE 19 +#define AUD_RESET_DDRARB 20 +#define AUD_RESET_POWDET 21 +#define AUD_RESET_TORAM 22 +#define AUD_RESET_TOACODEC 23 +#define AUD_RESET_TOHDMITX 24 +#define AUD_RESET_CLKTREE 25 + +#endif