From patchwork Sun Apr 6 15:32:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 878648 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 050602206B5 for ; Sun, 6 Apr 2025 15:32:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743953575; cv=none; b=d0rPHM5zbnmSw06l718FRQe9NEbFZerCN9havhtx4L+yUqbqrQDMyl9G2PsIY+7kXZ8dHT6zwKmpqmIcMl8sQnO9UuIf4yJRhGPehPc/J7cmTCg92Kw9024LAinLYQ5klsjg78f/FC/o2FDrfiLCCBqu+GN4wm+qD44DUVvjd88= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743953575; c=relaxed/simple; bh=cNlEHEe7SNQ2mZb5uq9bxJXCPH+Oeu8PuGaXaOeCVcs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=J2bi53+Ns2U9aUwtTwKsF6A6CLz+l6VJvvk57y7qy0y2TnWxB4Nn+7plLMzfb2et1Kk7Icdeu5gVtlTaChx8cUiF1UoOsaOJ57px/k+b7/s94Ektj1720qH5VZjdlLf7ZvVRSWUiWGHG0vPavEWAH5V4OFVUzLD2QY05hOo1lMk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=l5gFES/R; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="l5gFES/R" Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-549963b5551so4345702e87.2 for ; Sun, 06 Apr 2025 08:32:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1743953571; x=1744558371; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vxbJCPygNmGFFkjmqhp+ED4ZC28M+PGEOpe3YaoTOvE=; b=l5gFES/RNcKPErIUwQk3gVOziNxtUtBgcQtpo42yLkcOoc/c8z5PV/FGl5224uWnI/ LWzBKoxi70svfit8hGc54c2y5Yp74Cvi5/aggpQGb/5FELkQIvrtAAeCCVdesE6CjWHI 8X1a4o/njrAgYG3qaezLPXuyllRc+6nbxHa2f21jxb40NcU6h38a+fb8e/LddxP5fp9v yk9A2mUN1Vx9P3jbC5n70+l5fbApcv+c6byP9hJnHeh+ZH1l+liYCI9f0IgbG+qUDIZv ITlOzrAmEJasEyscJ0U2fm5R23q8TxPtbcY4NHA61cyzJe7zbX+2haCaxbhsFLaszDNC b5Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743953571; x=1744558371; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vxbJCPygNmGFFkjmqhp+ED4ZC28M+PGEOpe3YaoTOvE=; b=AHtyH6L5wORs1Oc2tUa/PMypjnj+f3QKHNxtfkzD5RBehsHHfya7WLTS83ernLmAvP O4O7PYhBec41B7+SR7lQfY9SiDdIf1SLJCYc0agqUMD6F7W224P7ov1xJGZjPttIKKLG kMg+4Ph028U0Kvs8nSwjygzghJ9uBpEztwwm3eWVqdAHbetcpYxivMTLPybahr03/RRP NVZfv3hUlyeYAXPgFe2EMacTjzNPnXumCzk9OydhwWLFfZqRX1QYfq8KpNUmxLcyITCq Kd7mfYtlHiFq+MeVyECj6IJIBFCfhy0BXPJxLNRObJIn4IU5NUS5vVeAQouURyAqsY3Z 4u7g== X-Forwarded-Encrypted: i=1; AJvYcCUp6K30NdXwP1ykyGheFQIXvGY2WR0v4vPuKDNA1J5+mN2jwpd/t9Ppw9iOycfNb0DGuoQqOA+XW4vjxYE=@vger.kernel.org X-Gm-Message-State: AOJu0YwOQ8kNuojDLwxlwLVvvRbkNO24Xz/FLWxl4wSMBFoT8Kif3wPw BiO05wRunLwJo3g4asSweNh5Vw+6Be6Qf3t0JqdP+KZHFEstXV84S6wD1ebTHYQ= X-Gm-Gg: ASbGncttdu06M9pJfQXV6tuK1eLcSa/wxcG3gUjnwKrcdCoLBmo/tRMHe6Ob61EaRrz MvgP7IS5elNpkMMZ4ybI7Hb6jr2ArQGEW+YA4pkTRI++zEigqFdbWEFNc01+nY5GvWnyivusWjG mNoPTRqa38X9OF/fDjtKWOZa6rJjO8Qt5TWcasqU8t1TIKvgrs+K4MTa/XtmQu2gE9ML/bKgjX+ J8f6cSJPLbSy3xmB7TWd7fZeDEkhoBPUFaNNpCraKDSqg9RLUzghLX0UGmpP4uUi6p/EC2ERZO2 X5oPyZO++MQJpXsOUVvdCAoh5ZK4cEgOInqIB7A7bJo0XHahrqnEzTU= X-Google-Smtp-Source: AGHT+IEfCCQeHtRVjiJNIOivtCk3Y3QjbXzuwpQereunWv8BhDimdvHma0Q0YTkRhqnfOtWAW6FKMw== X-Received: by 2002:a05:6512:33d0:b0:545:60b:f382 with SMTP id 2adb3069b0e04-54c297d0977mr1426329e87.17.1743953571059; Sun, 06 Apr 2025 08:32:51 -0700 (PDT) Received: from [192.168.1.140] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54c1e671fa8sm989747e87.218.2025.04.06.08.32.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Apr 2025 08:32:50 -0700 (PDT) From: Linus Walleij Date: Sun, 06 Apr 2025 17:32:46 +0200 Subject: [PATCH v2 06/12] ARM: dts: bcm63138: Add BCMBCA peripherals Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250406-bcmbca-peripherals-arm-v2-6-22130836c2ed@linaro.org> References: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> In-Reply-To: <20250406-bcmbca-peripherals-arm-v2-0-22130836c2ed@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , Florian Fainelli , =?utf-8?b?UmFmYcWCIE1p?= =?utf-8?b?xYJlY2tp?= , Broadcom internal kernel review list , Olivia Mackall , Ray Jui , Scott Branden , Florian Fainelli Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, Linus Walleij X-Mailer: b4 0.14.2 All the BCMBCA SoCs share a set of peripherals at 0xff800000, albeit at slightly varying memory locations on the bus and with varying IRQ assignments. Extend the peripheral interrupt window to 0x10000 as it need to fit the DMA block. Add the GPIO, RNG and LED and DMA blocks for the BCM63138 based on the vendor files 63138_map_part.h and 63138_intr.h from the "bcmopen-consumer" code drop. This SoC has up to 160 possible GPIOs due to having 5 registers with 32 GPIOs in each available. Signed-off-by: Linus Walleij --- arch/arm/boot/dts/broadcom/bcm63138.dtsi | 79 +++++++++++++++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/broadcom/bcm63138.dtsi b/arch/arm/boot/dts/broadcom/bcm63138.dtsi index e74ba6bf370da63d3c115e38b4f20c71baff2116..a3bce85e5f99f9791eaeb366f37afe30add573c0 100644 --- a/arch/arm/boot/dts/broadcom/bcm63138.dtsi +++ b/arch/arm/boot/dts/broadcom/bcm63138.dtsi @@ -184,13 +184,69 @@ ubus@fffe8000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; - ranges = <0 0xfffe8000 0x8100>; + ranges = <0 0xfffe8000 0x10000>; timer: timer@80 { compatible = "brcm,bcm6328-timer", "syscon"; reg = <0x80 0x3c>; }; + /* GPIOs 0 .. 31 */ + gpio0: gpio@100 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x100 0x04>, <0x114 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 32 .. 63 */ + gpio1: gpio@104 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x104 0x04>, <0x118 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 64 .. 95 */ + gpio2: gpio@108 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x108 0x04>, <0x11c 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 96 .. 127 */ + gpio3: gpio@10c { + compatible = "brcm,bcm6345-gpio"; + reg = <0x10c 0x04>, <0x120 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + /* GPIOs 128 .. 159 */ + gpio4: gpio@110 { + compatible = "brcm,bcm6345-gpio"; + reg = <0x110 0x04>, <0x124 0x04>; + reg-names = "dirout", "dat"; + gpio-controller; + #gpio-cells = <2>; + status = "disabled"; + }; + + rng@300 { + compatible = "brcm,iproc-rng200"; + reg = <0x300 0x28>; + interrupts = ; + }; + serial0: serial@600 { compatible = "brcm,bcm6345-uart"; reg = <0x600 0x1b>; @@ -209,6 +265,14 @@ serial1: serial@620 { status = "disabled"; }; + leds: led-controller@700 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm63138-leds"; + reg = <0x700 0xdc>; + status = "disabled"; + }; + hsspi: spi@1000 { #address-cells = <1>; #size-cells = <0>; @@ -248,6 +312,19 @@ bootlut: bootlut@8000 { reg = <0x8000 0x50>; }; + pl081_dma: dma-controller@d000 { + compatible = "arm,pl081", "arm,primecell"; + // The magic B105F00D info is missing + arm,primecell-periphid = <0x00041081>; + reg = <0xd000 0x1000>; + interrupts = ; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + clocks = <&periph_clk>; + clock-names = "apb_pclk"; + #dma-cells = <2>; + }; + reboot { compatible = "syscon-reboot"; regmap = <&timer>;