Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6660791rwl; Mon, 9 Jan 2023 11:11:52 -0800 (PST) X-Google-Smtp-Source: AMrXdXsfet00mm9FiA8Hnj7u3lKoBjhG7Dl8UZRtx+XKMxiy6ZSo5ZCGQdDcDQYWnN/BbyWlxb84 X-Received: by 2002:a05:6a20:d817:b0:af:745f:7838 with SMTP id iv23-20020a056a20d81700b000af745f7838mr92875109pzb.30.1673291512036; Mon, 09 Jan 2023 11:11:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673291512; cv=none; d=google.com; s=arc-20160816; b=XIjDY1U1vi0tlWzAtGabCEpIDoAQxAjgdjI1pcd5mOWXhyMhmaVAzEfX+HTjh4haAL T3TBxy3w+PBrVt9fQRFhQecc9+W9t4eGKLjtPTyek7gF8mWHeVxqusPdCwVwDK1AEeEa sAleN7jM/e1KIXgO6Ha2CCVgWl4LxbZmRVhk/jQaV8Tx5GMqyKSoFxC1HJZhDW1qSAFG 0BwDpePUlWMmaKOJ8y7TXtaPa6+NLg7V8twljEHrI0Erw8V2GvETRCeW7grvqCgIwo03 QTQbvri5J6TC7UZ7wtU+a/+Y3Vgz87fmPck+93D5aFahdcCu6Az0lnfHo2YVNjHe/cCT 1VDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=v9qTkdR1ZbLrR4uwBvG+cFHyG1RoSH8RVcKCF/fDWbI=; b=B5/rdYKJobhdlfd6obld0UWiZJFizFxj9WMJM1Dpplgbgad/UBO1IQpt4V+CuRFvhw kGAFS6cRzCkXIMlhq8zqKDpJcL5tRO8Vs9E0hkho+dVF/ZwWrajcPMk8SRS/cQ5O6U5p 8PHGpO+8Zvs+jxIDSXD6w8DMWMRzM66pvGTNr8vOPrjaqcYB7LR3SGxEuynW0jXxlmSZ L538H4y7TQrqpibhuWAvbmQpkGI2tIQs0HIdCeSZOLKIYAvpgs4t8aUFXPzkhcY9Xs3W 72n8+l9xYQKf+NDhLk+nvl44FtvvdmVchvaOFCZ7VOkdTWc53JqDk9JQLQ1qy4gLEms+ MFdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V76AE4eW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j64-20020a638043000000b0049fde0f046csi10055340pgd.430.2023.01.09.11.11.44; Mon, 09 Jan 2023 11:11:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V76AE4eW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S237358AbjAIST5 (ORCPT + 53 others); Mon, 9 Jan 2023 13:19:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237389AbjAIST2 (ORCPT ); Mon, 9 Jan 2023 13:19:28 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CBFE3E0DD for ; Mon, 9 Jan 2023 10:15:46 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id r2so9091794wrv.7 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=vmohD0UDPepXNtEMNSQD31FToXYkh75kns8QA8SUPzvuVDkTcigZl0GrlvZgdedTVi tqxjBPy4nmuCQpDkrnPKBcXKoFv8BiarCEHPSptdJsah3RQmEX93GvCitvS/lltM7e1K qN3lmruq3BRuf1/Q9BdRDAze4iGHGUBx28Xj/EXhweaSFTO5V/nxSv19NBgYHAX5J3GJ 266F9QTL8YCsQncZFBiMttfuroJeFa0veMPedZW0MasQbhnB1aO/sB14GH9nNeJwVGv1 KuzXsY55D3uT9mp+7MWTOyuNZ6MY0znPZxSKLTFhdhMiI3sAfT2lNfhywWaM4MzSt0HT d4hA== X-Gm-Message-State: AFqh2krtq9s7A88VXQveynNbdXVCLXJvV70eDN2umo7SPcSZd2868khT z84ULrc0ehlUMbZyGqWRKC9G3w== 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> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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