From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 E2DA8374E4A; Thu, 12 Mar 2026 14:45:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773326719; cv=none; b=hJ3fNoLmeuVVWwy+vak58RqrBjWQ9q4wqcYERJsMRYffFuYIpuqjJgJNGJZNAoM4emkqnPD1lPywBaZi4UYgYTPjBLoLlOHT4IWWLYj+pSy/j4lfUyMg3Id+cFlLloadQIR6oRYfpNTVwJG9+EEpkkIIRyY/q84SC9/sR+eKH0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773326719; c=relaxed/simple; bh=P7m0/3go3oTl4JKU0I7/RQS3LquMlj/rAiKn6iy0BY4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=kUzlIq656CjjSKxYHpAKqA1kNumuTlFsPNch/hGG9UIRoRLMTFbQmH5RXUk5TmY9LUf174b4XxJgxlSJQhILwRLUpElxVOi1TsmVupbf5bnApbisc9DQYVD447j5wyx511/YLfD6OenVYXXn1Aj9Im3N0TkKXNFpUMPFIphwygc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=k54hmVgT; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="k54hmVgT" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 2C2354E4264B; Thu, 12 Mar 2026 14:45:14 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id DF3245FDEB; Thu, 12 Mar 2026 14:45:13 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CD3EB10369DD7; Thu, 12 Mar 2026 15:45:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1773326713; h=from:subject:date:message-id:to:cc:mime-version:content-type: in-reply-to:references; bh=4daAQZWFYXM6mQK2PksFrwRHEdQEwOFynA5SkgmnW1w=; b=k54hmVgT0xaFqCJtR3GbR3zGCAB20/a+19R66w4l0p+aHd4JVXrkqkTP0r3wHJo5GIgOB3 c4FnpJq5MT728TpHIr+DclaqeazBsb+FtNvFgnRjnem1LjYoFFzC395CCbNcFSWSsHfEkS qRk8d+nJAeGsKkcFjXiOmjCyINkbMK+dkxxPekFu6gt3aADOjhJFp5tUJRdPkQkWQ7QjWf SDz6NJb/fBa3nD/nY826wsMFxIxzgLa7gLHQ+UsI6Orrn6iO+tpBGoKm1wnWqoAXxOOhwz Y9SRXKwLzlVm0u1Bw3trxYQTmgAlQC7ZpBREBfNrzWcZCg+Uo8P5fPxouaRZUw== From: Miquel Raynal To: Rob Herring Cc: Cheng Ming Lin , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski , Conor Dooley , Tudor Ambarus , Mikhail Kshevetskiy , Pablo Martin-Gomez , Tianling Shen , Pratyush Yadav , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alvinzhou@mxic.com.tw, Cheng Ming Lin Subject: Re: [PATCH v8 1/3] dt-bindings: mtd: spinand: Add randomizer enable/disable properties In-Reply-To: <20260312140553.GA2914438-robh@kernel.org> (Rob Herring's message of "Thu, 12 Mar 2026 09:05:53 -0500") References: <20260305071042.1193522-1-linchengming884@gmail.com> <20260305071042.1193522-2-linchengming884@gmail.com> <20260312140553.GA2914438-robh@kernel.org> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Thu, 12 Mar 2026 15:45:06 +0100 Message-ID: <874imlksy5.fsf@bootlin.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Last-TLS-Session-Version: TLSv1.3 >> + nand-randomizer-enable: >> + description: >> + Enable the randomizer feature. This property is mutually-exclusive >> + with nand-randomizer-disable. >> + type: boolean >> + >> + nand-randomizer-disable: >> + description: >> + Disable the randomizer feature. This property is mutually-exclusive >> + with nand-randomizer-enable. >> + type: boolean >> + >> +dependencies: >> + nand-randomizer-enable: >> + not: >> + required: >> + - nand-randomizer-disable > > Rather than define this in the schema, make the properties inheritly > mutually-exclusive with a single property: > > nand-randomizer = <0|1>; > > That's assuming you need not present to mean a 3rd thing such as use the > bootloader setting. If you only need enable/disable, then a > single boolean property works. We need the "not present" case, so the single boolean property cannot be considered here.