From patchwork Wed Feb 7 20:22:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 198113 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2550432dyb; Wed, 7 Feb 2024 14:50:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUde5qI9cEc/W15oQKbO9Yyfi4xuxBnaafb83g5Uxma5/IJcpbmMC9clPQ2lpQUxolyBxFxm9WB3C2UI7gp1HU2k8BavA== X-Google-Smtp-Source: AGHT+IFpIilXMOctLH6chDIH6CNiJtKArbg9lZzpCTs/MgzqXCwpzknrSIQPPNwQ1rBJb4OyrdfH X-Received: by 2002:ac8:4d89:0:b0:42b:ff73:504a with SMTP id a9-20020ac84d89000000b0042bff73504amr6642412qtw.54.1707346212721; Wed, 07 Feb 2024 14:50:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707346212; cv=pass; d=google.com; s=arc-20160816; b=n25qkUrWipSro0APBvMZAlV78AvXgUwM3B5WvwmZRcUXkP1uRYl1BXbgVlCI2jgiyl 2I/QgVYtf+Y8/2gO/XWbv7X/a65Nd6ooFjVyLQrOYMjxkVCNG2WXoN31EeKWomRpaNEp ZGVq2ssAY+uV6Z9cjp3O6aJETnC98+KSpSHCr/sMibgTCGYObPr5HdPkbVY0XbsUQfcv UoyrXFh9KxZpStZu/KLyVQH4BFdrLLmuTQHtUoE4em7bkNQ17EtfVNxp6pbpVVu0RSZs 0lfDt2S8UUvhX8u4ytkWezormGxyBCi4Qx/3c5bQLPXWE3YfmbRSOOqqgonNvvGZ8zSa dVOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=4cPlpetHf4jOUPiyQ82kaHmfJU2jbdMOkAcgR51B9aw=; fh=nHoa4UeRC15vUSwQggIEPbC6L8UT1xdrwtHevipfVwg=; b=ZdPdTRnJ5n4GrXzlNLif6OeTV0L+mzMNfYK+tU7k7YggSsOEBvS5Qm7/RbzCoQNQrr c5oiEbsHjVVZ3MNU0Agrl0QR+gQRnFyhFWh3iPZUmdg+kBh023skFsF08II7knAy5CgI cqxFSHTuNnt1ohM8UhYhegNmKpU7RsBRI4m+xmN4NfEGuyddYLQ/iH151/XpyZRj139y +pOtbHEEsx642ipbF7wxEInSdMmnknX6mDecrcKHMau+dx0O30ZkHQmaMHd5eIuQ56q5 DJnIWHYZeXqNdPixSiXtLYKBxyOwX2K1xKrLghI0kWsSg0nczBptCxPBqc5QS+8vSNRF mATA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=EYzpPF1G; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-57013-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57013-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com X-Forwarded-Encrypted: i=2; AJvYcCXGLDAJ+4xyI2eGUDBO1OJsTBvHZip9WMZuZLuBULtKZrFAEtUxPGO0AWFo+DI9/dh03CrJ4eGK2By2tl4gl0g6Z0Jgug== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f37-20020a05622a1a2500b0042aa019739dsi2186332qtb.277.2024.02.07.14.50.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 14:50:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57013-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=EYzpPF1G; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-57013-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57013-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D14071C24BC7 for ; Wed, 7 Feb 2024 20:24:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBD7B12A161; Wed, 7 Feb 2024 20:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="EYzpPF1G" Received: from relay.smtp-ext.broadcom.com (unknown [192.19.166.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A96041292E7; Wed, 7 Feb 2024 20:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.166.231 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707337416; cv=none; b=NCCe8v49fOM2C5eHJ+ajCgEu0bBQqcolgo+iCdGkQF3IQMM9BDm8WnEVQVVBMgUPrkTFsccLFJLIB9cAeXkv0btxqjR4iHroBAopKFPcG70Nsz5baDen3fT206VnFQN9OKHpvoBhp5UBB1n3ggoYEA/Ilbx14fwboEA3uygQdsI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707337416; c=relaxed/simple; bh=2MG0NMfZmd9Qh5xJzY5hxI6VpQVPWSkYrqSpDO/Rr3I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=D4iDfOZXkecUA//ZtfSBgs3mh/g6X1L0PPR8tGNqaDP8cySwHcaqIUG7ycQ97EFInA24TdArZDVZTMcGQ6TgpStOBzZrFICjA3Eya49xthQqw5kNBrTOZBhYtz6mLgcUeva7vexGfp2qUh04FiED0A4LZzM+2XkPpl1DRKJ38ro= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=EYzpPF1G; arc=none smtp.client-ip=192.19.166.231 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 2EDA4C002E04; Wed, 7 Feb 2024 12:23:28 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 2EDA4C002E04 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1707337408; bh=2MG0NMfZmd9Qh5xJzY5hxI6VpQVPWSkYrqSpDO/Rr3I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EYzpPF1GgnNk+wK9Irbe1dqf5j3sQScSLPH2Lb/2SVXjMZvC5Jv3HDhJc3iLNRfje ntpUky6sT01Bf1ahwUXVjvc1e/oD12IWxAu22jLsHC/XRZYe6m+PjQ4dNgDAvkeVFa ztY6/vkzUFHiSsxtTbY/MEdkenxVn515hsZ8TMcY= Received: from bcacpedev-irv-3.lvn.broadcom.net (bcacpedev-irv-3.lvn.broadcom.net [10.173.232.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id A7FE018041CAC4; Wed, 7 Feb 2024 12:23:26 -0800 (PST) From: William Zhang To: Linux MTD List , Linux ARM List , Broadcom Kernel List Cc: f.fainelli@gmail.com, kursad.oney@broadcom.com, joel.peshkin@broadcom.com, anand.gore@broadcom.com, dregan@mail.com, kamal.dasu@broadcom.com, tomer.yacoby@broadcom.com, dan.beygelman@broadcom.com, William Zhang , devicetree@vger.kernel.org, Brian Norris , linux-kernel@vger.kernel.org, Conor Dooley , Krzysztof Kozlowski , Vignesh Raghavendra , Miquel Raynal , Richard Weinberger , Kamal Dasu , Rob Herring Subject: [PATCH v5 02/12] dt-bindings: mtd: brcmnand: Add WP pin connection property Date: Wed, 7 Feb 2024 12:22:47 -0800 Message-Id: <20240207202257.271784-3-william.zhang@broadcom.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20240207202257.271784-1-william.zhang@broadcom.com> References: <20240207202257.271784-1-william.zhang@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790282262185464300 X-GMAIL-MSGID: 1790282262185464300 Add brcm,wp-not-connected property to have an option for disabling this feature on broadband board design that does not connect WP pin. Signed-off-by: William Zhang Reviewed-by: Conor Dooley Reviewed-by: Florian Fainelli --- Changes in v5: - Update the description of this new property Changes in v4: - Move the WP pin property to this separate patch and change it to boolean type. Changes in v3: None Changes in v2: None Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml b/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml index e54ca08a798a..6a717bcedfd3 100644 --- a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml +++ b/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml @@ -113,6 +113,13 @@ properties: earlier versions of this core that include WP type: boolean + brcm,wp-not-connected: + description: + Use this property when WP pin is not physically wired to the NAND chip. + Write protection feature cannot be used. By default, controller assumes + the pin is connected and feature is used. + $ref: /schemas/types.yaml#/definitions/flag + patternProperties: "^nand@[a-f0-9]$": type: object