Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2120406rwp; Fri, 14 Jul 2023 00:40:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlEO9lHFr0/iWN0N43WRO+3dGr0rd8ksNe4iK6/Fw7FvpWNjq8aoSF16z8zK67K7ntphT70o X-Received: by 2002:a92:d06:0:b0:347:6b30:5bd3 with SMTP id 6-20020a920d06000000b003476b305bd3mr3725982iln.13.1689320444821; Fri, 14 Jul 2023 00:40:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689320444; cv=none; d=google.com; s=arc-20160816; b=edJ5WOuHpsv+AGauZGv3ZIfneZSRhinMnEomA0MQ4ZuQOV57jbinqlzl5tomXEMmo1 6o1W4kl/Qt6poVPYb63bcA3GW8gxpInrH+3zKL4BXlTsX4T36Xs/dsBofex/e+d/0PoA hfEoG1UV8mk7k8HbOrrD9MLOAMniWRnULQuQzqQpsr7fISqNbO6WW0uv1ExoU5E3yrLI IC6CCDzB7CZcA3WtKQPR+s7jl6fXX7nuuQw1YedrrHPxh+6G+IE77Ovf7G1fI2Sj4jFi TGpegKjfcyZ9jzZJWwaT0k6jQHYv87MIphL86A9dg9BOspNrjJKM6ClyMUMy6yE0dIWS WQPQ== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=dB3jgrP/aEvvin3F+NvkwfJOvcgqj6qlCNy3YNOxMVA=; fh=RX+feC/kab6qeqB4KKV2dpP830SM6sk4eG1AOsBBE8I=; b=MJKm5PTE3ij2Ol/CoQohVhUIB8kfDrHkAreFjJAZgAQnois+XZ2VbAqtSPQOLV6tT3 sWbJX/9blALzLz8XZJpN7IeLNDJVexCvQOs4+ZomXa8xql1scP3Hu+urUf/O302b6T3C MbgIwgA3VYFZKqzSf6rRPZD4ckAYerThIBIihFvBAFHXhONYa955QUi6cW/+31AqNg8V 0g51N90sYkx56QQ9JUOQMXsBUpkUvqvwhdncUGGkB+zZFpw+Gi2y6SbWxCnNu27p7o6S Gm2m3IidA/RY/kWwH9D0W43PIcfzjQ4GXGjlMyRabHVh7KbIh+d/DXhMGNy5YVR5e/0Y /STQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c3-20020a17090ad90300b0025be6419478si807164pjv.92.2023.07.14.00.40.32; Fri, 14 Jul 2023 00:40:44 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235322AbjGNHPR (ORCPT + 99 others); Fri, 14 Jul 2023 03:15:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235307AbjGNHPN (ORCPT ); Fri, 14 Jul 2023 03:15:13 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CC4E30F2; Fri, 14 Jul 2023 00:15:05 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 2704924E31B; Fri, 14 Jul 2023 15:15:02 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 14 Jul 2023 15:15:02 +0800 Received: from [192.168.120.57] (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 14 Jul 2023 15:15:01 +0800 Message-ID: Date: Fri, 14 Jul 2023 15:14:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 2/3] dt-bindings: spi: constrain minItems of clocks and clock-names To: Rob Herring , Krzysztof Kozlowski CC: Mark Brown , , , , , Krzysztof Kozlowski , Conor Dooley , "Emil Renner Berthing" , Linus Walleij References: <20230713090015.127541-1-william.qiu@starfivetech.com> <20230713090015.127541-3-william.qiu@starfivetech.com> <20230713145724.GA3975811-robh@kernel.org> Content-Language: en-US From: William Qiu In-Reply-To: <20230713145724.GA3975811-robh@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 2023/7/13 22:57, Rob Herring wrote: > On Thu, Jul 13, 2023 at 02:39:19PM +0200, Krzysztof Kozlowski wrote: >> On 13/07/2023 14:28, Mark Brown wrote: >> > On Thu, Jul 13, 2023 at 05:00:14PM +0800, William Qiu wrote: >> > >> >> The SPI controller only need apb_pclk clock to work properly on JH7110 SoC, >> >> so there add minItems whose value is equal to 1. Other platforms do not >> >> have this constraint. >> > >> > Presumably this means that this is some variant of the usual pl022 IP, >> >> Hm, in such case this could mean we need dedicated compatible. > > Except the vendor in the ID registers should be different if the IP is > modified. > > I suspect that PCLK and SSPCLK are tied to the same clock source. There > must be an SSPCLK because that is the one used to clock the SPI bus and > we need to know the frequency of it. > > Rob After communicating with colleagues in SoC FE, I learned that PCLK and SSPCLK were homologous on JH7110. He said that SSPCLK would divide the frequency internally anyway, and there was no need for external part frequency, so he directly gave them together. So, should I call this clock ssp_apb or keep it SSPCLK? Best regards, William