From patchwork Thu Mar 28 09:37:10 2024 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: 13608317 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 4C9A5C54E64 for ; Thu, 28 Mar 2024 09:37:53 +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: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:In-Reply-To:References: List-Owner; bh=Y8b2dLI3a/B2KCadwKlKSgmnKg2nAs7guBalEuZ/vIw=; b=1BSTEAPmAmjC3T IcGdCHxguQ/5SsTgpynRekZVNFIcuNxt7kwBcqnQBjP3kuqxSLylJ2nTTWG0wf1z+PLKUfEFpl61O 8YJwtjYlciGofL6r2YAVoAApxk8zDbo2yvdLHW8gj9ENf+N8e+UIDP3m8PbvtLc3U/2x0QsF5cJzc sTpQp9QR3560iGA0QnKTf33QV/wjZBxN6HZbPpAZq6hZnx3EB5HxClap2qVBpAfw8WCO/mlbqfbmt d8zveW17jiL79m9qz20FXDnKVPzAs626gO6Pa4+pV8zPt1tIAW7yVLUMMd/UIGjRlsBLQj3FVrxj1 +LqqHdDy+us4rWhM3Pdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpmCX-0000000DNZU-3aaz; Thu, 28 Mar 2024 09:37:37 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpmCU-0000000DNWz-4AfZ for linux-arm-kernel@lists.infradead.org; Thu, 28 Mar 2024 09:37:36 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a4a393b699fso122202866b.0 for ; Thu, 28 Mar 2024 02:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711618651; x=1712223451; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Xw2HvFeV8JTaKtXFYouZWP5NrPJspsJpwoYIZr88EHE=; b=JyvezlwxSY5DmfCeg2sf64AzQZN53FseMVcM1xnt+tw2bT+H1fgReazF2F3Jab5ob0 NlAPWSIte2U/xHtnoTApx1ZZaNfepJVJ7jj07n17DEZAzvRMeRoYHjXR5VWBeEFX05hN X2F6h3s5mCP18wY7LtMb8hXrgL4QGGsVRgxI7DUMA79n1PR0iBqntUwncA4FQPo/HXnM t4sqInLQWncHF9dnmuOB6Evh2iQlS3m3BV8uTuqwJ3QL64iEpHKPkgBA4Tjv8T7FoKcH pze9kfCQY58HRQWQi4e2TUBrhchJTGnrlvnDkNrLPDON3wAn0wIUG/x0JjnO5a0HpIkQ OZ4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711618651; x=1712223451; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Xw2HvFeV8JTaKtXFYouZWP5NrPJspsJpwoYIZr88EHE=; b=RJ2QJrNde6G1q4zCzmLyrta1d7HrGvWGqOw9a7TzZpTISkfc84eH/R6CfYJfOLCAk3 inwmqI52op4tnLo0cAqCWoWHByo3QW7+GBJfEWHuqit/TWgTrKjlQVDu2xnJRDLAlhBP TQfaal9KNdLYDTJTiNYNqq6v9vwp0VibSBH4hqLyNo9jrlrrorBc2tBZ5s2ntZui4b3b EZBmb4bjGUQ91FHEGXq/C3NQv0U/ct/q1XJ2b4pr7Re/AJbvlFz7yJao1DXAUjzaX/uG jQmZlP1JEJRfJ/fyX3MhvKuzAmOL4ffeWy6JDy8TxcS4+VwdqkWiPiuN4MnZuOoBA1+O nwhg== X-Forwarded-Encrypted: i=1; AJvYcCWsTLxepB+oJyHX2NosibZbAxO5TdXawQgKmghU0/+kQuIabVfX1+gPSXJKzDDfa7tFCxoE16WJ/gKiErPTCoANTrEDjFSdDHb6JjdGLBNZYaCbC4o= X-Gm-Message-State: AOJu0YyyFJHoexuL7AZHL9wHyfPBeg0FUaGavDYmrIqXmVoXH0xcg9Vp 7LfQQw5zSQ2vkmGsJC7Q3GB+ou4rSrGEWCEXkCcvgrS0cH4FeEdp X-Google-Smtp-Source: AGHT+IHjOI4XmIbUtA3agU+laZcc6ZR2tSUhzcWZ+u5F4nTAv4naoGL3w7diE9dQM4V9SuzC0Tla9w== X-Received: by 2002:a17:906:d787:b0:a47:3f10:b3c8 with SMTP id pj7-20020a170906d78700b00a473f10b3c8mr1503293ejb.26.1711618650829; Thu, 28 Mar 2024 02:37:30 -0700 (PDT) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id my15-20020a1709065a4f00b00a46b99a4273sm530811ejc.216.2024.03.28.02.37.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 02:37:30 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , William Zhang , Anand Gore , Kursad Oney , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] arm64: dts: broadcom: bcmbca: bcm4908: set brcm,wp-not-connected Date: Thu, 28 Mar 2024 10:37:10 +0100 Message-Id: <20240328093710.28206-1-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240328_023735_089423_C2D0044A X-CRM114-Status: GOOD ( 14.45 ) 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 Every described BCM4908 board has WP pin not connected. This caused problems for drivers since day 0 but there was no property to describe that properly. Projects like OpenWrt were modifying Linux driver to deal with it. It's not clear if that is hardware limitation or just reference design being copied over and over but this applies to all known / supported BCM4908 boards. Handle it by marking WP as not connected by default. Fixes: 2961f69f151c ("arm64: dts: broadcom: add BCM4908 and Asus GT-AC5300 early DTS files") Signed-off-by: Rafał Miłecki --- arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi | 1 + arch/arm64/boot/dts/broadcom/bcmbca/bcm94908.dts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi index e01cf4f54077..8b924812322c 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908.dtsi @@ -594,6 +594,7 @@ nand_controller: nand-controller@1800 { reg-names = "nand", "nand-int-base"; interrupts = ; interrupt-names = "nand_ctlrdy"; + brcm,wp-not-connected; status = "disabled"; nandcs: nand@0 { diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm94908.dts b/arch/arm64/boot/dts/broadcom/bcmbca/bcm94908.dts index 030ffa5364fb..e5b37643296b 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm94908.dts +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm94908.dts @@ -34,7 +34,6 @@ &hsspi { }; &nand_controller { - brcm,wp-not-connected; status = "okay"; };