Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp647238lqs; Fri, 14 Jun 2024 01:00:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMbP1NSJw5LI1TwTBDbHJO9pEqjW2U9F/0abmOgxI1Jx9DxgOVUUgb8sxSA5bt85UOIJpuZwD1f4tCr36Twp23eLJPwi7cVKdIq1/msw== X-Google-Smtp-Source: AGHT+IHc//EDGiCqPK350l4Egk4iZedEBsFU9ImCDN8cZU95TFHm6eO428SnREJ27e2yTWNiwudg X-Received: by 2002:a2e:a98c:0:b0:2ec:1613:a2a with SMTP id 38308e7fff4ca-2ec16130a5dmr11117241fa.42.1718352018899; Fri, 14 Jun 2024 01:00:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718352018; cv=pass; d=google.com; s=arc-20160816; b=a5d2zYhfAAyrG/75tR18ysviYjUp89D9AbN8g3tkyCbsnyM0hRg6ikvXw6+nkoTvmq HBcLo7WymUFnx7bEa32fKeixUiua7uxyKCWLleYszo/nfMjwJo6t/bR17fmiTgyd8Eii WLwlYwqG1fK7zBVpjdjgnn9IqixlPyjkyvFDLnJaMMmoBKouiZN2lUYmG/PSgg58L2wr eZz/mJWp4OzVGUqsD5dGt5e7pIkWUO5GVt7dArLsvw/kymQbaUsRTpA1Jl7VReT0BTgo rNJ7hvGHnYZeuK/XJG8D+KF1I03U0Oo3CDeNxo4eWSsgq++FZstzOJOFviM4Uf08tse+ p7Xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:to:from; bh=NjtNw4n/KcZzZh6VgXNblqElAVz8KVDbLmZ9jce063E=; fh=hlaO54Y51C9KJIZLtE98iv/ncrPmJ9RabI5lLtWETi8=; b=HeL72NujMRXzzvo7LTdOfme6MIRL8BUVXyxhA6if0i6xQoB+jY2REJD4a2Bbwz5iQl jPyEjfBWs9eFameygytc2/7aWNOqAyWRF1RAC21fUK549SqA8wlQ2Z/lFL/6z0sdOjuN nxsrbQZ7psi5G1cb1S6uC14purX56AFn44uquDMopMNV6MDSDoQ5TpyE+twTc4n5dXHM k4fi49KyVDOGUwRGktlRFRVIshlAKQeeFebm71TSsMpoF51qfeHKTrs57qC8l3atRIbG WIjXxV0Pf9U8QRF7EmIX+xTEevssO1uMc+7qvQzX0M1mgp8x9z8gKyun1UIWQ9pUj+sm 1jeg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-214490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f61c96331si62859166b.421.2024.06.14.01.00.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 01:00:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-214490-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1A94F1F2616C for ; Fri, 14 Jun 2024 07:59:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83E6C18309D; Fri, 14 Jun 2024 07:59:16 +0000 (UTC) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F9C614A09F; Fri, 14 Jun 2024 07:59:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718351956; cv=none; b=WNgVNy+3fL/ZoK53iWN4PENEdzs6392pLgz357ZKEaWuiJZ5Ndn6N2l3c9ZwVdq2lF7Pxlqp+eyTyIpAIDNEU1Kcgq8yHN9ytNFggdjbB+NVknGbVSCkYniPJIGpwkbvABk7CTkzZRouBCWRZZvobYFZNRMdcw2R/DMcZuWPEFE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718351956; c=relaxed/simple; bh=UDi/xLchEAReJ8v4YHO8XkJpGZBWpDf54LawHbbLkwk=; h=From:To:Subject:Date:Message-Id; b=bKSoW8UYAT+ECGwZWr4NheI5aebppynGr0vJxdSjMHThwB2Scikr34gbMYCoW4ohn2vo3Ekq95pOneb1LoKUay8R4+2c/FXtAjhZ6BVtXCYgrez9EY8w1YC25ihSp9gJaCphDlF0VGV5/M0AIaBkhqaTV2MGyaQio1TOLJYAatQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; arc=none smtp.client-ip=92.121.34.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 382991A0599; Fri, 14 Jun 2024 09:59:07 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id ECEC01A184A; Fri, 14 Jun 2024 09:59:06 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 963EE180222F; Fri, 14 Jun 2024 15:59:03 +0800 (+08) From: Shengjiu Wang To: p.zabel@pengutronix.de, abelvesa@kernel.org, peng.fan@nxp.com, mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, marex@denx.de, linux-clk@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, shengjiu.wang@gmail.com Subject: [PATCH v8 0/5] clk: imx: clk-audiomix: Improvement for audiomix Date: Fri, 14 Jun 2024 15:41:58 +0800 Message-Id: <1718350923-21392-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Some improvement for audiomix driver: Add CLK_SET_RATE_PARENT flags for clocks Correct parent clock for earc_phy and audpll clocks. Add reset controller for EARC function, use the auxiliary device framework: https://lore.kernel.org/lkml/b86c83a520f0c45a60249468fa92b1de.sboyd@kernel.org/ changes in v8: - drop '_priv' and add 'to_imx8mp_audiomix_reset()' in reset-imx8mp-audiomix.c - update to 'select AUXILIARY_BUS if RESET_CONTROLLER' changes in v7: - add property "#reset-cells" exist check - change the reset driver to be specific for 8MP-audiomix remove the design for general usage. changes in v6: - fix type for "correct" - fix coding style for " * adev" changes in v5: - fix miss header issue reported by kernel test robot https://lore.kernel.org/oe-kbuild-all/202405201844.zf7UkDmq-lkp@intel.com/ - use scoped free changes in v4: - use auxiliary device framework for reset controller driver. - drop syscon and simple-mfd related changes in v3 changes in v3: - separate reset driver to driver/reset/ - add binding doc for reset driver. - modify imx8mp.dtsi accordingly changes in v2: - add more info in commit messages Shengjiu Wang (5): dt-bindings: clock: imx8mp: Add #reset-cells property clk: imx: clk-audiomix: Add reset controller reset: imx8mp-audiomix: Add AudioMix Block Control reset driver clk: imx: clk-audiomix: Add CLK_SET_RATE_PARENT flags for clocks clk: imx: clk-audiomix: Correct parent clock for earc_phy and audpll .../bindings/clock/imx8mp-audiomix.yaml | 3 + drivers/clk/imx/Kconfig | 1 + drivers/clk/imx/clk-imx8mp-audiomix.c | 86 +++++++++++++- drivers/reset/Kconfig | 8 ++ drivers/reset/Makefile | 1 + drivers/reset/reset-imx8mp-audiomix.c | 106 ++++++++++++++++++ 6 files changed, 199 insertions(+), 6 deletions(-) create mode 100644 drivers/reset/reset-imx8mp-audiomix.c -- 2.34.1