From patchwork Sat Jan 29 19:36:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12729627 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 C0997C433F5 for ; Sat, 29 Jan 2022 19:39:15 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CiW0i2FF6nj2Z+GhimZCPpKkWln5V6zVS/Qe1SIowFQ=; b=Ex0hiCklABpzO3 YmYvkgPog0SxYuBgT7ZmeYHWNMOjhbw7pLwT0HwjIquPhl0FEYTydVwfU9S2Kv3MyAFvm0NDSvkS/ uZm3aRFVvEwtv9MWkEF0/l9sV17ln+x3z144U+5kUHe0TyfgkHQFP2mQREneDe9a/bvXRKWie+ynx FSoXJcwzpKkkpnrG/DMHM2cPTc6bnh324BRC3R8HmXG2VCr2rpDemP8xWStWpKcQZrXnkUNre4C8N W6Tv/YZhFt00AigrdGa+SfApUoOtAegxhxYXSu87QkQtpJbR92/0Jh7xgRdy4ipINi835JZ8E5qQP Nb0CZX0I7HvaJJpOqNaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDtXl-005KAj-N2; Sat, 29 Jan 2022 19:37:54 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nDtXA-005Jx7-RW for linux-arm-kernel@lists.infradead.org; Sat, 29 Jan 2022 19:37:18 +0000 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 66B92405DD for ; Sat, 29 Jan 2022 19:37:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643485026; bh=wEL89/ynvDT+atuZL4csG/pFwiNgDZ9SBr5HgtriJD4=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ijg7hslmQ2QMNqyOZG231syx5KMpd3jfLwPtPa58pRGlFXMQiO+tC2Ttfdh3BlSIi 103oTWND1A4yw30NDi9hFCmSCrA3VP3Vm7qG3yjtNlsFaa6xZUqne7DsuXakPaiXLI xO0o8X5lPry9VbWa6uslH+StoJN/quQfx0S2+/MQxMcCtldCMuZZgsTbKkR5nPT7FO gPr/BzqxlM8AupN9iZMVBqEj6/ioOI9KPY3GW9HZe1LtR2LUX2iNFySIeKbJ3UeN0i xH8wGFAwjwE6LiPzWtHCcs1aQ0bKkTk+QR032MmhSUx96LyWeHJCbwToNKvlaErSQ3 Q4wXD1ugirWaQ== Received: by mail-ed1-f71.google.com with SMTP id c23-20020a056402159700b00406aa42973eso4792409edv.2 for ; Sat, 29 Jan 2022 11:37:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wEL89/ynvDT+atuZL4csG/pFwiNgDZ9SBr5HgtriJD4=; b=yQnWr1447dkBbCnc6WKG5eairMwdZM/Uk+oG+YSScTHCwt3WsEW7fBO+5KDySBcjiy QEjmuGx1LoLJaTwCuBDQoo/utI+2hYrRmi4mGe5K3rRDX7OLDfTb2dytnbsAmzdxJJh3 OUJgLS3eFN3Vvus4DnUO5zwfmLhcNrz4mDPR8MKJtKTi7H48cWylKr6SHwEZKyujliOC BZY0iD9gNCKDUsNA+55wRIrPC3KjTL57FgyE6knWvlfV0zkBQnPkmBmEy6U7xDqK57+S sovR/9l/IjoUkealqfxn2YNFuOCJPk//AbA6jqKYCv63pWLN0odj4Mxbg2PoybyOgbSX 78KQ== X-Gm-Message-State: AOAM5333LptAIzqIwqby6oom1+u3fhs+fcQK/dJj2YGqci+pdfZXDyQN 3Ul9H25/fwSNBw6orn0DGEtqfVp5mRlOHFv/Stmv/VdN1QELvxYSF2WnySdtmUcc49BSvLCrY8L Q9GIhFU4QvBaUtCT9u58kIvVdr02Bzk4HSRk+8B/9N8/NFx++5Kq8 X-Received: by 2002:a17:907:7f88:: with SMTP id qk8mr7709002ejc.622.1643485016442; Sat, 29 Jan 2022 11:36:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIgwaMH7JjSWPd08LTkb2moQW6C24pusHL1cGkG0T2qvrd39Ci/vgQ+6J35I6bR1JyOn/FSw== X-Received: by 2002:a17:907:7f88:: with SMTP id qk8mr7708987ejc.622.1643485016259; Sat, 29 Jan 2022 11:36:56 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id bf21sm14968026edb.2.2022.01.29.11.36.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 11:36:55 -0800 (PST) From: Krzysztof Kozlowski To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Sylwester Nawrocki , Guenter Roeck , Marek Szyprowski , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 6/8] dt-bindings: phy: samsung, exynos5250-sata-phy: convert to dtschema Date: Sat, 29 Jan 2022 20:36:44 +0100 Message-Id: <20220129193646.372481-6-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220129193646.372481-1-krzysztof.kozlowski@canonical.com> References: <20220129193646.372481-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220129_113717_051170_EACEC90B X-CRM114-Status: GOOD ( 18.12 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert the Samsung Exynos5250 SoC SATA PHY bindings to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../phy/samsung,exynos5250-sata-phy.yaml | 64 +++++++++++++++++++ .../devicetree/bindings/phy/samsung-phy.txt | 26 -------- 2 files changed, 64 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/samsung,exynos5250-sata-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/samsung,exynos5250-sata-phy.yaml b/Documentation/devicetree/bindings/phy/samsung,exynos5250-sata-phy.yaml new file mode 100644 index 000000000000..62b39bb46585 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/samsung,exynos5250-sata-phy.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/samsung,exynos5250-sata-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos5250 SoC SATA PHY + +maintainers: + - Krzysztof Kozlowski + - Marek Szyprowski + - Sylwester Nawrocki + +properties: + compatible: + const: samsung,exynos5250-sata-phy + + clocks: + maxItems: 1 + + clock-names: + items: + - const: sata_phyctrl + + "#phy-cells": + const: 0 + + reg: + maxItems: 1 + + samsung,syscon-phandle: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to PMU system controller interface. + + samsung,exynos-sataphy-i2c-phandle: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to I2C SATA interface. + +required: + - compatible + - clocks + - clock-names + - "#phy-cells" + - reg + - samsung,syscon-phandle + - samsung,exynos-sataphy-i2c-phandle + +additionalProperties: false + +examples: + - | + #include + + phy@12170000 { + compatible = "samsung,exynos5250-sata-phy"; + reg = <0x12170000 0x1ff>; + clocks = <&clock CLK_SATA_PHYCTRL>; + clock-names = "sata_phyctrl"; + #phy-cells = <0>; + samsung,syscon-phandle = <&pmu_system_controller>; + samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>; + }; diff --git a/Documentation/devicetree/bindings/phy/samsung-phy.txt b/Documentation/devicetree/bindings/phy/samsung-phy.txt index d26ac7401258..1ee78016dc72 100644 --- a/Documentation/devicetree/bindings/phy/samsung-phy.txt +++ b/Documentation/devicetree/bindings/phy/samsung-phy.txt @@ -1,29 +1,3 @@ -Samsung SATA PHY Controller ---------------------------- - -SATA PHY nodes are defined to describe on-chip SATA Physical layer controllers. -Each SATA PHY controller should have its own node. - -Required properties: -- compatible : compatible list, contains "samsung,exynos5250-sata-phy" -- reg : offset and length of the SATA PHY register set; -- #phy-cells : must be zero -- clocks : must be exactly one entry -- clock-names : must be "sata_phyctrl" -- samsung,exynos-sataphy-i2c-phandle : a phandle to the I2C device, no arguments -- samsung,syscon-phandle : a phandle to the PMU system controller, no arguments - -Example: - sata_phy: sata-phy@12170000 { - compatible = "samsung,exynos5250-sata-phy"; - reg = <0x12170000 0x1ff>; - clocks = <&clock 287>; - clock-names = "sata_phyctrl"; - #phy-cells = <0>; - samsung,exynos-sataphy-i2c-phandle = <&sata_phy_i2c>; - samsung,syscon-phandle = <&pmu_syscon>; - }; - Device-Tree bindings for sataphy i2c client driver --------------------------------------------------