Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp9503831rwr; Thu, 11 May 2023 16:23:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5/OCSG5zkwwK1T4gtxv2cnSKlqU7l39lrxt0qszKGicqRSw87ya3U6zKs3AVqTPulZbieh X-Received: by 2002:a05:6a20:72a2:b0:100:c4f1:72a0 with SMTP id o34-20020a056a2072a200b00100c4f172a0mr19728444pzk.3.1683847413625; Thu, 11 May 2023 16:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683847413; cv=none; d=google.com; s=arc-20160816; b=CrhMY4flK+Ch2q9AGxknSeGNw74AFkpFtFsJ5RBAn4eD4GrfQAqujw9G2Rfx4OiMi8 +Er7t67S1BQPemvSBYn/vLxvbJXoFw6vdLFDLl5bdtg+86KTP4OQK1EBnLCv99LS0DyT j9HpqghsXBxIqVwZGaOqheVhSKiSroitaTltUWMbtC1TXlIdMsPvb1d7yCgr26CpC0tS kZY4k/x07Y0whpEdPzfvgG9HjkzLp2Y6bhCdle4BptVJ73d3dwXVO4HuWIwoHj/OepRY RmxSqJJxz/w3dyRufT3IGpexmzTJUQTZMP26RoILpoQYmcUxXZGAmD0241r0d2waxuuW 7djw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=k1YaV1mLf8ta46NqCsJ+gUT1ajmBoG4/m5hmiu17DFk=; b=r7gdGhaeSwGW4cAld9ehDwHpcfyhwCQSJXbP609w8v13OcJaTjFL7z2lwJnyE/oPMt QGMR+r06mfzmk60ENETP3q3zlETXKeXlfLWi5T9ZwKurKQWWxR1r6Ua3FFfPA2eAmkZT QONUixfYrb3ibXPPsMOzovMqiTW9StTGs8nwz+jG8TDMabZkdbQJfgsV23Ml+6eI4IKR CFvIT0Dsl5lkhHNtdSSPXtAo4IXIduvLnhpzF+AKiGv82ItapTM3sjJ4Rmg3WOqiAa+0 v6wJTY6OLngoicNUesoTrIiaGaMZfW+ekKKeBzhGl7tG8MWzaxZR4MaQfrU0cenqgxXa itMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20221208 header.b=JW7oR2Oy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d70-20020a633649000000b0053070f4df43si3331260pga.450.2023.05.11.16.23.19; Thu, 11 May 2023 16:23:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20221208 header.b=JW7oR2Oy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239446AbjEKXO2 (ORCPT + 99 others); Thu, 11 May 2023 19:14:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239385AbjEKXO0 (ORCPT ); Thu, 11 May 2023 19:14:26 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A87D65BA5; Thu, 11 May 2023 16:14:18 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-959a3e2dd27so1649526966b.3; Thu, 11 May 2023 16:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683846857; x=1686438857; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=k1YaV1mLf8ta46NqCsJ+gUT1ajmBoG4/m5hmiu17DFk=; b=JW7oR2OyYZ62rFL5P9pzdR5DWFAgrbpzmJmlxoUBxtWRZOwPmOahMp5o43VaHDUlC4 pv2mkhlpxKEz7e0vvrVa5PICdu0vXUQVH4KIGVX/R10DkUsGhjESdrSlH4USgc2TADYZ 9SKUEboWvCPdVXNIsUzgiP8/Ks8xAvdEJLJGcXqpF2OYsNNwcPNWhdEFrpOQ9n8dtq8+ JE7sUgrjFL4lTvfjuWGtP8DGIOv1vO3GdXUl+qdOaUbcKJzPQkKieF4ub8t6tv8TP61Y dmpg5Uq6l3Il/z6HPcMxu3R4R0lGRY8s6X9Qm2ZTAOiuSn3I/ta9ZMuR2y9gcmBUmuVY Pitg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683846857; x=1686438857; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=k1YaV1mLf8ta46NqCsJ+gUT1ajmBoG4/m5hmiu17DFk=; b=XDH7+pCLGDjjacJv20rR7rCyI/H3RJvKF1hNsXZDzkd8E9wb0clJK9v3u0kMlpkOvb /pgxbjQzkQoCDy0Jm1Uv3FmOKbIMPH43EyvGd4TzVkzaDOx1vQKre9pEnqeGYGM1XjV2 xmQmXO904efQjRWqGqs4cQuTspetSTCGVBC7G/q2aeKE1voarCfabQ1mfhUOja36091Z GWJ7SiM5r6gr831XPctibl3cED6RKJRqzqsoDRiQzPABilWUtLkS8AerT9RU22tC1WHM 2oFWT/U+bPKa2eiDWKfGBXzUrmHSkg18C+SYGn+Lgpy6haEtLPu32trCizd6gataoq/v 2tsw== X-Gm-Message-State: AC+VfDzb2hAiAHwcRmh/Bv1W3q6pp6Likf24V9J1n0X48BtQNW9LaoEH fr53agzCeBeB+mSBvAVjSuw= X-Received: by 2002:a17:907:a407:b0:96a:928c:d382 with SMTP id sg7-20020a170907a40700b0096a928cd382mr986215ejc.48.1683846856728; Thu, 11 May 2023 16:14:16 -0700 (PDT) Received: from wslxew193.fritz.box (p200300c7874f2f0049cdad3080524d03.dip0.t-ipconnect.de. [2003:c7:874f:2f00:49cd:ad30:8052:4d03]) by smtp.gmail.com with ESMTPSA id hx8-20020a170906846800b00965e839f56bsm4543023ejc.182.2023.05.11.16.14.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 16:14:16 -0700 (PDT) From: Boerge Struempfel X-Google-Original-From: Boerge Struempfel Cc: boerge.struempfel@gmail.com, bstruempfel@ultratronik.de, andy.shevchenko@gmail.com, Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/4] spi: dt-bindings: Introduce spi-mosi-idle-low flag Date: Fri, 12 May 2023 01:13:14 +0200 Message-Id: <20230511231317.158214-2-bstruempfel@ultratronik.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230511231317.158214-1-bstruempfel@ultratronik.de> References: <20230511135632.78344-1-bstruempfel@ultratronik.de> <20230511231317.158214-1-bstruempfel@ultratronik.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some spi controller switch the mosi line to high, whenever they are idle. This may not be desired in all use cases. For example neopixel leds can get confused and flicker due to misinterpreting the idle state. Therefore, we introduce a new spi-mode bit, with which the idle behaviour can be overwritten on a per device basis. Signed-off-by: Boerge Struempfel --- .../devicetree/bindings/spi/spi-peripheral-props.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml index 782a014b63a76..46d5acc1fc232 100644 --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml @@ -34,6 +34,12 @@ properties: description: The device requires the chip select active high. + spi-mosi-idle-low: + $ref: /schemas/types.yaml#/definitions/flag + description: + The device requires the mosi line to be low when idle and the + chip select is asserted. + spi-lsb-first: $ref: /schemas/types.yaml#/definitions/flag description: -- 2.25.1