From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ABCC7C5479D for ; Mon, 9 Jan 2023 18:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UiNqPvtoEh68/L98ZP4J9zlscApGH+z/+xTuvxW0F2w=; b=FeaDnxsarasy6R jqo17qgwFVzRsmZXLSCUew4Mv0wHt8aurYsYRPf6+Y/AL/cAPeSbuU8kb7LtZOdtC7/EJiJAKU7Vy WyBNbAqRhU1VTNLIvj5ixQqIzVyNyOgt1YbAxrdrm3Xm3Txh0o/PZFmUR522hjqcld7Tpm8bqmWL3 VTZ4Vsh8qCAjSWRha509QFt4BYUVL6M5wqgpPL2e9JeQXMMzhXdABZOxv8E6ZrSdmKj/cDKH3LlmG KfBdu0EBGlUlqHYAzQodt6GpzDAoTMnF8jWRerttak7Xt+1u+yu0pJhVIVghXYgjb3x+JkOErBIen 5h9zRFFpGkKEIjV0xtfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEwn3-003FEl-M4; Mon, 09 Jan 2023 18:22:34 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pEwgX-003CXC-7Z for linux-arm-kernel@lists.infradead.org; Mon, 09 Jan 2023 18:15:51 +0000 Received: by mail-wr1-x42c.google.com with SMTP id z5so8034072wrt.6 for ; Mon, 09 Jan 2023 10:15:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=v9qTkdR1ZbLrR4uwBvG+cFHyG1RoSH8RVcKCF/fDWbI=; b=V76AE4eWGQ90qqROlfKX4/ESuAfJiI2v5hMmccYLnjlOLaeNUnE3Td+46exmFLMC3L OMUQtNbyNTbUULIFiHLTra24SgXPhINyJ/70m0PUHHB0/B5EB5DG6QmVvaamlkjHRcMx vZrVbN63DlV9JExrMxUPKTFjX+rCAULJL5/cwbzNzT5u0yHASk8djZ0ljR2wR+pYXrMZ k1wbc4YIUPTOzpqbJsKcvylGHYqJt9As6j2IlJ5l61xssvDVM+tjgTYl9ibK9cQ3Vjzj 2ZCklcwLtu7fbQXnOjLc/nof4HlswN5bPWFe8G2oXIrJvWJ1lMcdNM3beYJIwHPO9GVb Vh4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=v9qTkdR1ZbLrR4uwBvG+cFHyG1RoSH8RVcKCF/fDWbI=; b=UrewrY55iqyLylPF+N2wPqPEjtCvkbMkpUSFykcWy43mfHdRlZ1gkVlkq7q/QGkZNo 1vGl1bIswNU63YK3NZTWY/eBFjotlqkMogfTa5+uP9w6uvfnm0xH4Vqh2DOzqwrwRXpq rzD9tLkxeGIggcIfV4caWcqbrNcwpudQjJLO30M/gLXDIeyPz/Jx37+p1MVSmBCABidZ ZwfX0JksGqWtKloaVQ/oN496AHqq02j80xot6mOPCAtIaCzg53R/bsT59h9ppTRyjONL sOEwGe/ONZO3XZBo3mVZmDJ+8NWvPYGMd4QUVPJbMZqlmm6cI0h+G2N9spJUBGOqkOzN 7zUQ== X-Gm-Message-State: AFqh2kr0M12N/5u0UIWKw9WR1ulqXSG/NFOO8jaulp85yfJy8h2RlL55 OvM7eTBMjAplGc8ul/XrzKIoZg== X-Google-Smtp-Source: AMrXdXveSwRSuQjri9IyexgwZerG8NIbVoPfoHHq7+dNuHOkaLQbSfhwjMkmPoTXZxrUsBpdjGGVJg== X-Received: by 2002:a5d:61cd:0:b0:276:d6ba:4b91 with SMTP id q13-20020a5d61cd000000b00276d6ba4b91mr35478492wrv.47.1673288144839; Mon, 09 Jan 2023 10:15:44 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id f3-20020adfdb43000000b00236883f2f5csm9337086wrj.94.2023.01.09.10.15.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 09 Jan 2023 10:15:44 -0800 (PST) Message-ID: <46e70bb1-0745-ca77-856a-0e728b7c2c84@linaro.org> Date: Mon, 9 Jan 2023 19:15:40 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH 01/18] dt-bindings: clock: sa8775p: add bindings for Qualcomm gcc-sa8775p Content-Language: en-US To: Bartosz Golaszewski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Michael Turquette , Stephen Boyd , Georgi Djakov , Will Deacon , Robin Murphy , Joerg Roedel , Manivannan Sadhasivam , Jassi Brar , Linus Walleij , Catalin Marinas , Richard Cochran , Srinivas Kandagatla , Vinod Koul , Alex Elder Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, linux-gpio@vger.kernel.org, netdev@vger.kernel.org, Bartosz Golaszewski References: <20230109174511.1740856-1-brgl@bgdev.pl> <20230109174511.1740856-2-brgl@bgdev.pl> From: Krzysztof Kozlowski In-Reply-To: <20230109174511.1740856-2-brgl@bgdev.pl> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_101549_411200_B5A5D424 X-CRM114-Status: GOOD ( 19.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 09/01/2023 18:44, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Add DT bindings for the GCC clock on SA8775P platforms. Add relevant > DT include definitions as well. > > Signed-off-by: Bartosz Golaszewski > --- > .../bindings/clock/qcom,gcc-sa8775p.yaml | 77 +++++ Use name style like SM8550. > include/dt-bindings/clock/qcom,gcc-sa8775p.h | 320 ++++++++++++++++++ > 2 files changed, 397 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/qcom,gcc-sa8775p.yaml > create mode 100644 include/dt-bindings/clock/qcom,gcc-sa8775p.h > > diff --git a/Documentation/devicetree/bindings/clock/qcom,gcc-sa8775p.yaml b/Documentation/devicetree/bindings/clock/qcom,gcc-sa8775p.yaml > new file mode 100644 > index 000000000000..35d92d94495a > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/qcom,gcc-sa8775p.yaml > @@ -0,0 +1,77 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/qcom,gcc-sa8775p.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Global Clock & Reset Controller on sa8775p > + > +maintainers: > + - Bartosz Golaszewski > + > +description: | > + Qualcomm global clock control module provides the clocks, resets and > + power domains on sa8775p. > + > + See also:: include/dt-bindings/clock/qcom,gcc-sa8775p.h > + > +properties: > + compatible: > + const: qcom,gcc-sa8775p Here as well. > + > + clocks: > + items: > + - description: XO reference clock > + - description: Sleep clock > + - description: UFS memory first RX symbol clock > + - description: UFS memory second RX symbol clock > + - description: UFS memory first TX symbol clock > + - description: UFS card first RX symbol clock > + - description: UFS card second RX symbol clock > + - description: UFS card first TX symbol clock > + - description: Primary USB3 PHY wrapper pipe clock > + - description: Secondary USB3 PHY wrapper pipe clock > + - description: PCIe 0 pipe clock > + - description: PCIe 1 pipe clock > + - description: PCIe PHY clock > + - description: First EMAC controller reference clock > + - description: Second EMAC controller reference clock > + > + protected-clocks: > + maxItems: 240 > + > +required: > + - compatible > + - clocks > + > +allOf: > + - $ref: qcom,gcc.yaml# > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + gcc: clock-controller@100000 { > + compatible = "qcom,gcc-sa8775p"; > + reg = <0x100000 0xc7018>; > + #clock-cells = <1>; > + #reset-cells = <1>; > + #power-domain-cells = <1>; > + clocks = <&rpmhcc RPMH_CXO_CLK>, > + <&sleep_clk>, > + <0>, > + <0>, > + <0>, > + <0>, > + <0>, > + <0>, > + <0>, > + <0>, > + <&usb_0_ssphy>, > + <0>, > + <0>, > + <0>, > + <0>; All these should be real in example. > + }; > +... > diff --git a/include/dt-bindings/clock/qcom,gcc-sa8775p.h b/include/dt-bindings/clock/qcom,gcc-sa8775p.h > new file mode 100644 > index 000000000000..badc253379c9 > --- /dev/null > +++ b/include/dt-bindings/clock/qcom,gcc-sa8775p.h Filename needs adjustments. > @@ -0,0 +1,320 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ Dual license. > +/* > + * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. > + * Copyright (c) 2023, Linaro Limited > + */ Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel