Received: by 2002:a05:7412:2a8a:b0:fc:a2b0:25d7 with SMTP id u10csp549495rdh; Wed, 7 Feb 2024 12:24:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXZWx0H9ZaMTnFDQQ8r4ov+6j6KtupNEYZDKyvnReRgai+j9ATwEWzYLF0HgeE66jVCicsW6SeuhSuLHesE5vquC7C5FmPtVOeKsR9S6A== X-Google-Smtp-Source: AGHT+IFuERp8LCjAIfKbyc72Qi75m6DXAczNCh5AS9WU95mwyqvmOXGLodvN/vyJt9cVfUFkftzM X-Received: by 2002:ac8:4a0e:0:b0:42b:e5e0:5cd with SMTP id x14-20020ac84a0e000000b0042be5e005cdmr6466445qtq.7.1707337470519; Wed, 07 Feb 2024 12:24:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707337470; cv=pass; d=google.com; s=arc-20160816; b=Qq2Ow6ZQn9bfQWFgIJ/BKJ+cUP5UGLayzmUhqvAPKh4vjt3pQ7R7E3zY3DlIC20SGS RD1z4Y2JWSdSnmo1PnFCaPNR1BCUg9UvxMeZj9bpEkgbjMbWtGKj4TSq3Kg/rvPkyG3O TyuEHYLV7kaPOmLm2SnF8UIznnr6jB2Cj4rwdTNx6DqDh9O4BKT1k4MIuBIf9Kf/Lg9m wJ64sJygYY2U2xyz3xDCSwD/s1AvQwiI54cVamX00ehJ76OvDQ7Tm6953DaR9szuqQoY jPTeINTlJtGCjxbpAMssQqySr+GQWt0cOMy07cFNWfL9z3I2yHBTUSfsEuzyT4ekd3AD VC2A== 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=mKzxWW0mGxIoPonH39yER9sLg7y5VlCXxSuwsmgHDpU=; fh=YAC7MwCKlvfxJbcw2SNNxfQVeBdavViLBoGBi1uSXIo=; b=KGe0zXsUACoNBUUfL2xd+2Ld4UPuPz9NrsElx99ZIXlZfFOpTcz7CT9qpvzzcjUuKO mtiQ4KVrHmOOT4zBBqkhKDHXI7HZDtZW56ppvVexCv772X6WDRJWedCocqZ10H2Syz0I xZoKA94gxrM9Bc6xboIAZKU+AvTT3iSN/ilbRHnf7ittYJ5IVU6Mrq3FhSnV/qfQVRlz PKe0zSbdOupi6f743ZCXNr7xpOgB2PmKzQkJmz/1vyTyf9Txn5BPjXmm4zalqIR6HDTp LMssLsYRsB6dTFUUy2vPS3ZH5q7KVkgVA4d6d5KTKNsEdrnzFoo/nwM7/lBn7ztR2oEr RLvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=Ix1v4o9b; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-57014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com X-Forwarded-Encrypted: i=2; AJvYcCWpvVEXoGx7unBTYvHhBlbL3YbtFi1NrMZiALYW7MMXUuOuQaRhr6Nk3hSvlh754d7RWiZsnS7SKNtPF1DtmW2eFpeuZEIVrV4HHsFSRg== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v17-20020a05622a131100b0042c464356ecsi974546qtk.154.2024.02.07.12.24.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 12:24:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=Ix1v4o9b; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-57014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57014-linux.lists.archive=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 46D1A1C24825 for ; Wed, 7 Feb 2024 20:24:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2C698129A9A; 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="Ix1v4o9b" 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 E581A1292EB; Wed, 7 Feb 2024 20:23:35 +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=1707337417; cv=none; b=iP8XOc8w34zp7pytTavgCavb16ZUsOwTcADNqvGqJ2kzltJ72V2fPNnPeRTnw01p38hl8a2wh6n+KodZ7ZyQNIELD5/P8ebryEX8ugjunb5RxeBniJZboZwqMOu1VQTx166YMaPHyPuJoldEB2QKJIbEfVSgfcS2xdLU6h823XQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707337417; c=relaxed/simple; bh=tkkKLCiY+CmMh/9fyV9TP9Qpf1i/v+KHxHF98/KxN+U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FaVBbm2PGv4J2215Lig/ISyeBGJ7Fy6u92pEUGDNzwDZsse9Ug5KmtYixDW1fxLrKr/K2Lw8bP6vKQCtZuS1ktbl1GubSNIB2TmnvXFjd3P4ABC9qeePQQqdQf9BwaAe8T+m6NbfCiwkCgJCfYcwnbVfdmuNM0Ke1vyuzDHWiXI= 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=Ix1v4o9b; 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 2C616C002E08; Wed, 7 Feb 2024 12:23:35 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 2C616C002E08 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1707337415; bh=tkkKLCiY+CmMh/9fyV9TP9Qpf1i/v+KHxHF98/KxN+U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ix1v4o9bKQFqE4Iq/7WQfxDfx2qYveU8FtEqQHEPNaNYdCYT5IM5bJE59Thpp+1fU N3mVgwVY7/aetVlvupau5v6F1Xu2oNkutjYM1hhd9zaNT5Y6NSwhag2LcWJoyOiZAU 9dnxC7ZPD4zTY1BFOQRaD+dmuN/wsu05Rn1R5w/Y= 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 BB3FF18041CAC4; Wed, 7 Feb 2024 12:23:33 -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 03/12] dt-bindings: mtd: brcmnand: Add ecc strap property Date: Wed, 7 Feb 2024 12:22:48 -0800 Message-Id: <20240207202257.271784-4-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 Content-Transfer-Encoding: 8bit Add brcm,nand-ecc-use-strap to get ecc and spare area size settings from board boot strap for broadband board designs because they do not specify ecc setting in dts but rather using the strap setting. Signed-off-by: William Zhang --- Changes in v5: - Update the description for this ecc strap property - Add check to make sure brcm,nand-ecc-use-strap and nand-ecc-strength/brcm,nand-oob-sector-size can not be used at the same time Changes in v4: - Move ecc strap property to this separate patch and remove some non-binding related text from the description Changes in v3: None Changes in v2: None .../bindings/mtd/brcm,brcmnand.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml b/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml index 6a717bcedfd3..52a4c993b6f1 100644 --- a/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml +++ b/Documentation/devicetree/bindings/mtd/brcm,brcmnand.yaml @@ -146,6 +146,13 @@ patternProperties: layout. $ref: /schemas/types.yaml#/definitions/uint32 + brcm,nand-ecc-use-strap: + description: + This property requires the host system to get the ECC strength + and step size from the SoC NAND boot strap setting. This is a + common hardware design on BCMBCA based boards. + $ref: /schemas/types.yaml#/definitions/flag + unevaluatedProperties: false allOf: @@ -195,6 +202,18 @@ allOf: required: - interrupt-names + - if: + patternProperties: + "^nand@[a-f0-9]$": + required: + - brcm,nand-ecc-use-strap + then: + patternProperties: + "^nand@[a-f0-9]$": + properties: + nand-ecc-strength: false + brcm,nand-oob-sector-size: false + unevaluatedProperties: false required: -- 2.37.3