From patchwork Sat Jan 29 19:36:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 537987 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4F9FC433F5 for ; Sat, 29 Jan 2022 19:37:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353100AbiA2ThH (ORCPT ); Sat, 29 Jan 2022 14:37:07 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:37286 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353073AbiA2ThA (ORCPT ); Sat, 29 Jan 2022 14:37:00 -0500 Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (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-1.canonical.com (Postfix) with ESMTPS id 14E633F1CA for ; Sat, 29 Jan 2022 19:36:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643485012; bh=hAGep8pVNTsPRC1nSKuBp/hWEFmbR4UGlLqtXTKGMQk=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=i4zpSszG15EZyTwRPbRKsmjbskf/clS+i5U33cpx5gXE5jiQk/5VXbe2wxivPbwtL M1WAaM/umTRMcJXwkLBqfdAoYHA2eVRjpBuv3NqQBCBe2SIEH3o/+25YAt2BFlZY+e 2x9bpS0zo1prJcSyu5gyjBlnUes5BNnrcNOCl/lPezUfwsHDNnd2xixqNLeNTrvH// HNgd+Vxc52bS6VqEAh1RcewvPX32EGNGyaidUKcoFq9pLrb4RrrYIH6LOiPibhHxO4 Q7teMXB1teYQ8Cgkc7oKZxyS2nX+OGWpdGAZg17sdASFK3OLoReDYHLXXge9crg+f4 22I221hkOoAbQ== Received: by mail-ed1-f72.google.com with SMTP id k10-20020a50cb8a000000b00403c8326f2aso4793333edi.6 for ; Sat, 29 Jan 2022 11:36:52 -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=hAGep8pVNTsPRC1nSKuBp/hWEFmbR4UGlLqtXTKGMQk=; b=hd1h5uP2YXDLaXIwEiGqhxyMK8MosXCGrLelg7iCqM+38cWLHBbp6Zvb9dgf9NTouH 4zi8hXzQYE7olexvDSeo1oo1chy7uisBq0yrAFBU0kzVUsKYjKQw7DXj6bbwBHc2Bs/q KpjwJ00dWoYUF52gGv0aENDurJW4LVtNOJkOmIFk8SaSHwcDPQ/NV9+5GRkTSJ15eeOK tpmjsan0t5PgfSybXFzyrgdWj1Thdmd6CHMfLl6/L54lulKt2e4PWXBLImC0/GiS2Mmc 0aYMQQfeI5QWv37E8omla/E6xswFhvNK0i/C0Cw+85c05E1grUMPsuovAXA7kmQ+KC3B dLhQ== X-Gm-Message-State: AOAM530pB7z4XFY4cxY2c/1xDJ19DSin9LaAbj6J8+UHFAHZ3ffotjX7 mCwaA1wqOBnuiZGU+Gl8/ufHDlNM2MdGCyJPfkOJsy7Xv11bzaHYW/M3zEEHXhDhz+vrYmQfsLh D5ORRbN7bCvIYFDUpisjMVOJUC6P7yYfhe3aDrz8= X-Received: by 2002:a17:906:e0cb:: with SMTP id gl11mr11488652ejb.135.1643485011239; Sat, 29 Jan 2022 11:36:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6nnWsixSDr5XE5v72szvmmUfsStrbIoMAbLaY3/xYGrtNlZ1bDnYpJvY48+Oy+FGS75nXxw== X-Received: by 2002:a17:906:e0cb:: with SMTP id gl11mr11488637ejb.135.1643485011078; Sat, 29 Jan 2022 11:36:51 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 11:36:50 -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 2/8] dt-bindings: phy: samsung: drop old Eynos5440 PCIe phy Date: Sat, 29 Jan 2022 20:36:40 +0100 Message-Id: <20220129193646.372481-2-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Exynos5440 PCIe phy support was removed in commit 496db029142f ("phy: samsung: phy-exynos-pcie: rework driver to support Exynos5433 PCIe PHY") (with its own bindings), so drop the old bindings. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../devicetree/bindings/phy/samsung-phy.txt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/samsung-phy.txt b/Documentation/devicetree/bindings/phy/samsung-phy.txt index 8f51aee91101..390065f49b62 100644 --- a/Documentation/devicetree/bindings/phy/samsung-phy.txt +++ b/Documentation/devicetree/bindings/phy/samsung-phy.txt @@ -191,20 +191,3 @@ Example: usbdrdphy0 = &usb3_phy0; usbdrdphy1 = &usb3_phy1; }; - -Samsung Exynos SoC series PCIe PHY controller --------------------------------------------------- -Required properties: -- compatible : Should be set to "samsung,exynos5440-pcie-phy" -- #phy-cells : Must be zero -- reg : a register used by phy driver. - - First is for phy register, second is for block register. -- reg-names : Must be set to "phy" and "block". - -Example: - pcie_phy0: pcie-phy@270000 { - #phy-cells = <0>; - compatible = "samsung,exynos5440-pcie-phy"; - reg = <0x270000 0x1000>, <0x271000 0x40>; - reg-names = "phy", "block"; - }; From patchwork Sat Jan 29 19:36:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 537984 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D84E1C4167D for ; Sat, 29 Jan 2022 19:37:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353108AbiA2ThT (ORCPT ); Sat, 29 Jan 2022 14:37:19 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:60286 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353119AbiA2ThN (ORCPT ); Sat, 29 Jan 2022 14:37:13 -0500 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 8B73640050 for ; Sat, 29 Jan 2022 19:37:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643485022; bh=aWs9MFAf4+mGeKyXFFmmho+fwz/+ZD3RFsWsucBweiU=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fWazipQ6I6hJ49Q1422WrUaO/rlVjgciZVEA2kZEsKvGg5VBCf8zwGH5pF9xFvV7d pZfIZ/ec+4rGNptqIHCiyA0LDYMe1eA+oA4/TyT/cxRADRvrvxPW3/ElpCYyGBohay kQf/o5q26Uzp4mnSPujKh/LLJk5NruLp15lK/IicYIzdNvG8K+kQfcuEbxfOtu024n 5LTB642aaGekEyiPjCT1VbQ4iI03ckP5MSYOWQAVzQpK3e8sSIQhbLEauQWHRNrvvu k+QD1FD1OfJrPw2o/nTqm0hOKlFr5bD+fsC/CeG+rm+buef6hxNvFjoU5ltTZmuBbP zWLu7nVhH1mlA== Received: by mail-ed1-f71.google.com with SMTP id w15-20020a056402268f00b00408234dc1dfso4773390edd.16 for ; Sat, 29 Jan 2022 11:37:02 -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=aWs9MFAf4+mGeKyXFFmmho+fwz/+ZD3RFsWsucBweiU=; b=Pr49LdCkoVdylX3ABbw6BwOum/OFluh8dCy/r3TjtsEaSqcmPCSh38aGJYyXPjKnk4 2FZKhB4+2zr3X6PIWiW+UJPQEo9uRmfUn6Xg/6yrRbeN0v7H6EaM3jgT4W59eaqjJ0Ak KfIihMqC2pySq0A7Ncfdyhh55TLPolvkuTwPWwZO4lMThVmyjJkHjLU2qinSo+nIvff0 JPiy0cO0CGbFYvfCqpBHlHsttuRcECNlrAOzSQjMHDNmawNsDbCQ6Ktp41Lk5cIl6JsU d6njcaF/MGbfkG18IEDJ5JOhvoTPs+5iZFcJzIz8EtG8cxhz+9TEuhPnn3yCTjAPmZ6x y4SQ== X-Gm-Message-State: AOAM532yoUP/2NF1n5uhSn0j3jQHSzABcEGarw7Y0+qeRkmjKSuOGok4 AL+xNNoRMa8VAtZXs4+OMaRJdGJ9cznQ0mzOzLmKTKWtVLDIhCAPu5JqlYEne8q5TT41FdU036G af0dnvh+rdeVdIKE2weUv1kKltpduEKuUo0ZfwSQ= X-Received: by 2002:a17:906:58d4:: with SMTP id e20mr11497472ejs.769.1643485012500; Sat, 29 Jan 2022 11:36:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJyK4GEK3O3dtaeIo1993o51uYQOxqNVlu9jOjRfve+nnNRq3R7aTnPPnhTn/1e2TTrcGT1/Uw== X-Received: by 2002:a17:906:58d4:: with SMTP id e20mr11497455ejs.769.1643485012324; Sat, 29 Jan 2022 11:36:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 11:36:51 -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 3/8] dt-bindings: phy: samsung,mipi-video-phy: convert to dtschema Date: Sat, 29 Jan 2022 20:36:41 +0100 Message-Id: <20220129193646.372481-3-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert the Samsung SoC MIPI CSIS/DSIM DPHY bindings to DT schema format. Signed-off-by: Krzysztof Kozlowski --- .../bindings/phy/samsung,mipi-video-phy.yaml | 113 ++++++++++++++++++ .../devicetree/bindings/phy/samsung-phy.txt | 29 ----- 2 files changed, 113 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/samsung,mipi-video-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/samsung,mipi-video-phy.yaml b/Documentation/devicetree/bindings/phy/samsung,mipi-video-phy.yaml new file mode 100644 index 000000000000..54aa056b224d --- /dev/null +++ b/Documentation/devicetree/bindings/phy/samsung,mipi-video-phy.yaml @@ -0,0 +1,113 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/samsung,mipi-video-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung S5P/Exynos SoC MIPI CSIS/DSIM DPHY + +maintainers: + - Krzysztof Kozlowski + - Marek Szyprowski + - Sylwester Nawrocki + +description: | + For samsung,s5pv210-mipi-video-phy compatible PHYs the second cell in the + PHY specifier identifies the PHY and its meaning is as follows:: + 0 - MIPI CSIS 0, + 1 - MIPI DSIM 0, + 2 - MIPI CSIS 1, + 3 - MIPI DSIM 1. + + samsung,exynos5420-mipi-video-phy and samsung,exynos5433-mipi-video-phy + support additional fifth PHY:: + 4 - MIPI CSIS 2. + +properties: + compatible: + enum: + - samsung,s5pv210-mipi-video-phy + - samsung,exynos5420-mipi-video-phy + - samsung,exynos5433-mipi-video-phy + + "#phy-cells": + const: 1 + + syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to PMU system controller interface, valid only for + samsung,s5pv210-mipi-video-phy and samsung,exynos5420-mipi-video-phy. + + samsung,pmu-syscon: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to PMU system controller interface, valid for + samsung,exynos5433-mipi-video-phy. + + samsung,disp-sysreg: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to DISP system controller interface, valid for + samsung,exynos5433-mipi-video-phy. + + samsung,cam0-sysreg: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to CAM0 system controller interface, valid for + samsung,exynos5433-mipi-video-phy. + + samsung,cam1-sysreg: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to CAM1 system controller interface, valid for + samsung,exynos5433-mipi-video-phy. + +required: + - compatible + - "#phy-cells" + +allOf: + - if: + properties: + compatible: + contains: + enum: + - samsung,s5pv210-mipi-video-phy + - samsung,exynos5420-mipi-video-phy + then: + properties: + samsung,pmu-syscon: false + samsung,disp-sysreg: false + samsung,cam0-sysreg: false + samsung,cam1-sysreg: false + required: + - syscon + else: + properties: + syscon: false + required: + - samsung,pmu-syscon + - samsung,disp-sysreg + - samsung,cam0-sysreg + - samsung,cam1-sysreg + +additionalProperties: false + +examples: + - | + phy { + compatible = "samsung,exynos5433-mipi-video-phy"; + #phy-cells = <1>; + samsung,pmu-syscon = <&pmu_system_controller>; + samsung,cam0-sysreg = <&syscon_cam0>; + samsung,cam1-sysreg = <&syscon_cam1>; + samsung,disp-sysreg = <&syscon_disp>; + }; + + - | + phy { + compatible = "samsung,s5pv210-mipi-video-phy"; + syscon = <&pmu_system_controller>; + #phy-cells = <1>; + }; diff --git a/Documentation/devicetree/bindings/phy/samsung-phy.txt b/Documentation/devicetree/bindings/phy/samsung-phy.txt index 390065f49b62..6ab16734eb65 100644 --- a/Documentation/devicetree/bindings/phy/samsung-phy.txt +++ b/Documentation/devicetree/bindings/phy/samsung-phy.txt @@ -1,32 +1,3 @@ -Samsung S5P/Exynos SoC series MIPI CSIS/DSIM DPHY -------------------------------------------------- - -Required properties: -- compatible : should be one of the listed compatibles: - - "samsung,s5pv210-mipi-video-phy" - - "samsung,exynos5420-mipi-video-phy" - - "samsung,exynos5433-mipi-video-phy" -- #phy-cells : from the generic phy bindings, must be 1; - -In case of s5pv210 and exynos5420 compatible PHYs: -- syscon - phandle to the PMU system controller - -In case of exynos5433 compatible PHY: - - samsung,pmu-syscon - phandle to the PMU system controller - - samsung,disp-sysreg - phandle to the DISP system registers controller - - samsung,cam0-sysreg - phandle to the CAM0 system registers controller - - samsung,cam1-sysreg - phandle to the CAM1 system registers controller - -For "samsung,s5pv210-mipi-video-phy" compatible PHYs the second cell in -the PHY specifier identifies the PHY and its meaning is as follows: - 0 - MIPI CSIS 0, - 1 - MIPI DSIM 0, - 2 - MIPI CSIS 1, - 3 - MIPI DSIM 1. -"samsung,exynos5420-mipi-video-phy" and "samsung,exynos5433-mipi-video-phy" -supports additional fifth PHY: - 4 - MIPI CSIS 2. - Samsung Exynos SoC series Display Port PHY ------------------------------------------------- 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: 537986 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10A80C43217 for ; Sat, 29 Jan 2022 19:37:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353136AbiA2ThR (ORCPT ); Sat, 29 Jan 2022 14:37:17 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:37334 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353075AbiA2ThG (ORCPT ); Sat, 29 Jan 2022 14:37:06 -0500 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (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-1.canonical.com (Postfix) with ESMTPS id C6BF83FFF0 for ; Sat, 29 Jan 2022 19:36:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643485017; bh=wEL89/ynvDT+atuZL4csG/pFwiNgDZ9SBr5HgtriJD4=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kzM9J9TwroUBteAw9GDoNccmP7zEFRCPw93NcmMBL1dC/3wBSRtW6I0EdhN+NxKRP MWYvJc9b2vD0jqBI0isQ9ods5tDvERiecYHfn8GCfErvGXRX4qr5DpG7bqrxzMbXiL 97/A8K2JiK7Qh0VNhuZdEli+Tc7EBnb26Q3V+uR8dt3kqbvcnU+NxUuKtAK2tT7uAU vbJzpcxgFgyX7DBQK/DtoM2+ZUBMTcb2BEilWZN0W8Olh7on0ydG4yo8EpPDNSJ3uN RSKYdKU3pd5YMsdhTYkDcph6Fa6rqkhqGNYRfeb1/WaoFwT1//tjWCcMmB/YSeL947 CBUs9BFVCVPcA== Received: by mail-ed1-f70.google.com with SMTP id v15-20020a50a44f000000b004094f4a8f3bso4809576edb.0 for ; Sat, 29 Jan 2022 11:36:57 -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=b81SMJKReVw5JCyQuwn4tIuKHJMkA3z343Qn8Xjz10H8StWF2cykxlI2xA3m/tW83u 1UFCBpsNRK8lHK5LaKtLbJUXtauyvcI6jnrKT7Ku+sjSynrkrZKjbQRTbOx6YwmPmffI 1XSRiX9qygyaQlY6+32xjtilVevsUIBfmQkXwnb4O7YfcFdoduCGrypjB/iG0taSfkiC u6pa3cpLMLnfWDsHGBBKwzh6off/jpKPH6/E748JTv3mXKMLzSGLPrsRdC4M8bUdVOTz F9TIa3/gP61KmlQ/EjcLA7rU03ZyqZFy7V4xRsf83K5futitvFK+MdcfZ4snMPRKrn7K mk6Q== X-Gm-Message-State: AOAM532fjrOVgrw/XCnbIGZQTE6TnS8k6EdQ8wS0vTxII3e6I6glRDuM ARfW6L1YqNjNPoiis5IvmHA27CovhEfHHFc4aRdWiLEIgMq5ZyE3AdAml3VxrtaHmU2HRxm70JO TBDgl/zugOZ1soxDdYWZKUXK5rvKECcBBXloSOw0= X-Received: by 2002:a17:907:7f88:: with SMTP id qk8mr7708998ejc.622.1643485016439; 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 -------------------------------------------------- From patchwork Sat Jan 29 19:36:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 537985 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 232CEC433F5 for ; Sat, 29 Jan 2022 19:37:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353102AbiA2ThS (ORCPT ); Sat, 29 Jan 2022 14:37:18 -0500 Received: from smtp-relay-internal-1.canonical.com ([185.125.188.123]:37340 "EHLO smtp-relay-internal-1.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353097AbiA2ThH (ORCPT ); Sat, 29 Jan 2022 14:37:07 -0500 Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (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-1.canonical.com (Postfix) with ESMTPS id 83C573F1E6 for ; Sat, 29 Jan 2022 19:36:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643485018; bh=Fc1eyAl7NybW6jYdngJRL9d8j3U5amMxubQkyGhXpG4=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PgOrk954aJll0U8qHwyfFHfOjAnd61R9wrh74AJF9KhEm1VKcWLNLv6LYNnQxa4Kl OBKHAfLpQr6mMqNOkOt7MZ12D8JIpzdJZwitmkod/IX+bWSqmwRR5y/etP2U4Y3IsO JJtswVzJzczbxAcuq7YmIr85d+HYIuUrRw/Gv1iEamxL4GNbjn2BS/7Oq3dysUmRIH XeSrFw6VZg8k+zL43IzB3zh/fJAz3VlDv1AdvAbrbN3NVejkla4An8Y9hj58As6wFV kz3z6Jk1ETbAouWF7bYygJKC93haR7pkSKnUAvcHH+etCaZYbYhvN9wy4pkT1oBNDe M//K325mNHeWg== Received: by mail-ed1-f70.google.com with SMTP id w23-20020a50d797000000b00406d33c039dso4776420edi.11 for ; Sat, 29 Jan 2022 11:36:58 -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=Fc1eyAl7NybW6jYdngJRL9d8j3U5amMxubQkyGhXpG4=; b=ivvu0xp8TP2TdNLIkhFpAUv6yiu5jpa0NS4NoCrYV9Pev+V9tDekiEb2LE94bLtPoz /Ubq+I86gu8Cd5Hc+WZOMo33JEvFJ/HGmSiGDol6FaGyfzjAsAiLnxlmtjYdRCE1jIB3 ZxVxl0eqPUf4RDqKN+b0wiztKDpaEa2+6P2yN+/oXn0fuAbCs7QpyjaSsKhUXS82B35w znAmC2SorAK7N7xN6ows9IgiwQ2aFHnIAWbvnXlZhYURBOXWFPZJpoxuYxnJLqPH1Jvz G0v1xfopUFjrkzm6wKFnkWqDWRzGzqZoxPkojWiAMIviLsf8xO5OYNAAbss3U1iPdS9i yphQ== X-Gm-Message-State: AOAM530P5Iiqj6BVyUPQXGxgNi7SvcRaWBPXxUVio7wKAFlyrApRvyCn wXxMalmBuX0fWLOUsnn4qvmiQ6DT9L8aI6X14NUFS43rM6Wel8S+JDVvjp1IHvt9RWDIjh9S3bb T+B/oDrKrbQzejkO8ElCUOSSfNftmnz56xKnImmE= X-Received: by 2002:a17:907:6096:: with SMTP id ht22mr11140555ejc.611.1643485018007; Sat, 29 Jan 2022 11:36:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2C00tlFyQ3RoELXj4WirLkICa8agfl7xt6lK1t4z9axQaIvO2QsBaGqe8J3bXTyJSyrs97A== X-Received: by 2002:a17:907:6096:: with SMTP id ht22mr11140538ejc.611.1643485017831; Sat, 29 Jan 2022 11:36:57 -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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 11:36:56 -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 7/8] dt-bindings: phy: samsung: move SATA phy I2C to trivial devices Date: Sat, 29 Jan 2022 20:36:45 +0100 Message-Id: <20220129193646.372481-7-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The I2C interface for Samsung Exynos SoC SATA phy is a very simple and limited, so move it to trivial devices. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/phy/samsung-phy.txt | 14 -------------- .../devicetree/bindings/trivial-devices.yaml | 2 ++ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/samsung-phy.txt b/Documentation/devicetree/bindings/phy/samsung-phy.txt index 1ee78016dc72..b0abeb4ac0a2 100644 --- a/Documentation/devicetree/bindings/phy/samsung-phy.txt +++ b/Documentation/devicetree/bindings/phy/samsung-phy.txt @@ -1,17 +1,3 @@ -Device-Tree bindings for sataphy i2c client driver --------------------------------------------------- - -Required properties: -compatible: Should be "samsung,exynos-sataphy-i2c" -- reg: I2C address of the sataphy i2c device. - -Example: - - sata_phy_i2c:sata-phy@38 { - compatible = "samsung,exynos-sataphy-i2c"; - reg = <0x38>; - }; - Samsung Exynos5 SoC series USB DRD PHY controller -------------------------------------------------- diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 091792ba993e..d53a4b2f81aa 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -283,6 +283,8 @@ properties: - renesas,isl29501 # S524AD0XF1 (128K/256K-bit Serial EEPROM for Low Power) - samsung,24ad0xd1 + # Samsung Exynos SoC SATA PHY I2C device + - samsung,exynos-sataphy-i2c # Sensirion low power multi-pixel gas sensor with I2C interface - sensirion,sgpc3 # Sensirion multi-pixel gas sensor with I2C interface