From patchwork Wed Jul 10 16:25:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 13729476 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0BBCC191F8E for ; Wed, 10 Jul 2024 16:25:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720628742; cv=none; b=YCN6s3DZBvNOQy1JS/geZIqV06V1hUPHayA1/CxPZkYNSbeFRAT2uIQIeH86ZxlpUqLUxbrMhmYU+0kvX/U70pr4I4logTDp8ZQJ8orEGKXkifbk9wkhgVe2kqN6nz+j4sVP83rujCsYgm7mUQcpARXJY7+WQMFvXAc99W51N+o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720628742; c=relaxed/simple; bh=VDMzQNyBWvaX+LyDfnYeOkaGvtcpUr0lK9oczG4+IGs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fxWapTGpy3dY+SKvAyHi4QAiUFxLvAd8cUtQc1PisGTaAIK6slY840eNIUnYOJWWiRmpUx9FUjiKfBFFnlYhUEYDSCRI708YWCzIdIxhmXHKD5igliNKsHY0XoRwOy4fuYtWmRZQ+AtWfs4wHwbie6MXQQbMsmZ+DcC53b/H8Fk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=WGtZpZHg; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="WGtZpZHg" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-42793fc0a6dso6123715e9.0 for ; Wed, 10 Jul 2024 09:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1720628737; x=1721233537; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Itoi30as1ngZorM3ajNlP04W8GNqyHTX6dO5FHlioKM=; b=WGtZpZHg58HdTTXE8YKlB9nSMP8md21+j9dJNy8OCM9dfiCC3Ve3dB2du/E7ObhIDA x31ol+LiPu7uyGxzM4rXhlqTG2Cb8qFHGbc6si24XD7t5OOxRV9i/565fCoQO1+E0Zzx o55uv+BIos1YSZCjDv7okJWaUTvPETSim12nKH1w+q4A1ddGopDG91YnW85rJXvAl13k ZyutIGhYRAUKGD0tMjJx+1wCtCRJ+kCwmUa1iMbm0DOWaBKY+3xWVO64zekjsLssTg5z jMNUrqWRyqBlAtI3dlAN7x9lqWXzqJ7zK3MJpyhwNYIKyg0a5XgC4Qy59tMdIINJXtk6 RbVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720628737; x=1721233537; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Itoi30as1ngZorM3ajNlP04W8GNqyHTX6dO5FHlioKM=; b=nFJmdDy0uyns9ppUnVNX2nd17hAszBhUUtooa44Y1SXYxFsJKLYMtThvA9yaKM1A59 qBHXj+i+/1fPUBxYPfqn+K3cj5kEA+M8Q45x1NOww22jNEJWD7hk57iI0k+ThD3zqgB6 wjVKJTRAhA5ywtEbIWlxlkficmJ/3JezLJdnh0pGEWv/czRBnzemPkDUcGPYaKZYLIY4 FrdA0LKWM9SrulkKrZLHhktrsSAnq+A3vhVT0JYR6mQ1rzIskf+Ew+23dgfrO9rqhkTK oJPcDuJ2nKsF4WTDz0JAsHVjwFYQseHl9/va6tqbY5qyY0pgCth4SbMG0oSl6Ycr9RkR MGdA== X-Forwarded-Encrypted: i=1; AJvYcCWPZUIjTCsrYj5gQ+GPjfBamFRLeR/h7ORdmADFk7DUutmGOQi3sNj35nAhiN8NehggQzcKg2KHyYq24/owTzQaY88/IwgsZuWP X-Gm-Message-State: AOJu0YwuNG/2Q1oOSDKNhAz7nC/RXSGV5Ju04s0qjTklbFU6V2ZCV+JJ +rfE/a332abelTMe9lX4usyg2b8CxKoKGgTAai8SYOeHSmJGmAc1Gm0EhZw7jr/dt/Tre3vrjdB slzs= X-Google-Smtp-Source: AGHT+IE1axe6GsiYtkMrCX2P5tM+A5QO04JhIFS46IYKujHwCFH8Z6rIpT9i8hI5EvL/mtX58GBxMg== X-Received: by 2002:a05:600c:3ba9:b0:426:647b:1bf7 with SMTP id 5b1f17b1804b1-426708f151bmr40115925e9.32.1720628737303; Wed, 10 Jul 2024 09:25:37 -0700 (PDT) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:1c99:6356:8466:36cf]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4266f6e09e5sm88693815e9.5.2024.07.10.09.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jul 2024 09:25:36 -0700 (PDT) From: Jerome Brunet To: Philipp Zabel , Stephen Boyd , Neil Armstrong Cc: Jerome Brunet , Jan Dakinevich , linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 0/8] reset: amlogic: move audio reset drivers out of CCF Date: Wed, 10 Jul 2024 18:25:09 +0200 Message-ID: <20240710162526.2341399-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Bot: notify This patchset follows the discussion about having reset driver in the clock tree [1]. Ideally those should reside in the reset part of tree. Also the code of the amlogic reset driver is very similar between the 2 trees and could use the same driver code. This patchset moves the reset driver of audio clock controller of the g12 and sm1 SoC family to the reset tree, using the auxiliary bus. The infrastructure put in place is meant to be generic enough so we may eventually also move the reset drivers in the meson8b and aoclk clock controllers. Change since RFC [2]: * Move the aux registration helper out of clock too. [1] https://lore.kernel.org/linux-clk/e3a85852b911fdf16dd9ae158f42b3ef.sboyd@kernel.org [2] https://lore.kernel.org/linux-clk/20240516150842.705844-1-jbrunet@baylibre.com Jerome Brunet (8): reset: amlogic: convert driver to regmap reset: amlogic: add driver parameters reset: amlogic: split the device and platform probe reset: amlogic: use reset number instead of register count reset: amlogic: add reset status support reset: amlogic: add toggle reset support reset: amlogic: add auxiliary reset driver support clk: amlogic: axg-audio: use the auxiliary reset driver drivers/clk/meson/Kconfig | 1 + drivers/clk/meson/axg-audio.c | 109 +------- drivers/reset/Kconfig | 1 + drivers/reset/reset-meson.c | 285 ++++++++++++++++---- include/soc/amlogic/meson-auxiliary-reset.h | 23 ++ 5 files changed, 271 insertions(+), 148 deletions(-) create mode 100644 include/soc/amlogic/meson-auxiliary-reset.h