Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6423662rwp; Mon, 17 Jul 2023 23:17:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlF/DvodeSOis7HqtwTx+h9KdBBSksL8yDWU9pkZqxcIFBHyItSdSuxZtLQdhIX2G6/WSRSp X-Received: by 2002:a17:906:6495:b0:994:1fee:3066 with SMTP id e21-20020a170906649500b009941fee3066mr12900373ejm.15.1689661050514; Mon, 17 Jul 2023 23:17:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689661050; cv=none; d=google.com; s=arc-20160816; b=0/nSFjFDQTUsx3g5M1HDeQk5fNyGCrZ06uOLyRGRa2Qqj89BiollUQR8Of8R+A0z9l XBt3dnHkEMoJIfB3AVwNwnBOv09VKX0wuYQkd1sXIyJdVtK5QetvuQaYIRp40hv7T84a MFsHy1olaJvm6YT6x9Z2fhFiLePk7EPXCUVE+u5JotSjYeIuxh42g6LutdzC8u7WXExw 9oniSwT9UiMxMi/7bj+Cz4IV3XeayuSAzw4iJaMb6wzaabioev4+Fhc24lUtUMiQ8Znx TBanfpCQWnGY/654X6zF3cfmfdudM7FIqsSMfHAvux3C5FMuOJpg4MAlvqpsLPmiWEub WUVA== 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=ksj+ikSkgFvqM5SgrnPcJxnizWmLdqpcPq6IpS0wGDg=; fh=HEW7XrNknVVvtpcMuaC6FsZxziCjW5qucEWSCcj7+BA=; b=imXVh4Qg7kP0LC+r+ha1tok1QubO8QHuGSOqlXGqfAvmuiB/m8IT5/eTK3Z4946TEM DfRp9VBwZK1ijBqhT8xMHLZ/N+a7mgFqLMlNWhvISIcQg2qd6IHSY9CKpS1D3RvIsIcw B9xrZFhwoJocPLZ+OdX/aIgNdfEHuG174E/qKtx9j1qO9Q1Vf5Vc11S8R20qC5CO3J3q r3SkN3sMVVeozKfB62Pl4IAoQyHfVCXJ253ta8DN3OUEdqDVQyu6qNCZoK1AR5+yPQmj 8A0iy6gkjNwF0dQzNK4fDbgXp71he87qn4ZwN68vm3am+c0evjilzJ7EpwthDfzitogY Rdjw== 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 h26-20020a17090619da00b0098e2edf7479si680741ejd.858.2023.07.17.23.17.06; Mon, 17 Jul 2023 23:17:30 -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 S230183AbjGRGGL (ORCPT + 99 others); Tue, 18 Jul 2023 02:06:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjGRGGK (ORCPT ); Tue, 18 Jul 2023 02:06:10 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50038A6; Mon, 17 Jul 2023 23:06:06 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id 0329224E20D; Tue, 18 Jul 2023 14:06:03 +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; Tue, 18 Jul 2023 14:06:03 +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; Tue, 18 Jul 2023 14:06:02 +0800 Message-ID: <6c53310c-1dc0-6623-369b-1a73fc8f63a5@starfivetech.com> Date: Tue, 18 Jul 2023 14:06:01 +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: Mark Brown CC: Rob Herring , Krzysztof Kozlowski , , , , , 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> <9891a7e3-0fce-4d05-8ead-3c0ed155d725@sirena.org.uk> Content-Language: en-US From: William Qiu In-Reply-To: <9891a7e3-0fce-4d05-8ead-3c0ed155d725@sirena.org.uk> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) 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_PASS,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/14 19:52, Mark Brown wrote: > On Fri, Jul 14, 2023 at 03:14:59PM +0800, William Qiu wrote: >> On 2023/7/13 22:57, Rob Herring wrote: > >> > 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. > >> 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? > > I'd expect this to be handled in the DTS for the SoC - connect both > clocks the binding requires to whatever the upstream clock is, it's not > clear to me that any binding change is required. You mean binding two clocks, with the same clock source? Then there is no need to modify YAML. Best regards, William