From patchwork Fri Jul 20 15:26:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 947059 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="bkDj+F6w"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41XF9T1Y9Lz9s9G for ; Sat, 21 Jul 2018 01:26:53 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387732AbeGTQP1 (ORCPT ); Fri, 20 Jul 2018 12:15:27 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40604 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731678AbeGTQP0 (ORCPT ); Fri, 20 Jul 2018 12:15:26 -0400 Received: by mail-wm0-f66.google.com with SMTP id z13-v6so10206773wma.5 for ; Fri, 20 Jul 2018 08:26:38 -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; bh=9pWkYvO82DZ1ByhdduFL5lj1yKvcGUzRP13CjILYgJA=; b=bkDj+F6w6HNsRRHAUzF/6NHL+MFo2fzoVrGRXYXwXn3itbbqdD6To4o7/ulgGRKmg0 HSC8mBtyxyiTDz1H76AcZpIkwF/QT0m/h8qpOby1MC6/mRwXeUrsNShpOmyR5APnzRdG gCfcFolQ84S1gbMtkHxkC3EuCsWheA7sg3PEa4dBmZbY7J1JWlrzmiTrV5fZTVClEAVq kpQPuKJKemxJCAEUy8wXkdiRsLayk/j7uEEuiSyVYo1rCWvQqviMCNahxyK1M50GKbZj rQAjU7DdR1DZxfsDJpDk3IpevYm9VNS8G7bp07kc1qk1Xdw6fRsox5SuU7pc3asCSyfR Lnig== 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; bh=9pWkYvO82DZ1ByhdduFL5lj1yKvcGUzRP13CjILYgJA=; b=dWmpMlhhtGsoYyxi19CiY4Sae1mN1YUBd76qcMnuBIfww2BnlM8YaQGT0H6D5Sx+ts JSgBhAuxNx2tdEpMl2L+5I+HkFvDjQavHzgw/IzICCFHTF2I1qLkKMzdS9yEom9iCyWJ 0XS29BUL1I0OM3/4XaH9z1qvBvGaLCGb8YYz8O+pO2IwJHl2euAd4MAWHOAejzgLlG0r zULLsdNyvlwl19DpKM+B4K+ekUmwud13gtpTRlyJV6bfJIoMNdH0gWjFWgicXyh4+X3N PFkxVnI4d0l8dPseLvdeka17hrp3UpToX+U9ah65RuN68H2vIbcX1y4dgfJ1E2h3QGMd irUA== X-Gm-Message-State: AOUpUlGOfw4hViAwfo6knZwG4ifurcZ/DdnVkR7Gi/RgoomO7e0vJ9+/ 0H0quu6pQdiuHBcxrSvi7axXIg== X-Google-Smtp-Source: AAOMgpeGNGVOypV7rrEPGGhCVZskCiwTEWHpHePCVoQiaeXcq0u8SBO3eTsc1JOJRIlZhd0G84JGeQ== X-Received: by 2002:a1c:8291:: with SMTP id e139-v6mr1956587wmd.39.1532100397515; Fri, 20 Jul 2018 08:26:37 -0700 (PDT) Received: from boomer.baylibre.local (uluru.liltaz.com. [163.172.81.188]) by smtp.googlemail.com with ESMTPSA id j3-v6sm2910051wrt.70.2018.07.20.08.26.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jul 2018 08:26:36 -0700 (PDT) From: Jerome Brunet To: Philipp Zabel , Kevin Hilman , Carlo Caione Cc: Jerome Brunet , devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] reset: meson: add dt-bindings for meson-axg audio arb Date: Fri, 20 Jul 2018 17:26:32 +0200 Message-Id: <20180720152633.6227-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180720152633.6227-1-jbrunet@baylibre.com> References: <20180720152633.6227-1-jbrunet@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add dt-bindings for the audio memory arbiter found on Amlogic's A113 based SoCs Reviewed-by: Rob Herring Signed-off-by: Jerome Brunet --- .../bindings/reset/amlogic,meson-axg-audio-arb.txt | 21 +++++++++++++++++++++ .../dt-bindings/reset/amlogic,meson-axg-audio-arb.h | 17 +++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt create mode 100644 include/dt-bindings/reset/amlogic,meson-axg-audio-arb.h diff --git a/Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt b/Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt new file mode 100644 index 000000000000..26e542eb96df --- /dev/null +++ b/Documentation/devicetree/bindings/reset/amlogic,meson-axg-audio-arb.txt @@ -0,0 +1,21 @@ +* Amlogic audio memory arbiter controller + +The Amlogic Audio ARB is a simple device which enables or +disables the access of Audio FIFOs to DDR on AXG based SoC. + +Required properties: +- compatible: 'amlogic,meson-axg-audio-arb' +- reg: physical base address of the controller and length of memory + mapped region. +- clocks: phandle to the fifo peripheral clock provided by the audio + clock controller. +- #reset-cells: must be 1. + +Example on the A113 SoC: + +arb: reset-controller@280 { + compatible = "amlogic,meson-axg-audio-arb"; + reg = <0x0 0x280 0x0 0x4>; + #reset-cells = <1>; + clocks = <&clkc_audio AUD_CLKID_DDR_ARB>; +}; diff --git a/include/dt-bindings/reset/amlogic,meson-axg-audio-arb.h b/include/dt-bindings/reset/amlogic,meson-axg-audio-arb.h new file mode 100644 index 000000000000..05c36367875c --- /dev/null +++ b/include/dt-bindings/reset/amlogic,meson-axg-audio-arb.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: (GPL-2.0 OR MIT) + * + * Copyright (c) 2018 Baylibre SAS. + * Author: Jerome Brunet + */ + +#ifndef _DT_BINDINGS_AMLOGIC_MESON_AXG_AUDIO_ARB_H +#define _DT_BINDINGS_AMLOGIC_MESON_AXG_AUDIO_ARB_H + +#define AXG_ARB_TODDR_A 0 +#define AXG_ARB_TODDR_B 1 +#define AXG_ARB_TODDR_C 2 +#define AXG_ARB_FRDDR_A 3 +#define AXG_ARB_FRDDR_B 4 +#define AXG_ARB_FRDDR_C 5 + +#endif /* _DT_BINDINGS_AMLOGIC_MESON_AXG_AUDIO_ARB_H */