Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1169167ybz; Thu, 16 Apr 2020 04:19:13 -0700 (PDT) X-Google-Smtp-Source: APiQypLB9zOTUCxLfk0ngGEuSuWUAsOcLlMMfHSXzUWkcEk0ZzH81nHxcPBkQ78dTpHhOEn8Uzr1 X-Received: by 2002:a17:906:ca49:: with SMTP id jx9mr8859791ejb.246.1587035953729; Thu, 16 Apr 2020 04:19:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587035953; cv=none; d=google.com; s=arc-20160816; b=VxgAAV5UCAOfkcvS9MbjHr+42afr1DsrSvzZztSXzifNLmzXz4LvkU0lEZh5Qk3Dhi rL3p4bR8oHa4zDlJolAmO1YqY8zsrQLnDQQo9Z0xel8fM6lPfcwKxvLU2yGmWwAaWdxv OZ9DhDnppR7/B1Uls5CdjHJy1LuTYmaUfZ6btD+Tl1Pm7PsxpJCRKw19MCJL+qnWStJY dP00JKdKDyTfBIgkq4L2NtGFPaIQBJjtSKaudws2Mw260IG3Yyxe1JE2RfT50hjWhNyQ xJhNOISu18BFBCre07ll8m8NT1buXNi3RTNq5oT0EHpDXDSAwFRarz1zzfYpA6KOpisc hsXw== 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; bh=JDcOuxS5OaQCZqs3F/B6XDBmGG9pbKbciifinbpMi14=; b=iuKOrFTqrOHD0UmHfewd2LWSOHVCLQPI6tQrQ8ElvqCFmGOqFYmcHaxN2UDMhmnoSw 6TloJh9MfjhPUg1XuanEiOZzp91vOK4/2m2D9s1fvL5zz+BGy/zTSlLGN0WSDKdl8ADL axbixOe1IY99AfdQXXparpD9e6m2swn2DU76eINtPVGLTcUsZbMo9gkx+z5yRuAqdcC4 9b7dVL97cDRQbDGars6KWGLgtisPuezuhVda6u2jHhPLTkX+tcekSkVwxwn+yJqQyA1r DuGRaCaAnXs7C6mstLIjx0JXovK60yVsI9u1GbzLIwQze3rQrva2LxyVbX9a7o4udJ2l wlOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si12691408edt.338.2020.04.16.04.18.50; Thu, 16 Apr 2020 04:19:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2632817AbgDPLPR (ORCPT + 99 others); Thu, 16 Apr 2020 07:15:17 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:40531 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2506125AbgDPLKu (ORCPT ); Thu, 16 Apr 2020 07:10:50 -0400 Received: from mail-qt1-f172.google.com ([209.85.160.172]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MLz3X-1jgyo13MSv-00Hzkr; Thu, 16 Apr 2020 13:10:37 +0200 Received: by mail-qt1-f172.google.com with SMTP id q17so15700545qtp.4; Thu, 16 Apr 2020 04:10:36 -0700 (PDT) X-Gm-Message-State: AGi0Publh/6A1ywhzJFXljY1iei2ApTYHDxrHvtwIUqAcPAotF8yROQ+ q1xzUFVjdnNi5WJySQLFnyo1y1tIhKA9ehA3AL0= X-Received: by 2002:ac8:296f:: with SMTP id z44mr23735521qtz.18.1587035435488; Thu, 16 Apr 2020 04:10:35 -0700 (PDT) MIME-Version: 1.0 References: <1586937773-5836-1-git-send-email-abel.vesa@nxp.com> <1586937773-5836-12-git-send-email-abel.vesa@nxp.com> In-Reply-To: <1586937773-5836-12-git-send-email-abel.vesa@nxp.com> From: Arnd Bergmann Date: Thu, 16 Apr 2020 13:10:19 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 11/13] dt-bindings: reset: imx8mp: Add ids for audiomix reset To: Abel Vesa Cc: Lee Jones , Shawn Guo , Peng Fan , Philipp Zabel , Stephen Boyd , Sascha Hauer , Anson Huang , Leonard Crestez , Jacky Bai , NXP Linux Team , Linux Kernel Mailing List , DTML , linux-clk , Linux ARM Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:KQ+T8D0HvWvxIDVOE8VSY51PYvng9yj5NHqSmIvlwfO7JKnO5+S SyTDOtWMwBqH30u7KqZszvunI9Gy+oOeWkYtwLBdTaoVQCdSD7tXPTMQQzfbflEEvyZljL4 sKUgxwAN5/T7NVY1qV1j8z56OGqu8ONaJTqgOuKExuA1TH9AYwj/eHnkQw/bKR8luJjhHVr 2PIG2FlBc9rAj+B8Ug9Ag== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:F6L9vopFEUo=:LqVBk8PtrZdoNV8X1XRXaz bNSd4Es1iOJgq+MB61ogStg0FrWUFWRzO53jNw0J8sI8VnHK01dInOk0/jzlAAdM0yLKQpvcP FP200WdBfSHjeewvHvJQP4ZwvBhGEcTfhN1/M1WmuxEYU6iEv0YB8yUprLxN4+h6awPn5e00y DDURCXpt2xe8miGl8Td3eLWMFu9dUxhd7b+MIbsZpzY2dG9t/MomCF0lV9zhO03cz0ZEU7n1L +OoASIpQkVflGCGRTJoAeAE76q3lZ5gmwbWpTrYaNXQlFHzjaDLwkHEVun6eemUupm3INKqWu AVN/I5vOk7kjsUEgO4CFn2RVGeY8sPHnswV5kt9jD6v+7bBoGO09tbpFJxiAp3GpNURmo9VFV 72US6hNy46Ngmv4yje+qytpO8PBfOpphu8Qg7Pnw1K+2CBcq7u0w5Uq3ZavN+jaYJFnzAqdxD fZMlVQHsioUibV/RF7syAR5lSGyo/mUC+TzrFZDqXVeUUVMUG9stQ/wOR8ACD4zr6pJQUOWaR ORadF8TzZHqPXYiYVcrxwnJkc8rkz11nub2q2Rfz6TzESWptjf4EpscRPyFv5Qlw/og+ixiIQ 9Tk4MINlJTS23ogvmD0SfnUHELS5PPBEv4gFFpKugpDNFh9LaCAtO/gzL+kly2+8zzJcCtrL2 s/gQVITXhCYPPJcN1WZpDPKu/ID1tuRzgQ4vKWREpoBVx0NqrN86tZEY24GLQ3HzaBL9/9BjW RtbOAR7/KruHaCn2R8gYSzXZRC4KWBt7F4haW2zsY6abTv6CkpS4FXSR2AhDitTCGclgmRl4G G+ib1vdnPUFJi2E3cUIoRzmlgsMaiKqLAuvtc8shbSEGKYAKec= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 10:04 AM Abel Vesa wrote: > > Add all the reset ids for the audiomix reset. > > Signed-off-by: Abel Vesa > --- > include/dt-bindings/reset/imx-audiomix-reset.h | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > create mode 100644 include/dt-bindings/reset/imx-audiomix-reset.h > > diff --git a/include/dt-bindings/reset/imx-audiomix-reset.h b/include/dt-bindings/reset/imx-audiomix-reset.h > new file mode 100644 > index 00000000..67392c3 > --- /dev/null > +++ b/include/dt-bindings/reset/imx-audiomix-reset.h > @@ -0,0 +1,15 @@ > +// SPDX-License-Identifier: GPL-2.0-only > +/* > + * Copyright 2019 NXP. > + */ > + > +#ifndef DT_BINDING_RESET_IMX_AUDIOMIX_H > +#define DT_BINDING_RESET_IMX_AUDIOMIX_H > + > +#define IMX_AUDIOMIX_EARC_RESET 0x0 > +#define IMX_AUDIOMIX_EARC_PHY_RESET 0x1 > + > +#define IMX_AUDIOMIX_RESET_NUM 2 > + This list doesn't seem necessary, as the number you pass ends up simply being the bit index in a single register. In a case like this you should better not have macros at all, those are only needed when there is no easy way to the numbers in the DT into something the driver can make sense of. Arnd