Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1409827rwb; Fri, 19 Aug 2022 03:15:35 -0700 (PDT) X-Google-Smtp-Source: AA6agR6sVMPAFBhE7oRpgFugnQI+e8LThF93nt17Kw72MHHyzJN8RBApQEfE+x/wd2vpz0SBEj7L X-Received: by 2002:a63:d84f:0:b0:428:ee87:3769 with SMTP id k15-20020a63d84f000000b00428ee873769mr5872230pgj.212.1660904134772; Fri, 19 Aug 2022 03:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660904134; cv=none; d=google.com; s=arc-20160816; b=rN8WnKn7XNr/72rALJKWaNwsv6mOYl8jsaiQYN64s1Q7XCKs8yGPt/J2g7MGkDpVxo FS8zB5jSH2r5GTqO+iwZAAklla/MB6a+piexgqOR5QhhLtwSJ5ftQuAHp4qAP0xpnyLu KePokIKMb/xOOVT0IhNk8dG3lvL9jnibknkDKscTsXjDaTP/WnBlf162U/J5wV0u5r+x qNTeQSENuh+xBBEgfrdtPgeuBZfecHzb9QTnhx9At1bzTCdxoPUpcrkNdx2i2ctgyRlX cHnE2cgI2x/2k/qmi4PPTCVFuWLJbNwd0xdcytPJy2PSkajnFv+Ji2FKt4E9TLaFDrfq 09bg== 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=iWsX9FsD2lsvJ9ABfGtQL1isHUrpu5S+++1k2+Eq6GQ=; b=DQrc/lkYn4fFrMjhsFKupgn7n4f+dJWjhqb4y4pGLxogCvkNbBMFKiwFkYPJyJGOt2 wZEqHwxSxgaNXusmbNuCKBTMhhqZBCSxrFrtVvjVU2hBH2lX4G9hniGy/xGaUf2C40to aEoKzLhexEq2EfM8JzQgpuzAqTJwyOPiguLQUiOfmGXivtS4NVu2ykX3Jd2qCrUoTIMT fFV4sdLFAiHc5TvsUXouUBbewxIM0dxRV2qnL5SHhJbYX4dtIYPwZa46uuf64N7yvtTI giq93/d56Y+K1INMEcHtMZW7BrkB7aPF4iViHg/B7OcAYjBx6vU8SeYEnJjZoEz//8PR 34oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="uw/+Hkd+"; 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=pass (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 k17-20020a056a00169100b0052d8c67e99esi356693pfc.127.2022.08.19.03.15.23; Fri, 19 Aug 2022 03:15:34 -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=pass header.i=@microchip.com header.s=mchp header.b="uw/+Hkd+"; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348212AbiHSJzR (ORCPT + 99 others); Fri, 19 Aug 2022 05:55:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348069AbiHSJyy (ORCPT ); Fri, 19 Aug 2022 05:54:54 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D50FBFAA9; Fri, 19 Aug 2022 02:54:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1660902891; x=1692438891; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=22sX6hdQWVNBlKUnAfqAl8ZrlZKUVg33klYFVGAaHB0=; b=uw/+Hkd+3GD7fC5SScbbcOfiEJq3dVJFdtf91MAe9zSVV09w8+nCbc2a 890LGi3PPId/ya4Pzn/0V9SVUV9KMxMO3rpLDTXtwP/gl9/K1eWLegIHU 3tFG5ztyMmKpL7OeTKXf8hQybQHOPsaMmQmPqcoGrF9BFe8XKKAc6JHkC 9Y4dcSj5pK9LM0BFVJVlMXZahfosfZSC/hwF3GXRUJV2kxeBsbiI7Xosj Fhf2oqOWyWIUt0g87ggy/00KgzReGnO/HlMQhgvz76hEPgcAqVfSVSXfF 8GWcKkqHUjYGsaez5rGTnr8wg9wVG159+1G2VuHjnI1v1UWlxDe9t+l+O g==; X-IronPort-AV: E=Sophos;i="5.93,247,1654585200"; d="scan'208";a="187175558" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 19 Aug 2022 02:54:50 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Fri, 19 Aug 2022 02:54:49 -0700 Received: from wendy.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Fri, 19 Aug 2022 02:54:47 -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 v3 06/13] riscv: dts: microchip: add mpfs specific macb reset support Date: Fri, 19 Aug 2022 10:53:14 +0100 Message-ID: <20220819095320.40006-7-conor.dooley@microchip.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220819095320.40006-1-conor.dooley@microchip.com> References: <20220819095320.40006-1-conor.dooley@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 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. Reviewed-by: Daire McNamara 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 499c2e63ad35..ae5839534d9c 100644 --- a/arch/riscv/boot/dts/microchip/mpfs.dtsi +++ b/arch/riscv/boot/dts/microchip/mpfs.dtsi @@ -234,6 +234,7 @@ clkcfg: clkcfg@20002000 { reg = <0x0 0x20002000 0x0 0x1000>, <0x0 0x3E001000 0x0 0x1000>; clocks = <&refclk>; #clock-cells = <1>; + #reset-cells = <1>; }; mmuart0: serial@20000000 { @@ -383,7 +384,7 @@ can1: can@2010d000 { }; mac0: ethernet@20110000 { - compatible = "cdns,macb"; + compatible = "microchip,mpfs-macb", "cdns,macb"; reg = <0x0 0x20110000 0x0 0x2000>; #address-cells = <1>; #size-cells = <0>; @@ -392,11 +393,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>; @@ -405,6 +407,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