Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4156178pxu; Wed, 9 Dec 2020 09:40:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzwTdjSH9insTQcaegy2ThctDm+98+ZxLVtt9qcacJb3TCxHWbN+oYTFzt9/AcySZU+5ng X-Received: by 2002:a17:906:3bcd:: with SMTP id v13mr2999019ejf.181.1607535634363; Wed, 09 Dec 2020 09:40:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607535634; cv=none; d=google.com; s=arc-20160816; b=LaXMh+qLMldHio9Az3/CQs0fUbgXP1XhQVx5jpWijIj/gsLlCskm/Ollv6GzqzH/rK ngjG2pWJ4H0/Ha3cfCsKf1ZKpgxsKqKo2/+GfxMrkbIgoPC4aJwpTUO9b54wwYgAiO2M AfaoG1DAimMg3qgGXpiYymNBd8KR/W7AZE33mSQy63WcI4sbnnZUxodCEYR3HSeJiOAe Y0af7HC6cxRTLaGHfpwvOdKCLy4GPyQFfGe3PR0FlkQcaczsfSa+58jO8xXSdEwiy5o0 uqof3qLxgeiee3RWTA0Dl0yTbcnXXQr6RcNeLsW9GECaAJoi7gHkJwdmho6EyM0No/8/ 3O6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TcJtMb//+EPfBx4dkxoUg6Ti+FH+RqCACCceANTeFy8=; b=QTj1U2iZ3tbWliV2BrKNulMbPdHqPF1jBSuEZPz9xo7Ok/S/JuNOhmOPzIEh1yAyUn yIuFqVeOPve2XMPHGSzBHTuugg8hXXuM/WNnTtFfxmsn6aROrE0YtwdvHIMnczmSVcOL YHrog6+OWFEe9WLn2otXq8tUeuGNlfbbqQhUftJYsuYe+9YMTLbuc6Ks70/LXnQbTgYe OlTO03n+/XbiEOF/4oKU52UtPzrZZ1HiplUypVCowwaIEjbzbuPlxVznZFo6Ef++VW11 KNHznEFMFILCgxwkb0QBWcoKwvs2IwuSupVOgM8ENt2SptrhbGpxjkbf4zWGGxVY+I3T AKnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y78dYeBP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si1082570ejf.648.2020.12.09.09.40.10; Wed, 09 Dec 2020 09:40:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Y78dYeBP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732762AbgLIRhc (ORCPT + 99 others); Wed, 9 Dec 2020 12:37:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732511AbgLIRhc (ORCPT ); Wed, 9 Dec 2020 12:37:32 -0500 Received: from mail-vs1-xe41.google.com (mail-vs1-xe41.google.com [IPv6:2607:f8b0:4864:20::e41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17981C0613D6; Wed, 9 Dec 2020 09:36:52 -0800 (PST) Received: by mail-vs1-xe41.google.com with SMTP id h6so1332765vsr.6; Wed, 09 Dec 2020 09:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TcJtMb//+EPfBx4dkxoUg6Ti+FH+RqCACCceANTeFy8=; b=Y78dYeBP7Q3T+CZ7oPp1D3rcvQi/waVMWIF+w3pAi7brg3wNNafn8JIS67BxeVwv2K 7lZVmVk1jL61cfm9Ik/fYSk/77szyAdSK70gZTl3Eue2yR2ULQAsdBGM0ryZGM20Z60W OnQr5uUuUCk9zwtUSyL309h5D3zbynTXImgBulKek4ur6L6ySOeVSpmfjHuBYLkHbq4q x51Ho944IUqt/5oVe9NQ+582Jrl2wP4oa9IW4X0BkDOXrmN4kGz50waz9H0QcrK4nH8n 61jvylCVQF0cXalElntPiknOj1NUC2RhxjpKrlWl6AZ66HTdf2bNRo36zDkT/SOVv/Fg g4aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TcJtMb//+EPfBx4dkxoUg6Ti+FH+RqCACCceANTeFy8=; b=kPBxqlXqWTqFFnf7lVmFRDbCNgPJ9l+9LuHU3WDf4vmDkfXOIIeWpe9ddHMJRM59U+ Q1ojWvHuh225UODnUiUSh59XUA3/x2SluSvKCJdILOyNscXllDer2au51Hhv1QOR99hS 8/NlGs12ODgYcDxTCiWQaSf8LVkjvdeygLehq1MCWIgMUuOiR6OBsZVlTdG93YlYdT6I vC2DHAkdXEfwalkoukvy7mvrOwkCvd35rDB4dmJOqmwb6/n+VtLVrsqzcgEew9yDr7R5 9mvrl1Zgx80wlk9RSS/bK6sPIykVkl5CPrTY95Vn4RUyUi2xW+qTn5/0unkwiZWUxS6i gvyg== X-Gm-Message-State: AOAM530709D4SeejG9UVSxQg2C4rs7EBD0RIW0w8ibLXfO2NuBjNORrx AnzOSsCZ1lBPxic9rTVsbRUBMbUwDmRs4ZPnjyg= X-Received: by 2002:a67:d319:: with SMTP id a25mr3032095vsj.57.1607535411238; Wed, 09 Dec 2020 09:36:51 -0800 (PST) MIME-Version: 1.0 References: <3bed61807fff6268789e7d411412fbc5cd6ffe2a.1607507863.git.hns@goldelico.com> In-Reply-To: <3bed61807fff6268789e7d411412fbc5cd6ffe2a.1607507863.git.hns@goldelico.com> From: Sven Van Asbroeck Date: Wed, 9 Dec 2020 12:36:40 -0500 Message-ID: Subject: Re: [PATCH] spi: dt-bindings: clarify CS behavior for spi-cs-high and gpio descriptors To: "H. Nikolaus Schaller" Cc: Mark Brown , Rob Herring , Linus Walleij , linux-spi , linux-gpio@vger.kernel.org, devicetree , Linux Kernel Mailing List , Discussions about the Letux Kernel , kernel@pyra-handheld.com, Maxime Ripard , Lukas Wunner , Laurent Pinchart , Andreas Kemnade Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 9, 2020 at 4:57 AM H. Nikolaus Schaller wrote: > > + > + device node | cs-gpio | CS pin state active | Note > + ================+===============+=====================+===== > + spi-cs-high | - | H | > + - | - | L | > + spi-cs-high | ACTIVE_HIGH | H | > + - | ACTIVE_HIGH | L | 1 > + spi-cs-high | ACTIVE_LOW | H | 2 > + - | ACTIVE_LOW | L | > + Doesn't this table simply say: - specify 'spi-cs-high' for an active-high chip select - leave out 'spi-cs-high' for an active-low chip select - the gpio active high/active low consumer flags are ignored ? If so, then I would simply document it that way. Simple is beautiful.