Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1266585lql; Tue, 12 Mar 2024 11:50:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2flsaJGfJ9a0A5Kslpre9yMY5f+FpzFQ35gTfu9AVyMv8e5+qigpwcYJLk99EwHtWzk2muCfKEDyLab1X/RSqmCnMA80ihWS54aSGew== X-Google-Smtp-Source: AGHT+IFujbDTU66bKmfAoU2mjY4JvTmJIpnq5Cnwbx481hlVDHJQHiibTkVkpx/akjf6Xdw3aNUT X-Received: by 2002:a05:6808:1444:b0:3c2:2ea7:d949 with SMTP id x4-20020a056808144400b003c22ea7d949mr12844289oiv.9.1710269451425; Tue, 12 Mar 2024 11:50:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710269451; cv=pass; d=google.com; s=arc-20160816; b=ik7Kp0F7Pjzh2NxFGwwtdZBGI5+gdke6LvFo0wBhTuCKWkUQy8Knc7RGcG0HkE9DVf Xa9lpqvABJAhN0cf34MiPajqeoGRo8a47+NqBzAgIOoOaVirZsBpoz58hEv4/ZbMSQdb hc2eZr7Pt8uu4fxy7M6UWG7sqQNYMYeoKKLdbcNQa2Kr66A6lMs0+Vg4mAfcH/nVRtAp fXSInM7AWGtYiV6oXu00APGS+5f7UhFSwvaavTv5pFUxy1vI85/7vbDtDBsiUNKpoAjG HQq5B467T7sxERrF8wCAuRhamQdHVg96m6zWlRnbSquETjIooZyJhUlQ+h9N2U9omN+T 4fIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:to:from :dkim-signature; bh=nWmv8PROciGabllAPSqvA9F+FHYmPZHSjaaUfTtwxLQ=; fh=36y7vlVJ9IM4Ep5X5TZvAmpQDdWfO68TpcaFTVZlXIc=; b=zEm4GCssWrwk6P5/jgK680doBqgd7NUb1RPcDSqRGzWSTQXvp0ybAlfMB8hDDd2f66 Sz2SemhbqoaFpsAUEHFgD4GPynIapJQsxWIqHn70y6dLFM1FRaIrI4RVVdBcUZxasWQa GBe/kP9onFMcGCjm8LH95EHznyNGocdrBgNZnmQNHpHkhn66jRTq7sfvbBjLBYRY6dw8 YqYHVfIOjZesIZeVCYD1woMzTdEQgLEsesqvuG3Bl0u/STgDMBwUSHoQnJ8JbDZ/b9qv zIgmJwByahdyGl+5R2qGPmW9IPmn+Mbl4BJQ4VYkvz8Iuda311QcwUlMtARI6bLnqwli xWVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Icjz8BUa; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-100690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id if10-20020a0562141c4a00b0068fe4f0982fsi8002894qvb.156.2024.03.12.11.50.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 11:50:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Icjz8BUa; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-100690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 161FC1C22142 for ; Tue, 12 Mar 2024 18:50:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F419C1420D4; Tue, 12 Mar 2024 18:50:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Icjz8BUa" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2960B433A3 for ; Tue, 12 Mar 2024 18:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710269443; cv=none; b=O+IimkL3yQCm1SRFsEmewsrpnXQUIo6CAMcIWSLgOBd+kABa4YrDJglQ3SIyNeGfaH4fB9n30ubRt38zJ0q0LlO6JPdJclAr/U1/flfE2fjjav7NpxQCqukvwool3Zf9cL/iF1Bcyy7fZ3kJiuZToJ3JtofroEFJEKdm8FBNxZM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710269443; c=relaxed/simple; bh=VXNVVnHLzcUMf+eMc1cXZF1qhCcY1ZICBw2e0CD90oU=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=XC6OYUIrsNOmIRaThA7VYA6YaQeBBsZk4wqzxIMnY/fnWvzchFmM+mTUjIY54kckry6jf2sfUDWausNJf+F7QKKWIxSgKwzoFlmZ9uLPUaLPnLFvyFbUaLkWe0Z+W558HBKJEqJN3JWuuKA1CjeaXwrPXT8pC8Tj37dpl5EpHq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Icjz8BUa; arc=none smtp.client-ip=209.85.167.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-513173e8191so6239312e87.1 for ; Tue, 12 Mar 2024 11:50:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710269438; x=1710874238; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=nWmv8PROciGabllAPSqvA9F+FHYmPZHSjaaUfTtwxLQ=; b=Icjz8BUayisfyD6eGg27vg1xvbZZpSUDXWgVXRI3XLbEG1XoTUuQ/g6NCdeq2S+Ona W7nV1GOjyVyiswaaxOgVjcvElnr1rXQc3fqT954JwzbnAVH5KqmxqKgchKgCmp/34st7 KNtRRyJpyOteA3ZIZ8ear3MO5agCjyXVF0IC5nyt9Pi9E2MUw2MV4qvLZdLEyD5kujSS 6coBBc0cTw/taDGA2+YR2O0GNckvkoDgCDgTC0u+L2hj+2jMx9LT6boYa4lEQxCI0wMc NNq+i7Zuh4X83lPpkI1TakLxShYp2zwUj/A92Ghz62IeMQ2CSPxtKiwdcbt/6q+59ZI3 h3rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710269438; x=1710874238; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nWmv8PROciGabllAPSqvA9F+FHYmPZHSjaaUfTtwxLQ=; b=rxDW0ke6ryG542ON96gvHDO6c1X1v3ES2+L9lhfZPFHZL31PBls5YOAjB1lVoBrISP WBCPfVc8aA4/K09MxvwJYwGLkvwGKv2WyX4Kr4kLZJC6iWF1NjF721n9ZLIrW86m50jd 4GWHB/3QDd4KrHsYPTh6K3iqmPieABiru+5FhtdLkB4AZGkskgdKl1Qa9woTzFMwjnP+ VERgUbgU83RbPf/vrbuqsii5tbext0wOD0kVm37GYb9YvyXPOwAUtRVnW0Jj3BbK3gd8 QphpB8YvAmNvaJvxHnta+S4UbBbqvpvWE/L6+MwQmqZYutWhY6ss14oPNytFpll+ivYj ikuQ== X-Forwarded-Encrypted: i=1; AJvYcCUOOpmTYNx2+AOGr1fh0bSkfs9H7d5IDZYRuS19ngwDTdbm0iKEt9BnRJ9LeELAmrFsacxL0AN44pMebX3LERwYU1TXb5PXuNGzW68L X-Gm-Message-State: AOJu0Yzsk/Biee7BgCHUwqNSO5bprnFhqKq8KadaE7Dwq1h+Chm9dU6n wVPC7GtLnFjbz2s5GLjjXRUcPo28rsaiK0I37I7Ajs3WFCa9q3cS4d7FIA/E4X4= X-Received: by 2002:ac2:47fb:0:b0:513:588a:2614 with SMTP id b27-20020ac247fb000000b00513588a2614mr737193lfp.49.1710269438328; Tue, 12 Mar 2024 11:50:38 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id j20-20020a05600c191400b0041339453775sm2557465wmq.48.2024.03.12.11.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 11:50:37 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Sylwester Nawrocki , Chanwoo Choi , Alim Akhtar , Michael Turquette , Stephen Boyd , Rob Herring , Conor Dooley , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] dt-bindings: clock: samsung,s3c6400-clock: convert to DT Schema Date: Tue, 12 Mar 2024 19:50:35 +0100 Message-Id: <20240312185035.720491-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Convert Samsung S3C6400/S3C6410 SoC clock controller bindings to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/clock/samsung,s3c6400-clock.yaml | 57 ++++++++++++++ .../bindings/clock/samsung,s3c64xx-clock.txt | 76 ------------------- 2 files changed, 57 insertions(+), 76 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/samsung,s3c6400-clock.yaml delete mode 100644 Documentation/devicetree/bindings/clock/samsung,s3c64xx-clock.txt diff --git a/Documentation/devicetree/bindings/clock/samsung,s3c6400-clock.yaml b/Documentation/devicetree/bindings/clock/samsung,s3c6400-clock.yaml new file mode 100644 index 000000000000..d0660313c262 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/samsung,s3c6400-clock.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/samsung,s3c6400-clock.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S3C6400 SoC clock controller + +maintainers: + - Krzysztof Kozlowski + +description: | + There are several clocks that are generated outside the SoC. It is expected + that they are defined using standard clock bindings with following + clock-output-names: + - "fin_pll" - PLL input clock (xtal/extclk) - required, + - "xusbxti" - USB xtal - required, + - "iiscdclk0" - I2S0 codec clock - optional, + - "iiscdclk1" - I2S1 codec clock - optional, + - "iiscdclk2" - I2S2 codec clock - optional, + - "pcmcdclk0" - PCM0 codec clock - optional, + - "pcmcdclk1" - PCM1 codec clock - optional, only S3C6410. + + All available clocks are defined as preprocessor macros in + include/dt-bindings/clock/samsung,s3c64xx-clock.h header. + +properties: + compatible: + enum: + - samsung,s3c6400-clock + - samsung,s3c6410-clock + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + "#clock-cells": + const: 1 + +required: + - compatible + - reg + - clocks + - "#clock-cells" + +additionalProperties: false + +examples: + - | + clock-controller@7e00f000 { + compatible = "samsung,s3c6410-clock"; + reg = <0x7e00f000 0x1000>; + #clock-cells = <1>; + clocks = <&fin_pll>; + }; diff --git a/Documentation/devicetree/bindings/clock/samsung,s3c64xx-clock.txt b/Documentation/devicetree/bindings/clock/samsung,s3c64xx-clock.txt deleted file mode 100644 index 872ee8e0f041..000000000000 --- a/Documentation/devicetree/bindings/clock/samsung,s3c64xx-clock.txt +++ /dev/null @@ -1,76 +0,0 @@ -* Samsung S3C64xx Clock Controller - -The S3C64xx clock controller generates and supplies clock to various controllers -within the SoC. The clock binding described here is applicable to all SoCs in -the S3C64xx family. - -Required Properties: - -- compatible: should be one of the following. - - "samsung,s3c6400-clock" - controller compatible with S3C6400 SoC. - - "samsung,s3c6410-clock" - controller compatible with S3C6410 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. Some of the clocks are available only -on a particular S3C64xx SoC and this is specified where applicable. - -All available clocks are defined as preprocessor macros in -dt-bindings/clock/samsung,s3c64xx-clock.h header and can be used in device -tree sources. - -External clocks: - -There are several clocks that are generated outside the SoC. It is expected -that they are defined using standard clock bindings with following -clock-output-names: - - "fin_pll" - PLL input clock (xtal/extclk) - required, - - "xusbxti" - USB xtal - required, - - "iiscdclk0" - I2S0 codec clock - optional, - - "iiscdclk1" - I2S1 codec clock - optional, - - "iiscdclk2" - I2S2 codec clock - optional, - - "pcmcdclk0" - PCM0 codec clock - optional, - - "pcmcdclk1" - PCM1 codec clock - optional, only S3C6410. - -Example: Clock controller node: - - clock: clock-controller@7e00f000 { - compatible = "samsung,s3c6410-clock"; - reg = <0x7e00f000 0x1000>; - #clock-cells = <1>; - }; - -Example: Required external clocks: - - fin_pll: clock-fin-pll { - compatible = "fixed-clock"; - clock-output-names = "fin_pll"; - clock-frequency = <12000000>; - #clock-cells = <0>; - }; - - xusbxti: clock-xusbxti { - compatible = "fixed-clock"; - clock-output-names = "xusbxti"; - clock-frequency = <48000000>; - #clock-cells = <0>; - }; - -Example: 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" properties): - - uart0: serial@7f005000 { - compatible = "samsung,s3c6400-uart"; - reg = <0x7f005000 0x100>; - interrupt-parent = <&vic1>; - interrupts = <5>; - clock-names = "uart", "clk_uart_baud2", - "clk_uart_baud3"; - clocks = <&clock PCLK_UART0>, <&clocks PCLK_UART0>, - <&clock SCLK_UART>; - }; -- 2.34.1