Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5207666rwl; Tue, 21 Mar 2023 15:20:03 -0700 (PDT) X-Google-Smtp-Source: AK7set8hGnYNt72LaAqFFx6bBPgt7oUAo/3v2nBJQrJAUunCfiPzdxeu+qKbO0otULhYtJn4glzB X-Received: by 2002:a05:6a20:841c:b0:d7:19b3:a9bd with SMTP id c28-20020a056a20841c00b000d719b3a9bdmr5517976pzd.4.1679437202935; Tue, 21 Mar 2023 15:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679437202; cv=none; d=google.com; s=arc-20160816; b=SwdZLgzBr2W96hG1DmykORZz0+QM1hH87wjOHq3GT/QsULIEHfLp8W6NKC60rhb6Rd wY0XvhUXX8cx7FFd+q8nM2MCcT8n81UWiERHhJl7b+gd6/evOYLzf9Xs340pjX3cmS1j qsdQSJFiDTJzofKUy8SEciYvBY+w6DHU/laFSYHtirSj+kZNfh75xxatePrXK/eaUw+l KtLBqsCbXHCqjXF1VekFkndo3HGpsK0PYiFb1xr5pTVbrxrRrgD+/+TeKgoiE8PP2G5y L0SMyF0VnhO15Crz3WVy5v4AxoBU3/S2yolarAx5NCmD9iJCQ5bSP7O5cSYERbQTXhJd oUCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PgT8vls4hh33J9msm1OhhnWu9ZRUnj1Q8H8sA1kcql4=; b=gCurIYZdEkarbiFFM66mpy/qDISabtlEr4dTHBUAAXilkQerFoeRSgEf+cTR497wPm k6kpA0TagAkHg08BP0JSpqGtC+H1JbHc+DrkAixlp8R2S8gw2WWuUUuloMnsUe9mf9VA AL0ikarE5D78YdkgJxTmfUxmK3j+eJCpqBpWoE849NpuXwGtGUk8ZNYvl2wAK5MOFYoD k9oWq4DEReAkaHoRzOc3E/JZBBEZxVpBQJJxEdA8uJ3KVSt7SgNkZGmZtO5wscJOnvDM kDStPS8KebTLjfgIEAuhURpX4aOy90zYs3ijgtahmG5e29oIKXgtTLuBNfrFQczzxZn+ Htaw== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q85-20020a632a58000000b0050f818e900dsi6625924pgq.761.2023.03.21.15.19.36; Tue, 21 Mar 2023 15:20:02 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbjCUWSx (ORCPT + 99 others); Tue, 21 Mar 2023 18:18:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229565AbjCUWSk (ORCPT ); Tue, 21 Mar 2023 18:18:40 -0400 Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8EE81E5F7; Tue, 21 Mar 2023 15:18:39 -0700 (PDT) Received: by mail-ot1-f44.google.com with SMTP id 14-20020a9d010e000000b0069f1287f557so5029305otu.0; Tue, 21 Mar 2023 15:18:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679437119; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PgT8vls4hh33J9msm1OhhnWu9ZRUnj1Q8H8sA1kcql4=; b=2j1XzdhuJEgmIpJjAEjO4juWgUjZhnhG4F+vsFq4Fs1JeMUCW/eIwYloRHP/AEMz0Z DSbaIHp+FEKUml/nMMI2a4PtDFITbIrnwoKnAEIvqmdfzuuaq4VsUfDxcvQtQy1ZbGsG 63R7sdtvAe9EKhnn8/9smsw/wOTc3S2nBYEvfqeQL2yTY33aUz0xUgrZOyBvDK25fT/r KNxEHBLbbR301JfVDIXL70UN8H/NL3L87CfL8GyuBkToo8GR9jLFSoLAZOcHFY2qCVgl hzAAtgUpR98UTWx8PQLlFMfAFoFyFCRGPhvVRCUPLzoFUwN0AvHjr/5Rjt+8/1EtcYpP 9Pmg== X-Gm-Message-State: AO0yUKXR0S0IIES71tHon3po1bVdBnW68dLLeg+Fy7kUwJr/g7S6555+ G3xQ37Lf63xXO9h0C3fdWguzAKU2Lg== X-Received: by 2002:a9d:3f6:0:b0:693:c3bb:8392 with SMTP id f109-20020a9d03f6000000b00693c3bb8392mr74660otf.7.1679437119170; Tue, 21 Mar 2023 15:18:39 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id q204-20020a4a33d5000000b0053853156b5csm5163244ooq.8.2023.03.21.15.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 15:18:38 -0700 (PDT) Received: (nullmailer pid 1764639 invoked by uid 1000); Tue, 21 Mar 2023 22:18:37 -0000 Date: Tue, 21 Mar 2023 17:18:37 -0500 From: Rob Herring To: =?utf-8?B?QXLEsW7DpyDDnE5BTA==?= Cc: Sergio Paracuellos , Krzysztof Kozlowski , linux-clk@vger.kernel.org, linux-mips@vger.kernel.org, tsbogend@alpha.franken.de, john@phrozen.org, linux-kernel@vger.kernel.org, p.zabel@pengutronix.de, mturquette@baylibre.com, sboyd@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, devicetree@vger.kernel.org Subject: Re: [PATCH v2 1/9] dt-bindings: clock: add mtmips SoCs system controller Message-ID: <20230321221837.GA1751474-robh@kernel.org> References: <20230321050034.1431379-1-sergio.paracuellos@gmail.com> <20230321050034.1431379-2-sergio.paracuellos@gmail.com> <5f295438-8334-d374-2ae6-2a385ffb317d@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=0.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 Tue, Mar 21, 2023 at 10:09:59AM +0300, Arınç ÜNAL wrote: > On 21.03.2023 10:00, Sergio Paracuellos wrote: > > On Tue, Mar 21, 2023 at 7:45 AM Krzysztof Kozlowski > > wrote: > > > > > > On 21/03/2023 06:00, Sergio Paracuellos wrote: > > > > Adds device tree binding documentation for system controller node present > > > > in Mediatek MIPS and Ralink SOCs. This node is a clock and reset provider > > > > for the rest of the world. This covers RT2880, RT3050, RT3052, RT3350, > > > > RT3883, RT5350, MT7620, MT7628 and MT7688 SoCs. > > > > > > > > Signed-off-by: Sergio Paracuellos > > > > --- > > > > .../bindings/clock/mediatek,mtmips-sysc.yaml | 65 +++++++++++++++++++ > > > > 1 file changed, 65 insertions(+) > > > > create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml > > > > > > > > diff --git a/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml > > > > new file mode 100644 > > > > index 000000000000..f07e1652723b > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/clock/mediatek,mtmips-sysc.yaml > > > > @@ -0,0 +1,65 @@ > > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > > +%YAML 1.2 > > > > +--- > > > > +$id: http://devicetree.org/schemas/clock/mediatek,mtmips-sysc.yaml# > > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > > + > > > > +title: MTMIPS SoCs System Controller > > > > + > > > > +maintainers: > > > > + - Sergio Paracuellos > > > > + > > > > +description: | > > > > + MediaTek MIPS and Ralink SoCs provides a system controller to allow > > > > + to access to system control registers. These registers include clock > > > > + and reset related ones so this node is both clock and reset provider > > > > + for the rest of the world. > > > > + > > > > + These SoCs have an XTAL from where the cpu clock is > > > > + provided as well as derived clocks for the bus and the peripherals. > > > > + > > > > +properties: > > > > + compatible: > > > > + items: > > > > + - enum: > > > > + - ralink,mt7620-sysc > > > > > > Since you decided to send it before we finish discussion: > > > NAK - this is already used as mediatek > > > > Sorry, there was too much stuff commented so I preferred to clean up > > all of them while maintaining the compatibles with the ralink prefix > > instead since that was where the current discussion was at that point. > > > > > > > > > + - ralink,mt7620a-sysc > > > > As I have said, this one exists: > > > > arch/mips/ralink/mt7620.c: rt_sysc_membase = > > plat_of_remap_node("ralink,mt7620a-sysc"); > > > > > > > > + - ralink,mt7628-sysc > > > > > > Same here. > > > > > > > + - ralink,mt7688-sysc > > > > > > I expect you to check the others. > > > > I can change others to mediatek but that would be a bit weird, don't you think? > > I've seen some parts of the MTMIPS platform use mediatek compatible strings > thanks to Krzysztof pointing them out. I don't like having some parts of the > MTMIPS platform (pci, mmc, usbphy, etc.) with mediatek compatible string > while others are ralink. That's unfortunate, but again, compatibles are just unique identifiers. They are only wrong if they aren't unique... > Like Krzysztof said [0], Ralink is now Mediatek, thus there is no conflict > and no issues with different vendor used. So I'd rather keep new things > Ralink and gradually change these mediatek strings to ralink. So break the ABI multiple times slowly. Again, either you live with *all* the existing compatible strings or you declare it is fine to break the ABI on these platforms and switch everything at once. Carrying both strings (in bindings or drivers) and breaking the ABI is lose-lose. Rob