Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3788624pxt; Tue, 10 Aug 2021 11:19:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA1wCyeo+WYegSzj51EuUs8uzL2yMjshiQegr0loH4E7DnBmj3YSg22HBNSAqM0Isl6Yb2 X-Received: by 2002:a05:6638:539:: with SMTP id j25mr28524684jar.69.1628619546000; Tue, 10 Aug 2021 11:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628619545; cv=none; d=google.com; s=arc-20160816; b=u1lMaw8bkJh3WRMkGPas3neGA3G23YyfhqwPOQ00vZgCvPMZimmASK+jroOV1rXx6m e9CzGBiTnMaSIbexn7aJKXBZRkwH+l+5ubYcJdl34BSQMAQZF+VyAQxvN1nlyyB9/G1c POIHZaUg4gWRI/MDxaXJBq7Zkk3tWJvxp8EIfuZvCUgDUvOBjv/4Ufz3uueorRFBM0t1 8bwFA7aYjvNh8xZ5NZxZvmpu6r9jvosY2+flckZ+FFh15agnGID8jIHAuxxZZgpwZq4T gYSdX2k06KNLwz4peZabTkMqC4r7TLqlfTQ8mXKZkRGXkDCb9V5NevvdF91amfaMXt6g mjUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ixsYQui2jeYMyfqkYaqyNfXnRwT6Ph0OTuv9xBbWMrk=; b=WlLwLL3Z1DhlWN0T7Ex5SO3VaNE6M70Df6/w1ODRtxJ3FIB2zHvHFHjsdp8cVbLq4N 96N/vcVAcFyXtcx6N2sLiilyXZ8UBTxiSmeFK9UO2R3ROB5zbufhS14NarBQ5hzsv1Qk o0qM6fYvcC5fCm1v9S2rlhLc3wJKdQkq8OlpEV6Sv6qEJNV1ka8Ksej9irredV80Hz3d qA8YoKWU55gpwdy7kuJKAcDKUVBwZPKphyqpBnHWFmZkWNwXxz9hQWyG9eOJZ/SDMjVv 6AJuUJJ5+QmluEjSu9jFy3OeEjnPxgA9vD+bRD0zr4FiBkyWbq2OGFx15EKPbBzDldri Pb1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w7ECOFWu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si22484326jaj.86.2021.08.10.11.18.54; Tue, 10 Aug 2021 11:19:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w7ECOFWu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236705AbhHJSRv (ORCPT + 99 others); Tue, 10 Aug 2021 14:17:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240140AbhHJSPg (ORCPT ); Tue, 10 Aug 2021 14:15:36 -0400 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A0DCC04A4D1 for ; Tue, 10 Aug 2021 10:51:48 -0700 (PDT) Received: by mail-vs1-xe32.google.com with SMTP id f6so2168086vso.5 for ; Tue, 10 Aug 2021 10:51:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ixsYQui2jeYMyfqkYaqyNfXnRwT6Ph0OTuv9xBbWMrk=; b=w7ECOFWudHs/4QrFGC/RhIsfTa9FFhv918ENySOnC1KvEwtP3WDQJvlq2JlCw7zf5q UkXjbUZnALHx0fVp7wxKF+bsO4Mpf3by64V628Wo7thD5MpCc37tqAJi7i63NEIMqdiH ZuU7ULEvm8KwWVYSefyzOvwCRgXw1s1FQT79i5E2FbQW5E/b1RQVNlvXx9szQDy9PbYU 5kAy/ERGEivefdVo9SanfXAG0s7kKzyAoZ9vHbSUr7q5Q8ODaV64gZjdWIRZ0SgapaAc /TWFM1eY0lRyu4EsbgKxOAl2bq1R96i8dkgX/0xJ863GMaZAACxj9xt1oxEkB+Esscf0 MxOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ixsYQui2jeYMyfqkYaqyNfXnRwT6Ph0OTuv9xBbWMrk=; b=XEMB9DGp+mwNhJTsJvH2jvbQQV9YoABsTXYqt9io+n/M1hBx0xlty4I88ytzXiWxb8 MbbXPhcLET6Q6xwEJjjmBvcODdhnKiCVRaYje76y9GjHfkaiTp2sff4/jgdLx3q7C/WR UfxSIA+oDB7iVpAxheLpTFaxYqBSQRpmyBNQo+1/9Bi+uAF9anY+JLdLGSo8TAO5uK2/ 4Q6J2DwFcLhYbK7E3kD1XyqwmLHCGNJDHl9TaTLKcOGBFTakOCv1h7tj+TSrO4LK9aN0 Ddvq2i0eiQbx2FnmUai8dXMGb9h/S34Ag6rm7IsXcCkl0slUcxw33tR/kYxDr9llIfKy CBTQ== X-Gm-Message-State: AOAM530355sCyWct5MLnXbmjROl/a2gjx7rrTRbJvuzj/dZGQxtG1DlF 1uR9vkQXdNd3yovUvItOI62oYct4uKj9PWiq1BgZBA== X-Received: by 2002:a67:c414:: with SMTP id c20mr14665309vsk.27.1628617907216; Tue, 10 Aug 2021 10:51:47 -0700 (PDT) MIME-Version: 1.0 References: <20210810093145.26153-1-krzysztof.kozlowski@canonical.com> <20210810093145.26153-2-krzysztof.kozlowski@canonical.com> In-Reply-To: <20210810093145.26153-2-krzysztof.kozlowski@canonical.com> From: Sam Protsenko Date: Tue, 10 Aug 2021 20:51:35 +0300 Message-ID: Subject: Re: [PATCH v2 1/8] dt-bindings: clock: samsung: convert Exynos5250 to dtschema To: Krzysztof Kozlowski Cc: Michael Turquette , Stephen Boyd , Rob Herring , Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , linux-clk , devicetree , linux-arm Mailing List , Linux Samsung SOC , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Aug 2021 at 12:32, Krzysztof Kozlowski wrote: > > Convert Samsung Exynos5250 clock controller bindings to DT schema format > using json-schema. > > Signed-off-by: Krzysztof Kozlowski > --- > .../bindings/clock/exynos5250-clock.txt | 41 ---------------- > .../bindings/clock/samsung,exynos-clock.yaml | 48 +++++++++++++++++++ > MAINTAINERS | 1 + > 3 files changed, 49 insertions(+), 41 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/clock/exynos5250-clock.txt > create mode 100644 Documentation/devicetree/bindings/clock/samsung,exynos-clock.yaml > > diff --git a/Documentation/devicetree/bindings/clock/exynos5250-clock.txt b/Documentation/devicetree/bindings/clock/exynos5250-clock.txt > deleted file mode 100644 > index aff266a12eeb..000000000000 > --- a/Documentation/devicetree/bindings/clock/exynos5250-clock.txt > +++ /dev/null > @@ -1,41 +0,0 @@ > -* Samsung Exynos5250 Clock Controller > - > -The Exynos5250 clock controller generates and supplies clock to various > -controllers within the Exynos5250 SoC. > - > -Required Properties: > - > -- compatible: should be one of the following. > - - "samsung,exynos5250-clock" - controller compatible with Exynos5250 SoC. > - > -- reg: physical base address of the controller and length of memory mapped > - region. > - > -- #clock-cells: should be 1. > - > -Each clock is assigned an identifier and client nodes can use this identifier > -to specify the clock which they consume. > - > -All available clocks are defined as preprocessor macros in > -dt-bindings/clock/exynos5250.h header and can be used in device > -tree sources. > - > -Example 1: An example of a clock controller node is listed below. > - > - clock: clock-controller@10010000 { > - compatible = "samsung,exynos5250-clock"; > - reg = <0x10010000 0x30000>; > - #clock-cells = <1>; > - }; > - > -Example 2: UART controller node that consumes the clock generated by the clock > - controller. Refer to the standard clock bindings for information > - about 'clocks' and 'clock-names' property. > - > - serial@13820000 { > - compatible = "samsung,exynos4210-uart"; > - reg = <0x13820000 0x100>; > - interrupts = <0 54 0>; > - clocks = <&clock CLK_UART2>, <&clock CLK_SCLK_UART2>; > - clock-names = "uart", "clk_uart_baud0"; > - }; > diff --git a/Documentation/devicetree/bindings/clock/samsung,exynos-clock.yaml b/Documentation/devicetree/bindings/clock/samsung,exynos-clock.yaml > new file mode 100644 > index 000000000000..cd6567bd8cc7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/samsung,exynos-clock.yaml > @@ -0,0 +1,48 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/samsung,exynos-clock.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Samsung Exynos SoC clock controller > + > +maintainers: > + - Chanwoo Choi > + - Krzysztof Kozlowski > + - Sylwester Nawrocki > + - Tomasz Figa > + > +description: | > + All available clocks are defined as preprocessor macros in > + dt-bindings/clock/ headers. > + > +properties: > + compatible: > + const: samsung,exynos5250-clock > + > + assigned-clocks: true > + assigned-clock-parents: true > + assigned-clock-rates: true > + clocks: true > + > + "#clock-cells": > + const: 1 > + > + reg: > + maxItems: 1 > + > +required: > + - compatible > + - "#clock-cells" > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + #include > + clock: clock-controller@10010000 { > + compatible = "samsung,exynos5250-clock"; > + reg = <0x10010000 0x30000>; > + #clock-cells = <1>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 36aee8517ab0..2dbacacac3f5 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -16491,6 +16491,7 @@ L: linux-samsung-soc@vger.kernel.org > S: Supported > T: git git://git.kernel.org/pub/scm/linux/kernel/git/snawrocki/clk.git > F: Documentation/devicetree/bindings/clock/exynos*.txt Are there any exynos*.txt bindings actually left after this series? If no, maybe it's worth to remove this line while at it. > +F: Documentation/devicetree/bindings/clock/samsung,*.yaml > F: Documentation/devicetree/bindings/clock/samsung,s3c* > F: Documentation/devicetree/bindings/clock/samsung,s5p* > F: drivers/clk/samsung/ > -- > 2.30.2 >