Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp70590imw; Mon, 4 Jul 2022 05:28:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uTaOLMng99OeIwWo/CO28AU68+dllaeLp1nIl1A685Mm2jhKT9f4qSBjiWy/gAVGJzP2vi X-Received: by 2002:a17:907:968f:b0:726:9f9b:ab0f with SMTP id hd15-20020a170907968f00b007269f9bab0fmr29062983ejc.237.1656937720089; Mon, 04 Jul 2022 05:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656937720; cv=none; d=google.com; s=arc-20160816; b=XlvZ2/2M6uslMVEF5JKtETV693cJOKGQRT3KzKlVhRf+nh1s4jBs+jPXgo0mbLqSWa epsziPaWiV43W6xvSNr94Ab9e/t7+JfBgnNeA95qLPIl6UnHQO7NaLHB5N28FEB2AWOb yxb2/+ti6oAoRdYkNJ8pVTJ6ge99RYpIjz0XzpZwvztEZ5W0mguioiqBiEBj4UN8JS+g zj0pxc96bm9s8aoywJXaTTkHrQpoOpQkrbQ8euUkLFz7UTKKhwH8KGN8KffGePOWOFCV R6qNgE6Nokb2AKbjXbdQ2yLbEskCwQzVA448fZK506iF4qP5fU4GEFMyl0efT+v+OJHX 5Z0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZEDeuuyTK3d9b+4IDovPU3q28B1zOswH1/A1M+4Eidk=; b=EdmqGme4GnfAwYwfrD/XRaLaZEwk3CNPFHV6GAPHOZDOqzrk1JH3nlPykboE9Rqibv c02+ngt+FaCEECAvXlixLcmHs23kscDA3A7l4LJ8DaikAoaq8TsiWmb3V/a8mtKvXHsa +RRcObnQy9i9968SvSxTUvSE/52GTROlrHP8/W7r729IrjBfyHbq7nHnKjtsABZrSceV YDIhYkIC4b3hQWw6LIbzQW9KxcXMdec0eWy7ZDnBaoOUGmK0DBnOukn/XImiUQDuLJT5 GoFMMDuWXZnxqbLl4PETHNnBk1uO1opJHrOmxitFsnj8h561SdEU9LTfutymdTAMoLkd XVmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=zMxJ2mUR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sd19-20020a1709076e1300b007070522a0fdsi17015584ejc.835.2022.07.04.05.28.14; Mon, 04 Jul 2022 05:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=zMxJ2mUR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234442AbiGDMQx (ORCPT + 99 others); Mon, 4 Jul 2022 08:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233544AbiGDMQk (ORCPT ); Mon, 4 Jul 2022 08:16:40 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAE98FD0C; Mon, 4 Jul 2022 05:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1656936996; x=1688472996; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vbBZBVb8B22VRpxKb/0dz1k5O/GgdpM5EBwjjdArU6w=; b=zMxJ2mURmdR/hW/41s1n61m8cGbq6HA4IsrRGLVG43qDcK6YLghy+r6s E2ox+/UIqP16hYxg6vCx/z1WnO/rlGuCkcwJX2R5QNgnS20sBW33ale9V V4pKsv+As4znt9GNOGS0ubKK22TAIvWR9OANZKEnPX7+ghAfaF/Wvs5Kb yEQ5c3LFUFQfmbtgE8Wv2By16cHZhB09D1z6cxwK2KGUS38F0P7ALyfOZ eeAZGtZI1knKMXkCkmd6VxTw7oMK1pDkUDgfajluRkAENXZilo3t0VrEI cMi670CdJjMjmq0LNmqbMRVFbcORytXv6HEzAvoj9pT9jOP5ooqqHkic7 A==; X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="166262012" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Jul 2022 05:16:36 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 4 Jul 2022 05:16:35 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 4 Jul 2022 05:16:32 -0700 From: Conor Dooley To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Conor Dooley , Philipp Zabel , Daire McNamara CC: Paul Walmsley , Albert Ou , , , , Subject: [PATCH v2 05/12] riscv: dts: microchip: add mpfs specific macb reset support Date: Mon, 4 Jul 2022 13:15:52 +0100 Message-ID: <20220704121558.2088698-6-conor.dooley@microchip.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220704121558.2088698-1-conor.dooley@microchip.com> References: <20220704121558.2088698-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The macb on PolarFire SoC has reset support which the generic compatible does not use. Add the newly introduced MPFS specific compatible as the primary compatible to avail of this support & wire up the reset to the clock controllers devicetree entry. Signed-off-by: Conor Dooley --- arch/riscv/boot/dts/microchip/mpfs.dtsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/riscv/boot/dts/microchip/mpfs.dtsi b/arch/riscv/boot/dts/microchip/mpfs.dtsi index 8c3259134194..5a33cbf9467a 100644 --- a/arch/riscv/boot/dts/microchip/mpfs.dtsi +++ b/arch/riscv/boot/dts/microchip/mpfs.dtsi @@ -197,6 +197,7 @@ clkcfg: clkcfg@20002000 { reg = <0x0 0x20002000 0x0 0x1000>, <0x0 0x3E001000 0x0 0x1000>; clocks = <&refclk>; #clock-cells = <1>; + #reset-cells = <1>; }; mmuart0: serial@20000000 { @@ -331,7 +332,7 @@ i2c1: i2c@2010b000 { }; mac0: ethernet@20110000 { - compatible = "cdns,macb"; + compatible = "microchip,mpfs-macb", "cdns,macb"; reg = <0x0 0x20110000 0x0 0x2000>; #address-cells = <1>; #size-cells = <0>; @@ -340,11 +341,12 @@ mac0: ethernet@20110000 { local-mac-address = [00 00 00 00 00 00]; clocks = <&clkcfg CLK_MAC0>, <&clkcfg CLK_AHB>; clock-names = "pclk", "hclk"; + resets = <&clkcfg CLK_MAC0>; status = "disabled"; }; mac1: ethernet@20112000 { - compatible = "cdns,macb"; + compatible = "microchip,mpfs-macb", "cdns,macb"; reg = <0x0 0x20112000 0x0 0x2000>; #address-cells = <1>; #size-cells = <0>; @@ -353,6 +355,7 @@ mac1: ethernet@20112000 { local-mac-address = [00 00 00 00 00 00]; clocks = <&clkcfg CLK_MAC1>, <&clkcfg CLK_AHB>; clock-names = "pclk", "hclk"; + resets = <&clkcfg CLK_MAC1>; status = "disabled"; }; -- 2.36.1