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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C1A1C6379F for ; Sat, 18 Feb 2023 14:55:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbjBROzg (ORCPT ); Sat, 18 Feb 2023 09:55:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbjBROzb (ORCPT ); Sat, 18 Feb 2023 09:55:31 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEA1A18B2C for ; Sat, 18 Feb 2023 06:55:29 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id ec30so3336548edb.10 for ; Sat, 18 Feb 2023 06:55:29 -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=iVLRzXREQ+19fFs4Pc7mcjHjxtT7x8ggG7HENOjDxNg=; b=J/tvudzLLml7HurgL4Skxujt0BfWSAZikHpxyEzg/oLlKbA/7VrefQN0zhtzRtDRjM s7waRZc5aqFiLJ8X+8vN9JYZdYJDGPjP6SlsDwK9F5f67RZsbA52Ro6sG/vaFZmDND86 j12TsRgfN6rcd6YqkzsmjT5m33l22siYXjYlEPzQ8QtfXA5kZdOnlirO0toGRTts/s6D EpWSa1EaOm0h4bbjf8qu6fIitg4maKVxmj2NGyTKVs/LIT6GgFRlWefbRq8p0X68Hv78 XZ+4Uo4yDbuYYtrtEVmwywWtZKsXT2OYPyc+GkJAUI3YEWxQxr85H5oY89BGRCtRyAMU M3Sw== 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=iVLRzXREQ+19fFs4Pc7mcjHjxtT7x8ggG7HENOjDxNg=; b=H5QjF7Fk2HUdYB+Io4Vmd5p8w+r+6q6Oir/SU2SMXAr5aY0i2rGudihCH0jDJ8v8z9 xhBrH9f7me/RP/PoVJOI8KuD4e/LU+AXZ7tW0kLmh5mp4ZnfD7JFZOBby9kMasktJrMk SlO7yvzZyLtOB/Y8O8leHh1GLEhjJlGkapQF4K9/xKBchJ8+lAL7T/+mQJpywCKDFMfY rc/TmRDYM8valcir4sALsNphLYUbacp8Hun5yOVN+s3SVcfb7dJ7nxduf10KgnM1Jp3H OO9PJGvYVbGMXcsJVqOyEkS1LCgDbor9aw8QNJyAIeP/t8CXhIcya451quCyo8rWOC59 yi/Q== X-Gm-Message-State: AO0yUKVs7OqYKLyON6QveeAFbrnTdM2Xgqu0715q71xRaiHAExZDXoWe Wk7VKMvrr0YtyYOSr4OyAXf4YQ== X-Google-Smtp-Source: AK7set+o+3+5itFIzexy/ZcNCze7tMCBX9222/c9vkPLuQ7XzbbxCzFEcxKBDAOO5XZYry+Sq1kOWw== X-Received: by 2002:a17:907:98d2:b0:8b2:3eb6:8661 with SMTP id kd18-20020a17090798d200b008b23eb68661mr5633482ejc.8.1676732128340; Sat, 18 Feb 2023 06:55:28 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id lo10-20020a170906fa0a00b008b1550a289fsm3461187ejb.34.2023.02.18.06.55.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Feb 2023 06:55:27 -0800 (PST) Message-ID: Date: Sat, 18 Feb 2023 15:55:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v3 07/11] dt-bindings: clock: Add StarFive JH7110 system clock and reset generator Content-Language: en-US To: Conor Dooley Cc: Conor Dooley , Hal Feng , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Palmer Dabbelt , Rob Herring , Krzysztof Kozlowski , Stephen Boyd , Michael Turquette , Philipp Zabel , Emil Renner Berthing , linux-kernel@vger.kernel.org References: <5cf0fe71-fd17-fb28-c01e-28356081ba76@starfivetech.com> <68e61f28-daec-ce72-726a-1fffe8e94829@starfivetech.com> <41e4f293-99eb-f157-b4a9-3d00b15f4652@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/02/2023 12:17, Conor Dooley wrote: > Hey Krzysztof, > > On Sat, Feb 18, 2023 at 11:20:30AM +0100, Krzysztof Kozlowski wrote: >> On 17/02/2023 17:27, Conor Dooley wrote: >>> On Fri, Feb 17, 2023 at 04:47:48PM +0100, Krzysztof Kozlowski wrote: >>>> On 17/02/2023 14:32, Conor Dooley wrote: >>>>>>>> Yes, it is. >>>>>>> >>>>>>> Which would then make GMAC1 RGMII RX optional, rather than required? >>>>>> >>>>>> If thinking in this way, I must say yes, it is optional. But actually >>>>>> GMAC1 RGMII RX feeds gmac1_rx by default. >>>>>> For a mux, it usually works if you populate only one input to it. >>>>>> Does it mean all the other inputs are optional? And how can we define >>>>>> which input is required? >>>>> >>>>> I'm not sure, that is a question for Krzysztof and/or Rob. >>>> >>>> That's a long thread, please summarize what you ask. Otherwise I have no >>>> clue what is the question. >>> >>> Sorry. I tried to preserve the context of the conversation the last time >>> I cropped it so that things would be contained on one email. >>> >>> For me at least, I am wondering how you convey that out of a list of >>> clock inputs (for example a, b, c, d) that two of the clocks are inputs >>> to a mux and it is only required to provide one of the two (say b & c). > > You skipped this part which was what I was trying to ask you about. Yeah, I skipped a lot because there was one big thread with a question: what do you think? Sorry, I will not dig 8 emails thread to figure out which question is to me and which is not... > Do you know how to convey this situation, or is it even possible to > express those rules? oneOf: - clock-names: minItems: 3 items: - a - b - c - d - clock-names: items: - a - b - d or maybe: - clock-names: minItems: 3 items: - a - b - enum: [c, d] - d > >>>> Does the mux works correctly if clock input is not connected? I mean, >>>> are you now talking about real hardware or some simplification from SW >>>> point of view? >>> >>> I'm coming at this from an angle of "is a StarFive customer going to show >>> up with a devicetree containing dummy fixed-clocks to satisfy dtbs_check >>> because they opted to only populate one input to the mux". >>> I don't really care about implications for the driver, just about >>> whether the hardware allows for inputs to the mux to be left >>> un-populated. >> >> Whether hardware allows - not a question to me. > >> BTW, this is rather question coming from me... > > I don't understand what you mean by this, sorry. You said to a letter addressed to me "whether the hardware allows for ...". Why would you ask me about hardware I know nothing about? That was my question - I am asking - whether hardware allows it or not. Then write bindings depending on that. Best regards, Krzysztof