From patchwork Mon Nov 14 19:47:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13042760 X-Patchwork-Delegate: kuba@kernel.org 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 EBEADC43217 for ; Mon, 14 Nov 2022 19:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237303AbiKNTro (ORCPT ); Mon, 14 Nov 2022 14:47:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231757AbiKNTrm (ORCPT ); Mon, 14 Nov 2022 14:47:42 -0500 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF74FCE7; Mon, 14 Nov 2022 11:47:39 -0800 (PST) Received: by mail-ej1-x62d.google.com with SMTP id bj12so30840502ejb.13; Mon, 14 Nov 2022 11:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/LnaIV3U3L1Vcder467gHAKaNxirMboVJ91pDlJdic4=; b=lJvTjJLTtd/oxgIiHPXWEuWj7ci0WEvQ6mLmICO9su8tkvzS0a7c8sVXSo1+T1uHf/ myXfSh/rA7BZDLPpM5995JEfLMTHrhlX/5GoETS4T9uislF0quBtlmYAcWc78lmSbTM0 v1KmS/TbyQ7QGHbfOZv47EQhyAMUs2Vj7Lv25s60UBYW8mV8daY6v/DFCsSBDANBXlnV 4772kD6J6uGrmBxI/GA8GbyV4nN9cxJU1jFTsk5cOl8/fxb4SFvZ3b7nK1Y1ZwhEY/KH LaXc+aEX0SkhTpnRv9ie4CS7MoBcV1wLWoN/N8sLpNHM5HtdDE5uYv4T/5EN+neDtHif NsPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/LnaIV3U3L1Vcder467gHAKaNxirMboVJ91pDlJdic4=; b=WT8cC4FJfam7V4/Fbh42T/4Hds8Gi85xH324a9MK/jmyDQTVorRNWtEQUPUcwhzZYs LCp2VEPm2jdyDRcTZ1q4P0vhxqamPtUhfNcjMdVPLq0ggZTyNtZJhIqviVKtrAaqj2Lk V1eCfV78GvrfiquFZRWQXBX2qeaJZdJxaIn2oYCrJvyxO66pTzt947tRCric4zJTfshc hVB/F9GILt+8js/ZDwe3t7auAyQbbA0j3yNj6LcZpIODz5pi0Z9HtD8uqFIyYgWgCLKD pkSn4dHy8XqTC+F7A0Ve5UB0VsFJ5zvRh4O1bde+YzXCbO5tD+Jakbg7t13nQreNTPu5 VICw== X-Gm-Message-State: ANoB5plAMxcH8agdz5vtd3X33YWTVBbU0el7G7bZATFPopEdBuesjpJy GzVpg2gS1WuLae8hCjTjg4tHUcbkxjnkKA== X-Google-Smtp-Source: AA0mqf5FZjSrUDepXVEOx6V99CvpcdxgNMty0UVgjAd5Q+z2sHkdmvaAtt1eZ13LiiekiczGygmO7g== X-Received: by 2002:a17:906:3a12:b0:781:b7f2:bce9 with SMTP id z18-20020a1709063a1200b00781b7f2bce9mr11662177eje.269.1668455257826; Mon, 14 Nov 2022 11:47:37 -0800 (PST) Received: from fedora.. (dh207-97-48.xnet.hr. [88.207.97.48]) by smtp.googlemail.com with ESMTPSA id k8-20020a17090632c800b007a62215eb4esm4666405ejk.16.2022.11.14.11.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 11:47:36 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH v2 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Date: Mon, 14 Nov 2022 20:47:30 +0100 Message-Id: <20221114194734.3287854-1-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Document IPQ6018 compatible that is already being used in the DTS along with the fallback IPQ4019 compatible as driver itself only gets probed on IPQ4019 and IPQ5018 compatibles. This is also required in order to specify which platform require clock to be defined and validate it in schema. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski --- Changes in v2: * Drop items from IPQ4019 and IPQ5018 compatible enum --- .../devicetree/bindings/net/qcom,ipq4019-mdio.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml index ad8b2b41c140..1ba8de982bd1 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml @@ -14,9 +14,15 @@ allOf: properties: compatible: - enum: - - qcom,ipq4019-mdio - - qcom,ipq5018-mdio + oneOf: + - enum: + - qcom,ipq4019-mdio + - qcom,ipq5018-mdio + + - items: + - enum: + - qcom,ipq6018-mdio + - const: qcom,ipq4019-mdio "#address-cells": const: 1 From patchwork Mon Nov 14 19:47:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13042761 X-Patchwork-Delegate: kuba@kernel.org 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 F28EFC4332F for ; Mon, 14 Nov 2022 19:47:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237323AbiKNTrp (ORCPT ); Mon, 14 Nov 2022 14:47:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236809AbiKNTrn (ORCPT ); Mon, 14 Nov 2022 14:47:43 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCEC71D323; Mon, 14 Nov 2022 11:47:40 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id i10so22275357ejg.6; Mon, 14 Nov 2022 11:47:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bYmcpnW+ePTt4zEzu+teiWByE3/vsa59R3Lc76Pvt6g=; b=bcDLb4T5i3fAW751pVys7VAd/J/u49NNcKnx1M30PsveLWVzxshJTGR/Tb/JzaD2oY Dj3vRfsmCVg54cI5AP7ddzgxbB8NS1o3kXs4bIwmYaYkqNsAULNmM2O6IJAdVp2D6lKz DoczCZArkxR8Wn9oOvkt0WWu7BYahKmKEoZQ3vJ08DurZ2vUACxso++hTRyTrgieYjed wuJS3jGvlAbixIookRK6cRy0bYDEq7z9MI/6C1u7DbvU+cjIy6wX4A8YXfHuxRTqhPl/ S7+A4wMJzhUZCZi1BE+DptqTc2wvrTgjyOiqjN3Ob8e94td7gjFrqW3Kg4DePMfvoeML jdog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bYmcpnW+ePTt4zEzu+teiWByE3/vsa59R3Lc76Pvt6g=; b=ZsdBeO4K2F3Q7Q2W4dXGPyV7G1YjDKZgU8GaNEAI/6iD5ovPH6mIGLwI3VHAN7C6nv 9Rg8RjLZb4Upt6AE4tJTLFEMpVUh2yFY2c+Xoz9f/07mKx4MjIeRAQoEuYILhlcyNRG6 n5MzjcL7r84VBQgPAccwWPIY+D3HuiVoXXMQoDzmE2RgJ9wtvjp0F0I/hXjlOQKa+Yi7 2CKnKBoOhzODToca5neWWb/QYrGQsvPI3ztPyUdfAS9v7Jc3o4VwGR37uQQZSC40F4fE Pr6uzsmQWr9mTp30IoLxTYPfRCU7Nem5Spzxhb6U1Wsz0aePq5UGWEv+64K6l0x99zhv 3Y6w== X-Gm-Message-State: ANoB5plQGzqmFgdSXci7UL+MCf5cMfUIj+JZfIYEU1VR3e7qrTrmitMw 62deJ9/UKVTEV6AuS68X39eSMjKAPVK3WA== X-Google-Smtp-Source: AA0mqf51HJAjjBZeHlAjjPueqCuplZVbbeBBRVTfKe9I5jUORIRwwZhujq8bmIJIx03ZHShvDvq84w== X-Received: by 2002:a17:906:ae52:b0:7ad:4a55:5e19 with SMTP id lf18-20020a170906ae5200b007ad4a555e19mr11573740ejb.65.1668455259275; Mon, 14 Nov 2022 11:47:39 -0800 (PST) Received: from fedora.. (dh207-97-48.xnet.hr. [88.207.97.48]) by smtp.googlemail.com with ESMTPSA id k8-20020a17090632c800b007a62215eb4esm4666405ejk.16.2022.11.14.11.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 11:47:38 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v2 2/5] dt-bindings: net: ipq4019-mdio: add IPQ8074 compatible Date: Mon, 14 Nov 2022 20:47:31 +0100 Message-Id: <20221114194734.3287854-2-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114194734.3287854-1-robimarko@gmail.com> References: <20221114194734.3287854-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Allow using IPQ8074 specific compatible along with the fallback IPQ4019 one in order to be able to specify which compatibles require clocks to be able to validate them via schema. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml index 1ba8de982bd1..f4918c9e6fd2 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml @@ -22,6 +22,7 @@ properties: - items: - enum: - qcom,ipq6018-mdio + - qcom,ipq8074-mdio - const: qcom,ipq4019-mdio "#address-cells": From patchwork Mon Nov 14 19:47:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13042762 X-Patchwork-Delegate: kuba@kernel.org 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 24500C4321E for ; Mon, 14 Nov 2022 19:47:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237340AbiKNTrr (ORCPT ); Mon, 14 Nov 2022 14:47:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237315AbiKNTro (ORCPT ); Mon, 14 Nov 2022 14:47:44 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D3671D66C; Mon, 14 Nov 2022 11:47:42 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id y14so30929888ejd.9; Mon, 14 Nov 2022 11:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=tsR5K/bfZiGAjhy1k2auvOyy8yyn/K6mNHQVJ8yfpDI=; b=ZeQHAWrvk3y4OclcphYl2giFJsoB9YAD4mjThrT8JkPhz4G8goD5/Dy1B+Ds5OgasX ySY+ojVK7gYHpTWr8zCYt4q7tTt88m/dELqESRbHDj3i1EvkndQOd7C2F4QbVl9ygQDl q6M2Gd9LNSmRiOb/shmmL6BvEXhcolVPcOQZQv/ox/ORc/JsObNQrXQT6iWGSbzbP5vW QtQhJp8eIJQgjdmFnlCRbPvzJM1iynUMP36EhTOWQxobZD27iMwUhlZ17XGv5zhgztzJ 3axxxNGXT4o947lYaWRiBoYDnVOlWqER4Oak+hIE4OL42uMLGbyBBoPjZPd8AG/F8+uj i2pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tsR5K/bfZiGAjhy1k2auvOyy8yyn/K6mNHQVJ8yfpDI=; b=Rfweu0tpeQ5jkxXobaRT/3QkX7ASk0zwetBrGO+ggyWaQ1VoKTfBvHgdZGRxKoJ5lb iHrjqBOyGeEpqG0xJZsMqcDKzCawGawfhIsNtkhPpKScajVMeyzDPPnkhPENLWdEq3Ke BkgoUZ+ZzkW8gF5Kti+H9nLxiCZiL7TD0+YypKlo1mLBNXVGK+QO/vYiMNtVB801zRuU 8ybp6LdhYX003J+BVljHTtkf69QyHgab98duJXMpuIx3/Yq9PkEdNX5+KR1+9kjHYHUq MF05eVHGNbmaS1O5Ivarq0o1GdxZ5vVGeCFnyw9zipSimfDav24DKhngqzXYfvzTDZsL 53rg== X-Gm-Message-State: ANoB5pmLTvmDGcbTZuZuPfUxol43TBxETihctCFHBM1hZF1dXXWqy2VQ 9aWuP298CSjzdSG7zaLpbWs= X-Google-Smtp-Source: AA0mqf6aybkpApXzIZ1nIwI3qDvVSWJCngobhH2a12ALXf2opCgKJrOW7XNMxrvJOtEfJQlOOCEP0g== X-Received: by 2002:a17:906:970e:b0:7ad:ccae:a30d with SMTP id k14-20020a170906970e00b007adccaea30dmr11946651ejx.704.1668455260640; Mon, 14 Nov 2022 11:47:40 -0800 (PST) Received: from fedora.. (dh207-97-48.xnet.hr. [88.207.97.48]) by smtp.googlemail.com with ESMTPSA id k8-20020a17090632c800b007a62215eb4esm4666405ejk.16.2022.11.14.11.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 11:47:40 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH v2 3/5] dt-bindings: net: ipq4019-mdio: require and validate clocks Date: Mon, 14 Nov 2022 20:47:32 +0100 Message-Id: <20221114194734.3287854-3-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114194734.3287854-1-robimarko@gmail.com> References: <20221114194734.3287854-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Now that we can match the platforms requiring clocks by compatible start using those to allow clocks per compatible and make them required. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski --- Changes in v2: * Keep clocks under properties and disallow per compatible --- .../bindings/net/qcom,ipq4019-mdio.yaml | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml index f4918c9e6fd2..72561e3aeee3 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml @@ -9,9 +9,6 @@ title: Qualcomm IPQ40xx MDIO Controller maintainers: - Robert Marko -allOf: - - $ref: "mdio.yaml#" - properties: compatible: oneOf: @@ -40,10 +37,8 @@ properties: address range is only required by the platform IPQ50xx. clocks: - maxItems: 1 - description: | - MDIO clock source frequency fixed to 100MHZ, this clock should be specified - by the platform IPQ807x, IPQ60xx and IPQ50xx. + items: + - description: MDIO clock source frequency fixed to 100MHZ required: - compatible @@ -51,6 +46,24 @@ required: - "#address-cells" - "#size-cells" +allOf: + - $ref: "mdio.yaml#" + + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq5018-mdio + - qcom,ipq6018-mdio + - qcom,ipq8074-mdio + then: + required: + - clocks + else: + properties: + clocks: false + unevaluatedProperties: false examples: From patchwork Mon Nov 14 19:47:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13042763 X-Patchwork-Delegate: kuba@kernel.org 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 F2C5FC433FE for ; Mon, 14 Nov 2022 19:47:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237354AbiKNTrs (ORCPT ); Mon, 14 Nov 2022 14:47:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237317AbiKNTrp (ORCPT ); Mon, 14 Nov 2022 14:47:45 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6799FCE7; Mon, 14 Nov 2022 11:47:43 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id kt23so30939200ejc.7; Mon, 14 Nov 2022 11:47:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=glNDNFAfAsfXidR8J1WHl6noXHXVVdrjbyk1bVQ214c=; b=CqkzHSGTH6uK2lOWBNvwyNbDC4h+ic5Ll+AESO6gP6iTJpbNd6dZXC/6zrDf47U+id vVVCVszg9LBYlv1xLJ027liR+VjwwAm8S8rJa5qRsPONBsphs12vSJFIfr60J65Rg8f7 6ngfHGfwzmqT/zPd7/Fv9Z2QNr+ydulRB0qDq6kVPt36BpFVY5fWt+LM5VS5Atlq6yTs Ykv5lcBYTFVlQ7FQfaUUkd3cS7BcEusrnxgqYFR2Fi6fOQg12wEyxXkdta3Kfak5recc 4XsvUzA8b5csu1RGe+DFwuGtPQbEPb2dTbpV3cQKM+eYsiOY7fWZbOe6CvgaquXARtZ0 mWNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=glNDNFAfAsfXidR8J1WHl6noXHXVVdrjbyk1bVQ214c=; b=zONTxmouTOrcLqH3ndNliB7/LHY9gYSbL5Ik0YmivbwIc5cyIa4RmGbFiyXw/5L2DB zkpcj5rr97V6D8dMdrDJeH88hP0O4ucEfAQfP9TXkzm5yvuL3weQnormqV5y9vvgDPqM aCQdPgqhGB2aT35PPbxgC/9bNI3IIvJv/ShZNk7PHPgtUQg89AEcKEUbZTb0bVP7lJnY VwtnoDogcWu5hoVW41Ka+9HPxKh4ezTyX+VleAQABxh0AzoB3Bsm9Qv6AmH6B4QulJmd 0CMUXyhzSzIef524b0xQtAtabsefufN99nfahICGNmGDqfmMx74/NqtCgNHIEAN95tBY PI+w== X-Gm-Message-State: ANoB5pkZEF8p4ZnpavkwGvYb+NccyUrMKmF6sh7JQv5mkAQ0Ui5/upbF 2KxyGLuULv7FRm0IDPQrOEA= X-Google-Smtp-Source: AA0mqf6Rtlng3QP5iz13QOjL4kXYR0UZ30Nt1vtYZyACQBuiufJsZ/9wHyV12hwwtKkOXfb6K5WExA== X-Received: by 2002:a17:907:9a85:b0:7ad:b45c:dbca with SMTP id km5-20020a1709079a8500b007adb45cdbcamr11637004ejc.388.1668455262224; Mon, 14 Nov 2022 11:47:42 -0800 (PST) Received: from fedora.. (dh207-97-48.xnet.hr. [88.207.97.48]) by smtp.googlemail.com with ESMTPSA id k8-20020a17090632c800b007a62215eb4esm4666405ejk.16.2022.11.14.11.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 11:47:41 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko Subject: [PATCH v2 4/5] dt-bindings: net: ipq4019-mdio: document required clock-names Date: Mon, 14 Nov 2022 20:47:33 +0100 Message-Id: <20221114194734.3287854-4-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114194734.3287854-1-robimarko@gmail.com> References: <20221114194734.3287854-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org IPQ5018, IPQ6018 and IPQ8074 require clock-names to be set as driver is requesting the clock based on it and not index, so document that and make it required for the listed SoC-s. Signed-off-by: Robert Marko Reviewed-by: Krzysztof Kozlowski --- Changes in v2: * Define clock-names under properties and disallow it per compatible like clocks --- .../devicetree/bindings/net/qcom,ipq4019-mdio.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml index 72561e3aeee3..7631ecc8fd01 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml @@ -40,6 +40,10 @@ properties: items: - description: MDIO clock source frequency fixed to 100MHZ + clock-names: + items: + - const: gcc_mdio_ahb_clk + required: - compatible - reg @@ -60,9 +64,11 @@ allOf: then: required: - clocks + - clock-names else: properties: clocks: false + clock-names: false unevaluatedProperties: false From patchwork Mon Nov 14 19:47:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 13042764 X-Patchwork-Delegate: kuba@kernel.org 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 0D925C43217 for ; Mon, 14 Nov 2022 19:48:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236925AbiKNTr7 (ORCPT ); Mon, 14 Nov 2022 14:47:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237334AbiKNTrq (ORCPT ); Mon, 14 Nov 2022 14:47:46 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 307E81DA5A; Mon, 14 Nov 2022 11:47:45 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id s5so2638595edc.12; Mon, 14 Nov 2022 11:47:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=n0D7hYmWxMOtktKnG+ggFebq/O5+c5dEuQKnJ0LxuN4=; b=gR45i7+KvzT5jP0/lIxPmNVCWai+tRNTod1sjTUZx8BVPkjlyChFdBbK6PUQOzl3fw r47MKvc6KJ/Kmjr85S+merePtXs+s+yKUaqytkK36KgK2swnJcVCgVBPBdz0AGTRDZhj eRet/paI0d5z0ozlj1c6gSsHmSXgTa75o3RK01FMzR+yV6WW+Q4c7QHvZvnfgrQ4c+Yk x1/Yp8IYhJ1UJEguLYw7M0xXf2QTt0s3LpTfeVnE87GiJeQRIQpyye1vFQOmdqCGz+Ml WASIXGx2IdAk59Uc9RNLFNCZwxGrKQghxtvm83BJV8ElPfT3vCNJ+PWz70h+42O8FqBX 57Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=n0D7hYmWxMOtktKnG+ggFebq/O5+c5dEuQKnJ0LxuN4=; b=f6UhLD0cuEzchv/Q9kwzeyrbkFng+wmE+Iu61giowC0jZfLxpSnLXRvHxAs8mX3o7x XJYda3+i6xgvHfFQWx3/hwpSIfHvj5eBPGRMx5hLcK9ONjWpWgEdaxh9oRwEoOVslI9t FnQKMXqDD9b/OcfIyawmy/ZI4QqwXxGrrtPaklFNRNsOMRQNNTKjicYUDLCd5jm8maQg 1aqn34to6jbd+YJ598roygYlmsEpOeUZldiNZTXKGogaY/kCGEtiwzVaCsaU03U6mtuN 7rkZv7X+cJYocYPkmAKrc/hyULSLoGs4Qi97jkvJFvhzsPWUHehGn0YlLUGqNYwDyS3P U8sw== X-Gm-Message-State: ANoB5pl32H9cV2UFBHj8uehZOcknnVryESWkeoLjUqx5Bgcfx4MZh92Q q8Xy5ghOq2X02iySB8o3sAg= X-Google-Smtp-Source: AA0mqf7w4sHb8RKj3Oe0o8FjnulwnnXsTmezWgQOnBefQW6jlUhCDCqGmmHKwWFrn7YL/kZe3HMfnQ== X-Received: by 2002:a05:6402:70e:b0:459:7673:6f33 with SMTP id w14-20020a056402070e00b0045976736f33mr12461215edx.30.1668455263652; Mon, 14 Nov 2022 11:47:43 -0800 (PST) Received: from fedora.. (dh207-97-48.xnet.hr. [88.207.97.48]) by smtp.googlemail.com with ESMTPSA id k8-20020a17090632c800b007a62215eb4esm4666405ejk.16.2022.11.14.11.47.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 11:47:43 -0800 (PST) From: Robert Marko To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Robert Marko , Krzysztof Kozlowski Subject: [PATCH v2 5/5] arm64: dts: qcom: ipq8074: add SoC specific compatible to MDIO Date: Mon, 14 Nov 2022 20:47:34 +0100 Message-Id: <20221114194734.3287854-5-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114194734.3287854-1-robimarko@gmail.com> References: <20221114194734.3287854-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Add the newly documented SoC compatible to MDIO in order to be able to validate clocks for it. Signed-off-by: Robert Marko Acked-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index a0481c671faf..583871c29586 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -331,7 +331,7 @@ pcie_phy1: phy@8e200 { }; mdio: mdio@90000 { - compatible = "qcom,ipq4019-mdio"; + compatible = "qcom,ipq8074-mdio", "qcom,ipq4019-mdio"; reg = <0x00090000 0x64>; #address-cells = <1>; #size-cells = <0>;