From patchwork Sun Nov 13 18:47:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 624461 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 2D52AC4332F for ; Sun, 13 Nov 2022 18:47:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235376AbiKMSrf (ORCPT ); Sun, 13 Nov 2022 13:47:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233909AbiKMSre (ORCPT ); Sun, 13 Nov 2022 13:47:34 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13D0EFCED; Sun, 13 Nov 2022 10:47:33 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id k2so23588401ejr.2; Sun, 13 Nov 2022 10:47:33 -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=cF1JXmpvIU3CzjntusQxhImrsMqCHteTbq+Gdn0gF3w=; b=VwulM1DxMMZAdPmKaU5pRHcknEnSWhZ+ZS+cm/qhesVu753uIxQqRNTW3WprlBk2Z4 AUCGknMqRMaS2ptUFyOcpkoQqiKhijCWaNEnUnZc8tFUOeZ7rdvq6eRhHXEEmwQs7Y9+ 9svKmgz38DDhlYcIwXdn7NlI1I9n3XTxiLjFYV+JgLebR0MU6IxGplS26TuikyKB0RsN qWuSZKFEeHRu4+268tGLwB5jcPjXBUlajXd5k+k7DB2nA5jXNoLDH4yHXJNZ6P42rhB7 9Cjc05UV0uwqp3phf/FiQBO69VT7FYlBn7r0v7EpgKFMMYBufXswZTyQvWwonH38cHMP oPWQ== 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=cF1JXmpvIU3CzjntusQxhImrsMqCHteTbq+Gdn0gF3w=; b=J7lk0Rxs7OW3MgX1nTOcXVF1ObjX+NvMOATt56zDiHn/k4KQNKZnjg6XyiFgOs8Qbs wSbZbXgR6oU2WrarJQkRXn6IRbLkV1lpQewPQHUSsnejJhtTaZMf6NJ/pw2A8AZl0yqc 6hschcrWhnUaI2L2j1OCiD7W6thLCnfJ+JBHnHp2e4sRruYRmVfl497EpVcdZL1zQKH+ fZ2WKAD+vmi38Ox8NLDYdnNIdG5WreP4uKSoLdyRIOjZhrdNHqOw+h+EzRxu9r8ZWMHf eusl5rCdvOW5cNInM6qa2213EGxMD5T6uEz15CJLN08SOC/PGB9lenZtpsN9SZUvfdqk BBOA== X-Gm-Message-State: ANoB5pnpoBxk2W8bfvkNdP1dKdLEbgpWXUjeKm25rBu2tUkdQjwepMd0 Tjkvdp3p9ap/2Ql2KoU548In9UBd4Bky4g== X-Google-Smtp-Source: AA0mqf4AOAg99Nr8UQojmJv5ffuuHVE4LG9bwbnrO4f91z2yI6QvjiE3MtOGyX1+pOhT+uDad6iJuA== X-Received: by 2002:a17:907:2168:b0:78d:48ac:9041 with SMTP id rl8-20020a170907216800b0078d48ac9041mr8107636ejb.361.1668365251410; Sun, 13 Nov 2022 10:47:31 -0800 (PST) Received: from fedora.. (dh207-97-48.xnet.hr. [88.207.97.48]) by smtp.googlemail.com with ESMTPSA id a2-20020aa7d742000000b004623028c594sm3760050eds.49.2022.11.13.10.47.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 10:47:30 -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 1/5] dt-bindings: net: ipq4019-mdio: document IPQ6018 compatible Date: Sun, 13 Nov 2022 19:47:23 +0100 Message-Id: <20221113184727.44923-1-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.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 --- .../devicetree/bindings/net/qcom,ipq4019-mdio.yaml | 13 ++++++++++--- 1 file changed, 10 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..2463c0bad203 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml @@ -14,9 +14,16 @@ allOf: properties: compatible: - enum: - - qcom,ipq4019-mdio - - qcom,ipq5018-mdio + oneOf: + - items: + - enum: + - qcom,ipq4019-mdio + - qcom,ipq5018-mdio + + - items: + - enum: + - qcom,ipq6018-mdio + - const: qcom,ipq4019-mdio "#address-cells": const: 1 From patchwork Sun Nov 13 18:47:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 625747 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 C0E82C43217 for ; Sun, 13 Nov 2022 18:47:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235522AbiKMSrf (ORCPT ); Sun, 13 Nov 2022 13:47:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234130AbiKMSrf (ORCPT ); Sun, 13 Nov 2022 13:47:35 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61BC0101D3; Sun, 13 Nov 2022 10:47:34 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id e13so5392956edj.7; Sun, 13 Nov 2022 10:47:34 -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=c/VvhqVJ3MjIrUeX8KcoaCk2MxdjNB0YANO5NhKfsGs=; b=asUUAzkI8LCklALoOBPjg7TKZRpt148fWwSUpD+A6laGXWukBRJhzitUj1SNfE80jZ 4F2kvQEya67iyJMOYG9DgB/j1DKnL7JV3bJELffY3PHP5S18zuioVSdc5z/s9MPHq7s3 osdxGXf1fbz01qUtUaeHFEBnQOLgRKLHy3QUpk0nDxA5ABsvPsF8v1qeYTaGZu4ypkC3 x1iMbU4SpXpp7O+zGZhpgFXTZI1wa8cqIRvH/1povv3x4cmpWYrcqrSTmR/sPLnL2w0g OXLSIb/ffTiBcURt3O5xpEtRligDGe7QnOMyKKHm9z3qQuIXckKOMG2oMMdlEL5POD2h 9i2Q== 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=c/VvhqVJ3MjIrUeX8KcoaCk2MxdjNB0YANO5NhKfsGs=; b=smQaZpuPsiz3xvT4A0wXSdwFwTv5m2em5fIELagyVpQdx9X5/4UCwvDGeWHUI4Ze+z K8EnAqZ3w3lQJCA1CG/KoQSyMrZCWGIcPysdtIFDALU1eVZPjEAwmP5gWU4E41JVnCsj h3dX7TxTJO3fpWcdD59SpR5OsS3dTc7m7wT/fh2pjzqV8llLc4eC1Q4E+YC2f3ANFsaT g9iLhcMnYngXiqNNIdamxHeOqcKIiQmeksAUBDduhItDB51Wrq6lzHHbU3A5fREqyKYh oqQwCuOx2vkvFReSHEslUoe9QMSeFBUs8T9ldYWU00DE0ptYwDg2/1/w1ijEbJijsgdD tKHA== X-Gm-Message-State: ANoB5pk2W7GpXnqSFd61QuXgyoTU02SAezZbhk93valWeTJdjxOHodrA 6vec7YtJZINv8otGycZVY/Q= X-Google-Smtp-Source: AA0mqf7tvi6e5K04Cwn4s7oPS7aqxh2YV09YqFJ89KUSfBujLP4WwY4gpJ4Y8keRMzBN3Znc5Y/BOw== X-Received: by 2002:a50:f68c:0:b0:463:c067:8277 with SMTP id d12-20020a50f68c000000b00463c0678277mr9034371edn.185.1668365252875; Sun, 13 Nov 2022 10:47:32 -0800 (PST) Received: from fedora.. (dh207-97-48.xnet.hr. [88.207.97.48]) by smtp.googlemail.com with ESMTPSA id a2-20020aa7d742000000b004623028c594sm3760050eds.49.2022.11.13.10.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 10:47:32 -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 2/5] dt-bindings: net: ipq4019-mdio: add IPQ8074 compatible Date: Sun, 13 Nov 2022 19:47:24 +0100 Message-Id: <20221113184727.44923-2-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221113184727.44923-1-robimarko@gmail.com> References: <20221113184727.44923-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.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 --- 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 2463c0bad203..2c85ae43d27d 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml @@ -23,6 +23,7 @@ properties: - items: - enum: - qcom,ipq6018-mdio + - qcom,ipq8074-mdio - const: qcom,ipq4019-mdio "#address-cells": From patchwork Sun Nov 13 18:47:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 624460 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 EB387C433FE for ; Sun, 13 Nov 2022 18:47:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235551AbiKMSrq (ORCPT ); Sun, 13 Nov 2022 13:47:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231252AbiKMSrh (ORCPT ); Sun, 13 Nov 2022 13:47:37 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF6E1FCED; Sun, 13 Nov 2022 10:47:35 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id a5so14345290edb.11; Sun, 13 Nov 2022 10:47:35 -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=SPSCT7mL2Daw8RWymsIQzf971Rn84ofq1ETgmc/Yrg4=; b=UR/aoMRfLNPHf+oe//1gZcDiKrj20/dQroVVC3bELi920m6tVVK50Ixl4Y6q7+JjUu CJNoMzuRfdPpex8t1vmM9AEn5zMf1TkWwPqivZpx6gJwfYXy2A1l23klBmagqjvae7BA MuYzxg1feIxkm+qn6Xb+dfR1LJy/wUxWAfKycFMBiPtpmyaR4Pn0KLSKZ42rujr1bd/w 8rHvlPf+9W6sWOY5NxgRzpuHoDr/ZxtzY+BwGorJZte+DWTUaG0PGJ3rZCEDx1FJhjn7 INMSvfAB56s2hsnAutpTBoSEC6qe593TtZujeLLyr8c47ZwjNTJROR4wLzr/Uqab0HpV iLaQ== 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=SPSCT7mL2Daw8RWymsIQzf971Rn84ofq1ETgmc/Yrg4=; b=fVG6B4CE+te3kSwINqgWkGF7M4xvs2EjDIlkzWWC/Z3hqWRn2QMJh81vfF9KBgwB0r 9rQ1DGHkdAF43y4+9oRFQX5Z+cCbtIWQBh/NVI2uR2P5l5+NiifrrDvAtpMx9dgaQLRq ay9xuwXzVXoyyWRPwsRocIzM2qXYLFDfP7/LG+jS5QMVk/idJJb0T48IPAxkVint9uUF AM8VYvMWARlM0XOfQkARBhZdRV1qfY/v+enljXbn+sX57gXzbgjT191Ra6IjvmIm5BYY FeAO+jPcJAcij0Syg3osbi+GRma+46IOlZbcpyxpMTi9UeskiNiKCR53CDRjqGlch+H2 PxCQ== X-Gm-Message-State: ANoB5plvNqC7K8V6larXDyxHLhorlOu0dLRddr4XIMjG+j/TnTdcyPD+ NNLsv0gqFIXzYGtDgFK0lCM= X-Google-Smtp-Source: AA0mqf4h2dzpwsq0qL4eAdnL7K+BPsUaMF+jTK9E4MPEuBmLv4EwxVFmCmlCzPBUlL5Lo73X2XKA+g== X-Received: by 2002:a05:6402:1750:b0:467:d741:f359 with SMTP id v16-20020a056402175000b00467d741f359mr1680827edx.100.1668365254274; Sun, 13 Nov 2022 10:47:34 -0800 (PST) Received: from fedora.. (dh207-97-48.xnet.hr. [88.207.97.48]) by smtp.googlemail.com with ESMTPSA id a2-20020aa7d742000000b004623028c594sm3760050eds.49.2022.11.13.10.47.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 10:47:33 -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 3/5] dt-bindings: net: ipq4019-mdio: require and validate clocks Date: Sun, 13 Nov 2022 19:47:25 +0100 Message-Id: <20221113184727.44923-3-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221113184727.44923-1-robimarko@gmail.com> References: <20221113184727.44923-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.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 --- .../bindings/net/qcom,ipq4019-mdio.yaml | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml index 2c85ae43d27d..b34955b0b827 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,18 +37,31 @@ properties: the second Address and length of the register for ethernet LDO, this second 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. - required: - compatible - reg - "#address-cells" - "#size-cells" +allOf: + - $ref: "mdio.yaml#" + + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq5018-mdio + - qcom,ipq6018-mdio + - qcom,ipq8074-mdio + then: + properties: + clocks: + items: + - description: MDIO clock source frequency fixed to 100MHZ + required: + - clocks + unevaluatedProperties: false examples: From patchwork Sun Nov 13 18:47:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 625746 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 A5497C4321E for ; Sun, 13 Nov 2022 18:47:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235562AbiKMSrr (ORCPT ); Sun, 13 Nov 2022 13:47:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235539AbiKMSri (ORCPT ); Sun, 13 Nov 2022 13:47:38 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA614101E8; Sun, 13 Nov 2022 10:47:37 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id a5so14345367edb.11; Sun, 13 Nov 2022 10:47:37 -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=VMhpYyPey08UrRgT0dHRpZvgVs5y36GQ990A5ruvQkI=; b=SufgRicCgiDOPBIqahr9/qv6XCI0AGxHhMBCltHUEekcrTX/c1uyCF9WIgORRc6Ip/ XRAS7b6cprhmW+iZnDJgEaXpwFNMWBRpe5y9VLsJtF5ajHRb3p6ZBJnmDV2b1ZOz0qDA dPjnQpoIa1QHQherL+D1CxeJHmptS6jdluzWdY26FCCTmHuFdk7VPt9QY5fAJ6I+3OV6 H5tdTozS7aHfyf3cD3U0xYM4243pjppHWHhGsIe4orU2ud6TiAR45krRQRUVx4vcE/pW lISYNkrgyKngI35yANEsBV1Mou/Xc9gNdGgOtaX+E3xsZhKMpTqOKvZV3zotCflUSwjz s5Uw== 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=VMhpYyPey08UrRgT0dHRpZvgVs5y36GQ990A5ruvQkI=; b=l4t0R0ZDZoc0pxJZF4mzeGEmgnE1YszhNTMtTcAaZs8QukK2T23qX94iK3EX5RHaQL vHm8TS5Nb6Wo9mJyaQKMQj+XO08R637NTZzBSMdYIBEtbcsaqGtdDLBc7FR9oEIZA5M7 CY2xP8nPFDIDTZ1E69mT91o3VzFKoa2/6NHxJNYH4W+9+gMmEEr6o1Jqc81qJCSEiHlB stRNIksLCe+7/26dxxm/2XSKnHmsNl+XQYeMzQHFt+PeazpuKNanSg+R3QIgZ5Fz/PTV MWF2HzxAZ0fYX/2i2UAhXgE/J1PG6kF/YJBI2vrXmMfprD20+QAj53cpKim2POYFfT/f 3Ogg== X-Gm-Message-State: ANoB5pk1Iqa0rO+qp7D/IKVQj7HeZkr4qF6C7WMEuSmyMeNkWAM/aAY9 mARM2bpQfDVdu5GkG8219U2FHbF4FCHN5Q== X-Google-Smtp-Source: AA0mqf7BpnnvpWOgQpJ2U8fnXQxafN8bgUIMf04uY9hP5Ien3e1lISxtncyBvSPPp0AdHJYS6a34vg== X-Received: by 2002:a05:6402:2b89:b0:45f:c7f2:297d with SMTP id fj9-20020a0564022b8900b0045fc7f2297dmr8983540edb.266.1668365256417; Sun, 13 Nov 2022 10:47:36 -0800 (PST) Received: from fedora.. (dh207-97-48.xnet.hr. [88.207.97.48]) by smtp.googlemail.com with ESMTPSA id a2-20020aa7d742000000b004623028c594sm3760050eds.49.2022.11.13.10.47.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 10:47:35 -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 4/5] dt-bindings: net: ipq4019-mdio: document required clock-names Date: Sun, 13 Nov 2022 19:47:26 +0100 Message-Id: <20221113184727.44923-4-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221113184727.44923-1-robimarko@gmail.com> References: <20221113184727.44923-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.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 --- Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml index b34955b0b827..d233009b0d49 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml @@ -59,8 +59,12 @@ allOf: clocks: items: - description: MDIO clock source frequency fixed to 100MHZ + clock-names: + items: + - const: gcc_mdio_ahb_clk required: - clocks + - clock-names unevaluatedProperties: false From patchwork Sun Nov 13 18:47:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 624459 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 26CEDC43219 for ; Sun, 13 Nov 2022 18:47:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234130AbiKMSrx (ORCPT ); Sun, 13 Nov 2022 13:47:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235554AbiKMSrq (ORCPT ); Sun, 13 Nov 2022 13:47:46 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 382461180A; Sun, 13 Nov 2022 10:47:39 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id f7so14370363edc.6; Sun, 13 Nov 2022 10: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:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pVDig1RRKsZiaPOKlAeQRhmQ8lXaiXxKccYF0IZ+PBk=; b=k5kLPtjxsguN5R8wefRr6oX7rk0Qfkth/BbCL1XwrqGgQR0iQ6wCHMAyo2fdVd6CFa S03Clzz1Pbulp09EcMnqUIzSKs53AXz9bEHigDsw7E3CPnU3G+Uk3dKXsbJDlg/u3D3W bdRuRQyH815QHPAEEBCD5nqnuJFr4azzjj9z03zcvuynRhoVQTlc+0WoNLbRzCk4q3FQ xf7VfjpEuQ29i9t2qzeYsed/prPLAUOJg9zs0kXSgskaWwfs/JOSOHSGWZatO9YoSvUI YAXv+FXfgrnen88fV8f/p0Yeyko+UupjTec+xis6iXRRMMl5hlOzpde7TfMcuvN5OnB1 1WRg== 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=pVDig1RRKsZiaPOKlAeQRhmQ8lXaiXxKccYF0IZ+PBk=; b=VbElGyU29Cw2pqA199WPJKHN9hCHM4EKqFkm9q3WRDkwWr1TXS7EyhGyDvdXgxNdAa Y4orrhBhGjYqxI+c+fttS8DrGNxYPS+0Vy/jIWO+bEixL20GuzTNb5MpE+91Ni8Fa2E4 uISGtV9StDVQVuwdaINn3DiRzGNNjalNwtGhsOsy0YH9BKsYGm8iG6ayGp+qFDy63fHb y1D4F8p1e+0UDatfXGyb9NBTmaOFb6JZl7UUlBTecagVu/ws9Y7oqGZ9k5BhO3sMF5Zk R1Gd+sUmKKeg8mNT3rdbpezEcKg2KcCx3uSHZMsNHPzWuu3LTq88+Lbm+4f9cXCPU/2x rm8w== X-Gm-Message-State: ANoB5pkWbWPEFKWGyuJNCt4612sVSLawNaqOBVZzrNjVIx9eVr4ZzOz2 vQnoqh/QRYDQuLvLDozORrs= X-Google-Smtp-Source: AA0mqf5kySzMP+W7wXHErU8epLpNPKZx5FZo07Zl8CqTzEeHygv5MweEvgDnzCIQD42Wgh5VZ1WEqQ== X-Received: by 2002:a05:6402:6c8:b0:467:205b:723d with SMTP id n8-20020a05640206c800b00467205b723dmr9150411edy.69.1668365257789; Sun, 13 Nov 2022 10:47:37 -0800 (PST) Received: from fedora.. (dh207-97-48.xnet.hr. [88.207.97.48]) by smtp.googlemail.com with ESMTPSA id a2-20020aa7d742000000b004623028c594sm3760050eds.49.2022.11.13.10.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 10:47:37 -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 5/5] arm64: dts: qcom: ipq8074: add SoC specific compatible to MDIO Date: Sun, 13 Nov 2022 19:47:27 +0100 Message-Id: <20221113184727.44923-5-robimarko@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221113184727.44923-1-robimarko@gmail.com> References: <20221113184727.44923-1-robimarko@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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>;