From patchwork Tue Apr 6 23:19:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 415948 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp4998382jai; Tue, 6 Apr 2021 16:19:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0n5f3o31+3MxiJy45WWOl4fl9zYP7f9KEr4ukBdXBTZUTCseqjBbNU/YYc5h1GCVBqHYg X-Received: by 2002:a05:6e02:1522:: with SMTP id i2mr523850ilu.252.1617751158967; Tue, 06 Apr 2021 16:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617751158; cv=none; d=google.com; s=arc-20160816; b=SUlO5U9mVPmUkw3xCbN/+vtjuZUqEO8/d1F6lEU7Wa1jaWnyxKXJ1EfVMIFEvzFwvf CKkx7PluaIxxFEObY1wl68o3tyZg8yC7rFv3TXJ2YVQQ2sl7Hcr/u38wHqORRb0M11nh yUoTQUiKXXwey1kqVgP86KmZI22ta2GNoHMOIb6pogRFoABDWnOFnDyo/unR7/ryFDSe EqdhvNQskoqSi6Gayf3qfaywfXYl1i2uOgeiTCKMkH2rbb0P1g3N00rlZ7aWtVlinEgi zNfDr9W5GJcY9Y8YKZN4hzTg9haB2v96gQg5X91daGAsIbdvS7PC8ZqUJTQ6x5rNTYW1 DMjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=An90/BURB2tY8YsEOev/snpm4gJka+Hd4KI5AsNMlV0=; b=BAqfowcR1lg+8PBzvBMsoj5yPSGz4lyk8RT5kMf3JYeeKwB7W5jbnZ/x7L6gb1iA9Y t4s028DXbEhIcyqv2k/RLBjUJrRFh+HlMFQIU8bBjQIz+W6jnLPuwYB7IxF2w5CCxyKq b7SCoVMUP3N1Wv7XCynpoJAwjWuvGn/0iVvf6iiBAm7LSj0kMhYx1Fn5hwl7+I5q6Np/ y9Zz35JC5JoQYCqjDMUZVNwQg7btB8UOLTvV7ZtV4vVAhjQAw4lmqjate1ox+Kyu8TvE q+i+yE++5R8NoYVy2bEm7JtEMtONiO1k2QGHXctAl8ayoEsbe4ZLQJZnfDPsMAjPjP+I lIKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oQLU6JtI; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si20043348jal.2.2021.04.06.16.19.18; Tue, 06 Apr 2021 16:19:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oQLU6JtI; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242877AbhDFXTX (ORCPT + 17 others); Tue, 6 Apr 2021 19:19:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244298AbhDFXTW (ORCPT ); Tue, 6 Apr 2021 19:19:22 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6DE5C061756 for ; Tue, 6 Apr 2021 16:19:12 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id z8so18370901ljm.12 for ; Tue, 06 Apr 2021 16:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=An90/BURB2tY8YsEOev/snpm4gJka+Hd4KI5AsNMlV0=; b=oQLU6JtI8mNCEZztqetDwYwjWY5yp9ByIeK4o9mrNGce+JWZk3uXkeR1XVxFYW0rTI fa8SFTzpeHykIvQ3+xREmkxSa9dKHg3nK2KpOAxsXInnef4sNo/I+nTl2hDUQAdCecRz TubCDfT9ynpzZCo6Mb9hE1wurSO9pa7anIXe5yZkkC6umCoc5vJ40nlyxjKXgjBs1/p0 XZ2ST1bkdNWMzY4Zoz/RMYMMz2f7rYM6FBy6O2eiVqMvY6ItIsgnRxCeCjlCGGGVF8qt rbs76zEaSuIDEl0JE6x4Dh5+cELDUs9fO5XjhvQhnbhLt92RJIRjiOO8L50uuvY5WTkT 2LlA== 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=An90/BURB2tY8YsEOev/snpm4gJka+Hd4KI5AsNMlV0=; b=i320RdRtE7+gR+T/ULH3r7e2evKXstOqADsZd5l4tS9DQWVlaVyp4icUm0pd2NeuQn D3zHNRacP8rViwxswJD+sMxnZ2ukg9PPJZBaWHs0yylYgrQ40mRSzLGQ+EHYUkM72Hz8 EtmawlqFqXHrqwra3lbsKyQx9iQY8AJUKd7u5NcNRGChk+28sED3Obe2oO+95JqTht9b grY6Wpp+J/BvKiikQ8V58NxZtAGDbjVoZPo1piditxu07aeBpC5HJVgUN6aHprgtZLMG hj5sTJ+xC3d84Tv5X5v1UPXj+qMUadkozutKaLGuyh/BdQX51mIJ9yvy+Fc7tz3e3IcN aAdA== X-Gm-Message-State: AOAM5334kRD7GZK7+bL1AaoKjDryqflrH6mzb2PKPIFkEFumhQ8ASLO+ usM+31f6BVLw5R+K/MQTUkA20g== X-Received: by 2002:a2e:9017:: with SMTP id h23mr244674ljg.473.1617751151284; Tue, 06 Apr 2021 16:19:11 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id u16sm2366565lja.48.2021.04.06.16.19.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 16:19:10 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Stephen Boyd , Michael Turquette Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH v2 0/4] clk: qcom: convert gcc-sdm845 to use platform data Date: Wed, 7 Apr 2021 02:19:05 +0300 Message-Id: <20210406231909.3035267-1-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Convert sdm845 global clock controller driver to use parent_data and parent_hws. Changes since v1: - Use ARRAY_SIZE() for num_parents and parent_hws instead of parent_data where applicable as suggested by Marijn Suijten. The following changes since commit a38fd8748464831584a19438cbb3082b5a2dab15: Linux 5.12-rc2 (2021-03-05 17:33:41 -0800) are available in the Git repository at: https://git.linaro.org/people/dmitry.baryshkov/kernel.git qcom-clk-gcc-sdm845 for you to fetch changes up to de97ca3ae44f478ea16a72de3c1dcec486ba2e45: arm64: dts: qcom: sdm845: add required clocks on the gcc (2021-04-05 21:39:29 +0300) ---------------------------------------------------------------- Dmitry Baryshkov (4): dt-bindings: clock: separate SDM845 GCC clock bindings clk: qcom: convert SDM845 Global Clock Controller to parent_data clk: qcom: gcc-sdm845: get rid of the test clock arm64: dts: qcom: sdm845: add required clocks on the gcc .../devicetree/bindings/clock/qcom,gcc-sdm845.yaml | 84 +++ .../devicetree/bindings/clock/qcom,gcc.yaml | 2 - arch/arm64/boot/dts/qcom/sdm845.dtsi | 12 + drivers/clk/qcom/gcc-sdm845.c | 650 ++++++++++----------- 4 files changed, 419 insertions(+), 329 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-sdm845.yaml