From patchwork Tue Sep 24 15:33:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 174283 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp4307188ill; Tue, 24 Sep 2019 08:34:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFT20r65Ut8PnNy7yLEJyakXgZ87m5tQBLP/vHMFgYDSBhSzy34/ZukzcPqTCqqooNpBby X-Received: by 2002:a17:906:8319:: with SMTP id j25mr3141000ejx.122.1569339245933; Tue, 24 Sep 2019 08:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569339245; cv=none; d=google.com; s=arc-20160816; b=r38/51uU9go+Al6jFK6ll1gKBfOQ3XAYy4kndKBYaLjJ2En5YLWQ41lsSKIMz0QbKx 6ostm1cbSa6Skd66fV1qX45Q43v249u8CpjLCISxB3/aQf0PCFSbGzgKMhhTy1EgzlCw r4l7Zv8ShrMswZCTaS8A/RyqJxJumzlPj/JPkdztWsALdO6hI1Ma+EXMRrWSNNNsRm78 CORqQN6oLotk+V1l2h3OtwIzqasthuYnOmDyTfqKUIMilMIQ2hab+E2+4b2h/daEvDUG p4IB95dT2wkIzj+uqP0RSGIng9SkCTGTkoyEbBZRbf39YGGuSVxPtSnbnWoVF5a+9pUp hiKQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=BVrzY1NA5Ch72acoAjxkDHVhN4/WGgUil5qUxNRRH7o=; b=r0JSVNAckJ2KWL9wNk5zEV/NFeM9AMiMuX85Xe+cSd9rhoIBfWexKnCobLmY/X+fTu h5ya0I4P1qxNOiC+KwavNffDVdSEVZqKbdK/xfPhI9XrkkFlQ+HPElULrrbsK3uSKPM+ liyyTbFHkmuQfF686LcPqg443jBDtAFrIWC+Yc+IzqkbYi/M0FejHTBOIFla/u1YY+aE drdx50tKcaQ2PGzW9YmumhyRfN72AD0ygytuR2vOvDSwMbM+T3M8W+hjTP29yKkLgUNJ CQCk46KadzWi90gjsGK1DZ5ovp6lGxrI9GR1yKzou2Z8GCvXHGFfCutH3DPXLQA3zsvb aHOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=NEnONSEs; 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 r9si1052352eju.10.2019.09.24.08.34.05; Tue, 24 Sep 2019 08:34:05 -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=NEnONSEs; 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 S2389922AbfIXPeD (ORCPT + 26 others); Tue, 24 Sep 2019 11:34:03 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55582 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732698AbfIXPeD (ORCPT ); Tue, 24 Sep 2019 11:34:03 -0400 Received: by mail-wm1-f67.google.com with SMTP id a6so645093wma.5 for ; Tue, 24 Sep 2019 08:34:01 -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:mime-version :content-transfer-encoding; bh=BVrzY1NA5Ch72acoAjxkDHVhN4/WGgUil5qUxNRRH7o=; b=NEnONSEsVbr/P7iWXVn1NB30VoyNPibfxL6JPNvs+Wa+FQKgX+BO3sG/7Pa8Tj/kDN EWbfbmLeDMMldOVcGmotYrPvIhzOHm4WDIRcdKZZFY3pajkZuTNdja+qvr2Y7608OBwG uXD8s/aUhfMn1bX6+ciSPn5LtHzQV3067gUDCO7V0Ycx0Mj5KJX9p3mK14eVv7G96rT7 di/GeqkqnhNB/Nh6UFrsb5LA6XwcWZd/Rs4k+/YiQ9j/SzWlyqVSEUcGqVO2tOEDuWIa BAdKgEis7K5HslkRrMeXS6m4z7L8UjepywyoKpol17FoAXFe1c5zMYVeG1NG5e31Obh4 sTQA== 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:mime-version :content-transfer-encoding; bh=BVrzY1NA5Ch72acoAjxkDHVhN4/WGgUil5qUxNRRH7o=; b=qMW5ofbis/7iWdnTVsRjhq4utpQ2RC2o88TLNrlLJtopvGf9sRbPp51Y+R4DqWZrTf 4Im96aNh1er15Ac73VjdbVvP6iOa+/+3Gv8xTzloBQX3I89RfNDjyFZ6wzXnUP72JZLo r8SN7RLryrVTEdRErOclJ5KWrbQ1aZNY6XLSuf1LHxIq2cueBjVc36PmV6O5puTA/g3g AIEAPhm2o1rOQ5gQ4PWmrw3cd28AtZ8fqokuNo3zTHhxS2DYNubFOfTlHWbtIPaDE8tZ cC/rBXJnw3PiF22Y6eCaEMUD1GtKDWyYy7A+xRrCzEgRNzJAYxJIUzhJZpTrAZbFv4lC X4Jg== X-Gm-Message-State: APjAAAVJLeDXfpkxUjb4D4euyUwJt9HzTqfKnxv5PFfSHyNSIalLNZwK Uc0achyw5kdlSJ2E8HNOqWnVQg== X-Received: by 2002:a1c:f30b:: with SMTP id q11mr711033wmq.57.1569339240364; Tue, 24 Sep 2019 08:34:00 -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 d10sm144240wma.42.2019.09.24.08.33.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2019 08:33:59 -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 0/7] clk: meson: axg-audio: add sm1 support Date: Tue, 24 Sep 2019 17:33:49 +0200 Message-Id: <20190924153356.24103-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The purpose of this patchset is to add the sm1 support to the amlogic audio clock controller. The line count is lot higher than what I hoped for. Even if extremely similar, there is a shift in the register address on the sm1 which makes a bit of a mess. I could have patched the address on the fly if running on sm1 but the end result did not save much lines and would have been a pain to maintain and scale in the future Instead I choose to re-arrange the driver to share the macros and declare separate clocks for the clock which have changed. Jerome Brunet (7): dt-bindings: clk: axg-audio: add sm1 bindings dt-bindings: clock: meson: add sm1 resets to the axg-audio controller clk: meson: axg-audio: remove useless defines clk: meson: axg-audio: fix regmap last register clk: meson: axg-audio: prepare sm1 addition clk: meson: axg-audio: provide clk top signal name clk: meson: axg_audio: add sm1 support .../bindings/clock/amlogic,axg-audio-clkc.txt | 3 +- drivers/clk/meson/axg-audio.c | 2021 +++++++++++------ drivers/clk/meson/axg-audio.h | 21 +- include/dt-bindings/clock/axg-audio-clkc.h | 10 + .../reset/amlogic,meson-g12a-audio-reset.h | 15 + 5 files changed, 1373 insertions(+), 697 deletions(-) -- 2.21.0