From patchwork Mon Feb 28 06:58:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 12762447 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 A3244C43219 for ; Mon, 28 Feb 2022 06:58:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233492AbiB1G7d (ORCPT ); Mon, 28 Feb 2022 01:59:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232045AbiB1G7c (ORCPT ); Mon, 28 Feb 2022 01:59:32 -0500 Received: from mx.tkos.co.il (guitar.tcltek.co.il [84.110.109.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FB6A4B1C2; Sun, 27 Feb 2022 22:58:53 -0800 (PST) Received: from tarshish.tkos.co.il (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 15452440870; Mon, 28 Feb 2022 08:58:11 +0200 (IST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tkos.co.il; s=default; t=1646031491; bh=UzHRfBvg6y4IkbCIkI3SNnDjUBtpXSSAF8obp5wXLIc=; h=From:To:Cc:Subject:Date:From; b=IzEfQ8aL5rkycmm2Ngco9H+/lcKtjk/VEVA9LciyCIdf4ImNzuyOmKxlRKNPV87WY ANAXHJeUq7PSleIR9ZEz5F1tNKQwn5vNUvaMzWKNal7QnNITUkKZI+kyUt5iHY5F1x 7NPEOlCOtlgNzYeHUN2H0Mt8e8hFB5WOQAMySJzw9i540Xteo8zXrRAK718Uq9jh7Z v2DqD27jBet1YdnZMge0T2W75FmqgODMrwH80NGVSkY2Qh2VhIfpx8aACzecvxMU3V icG9ABGVI4rkFFkToouCJv8JTEbKVQRUD17e3AA482Ds/0UQnlr0TUl2PhUqHkwEyu 7as/JDV1xDG0w== From: Baruch Siach To: Andy Gross , Bjorn Andersson , Robert Marko Cc: Baruch Siach , Bryan O'Donoghue , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: net: ipq4019-mdio: Add ipq6018 compatible Date: Mon, 28 Feb 2022 08:58:43 +0200 Message-Id: <8de887697c90cd432b7ab5fe0d833c87fc17f0f1.1646031524.git.baruch@tkos.co.il> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Baruch Siach The IPQ60xx MDIO bus is the same as IPQ4019. Update the schema to allow qcom,ipq4019-mdio compatible as fallback for newer IPQ series. Signed-off-by: Baruch Siach Reviewed-by: Rob Herring --- v3: Correct the schema to fix yamllint failure (Rob's bot) v2: Update the schema to allow fallback compatible (Rob Herring) --- .../devicetree/bindings/net/qcom,ipq4019-mdio.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml index 2af304341772..dde8e6931ed3 100644 --- a/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml +++ b/Documentation/devicetree/bindings/net/qcom,ipq4019-mdio.yaml @@ -14,9 +14,13 @@ allOf: properties: compatible: - enum: - - qcom,ipq4019-mdio - - qcom,ipq5018-mdio + oneOf: + - const: qcom,ipq4019-mdio + - items: + - enum: + - qcom,ipq5018-mdio + - qcom,ipq6018-mdio + - const: qcom,ipq4019-mdio "#address-cells": const: 1 From patchwork Mon Feb 28 06:58:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baruch Siach X-Patchwork-Id: 12762446 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 E0280C433EF for ; Mon, 28 Feb 2022 06:58:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233489AbiB1G7d (ORCPT ); Mon, 28 Feb 2022 01:59:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233470AbiB1G7c (ORCPT ); Mon, 28 Feb 2022 01:59:32 -0500 Received: from mx.tkos.co.il (guitar.tcltek.co.il [84.110.109.230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABA8B4C409; Sun, 27 Feb 2022 22:58:53 -0800 (PST) Received: from tarshish.tkos.co.il (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx.tkos.co.il (Postfix) with ESMTPS id 8455C440F86; Mon, 28 Feb 2022 08:58:11 +0200 (IST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tkos.co.il; s=default; t=1646031491; bh=Rvsj67ju5R/3APhA2dEbgrJBQsct718LIa5iTVH/eGA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h2uByncWri35wkr8QbPCbdsRK1nUnfGRgfbW8daqs/qNHQ84ufoLAwJisWXin4NTQ KdurZ8PoSqsCCireZvBl8RzcKpN9lGAujvLFHefS8E200jpDfAk4AqcUNew9XP45O7 qUfyX6teEsO5PH9Tb0GDWe0YgDTOShpd5U7Uu3AWA+S6B0hNTYx9eTjeIu0msnPysZ vf3QpE1HgEQ8n8qQr4GSsZPAl/ofJdxPVKBPBd+XK8lz/T4gkjOSOx+FmMEAKcXfog 2W5LQikdU0FHPZYo3Qb8X4h44HQKi8iOfJGauuLva8RYOdV+izRxTrx/imBPVMtcYO R9sEZGPvuk6og== From: Baruch Siach To: Andy Gross , Bjorn Andersson , Robert Marko Cc: Baruch Siach , Bryan O'Donoghue , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v3 2/2] arm64: dts: qcom: ipq6018: Add mdio bus description Date: Mon, 28 Feb 2022 08:58:44 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: <8de887697c90cd432b7ab5fe0d833c87fc17f0f1.1646031524.git.baruch@tkos.co.il> References: <8de887697c90cd432b7ab5fe0d833c87fc17f0f1.1646031524.git.baruch@tkos.co.il> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Baruch Siach The IPQ60xx has the same MDIO bug block as IPQ4019. Add IO range and clock resources description. Reviewed-by: Bryan O'Donoghue Signed-off-by: Baruch Siach --- v2: Add review tag from Bryan O'Donoghue --- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index 5eb7dc9cc231..093011d18ca6 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -635,6 +635,16 @@ qrtr_requests { }; }; + mdio: mdio@90000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "qcom,ipq6018-mdio", "qcom,ipq4019-mdio"; + reg = <0x0 0x90000 0x0 0x64>; + clocks = <&gcc GCC_MDIO_AHB_CLK>; + clock-names = "gcc_mdio_ahb_clk"; + status = "disabled"; + }; + qusb_phy_1: qusb@59000 { compatible = "qcom,ipq6018-qusb2-phy"; reg = <0x0 0x059000 0x0 0x180>;