From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0EA06C04A68 for ; Thu, 28 Jul 2022 09:03:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lxgKmGmZ6dBr6m5M3zgj3tI3HXxk55vniPX5Po0Snhk=; b=BH8aRCYY4kI4PA syIExnPNEZ4sP37RxKr/mj2DCfmP+aO0IRaTPtUeQBws6Mzo7kRZ56duSj+8KY1ZaiC7c6HMH2qXH II+Bpl4WTGg8iabUtFigyTN41eBNuLxx9OlobU7YIiMkv3KxQ8LRU+DEvslJ6toxZ++I7pKJVjY9i JY1kNy5gcXYXMczda1QusvIJj0Hl8V2ycd3eQxLN5h81+OrNWcdcGd0SxnW2GmjDHGtwnr2xU7fNR ECcqzYg4mn/Zwyg+B+oDFigUQiQmUEhIurUtQLtDz9eiERD5uKr8pU8fTvLq+a7rvTRVjlhyRSvrw JLnrrPdufZSMWeftSmzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGzPh-0063bp-KA; Thu, 28 Jul 2022 09:02:38 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oGzPb-0063Xm-L8 for linux-arm-kernel@lists.infradead.org; Thu, 28 Jul 2022 09:02:33 +0000 Received: by mail-lj1-x230.google.com with SMTP id w16so820545ljh.3 for ; Thu, 28 Jul 2022 02:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=yfi+fc1Zb5qV2V2Wb3g8x7DGlXgAZj2Jvy0KQfSodWs=; b=BwyXq3EaFf0Zk/XqgsIyi1kp3V1mOAX5f18FjumLF+gccBiXx1HjsbONcMZ5QNMedw qBdvcDNoFoRD5ftiEAV8xn5QAfa+MrQPfJ5dU3yN5m22KH2s+nvoD0ht9nT6F7gXxPbc rPV85IBQZgWDggbXBX1wYRVVyjuT8+CafQDIc8dEt8L+vjvSOmAMfHsHgghhh0HDUQBL ZXOH0VMgtp6O4V0MCvEmE/QMXM7vxwkqlnz8I0mxwDBn0Te5PJBIKmBbUrGW9NT0PztB 0M/i+IHtl1GHGK/WLthwFQOgXtpIUX+BsN37ymtq6SByXSx+DmeQmgvatDFKdxCfxSoT Cadw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=yfi+fc1Zb5qV2V2Wb3g8x7DGlXgAZj2Jvy0KQfSodWs=; b=6bDx4CRbWCFew0LV9ZqsVx4ZnBW8J41HQnv/wJn0w1i8xA4XC7KAQ9bS5vvgUBjFy6 Q2xw8HzZpS4umwCGxkrbNHDlED0KGjZ/MQTLOM752t/25xWKsqa0tPm9Z0NrtZwWdi97 euQCIenPutzjE0qPXCEAFyqIuAm2EOF88WADZy8n367EV48k9DF5bzCzXk4Qa9j91/S5 ZcoiDYZU01M3SyydMRX+7JPskNVJLGSwUCRU0GB8/seBr/RZXG+/Odar9E0J1fCGxb1i 4O8Hjs20dwStTWjxdGVFKA5b2/cjaTtIgjSPkp+rZ/WHJfonRV+ESC8jUZd511dcGP5B i5xw== X-Gm-Message-State: AJIora+tAXGkjk7sWZow115qsoyJ2JcrMyv50UXdBssgs68i7y+kddVX 05TnaMNPBGTo8M8IyUltVzboBg== X-Google-Smtp-Source: AGRyM1uhBJjljnPuyZUlcYQa2GgWlNAIASCeOULAJ0BJ+SvIe68yj6eKdiqLW80f0YKUzSiOuu+4OQ== X-Received: by 2002:a2e:910d:0:b0:25d:f7e7:8cce with SMTP id m13-20020a2e910d000000b0025df7e78ccemr8115318ljg.252.1658998949558; Thu, 28 Jul 2022 02:02:29 -0700 (PDT) Received: from [192.168.3.197] (78-26-46-173.network.trollfjord.no. [78.26.46.173]) by smtp.gmail.com with ESMTPSA id l13-20020a19c20d000000b00489c6c76385sm97465lfc.268.2022.07.28.02.02.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jul 2022 02:02:29 -0700 (PDT) Message-ID: <367cf98b-ef06-8f44-76c8-9099a1ec13dc@linaro.org> Date: Thu, 28 Jul 2022 11:02:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH V2 1/3] dt-bindings: clk: meson: add S4 SoC clock controller bindings Content-Language: en-US To: Jerome Brunet , Yu Tu , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Neil Armstrong , Kevin Hilman , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Martin Blumenstingl References: <20220728054202.6981-1-yu.tu@amlogic.com> <20220728054202.6981-2-yu.tu@amlogic.com> <82e3fd36-df96-a555-4cea-47fabd26502b@linaro.org> <1jv8rhfw8h.fsf@starbuckisacylon.baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <1jv8rhfw8h.fsf@starbuckisacylon.baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220728_020231_740358_41215CDB X-CRM114-Status: GOOD ( 17.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 28/07/2022 10:50, Jerome Brunet wrote: > > On Thu 28 Jul 2022 at 10:41, Krzysztof Kozlowski wrote: > >> On 28/07/2022 07:42, Yu Tu wrote: >>> Add new clock controller compatible and dt-bindings header for the >>> Everything-Else domain of the S4 SoC. >>> >>> Signed-off-by: Yu Tu >> >> >> >>> diff --git a/MAINTAINERS b/MAINTAINERS >>> index c1abc53f9e91..f872d0c0c253 100644 >>> --- a/MAINTAINERS >>> +++ b/MAINTAINERS >>> @@ -1775,6 +1775,7 @@ F: Documentation/devicetree/bindings/clock/amlogic* >>> F: drivers/clk/meson/ >>> F: include/dt-bindings/clock/gxbb* >>> F: include/dt-bindings/clock/meson* >>> +F: include/dt-bindings/clock/s4-clkc.h >>> >>> ARM/Amlogic Meson SoC Crypto Drivers >>> M: Corentin Labbe >>> diff --git a/include/dt-bindings/clock/s4-clkc.h b/include/dt-bindings/clock/s4-clkc.h >>> new file mode 100644 >>> index 000000000000..b686c8877419 >>> --- /dev/null >>> +++ b/include/dt-bindings/clock/s4-clkc.h >> >> Filename with vendor prefix, so: >> amlogic,s4-clkc.h >> >>> @@ -0,0 +1,146 @@ >>> +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ >>> +/* >>> + * Copyright (c) 2021 Amlogic, Inc. All rights reserved. >>> + * Author: Yu Tu >>> + */ >>> + >>> +#ifndef _DT_BINDINGS_CLOCK_S4_CLKC_H >>> +#define _DT_BINDINGS_CLOCK_S4_CLKC_H >>> + >>> +/* >>> + * CLKID index values >>> + */ >>> + >>> +#define CLKID_FIXED_PLL 1 >>> +#define CLKID_FCLK_DIV2 3 >>> +#define CLKID_FCLK_DIV3 5 >>> +#define CLKID_FCLK_DIV4 7 >>> +#define CLKID_FCLK_DIV5 9 >>> +#define CLKID_FCLK_DIV7 11 >> >> Why these aren't continuous? IDs are expected to be incremented by 1. >> > > All clocks have IDs, it is one big table in the driver, but we are not exposing them all. > For example, with composite 'mux / div / gate' assembly, we usually need > only the leaf. I understand you do not expose them all, but that is not the reason to increment ID by 2 or 3... Otherwise these are not IDs and you are not expected to put register offsets into the bindings (you do not bindings in such case). > Same has been done for the other AML controllers: > For ex: > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/dt-bindings/clock/gxbb-clkc.h This cannot be fixed now, but it is very poor argument. Like saying "we had a bug in other driver, so we implemented the bug here as well". Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel