From patchwork Tue Jul 16 08:56:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayyan Ansari X-Patchwork-Id: 812839 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 63A465FEE6 for ; Tue, 16 Jul 2024 09:00:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721120458; cv=none; b=W7ZdjHVcPmWTnlfWDNd/cX0g42wMdP00OTeCPsWtyeZtirj4jfolvcvfvwRs7w2+7/d/6jZfNDyl4TaSWI419q0j+C9n/dEzPrjyhBDMTfzntjhKdtnf8umLDsafSaHo7FLL0kYBhlKZMhV6hB/iHLRQLi+A8Wri5si+MSd+L58= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721120458; c=relaxed/simple; bh=kMvlsHzy31bD+tkxP6TK51Gz+HLsC2XGrwhsJjRb0Zk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LEKHkXteCiQ8k+4O+QgUAd72U4dOugtmpIODG8/tnd4FSojR6VDDx30NGsFnDE/+PfZHztkFaCzKk6Oegxmcj8snltWFzl+9QbxuS2zON2GzY/2ZnHvCdH15sW2dKjpeieD8i2bSkCbbeR/RRfK1SdU6Ysc94b68+ig0o2BqdDg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=uQTSgASk; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="uQTSgASk" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-367818349a0so3072830f8f.1 for ; Tue, 16 Jul 2024 02:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721120455; x=1721725255; 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=xbEQC0Xl3QFDIRJBV+fNJ9ehNb0IYgGGn7Mg/g7ZnHg=; b=uQTSgASkkanR6sGNCo64lKk+9MMcRpt3fmr+Xf5EpaLjbCW9+b4hx2Mn6mXqN2O5VA cTiCNlEasOYOiuN6KE1QXrnGvYOmc7mCLh9b2A8ZJtrCU6Bw3UySFNx8Yfoo1lssDNnS riitucLqv2/akSD3RBaPx18fYE64DvmLh+664Y8VZE0LZEaqyDrudiTHkkx4vsDkFvbA rAilVdDmfOvvIBg5jJhvH7O/g3c4n3shpNS9p7WNCsREetE00D2GP89cSZwIj9I75YLC B6CinR+whGWJB8INTbDPBzlqGeUsHO1PcBeDR0RSm792ypmcwpRLDeRe8/gVsmz0qgur wV9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721120455; x=1721725255; 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=xbEQC0Xl3QFDIRJBV+fNJ9ehNb0IYgGGn7Mg/g7ZnHg=; b=RLiTblqG7hKryP6jgTY+wVkIcrOb5rzG+rZ6IJvh2t4howXiKKdv+XXCHAe0QXpvvA e8wG7po70gceBEZ36Ohlsn9PMBuV6oAH3dUZUSkAo9bq2a9/dnFbDgzZWeGMZbK8x6p7 QeBYY9HYKU+7JYCJJIA+V60yTCn5nFOSJmwBS9AYdGp5B2+t7YwMuYCHVxcSrcPOK7WI 3R/fzJvvlfs1zeDOGdpdn0sbt7g/LAT06REKme44Z5IEDkV+CkHlCXt4hWAYWzHpJ9Cq DFgB9/RxopP6i+ufviPmK0WrfnPBHSsJ4pNxEg4dTZ+U/LLgPcsJk9bqg3UlAxYxno6I xNcQ== X-Forwarded-Encrypted: i=1; AJvYcCWETqhjz+/DfGpLZAeqbP6NSJylnpUxh454DaciYvaq74JyHF8YjXu4aY4jQhFYJKxD9CmZpfnm7oTckkBRgRBwRFpRwUIuI7C9Ay5teQ== X-Gm-Message-State: AOJu0Yxpb2iiUAjxzgYoCisEc82FullBC+LRcicaiWWoibEnUMrR2arN E9yyPN5wlpP5ygSOh2D9NGuxjYSqVTb2ggU3yNvigSsufMYRPdeKLgm76reqj2Q= X-Google-Smtp-Source: AGHT+IG27clWzSV6W8iZaTI9YjO6zoit2okTMA2etw6G3YpXIOmBPezlqo50dPpTno+mPQIphFBs9Q== X-Received: by 2002:adf:fe46:0:b0:361:bcc5:2e26 with SMTP id ffacd0b85a97d-368260d4ceemr946401f8f.19.1721120454694; Tue, 16 Jul 2024 02:00:54 -0700 (PDT) Received: from rayyan-pc.broadband ([2a0a:ef40:ee7:2401:197d:e048:a80f:bc44]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3680daccbe9sm8325078f8f.59.2024.07.16.02.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jul 2024 02:00:54 -0700 (PDT) From: Rayyan Ansari To: devicetree@vger.kernel.org Cc: Rayyan Ansari , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dt-bindings: clock: qcom,qcs404-turingcc: convert to dtschema Date: Tue, 16 Jul 2024 09:56:20 +0100 Message-ID: <20240716085622.12182-2-rayyan.ansari@linaro.org> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Convert the bindings for the Turing Clock Controller on QCS404 from the old text format to yaml. Signed-off-by: Rayyan Ansari Acked-by: Conor Dooley --- v1 -> v2: rename file to compatible string, remove label in example dt, add acked-by tag v1: https://lore.kernel.org/all/20240715084313.14098-1-rayyan.ansari@linaro.org/ .../bindings/clock/qcom,qcs404-turingcc.yaml | 47 +++++++++++++++++++ .../bindings/clock/qcom,turingcc.txt | 19 -------- 2 files changed, 47 insertions(+), 19 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/qcom,qcs404-turingcc.yaml delete mode 100644 Documentation/devicetree/bindings/clock/qcom,turingcc.txt diff --git a/Documentation/devicetree/bindings/clock/qcom,qcs404-turingcc.yaml b/Documentation/devicetree/bindings/clock/qcom,qcs404-turingcc.yaml new file mode 100644 index 000000000000..033e010754a2 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/qcom,qcs404-turingcc.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/qcom,qcs404-turingcc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Turing Clock & Reset Controller on QCS404 + +maintainers: + - Bjorn Andersson + +properties: + compatible: + const: qcom,qcs404-turingcc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + '#clock-cells': + const: 1 + + '#reset-cells': + const: 1 + +required: + - compatible + - reg + - clocks + - '#clock-cells' + - '#reset-cells' + +additionalProperties: false + +examples: + - | + #include + clock-controller@800000 { + compatible = "qcom,qcs404-turingcc"; + reg = <0x00800000 0x30000>; + clocks = <&gcc GCC_CDSP_CFG_AHB_CLK>; + + #clock-cells = <1>; + #reset-cells = <1>; + }; diff --git a/Documentation/devicetree/bindings/clock/qcom,turingcc.txt b/Documentation/devicetree/bindings/clock/qcom,turingcc.txt deleted file mode 100644 index 126517de5f9a..000000000000 --- a/Documentation/devicetree/bindings/clock/qcom,turingcc.txt +++ /dev/null @@ -1,19 +0,0 @@ -Qualcomm Turing Clock & Reset Controller Binding ------------------------------------------------- - -Required properties : -- compatible: shall contain "qcom,qcs404-turingcc". -- reg: shall contain base register location and length. -- clocks: ahb clock for the TuringCC -- #clock-cells: from common clock binding, shall contain 1. -- #reset-cells: from common reset binding, shall contain 1. - -Example: - turingcc: clock-controller@800000 { - compatible = "qcom,qcs404-turingcc"; - reg = <0x00800000 0x30000>; - clocks = <&gcc GCC_CDSP_CFG_AHB_CLK>; - - #clock-cells = <1>; - #reset-cells = <1>; - };