From patchwork Mon Sep 30 13:24:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 831567 Delivered-To: patch@linaro.org Received: by 2002:a5d:66c8:0:b0:367:895a:4699 with SMTP id k8csp1947172wrw; Mon, 30 Sep 2024 06:25:25 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUVtZAzrvjN3JgkB4cnT2NFib9y3/VFdFPVEBshbdfk3/GiynRxJYKIZ5u71e3rN6kL6/jDjA==@linaro.org X-Google-Smtp-Source: AGHT+IGufZkMUkDwVwff5tl35IBZUbOyC5pf9qyoY8SaE5JsBNy+ocAB0X5vXTgThKAyU+b2tJVG X-Received: by 2002:a92:c242:0:b0:39d:2939:3076 with SMTP id e9e14a558f8ab-3a3452bb5dfmr87508445ab.25.1727702725348; Mon, 30 Sep 2024 06:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727702725; cv=none; d=google.com; s=arc-20240605; b=SdcF41ysnCYA+T23rfk0hYTls9tYOJl5CmPUiCJrzjhd8IXSIano3aHfgJOZUOv5/L feVuQixNcuxlXVxE3jEwnYjDGF/Y7VqynR48uKq7cZ0nGxFAsPa+odzq+JmwcGljKhQ0 Z8262XpPQasE/CncLcvbRw6CEyj9bcooKKWvP1ZECg7Q/mg8i/Lh0r38U4JbfiAevvNF fVbhopr82nErkzu+8kRN8G51AVx7ZFubjMJL3C/S64IVcv+nkF6XV4IYckjxMVtY322g gpnAbYMASrn9K3gvSenvEy90omMaKhsJPLx3ZNDU7PZJ4T2pGW2rWqoR9hSEK8zId0Qr 81tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=Wu/MMSsolNkelLDF1RBUjrpM+ZsTkzEegcfvSoD+jtQ=; fh=ftQntzGq59ruF58t30aRXV87AbbvorkS2P8ZbONQbrM=; b=IdnqMdmbcb6Ryel24fcwY7OYnjWM0bx3iwUbwgguRrr4iGUlJccmPr+AGicD2aMZAf F3BsD9HYTmieeJEmKHEvVE40ROrRipCp7oNiwpnqf+UUOzBBO7gvhJB5Em1JQxriCpUL API9pNGtx/1+YA5+nE8Xc9lxBkW1QnXKKOtn2fVY/s2F7J1MhWGRNMyEi+9nmKUnMQ9g MqRg2PH/+ucrWDkyWSUxSMf93sbUbp7TIOzxRt3LsJ7UitQ06MbEEWmNVnM77e12pHBG lm4rohyo+zKO6Gw+r2ePv9QnG0A87d3E6OgDe01eQ1wXx838mdYnCaEYZRXFnqNMGihf R1aQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=znye09uL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id e9e14a558f8ab-3a344df4bcasi35505525ab.170.2024.09.30.06.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 06:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=znye09uL; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7808788F57; Mon, 30 Sep 2024 15:25:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="znye09uL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C752688F4E; Mon, 30 Sep 2024 15:25:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id CF8E488ED7 for ; Mon, 30 Sep 2024 15:25:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linus.walleij@linaro.org Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-5c89f3f28b6so576864a12.2 for ; Mon, 30 Sep 2024 06:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727702699; x=1728307499; darn=lists.denx.de; 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=Wu/MMSsolNkelLDF1RBUjrpM+ZsTkzEegcfvSoD+jtQ=; b=znye09uLO77i2Q1eAfgvcumxelHGfN/Ehyc4gPmxTwYFj1FOluuWDEkXHlbEFf+O/z ls8JI4RTZ228N18OXASGIwswY6amUDfsyu3RjdvUJNi+cRcvINMNxr47cnom6ovsBkHA IJYn2kJJwK11kFBZ/5swdzlVzVu6IYxpbmi+/c4PDJN91H+JhOcIoa8BGDbB+YOzEalx M6HWfrPg5gpysXW7UmGN1SU7guWQAfBQZmOH5QD9bL1YvlC4nSLSEHVRjwt7swhb5520 he2JTzIrgFIGQWbrzPVXj5f0dvNE5x4RfkcrxLnQ9OhtqPnMVNp2IgWfS3waKDZaG8ol Dlrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727702699; x=1728307499; 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=Wu/MMSsolNkelLDF1RBUjrpM+ZsTkzEegcfvSoD+jtQ=; b=d3HK4zG1BR8q4QBDMf0hBm74YQkwRal+3Jf2HnnVgcnXeYB1upjokW/DzZBAhrA/NV jlRGpj4POU5vVLwB9HR7Xohws+ENnH40TEbgo6MvnijfH1vG7HwBecDpIuCD4WK/HIa3 M1+ilSXLApWGCAZECXBNtYLG4t+tHGLw5Ded17YQnpize2AoGMmdBb/k9+BcHFPMA9yA ge/HsVOQA92fdon3qqhFgN7fzd3kI3X1A4kvUVkIa2HiLBbLEp43amUWK30NRMDRjpT4 +mCN6i6mWYGGRqA+RE3Atli9cXe4BjTjZdKOw5DYr/bW1gtcx4FKuhDOGboZd9TBoAmi FdHg== X-Gm-Message-State: AOJu0YxV10OL22b8v6/h7R1NCXI7Dg95c2owobqrivXKcWsCEFsipw31 t4V1K9/OKYw1UzEtq6bSXEOegbQH8hF6G85t0/2OrFScu0nCiFZH3hn2ZsWJ544= X-Received: by 2002:a05:6402:24a4:b0:5c8:79fa:2e3e with SMTP id 4fb4d7f45d1cf-5c882603bd9mr12674548a12.28.1727702699142; Mon, 30 Sep 2024 06:24:59 -0700 (PDT) Received: from lino.lan ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c88245fbeasm4484786a12.54.2024.09.30.06.24.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 06:24:57 -0700 (PDT) From: Linus Walleij Date: Mon, 30 Sep 2024 15:24:54 +0200 Subject: [PATCH 2/4] arm: dts: bcm: Update bcm6846 and bcm96846 MIME-Version: 1.0 Message-Id: <20240930-bcmbca-nand-support-v1-2-e637c65de947@linaro.org> References: <20240930-bcmbca-nand-support-v1-0-e637c65de947@linaro.org> In-Reply-To: <20240930-bcmbca-nand-support-v1-0-e637c65de947@linaro.org> To: u-boot@lists.denx.de, Dario Binacchi , Michael Trimarchi , Anand Gore , William Zhang , Kursad Oney , Philippe Reynes Cc: Linus Walleij X-Mailer: b4 0.14.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Update the devicetrees for the BCM6846 and the reference design BCM96846 from the Linux kernel so we get support for NAND. (Linux v6.11-rc7). Signed-off-by: Linus Walleij --- arch/arm/dts/bcm6846.dtsi | 34 ++++++++++++++++++++++++++++++++++ arch/arm/dts/bcm96846.dts | 14 ++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/arch/arm/dts/bcm6846.dtsi b/arch/arm/dts/bcm6846.dtsi index 8aa47a2583b2..ee361cb00b7c 100644 --- a/arch/arm/dts/bcm6846.dtsi +++ b/arch/arm/dts/bcm6846.dtsi @@ -35,6 +35,8 @@ L2_0: l2-cache0 { compatible = "cache"; + cache-level = <2>; + cache-unified; }; }; @@ -60,6 +62,12 @@ #clock-cells = <0>; clock-frequency = <200000000>; }; + + hsspi_pll: hsspi-pll { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <400000000>; + }; }; psci { @@ -99,5 +107,31 @@ clock-names = "refclk"; status = "disabled"; }; + + hsspi: spi@1000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,bcm6846-hsspi", "brcm,bcmbca-hsspi-v1.0"; + reg = <0x1000 0x600>; + interrupts = ; + clocks = <&hsspi_pll &hsspi_pll>; + clock-names = "hsspi", "pll"; + num-cs = <8>; + status = "disabled"; + }; + + nand_controller: nand-controller@1800 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,nand-bcm63138", "brcm,brcmnand-v7.1", "brcm,brcmnand"; + reg = <0x1800 0x600>, <0x2000 0x10>; + reg-names = "nand", "nand-int-base"; + status = "disabled"; + + nandcs: nand@0 { + compatible = "brcm,nandcs"; + reg = <0>; + }; + }; }; }; diff --git a/arch/arm/dts/bcm96846.dts b/arch/arm/dts/bcm96846.dts index c70ebccabc19..943896afb7cc 100644 --- a/arch/arm/dts/bcm96846.dts +++ b/arch/arm/dts/bcm96846.dts @@ -28,3 +28,17 @@ &uart0 { status = "okay"; }; + +&hsspi { + status = "okay"; +}; + +&nand_controller { + brcm,wp-not-connected; + status = "okay"; +}; + +&nandcs { + nand-on-flash-bbt; + brcm,nand-ecc-use-strap; +};