From patchwork Tue Jun 1 16:47:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 1486120 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=TCYsPhZl; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4FvdQ76s4Mz9sX2 for ; Wed, 2 Jun 2021 02:48:15 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234475AbhFAQtz (ORCPT ); Tue, 1 Jun 2021 12:49:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231918AbhFAQtz (ORCPT ); Tue, 1 Jun 2021 12:49:55 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF10C061574; Tue, 1 Jun 2021 09:48:12 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id gb17so22727890ejc.8; Tue, 01 Jun 2021 09:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WOOpFeGlUeHFuUxXH9E07hzApnK74f31cpwmZjz5Zko=; b=TCYsPhZlkTdt56Sc8WOANos3NIJBG6aRMu3P1GjmG3ZProqmOWonYw4stDOm46sZu6 Wr7tajYEhyCk/rDNuxzMwZZsse/CP8O+aH+IKMU9if9G2oAlyU5NIgaxfqgHTBi6XuxO JyMBr/bxmAJUdorqLZOiG6yTLQmzwa0HSzZn5G+zrYcnozftLdL7ViFi0K2RYRn9bAhA ixCytL4YEGNwRsYXUkAe+F7y1M9ozTVim8H0O5ahdmThC+bq0sQVAgt3mqmEPX54zdbx rfnRMKvs2TpUJ1Hd3S3LO0gR2vts4cmF9ENeBmllKOgIYrE9PJuwa8Zfl7E48iY6cEr9 bpmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WOOpFeGlUeHFuUxXH9E07hzApnK74f31cpwmZjz5Zko=; b=gVxi1a5DmpJlCjAokv63URadkKHTSTh0+RdnqgIlvFqC6T7QjlbYWOpjZh3waUXAuI mtxmsWcfOGjhIg3clEFCF6sDmRVLwih6VK3DrMLNC1Skt8dDgiin6q+1BV2JC/GJI9JB UjHuIFeGQTdiadgueBDElotLcA8yP+GfgUQWyEkHh8i1jp9CgcFwvRTYVhBZKGWr6Wn4 OiByhmml580rilEJr64PYNXVdhYJDdxxU3+nNvlsweUCXns+pZZyAFCnGul3a5iJ87aO ACPkdICQXTVYbI5wezmeD4xfyALnn+83HsGSGtelhP5B6df3xcoR7qI20rK/P0SjZidz Ab8g== X-Gm-Message-State: AOAM530sHhWSPNdeEVbLwOwrm4JUqMjw+fVLEG6LrwqB7X0xcoxQO/fc Pm5KGHxXlQ6syl0dvj25F5Q= X-Google-Smtp-Source: ABdhPJyzoB1A9RmPJMtKMwSU6+NKgfxr94jq881eNtKLMY8sLgS/qWtnESQyqvyJ7POkRqj8V9mC2Q== X-Received: by 2002:a17:906:ccde:: with SMTP id ot30mr30987501ejb.353.1622566091026; Tue, 01 Jun 2021 09:48:11 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id q18sm8327750edd.3.2021.06.01.09.48.09 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Jun 2021 09:48:10 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, kishon@ti.com, vkoul@kernel.org, t.schramm@manjaro.org, linux-phy@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 1/5] dt-bindings: phy: rename phy nodename in phy-rockchip-inno-usb2.yaml Date: Tue, 1 Jun 2021 18:47:56 +0200 Message-Id: <20210601164800.7670-2-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210601164800.7670-1-jbx6244@gmail.com> References: <20210601164800.7670-1-jbx6244@gmail.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The pattern: "^(|usb-|usb2-|usb3-|pci-|pcie-|sata-)phy(@[0-9a-f,]+)*$" in phy-provider.yaml has required "#phy-cells" for phy nodes. The "phy-cells" in rockchip-inno-usb2 nodes are located in subnodes. Rename the nodename to pattern "usb2phy@[0-9a-f]+$" to prevent notifications. Remove unneeded "#phy-cells" from parent node. Also sort example. make ARCH=arm dtbs_check DT_SCHEMA_FILES=~/.local/lib/python3.5/site-packages/dtschema/schemas/ phy/phy-provider.yaml Signed-off-by: Johan Jonker Acked-by: Rob Herring Acked-By: Vinod Koul --- .../devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml | 11 +++-------- Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 4 ++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml b/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml index a5b027a6e..5bebd86bf 100644 --- a/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml +++ b/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml @@ -30,9 +30,6 @@ properties: "#clock-cells": const: 0 - "#phy-cells": - const: 0 - clocks: maxItems: 1 @@ -120,7 +117,6 @@ required: - reg - clock-output-names - "#clock-cells" - - "#phy-cells" - host-port - otg-port @@ -131,26 +127,25 @@ examples: #include #include #include - u2phy0: usb2-phy@e450 { + u2phy0: usb2phy@e450 { compatible = "rockchip,rk3399-usb2phy"; reg = <0xe450 0x10>; clocks = <&cru SCLK_USB2PHY0_REF>; clock-names = "phyclk"; clock-output-names = "clk_usbphy0_480m"; #clock-cells = <0>; - #phy-cells = <0>; u2phy0_host: host-port { - #phy-cells = <0>; interrupts = ; interrupt-names = "linestate"; + #phy-cells = <0>; }; u2phy0_otg: otg-port { - #phy-cells = <0>; interrupts = , , ; interrupt-names = "otg-bvalid", "otg-id", "linestate"; + #phy-cells = <0>; }; }; diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml index 84bdaf88d..43c288708 100644 --- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml @@ -184,7 +184,7 @@ allOf: - "#size-cells" patternProperties: - "usb2-phy@[0-9a-f]+$": + "usb2phy@[0-9a-f]+$": type: object $ref: "/schemas/phy/phy-rockchip-inno-usb2.yaml#" @@ -233,7 +233,7 @@ examples: #phy-cells = <0>; }; - u2phy0: usb2-phy@e450 { + u2phy0: usb2phy@e450 { compatible = "rockchip,rk3399-usb2phy"; reg = <0xe450 0x10>; clocks = <&cru SCLK_USB2PHY0_REF>; From patchwork Tue Jun 1 16:47:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 1486121 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=MpgOrNRF; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4FvdQ84cLQz9ssP for ; Wed, 2 Jun 2021 02:48:16 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234493AbhFAQt5 (ORCPT ); Tue, 1 Jun 2021 12:49:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234506AbhFAQt4 (ORCPT ); Tue, 1 Jun 2021 12:49:56 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71F77C06174A; Tue, 1 Jun 2021 09:48:13 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id h24so18823080ejy.2; Tue, 01 Jun 2021 09:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g6VRk7pLTv14ZqW4HS/uJREzcuFALmE6Z5eWW3DWvAQ=; b=MpgOrNRFTId0SN+tfPxA2A4oeYOe4Gnn12I4uLktM8/O/NTHrIOO5eVna7lhRSQM1N sw0W/mOxAgk0NfXR3tnkJE1VtYTbT/VWFGbKFsw27C1U+IqwjHepwgxyaYGT/vdUZ0k2 vB1EPiW/Z+nso1GKUcDFBPnaZLzQA6EIruY8dtOvoEfr1vfQ5/o39YIRqca9ct5MJO3k V2kl4LHbJhxhwAEiytyZjateCV2BAKynR7q6UAMjosv2Bz/nHuXh56p6gPn7bHVpSGuZ o5YAyZTbvLHI5zjWtGjUWK5tthZDhTHib+cOO7gZG89A2vdazzYN/FHEXYpYPrB0Ul4G CsCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=g6VRk7pLTv14ZqW4HS/uJREzcuFALmE6Z5eWW3DWvAQ=; b=RKZeQOv4PFbUzxLYyQ+MIV8944rD2gAbLtKWmSAcZ8D+bKV3mSgq6Nlgunojc9zYQS uBy1Tuo5D5O2bBdMwdIQybYHQdWr9iABf0kBuaw5QvuhRhqx0SeiZpXCZ2vMCH7DfOWx uHVWlPozU/zxegvCAM/eOY8dqya7Ay1YVldHPF8r42yYolKmIHlab9TkO8vO0MSVfDjF DT9s93rxWX487t0En5wH1NYd5p5Ci0FfJl+PYv/pYzazsjtgv6eXgHph9srFm0ZSYMlf 5FHCsY30is7coiYQerkLO02fcShu2Ns5HkFmJkkUXZSQlTNmzuoAM2elcwRUZCn4d2LG glbA== X-Gm-Message-State: AOAM533xhGTGykuDli82lPqeNxJTdmyiL3SUKSJxLY/Pnou5sEHp+2Zz 6WdorcWzpa1jfxM5clnTeZ/RfHREQQJPaA== X-Google-Smtp-Source: ABdhPJwNuuIuSL6mm3XCOpqcPdvbFx0jNg1gsdx1EYhm+NAhvjfe+/xP2OtQtG4scGTDm84L44FLIw== X-Received: by 2002:a17:907:7749:: with SMTP id kx9mr30893200ejc.90.1622566092137; Tue, 01 Jun 2021 09:48:12 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id q18sm8327750edd.3.2021.06.01.09.48.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Jun 2021 09:48:11 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, kishon@ti.com, vkoul@kernel.org, t.schramm@manjaro.org, linux-phy@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 2/5] dt-bindings: soc: rockchip: grf: add compatible for RK3308 USB grf Date: Tue, 1 Jun 2021 18:47:57 +0200 Message-Id: <20210601164800.7670-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20210601164800.7670-1-jbx6244@gmail.com> References: <20210601164800.7670-1-jbx6244@gmail.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Tobias Schramm The RK3308 has a USB GRF. This patch adds a compatible string for it. Signed-off-by: Tobias Schramm Signed-off-by: Johan Jonker Acked-by: Rob Herring --- Changed: Add "rockchip,rk3308-usb2phy-grf" to "usb2phy@[0-9a-f]+$" patternProperties too. --- Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml index 43c288708..8c1c46fef 100644 --- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml @@ -31,6 +31,7 @@ properties: - rockchip,rk3308-core-grf - rockchip,rk3308-detect-grf - rockchip,rk3308-grf + - rockchip,rk3308-usb2phy-grf - rockchip,rk3328-grf - rockchip,rk3328-usb2phy-grf - rockchip,rk3368-grf @@ -174,6 +175,7 @@ allOf: enum: - rockchip,px30-usb2phy-grf - rockchip,rk3228-grf + - rockchip,rk3308-usb2phy-grf - rockchip,rk3328-usb2phy-grf - rockchip,rk3399-grf - rockchip,rv1108-grf