Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1065439rda; Mon, 23 Oct 2023 00:55:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGu+hlPmL06IOaTTyQm42Jy8AhmuDA9bMvbO5YZuOjycyavQABofrpI1gDB95W3nbQ1YW34 X-Received: by 2002:a17:90b:124e:b0:274:dd15:87bf with SMTP id gx14-20020a17090b124e00b00274dd1587bfmr15686532pjb.20.1698047710767; Mon, 23 Oct 2023 00:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698047710; cv=none; d=google.com; s=arc-20160816; b=vZarDIcBbbbmhVBIDlkk9nspUqgv9TRwp0rOM7yGRmNA6qolLavCQDHYcQu0LfDL8D 665SjTp+UtyYkhcHHJqJbpC4l0MkNWUTULJGFQ7i3YpLUwdr9Gk/Xv+Oq4dpaqnXk5nN 6Ol/FMcoAdbs9+vtem4MFq4A6EvFP/aVM+JQA0zwuUAwC0DJ6mv1d5V5OrsEaQI+O6JV pi1TVHZ++3FRKTWk5X8sfOz3nAITKqUf+TmXjKkqlk4QLBWMUUJNwdEV7QC/zDXY/GDb 5dLKoM3UKkKjo3m8N6KGK1sB8OKQPHTul6yGaR3x89T15F+/xZdzE/EUrzyYDFt/Ancd QHTg== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=rMaoOLDHikI/5IuDdtds8W/NDUxXAWyZGF/MMCXM2nA=; fh=8F+SK7hn6LHUeHKgEicG7Q9nIrEzkYtnZWfe2UqIgYc=; b=VVAsUV2wBfoj5ZYrDeHZO1sUy3C3Gv5dQv+DugyToWalD4Ox9Trbo416eK1FETGbwl VvLdayqsppMZnDE/yxUNLmBhj0UYR/6XKmaXwWtWcV89lNOu8K6GlhPmpfKYGBKCpgbm LwSvRMSUnPfozr2jd6UhFW4Z5iXenKoCNcgdLdgBI8SAih9lJ80P3yKwx0/kQ2ugHixz 1EIpsrGorV6Rvc64uZEdRyWjBjwFsavQyCGXSLbb3u1cQXIjQxJzzeiqKOnSDBMJmOD8 msCy0pQygwvgpQ1mG6KXpM1JZf0JCtOm1+U0Mdyj5H1pVAjOGNWMseuq6ZablM1F8QEZ P6SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qoh9O+Jb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id j11-20020a17090a31cb00b00274a22e6364si8344387pjf.92.2023.10.23.00.55.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:55:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qoh9O+Jb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id EB26C80473DD; Mon, 23 Oct 2023 00:55:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229876AbjJWHy5 (ORCPT + 99 others); Mon, 23 Oct 2023 03:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229650AbjJWHy4 (ORCPT ); Mon, 23 Oct 2023 03:54:56 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1297D66 for ; Mon, 23 Oct 2023 00:54:53 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-32d9b507b00so2202228f8f.1 for ; Mon, 23 Oct 2023 00:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698047692; x=1698652492; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=rMaoOLDHikI/5IuDdtds8W/NDUxXAWyZGF/MMCXM2nA=; b=Qoh9O+JbkgbFprxHO4DK4IVKmT9nfkQXK+tfqQVxOFFbn39fh6K70lJNIRSSFT1sHO z685AYRG8Oz0Ing3Qa/TcGr1vQyY8nVhioU8x9lZSAke6FN0mSGOiCNVTBiY/F6uoO8s rYN/CQfmkLTjHsEzgVpXHTHHgHrgCzU48EyT9h06/L0bzVHFGSriUhIQSt+Ogyj5fcQl mbSW9oYE8ylI0nEtRtEGCm1bJafHzbSoaCRDkZ2QGD+fKB26c/6rZHYAtDetm5vmj3Nb J4P9pyIXjci/wLGRqgpkHJyFDbGyn48mQRXNRAw9/s6TwXAdQHPAeGBqgmtBRhexthC4 GR/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698047692; x=1698652492; h=content-transfer-encoding:in-reply-to:autocrypt: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=rMaoOLDHikI/5IuDdtds8W/NDUxXAWyZGF/MMCXM2nA=; b=fsh44FK3jv9LsGl6dcW0zBUoGEvd6JU5ijEbDy/9cu2ZM6PcqfC9p/qHLYbkX2Tcbk 4OP6CDfAeAK2VAOVucu/afmlSUKkFqFSpC51PSB3oiAgizv6R3bhKx1EXM0XF7O2Di8s UAac2d+7qYLCaQa2wN5oqbON3dQolqas3feL8a4Q6Le06wEAegrlbStHg0moaGQnEHrg yEMHGcyatAEsGGcuGV9IamjfAAwviMKNHIP/TK2bQ0pxGTDC8mg8PprzXfKpK8EYdB+W QBwxa251w0tSpXbREDpjTM60OwE/G/mhPBBw14uzilH9ZTAVCSS5BmVDejPyPIgUSW1J +vOg== X-Gm-Message-State: AOJu0Yz+1qlho+wakt573p08Umc3t7Sx2WloP3xFpE6KTXWOY5u+HUcY 471FCck0fFVDhlggu8Sex/YpFA== X-Received: by 2002:adf:ea4e:0:b0:319:7c0f:d920 with SMTP id j14-20020adfea4e000000b003197c0fd920mr6426606wrn.57.1698047692077; Mon, 23 Oct 2023 00:54:52 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id k17-20020a5d4291000000b0032da87e32e2sm7230065wrq.4.2023.10.23.00.54.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Oct 2023 00:54:51 -0700 (PDT) Message-ID: <3df06d79-ea51-4202-8cc8-468f741603bf@linaro.org> Date: Mon, 23 Oct 2023 09:54:49 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] dt-bindings: clock: brcm,kona-ccu: convert to YAML Content-Language: en-US To: Stanislav Jakubek , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Ray Jui , Scott Branden Cc: bcm-kernel-feedback-list@broadcom.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Artur Weber References: From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@lina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a+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 00:55:07 -0700 (PDT) On 22/10/2023 13:31, Stanislav Jakubek wrote: > Convert Broadcom Kona family clock controller unit (CCU) bindings > to DT schema. > > Signed-off-by: Stanislav Jakubek Thank you for your patch. There is something to discuss/improve. > +description: > + Broadcom "Kona" style clock control unit (CCU) is a clock provider that > + manages a set of clock signals. > + > +properties: > + compatible: > + enum: > + - brcm,bcm11351-aon-ccu > + - brcm,bcm11351-hub-ccu > + - brcm,bcm11351-master-ccu > + - brcm,bcm11351-root-ccu > + - brcm,bcm11351-slave-ccu > + - brcm,bcm21664-aon-ccu > + - brcm,bcm21664-master-ccu > + - brcm,bcm21664-root-ccu > + - brcm,bcm21664-slave-ccu > + > + reg: > + maxItems: 1 > + > + '#clock-cells': > + const: 1 > + > + clock-output-names: > + minItems: 1 > + maxItems: 10 > + > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - brcm,bcm11351-aon-ccu > + - brcm,bcm11351-hub-ccu > + - brcm,bcm11351-master-ccu > + - brcm,bcm11351-root-ccu > + - brcm,bcm11351-slave-ccu > + then: > + properties: > + clock-output-names: > + description: | > + The following table defines the set of CCUs and clock specifiers > + for BCM281XX family clocks. > + These clock specifiers are defined in: > + "include/dt-bindings/clock/bcm281xx.h" > + > + CCU Clock Type Index Specifier > + --- ----- ---- ----- --------- > + root frac_1m peri 0 BCM281XX_ROOT_CCU_FRAC_1M > + > + aon hub_timer peri 0 BCM281XX_AON_CCU_HUB_TIMER > + aon pmu_bsc peri 1 BCM281XX_AON_CCU_PMU_BSC > + aon pmu_bsc_var peri 2 BCM281XX_AON_CCU_PMU_BSC_VAR > + > + hub tmon_1m peri 0 BCM281XX_HUB_CCU_TMON_1M > + > + master sdio1 peri 0 BCM281XX_MASTER_CCU_SDIO1 > + master sdio2 peri 1 BCM281XX_MASTER_CCU_SDIO2 > + master sdio3 peri 2 BCM281XX_MASTER_CCU_SDIO3 > + master sdio4 peri 3 BCM281XX_MASTER_CCU_SDIO4 > + master dmac peri 4 BCM281XX_MASTER_CCU_DMAC > + master usb_ic peri 5 BCM281XX_MASTER_CCU_USB_IC > + master hsic2_48m peri 6 BCM281XX_MASTER_CCU_HSIC_48M > + master hsic2_12m peri 7 BCM281XX_MASTER_CCU_HSIC_12M > + > + slave uartb peri 0 BCM281XX_SLAVE_CCU_UARTB > + slave uartb2 peri 1 BCM281XX_SLAVE_CCU_UARTB2 > + slave uartb3 peri 2 BCM281XX_SLAVE_CCU_UARTB3 > + slave uartb4 peri 3 BCM281XX_SLAVE_CCU_UARTB4 > + slave ssp0 peri 4 BCM281XX_SLAVE_CCU_SSP0 > + slave ssp2 peri 5 BCM281XX_SLAVE_CCU_SSP2 > + slave bsc1 peri 6 BCM281XX_SLAVE_CCU_BSC1 > + slave bsc2 peri 7 BCM281XX_SLAVE_CCU_BSC2 > + slave bsc3 peri 8 BCM281XX_SLAVE_CCU_BSC3 > + slave pwm peri 9 BCM281XX_SLAVE_CCU_PWM I don't really understand why this is in the binding schema. I guess you wanted to copy it from the old binding, but, unless there is real reason for it, don't. The clock IDs should be in the header file and that's it. Nothing here. > + - if: > + properties: > + compatible: > + contains: > + enum: > + - brcm,bcm21664-aon-ccu > + - brcm,bcm21664-master-ccu > + - brcm,bcm21664-root-ccu > + - brcm,bcm21664-slave-ccu > + then: > + properties: > + clock-output-names: > + maxItems: 8 > + description: | > + The following table defines the set of CCUs and clock specifiers > + for BCM21664 family clocks. > + These clock specifiers are defined in: > + "include/dt-bindings/clock/bcm21664.h" > + > + CCU Clock Type Index Specifier > + --- ----- ---- ----- --------- > + root frac_1m peri 0 BCM21664_ROOT_CCU_FRAC_1M > + > + aon hub_timer peri 0 BCM21664_AON_CCU_HUB_TIMER > + > + master sdio1 peri 0 BCM21664_MASTER_CCU_SDIO1 > + master sdio2 peri 1 BCM21664_MASTER_CCU_SDIO2 > + master sdio3 peri 2 BCM21664_MASTER_CCU_SDIO3 > + master sdio4 peri 3 BCM21664_MASTER_CCU_SDIO4 > + master sdio1_sleep peri 4 BCM21664_MASTER_CCU_SDIO1_SLEEP > + master sdio2_sleep peri 5 BCM21664_MASTER_CCU_SDIO2_SLEEP > + master sdio3_sleep peri 6 BCM21664_MASTER_CCU_SDIO3_SLEEP > + master sdio4_sleep peri 7 BCM21664_MASTER_CCU_SDIO4_SLEEP > + > + slave uartb peri 0 BCM21664_SLAVE_CCU_UARTB > + slave uartb2 peri 1 BCM21664_SLAVE_CCU_UARTB2 > + slave uartb3 peri 2 BCM21664_SLAVE_CCU_UARTB3 > + slave uartb4 peri 3 BCM21664_SLAVE_CCU_UARTB4 > + slave bsc1 peri 4 BCM21664_SLAVE_CCU_BSC1 > + slave bsc2 peri 5 BCM21664_SLAVE_CCU_BSC2 > + slave bsc3 peri 6 BCM21664_SLAVE_CCU_BSC3 > + slave bsc4 peri 7 BCM21664_SLAVE_CCU_BSC4 Same comments. In any case, allOf: goes after required: block. > + > +required: > + - compatible > + - reg > + - '#clock-cells' > + - clock-output-names > + > +additionalProperties: false > + Best regards, Krzysztof