From patchwork Wed May 3 12:16:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13230131 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 93F5EC77B7F for ; Wed, 3 May 2023 12:17:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1JNdbo3em9fJWE2qSXf29Cd2PsvC1u3PK6LTjpgzLE4=; b=BpcaiWFmOW+1T0 mKJObgOtrBA4fJpnplagGjGqXf4LY35GPS42bnJtoZE/yaTHbWzi1YOgYZ56A3QwadfztQtf1FRwE KOcAtTcVf9EzkPVEHlXqScyytB4ZoDboLEmau1YWGPCOAubeaevEZXl+mDGEK4MLaTCmFnR7D0L5V THubrXyHyagE540YQwnaQYc8b5bs0/GO0zN1ucW0hG1VBcJfNXog0ZJ9oALNpQCATiuP7V4sbCkJx jw5veYmrh+6rPcP1FXQ3mz5E5T7XXJbmBHU4u5W9EiOpXR/YUQ5zWe1zjoK7CdfqgU/M6jXFFomCV t0InVWo54I6GgcKOoZMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1puBPf-004Wm9-0B; Wed, 03 May 2023 12:16:51 +0000 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1puBPa-004Wji-1U for linux-arm-kernel@lists.infradead.org; Wed, 03 May 2023 12:16:47 +0000 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4f11d267d8bso4287239e87.2 for ; Wed, 03 May 2023 05:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683116204; x=1685708204; 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=GbrVXGQ4gijNoQ1jWNgg/exsaQzQT2mAeRVmsaAYNRw=; b=DO9E879dBSgkqceuGZ9lNEsnbcgKpWH+iEjvFpW3FpmAfcaDzb79wyC6CTYHCtyZb/ CBcHNBWFg5V4krhGmBq+sgIf4FEWOzV7X8PSu5pJAsk8eImWpzJzjd6IdQMtPNG7crDn yG7sDA5IsjdpDHm7wHeUQJo6zwHwmFOtfko4O1KcXQdsBbRqVAlT4i1rIMQC73khlMdh oA41KWK5T7+z4HlQrOyVCyy5cACRTgRCSpovw4bEa7TkCxQ1/vdia0xgMFtvR5f5sQsX EwiQh35JKSFiwaTv8+Md19LxMU5OrQABa+0Tr30xM9r/pRfuck4TOxrrjL8ijxuZ3aLd m5Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683116204; x=1685708204; 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=GbrVXGQ4gijNoQ1jWNgg/exsaQzQT2mAeRVmsaAYNRw=; b=hZH9f8qq5MDgDaYym06Q7+nimthvrgd8XRL5R7JNWCRk37bxkpDfckbznDK1QQ854y wTV/GTQQM6cYofUyg7Om7b00tb7Tcj/1l8h9g1gcQFbuGTy+dDYEnNs0almckqy5oGSS 4Uxde7RrTt/GK/Doinrp+yrscYTTKalxtzOmfJGr6uRpyZc7YSKx7+gHTkb0Qmq1f2eN qmUkri4nQiGnZW/JxAbVLaD0iqrw7GL3ySJaFniQxVj7qHANtcuSbbJmXnlYwTdrcUE5 jgQvdAv+c4l2u/dJJ47s/mojKxVGtbn/mSPDqwOZLXKVOH48qaKWI4skX/V2/sfmUJ83 31pg== X-Gm-Message-State: AC+VfDw1EURWUoqM+tRoTWwrntfq42K3MpCvYmNVHqvriqYjqNG8whE7 jP/oFNBoaQ4Wt3v+TXg3grk= X-Google-Smtp-Source: ACHHUZ4hBRb3bPcceqByuzxrj6+pNHkrkl7fAwOi7HYAuxTcEvizUQqQJEFFIpMnqOuyddBcvibo+g== X-Received: by 2002:ac2:5d63:0:b0:4eb:d20:b2ad with SMTP id h3-20020ac25d63000000b004eb0d20b2admr733709lft.63.1683116204138; Wed, 03 May 2023 05:16:44 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id r8-20020a19ac48000000b004eff132a90csm4651069lfc.74.2023.05.03.05.16.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 05:16:43 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Cc: Hauke Mehrtens , Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 2/2] ARM: dts: BCM5301X: Relicense Florian's code to the GPL 2.0+ / MIT Date: Wed, 3 May 2023 14:16:11 +0200 Message-Id: <20230503121611.1629-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20230503121611.1629-1-zajec5@gmail.com> References: <20230503121611.1629-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230503_051646_497475_6D2D24DD X-CRM114-Status: GOOD ( 14.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki All BCM5301X device DTS files use dual licensing. Try the same for SoC. Signed-off-by: Rafał Miłecki --- arch/arm/boot/dts/bcm-ns.dtsi | 36 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/bcm5301x.dtsi | 39 --------------------------------- 2 files changed, 36 insertions(+), 39 deletions(-) diff --git a/arch/arm/boot/dts/bcm-ns.dtsi b/arch/arm/boot/dts/bcm-ns.dtsi index 21d672aba75a..cc977bbc142b 100644 --- a/arch/arm/boot/dts/bcm-ns.dtsi +++ b/arch/arm/boot/dts/bcm-ns.dtsi @@ -19,6 +19,8 @@ chipcommon: chipcommon@0 { gpio-controller; #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; }; pcie0: pcie@12000 { @@ -109,6 +111,22 @@ xhci_port1: port@1 { }; }; }; + + gmac0: ethernet@24000 { + reg = <0x24000 0x800>; + }; + + gmac1: ethernet@25000 { + reg = <0x25000 0x800>; + }; + + gmac2: ethernet@26000 { + reg = <0x26000 0x800>; + }; + + gmac3: ethernet@27000 { + reg = <0x27000 0x800>; + }; }; mdio: mdio@18003000 { @@ -118,6 +136,24 @@ mdio: mdio@18003000 { #address-cells = <1>; }; + rng: rng@18004000 { + compatible = "brcm,bcm5301x-rng"; + reg = <0x18004000 0x14>; + }; + + srab: ethernet-switch@18007000 { + compatible = "brcm,bcm53011-srab", "brcm,bcm5301x-srab"; + reg = <0x18007000 0x1000>; + + status = "disabled"; + + /* ports are defined in board DTS */ + ports { + #address-cells = <1>; + #size-cells = <0>; + }; + }; + dmu-bus@1800c000 { compatible = "simple-bus"; ranges = <0 0x1800c000 0x1000>; diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi index 2aa3a9f09641..2890fa3c5e67 100644 --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -218,30 +218,9 @@ axi@18000000 { <0x00028000 6 &gic GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>, <0x00028000 7 &gic GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; - chipcommon@0 { - interrupt-controller; - #interrupt-cells = <2>; - }; - pcie2: pcie@14000 { reg = <0x00014000 0x1000>; }; - - gmac0: ethernet@24000 { - reg = <0x24000 0x800>; - }; - - gmac1: ethernet@25000 { - reg = <0x25000 0x800>; - }; - - gmac2: ethernet@26000 { - reg = <0x26000 0x800>; - }; - - gmac3: ethernet@27000 { - reg = <0x27000 0x800>; - }; }; pwm: pwm@18002000 { @@ -322,24 +301,6 @@ genpll: clock-controller@140 { }; }; - srab: ethernet-switch@18007000 { - compatible = "brcm,bcm53011-srab", "brcm,bcm5301x-srab"; - reg = <0x18007000 0x1000>; - - status = "disabled"; - - /* ports are defined in board DTS */ - ports { - #address-cells = <1>; - #size-cells = <0>; - }; - }; - - rng: rng@18004000 { - compatible = "brcm,bcm5301x-rng"; - reg = <0x18004000 0x14>; - }; - nand_controller: nand-controller@18028000 { compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand"; reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;