From patchwork Thu Jul 21 15:31:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12925381 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB0BEC43334 for ; Thu, 21 Jul 2022 15:32:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EAA0310E0F1; Thu, 21 Jul 2022 15:32:13 +0000 (UTC) Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by gabe.freedesktop.org (Postfix) with ESMTPS id 34CF910E147 for ; Thu, 21 Jul 2022 15:32:11 +0000 (UTC) Received: by mail-lf1-x134.google.com with SMTP id m12so2278994lfj.4 for ; Thu, 21 Jul 2022 08:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BQPsNrymYWigYAjbaDXSls9HO34dMn+jNyqBAMGHkhE=; b=klI60USk54N1ownski2MYVS3xKr8/dbLGBfThTwKmpoSlp9gA0BGnWpC9utJG4uA5m 2CCtvMBNtdFNqB8IgxA0+GaosllXfWigQdxOdCu1XVk+1Rts1gdQNd6u6Ma9NPPIWTj5 1IbT841W++hJJgq+y9PLiXuvfn5+N8yp5NMHbm82xVvIT4Aljr+GFPAzq1vQ0O9QITX2 WUQ9oP14M7KrpxoJi8E70tMDMjKr4WbxJEVDe/+CpKHJBhLE/xVIUJ6IUAu4k0UzhuT7 9j6bDJ2xgCoJ8bGPTZ+H0krYG6U7lCMEZjjwdEjTtPBudunXg8aRjFQ/Zciv9euVnpOp O93w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BQPsNrymYWigYAjbaDXSls9HO34dMn+jNyqBAMGHkhE=; b=0hv7QY1Uvw8ED38EYnZlklFR5tAP2ZvZ1i3Z8FVuZaC4jjIAUtSN6N+7g3ZYXVlCW1 5AM8vlvWITKmKGdQzaPz0n6a5sRk5b4rs23/MX4r2MuJgovwIin3goycyjGjPWWCuzmv TK/nhEEm7Cn3x+w1Cp3rk4JD/4sFkgsuJ7CSdpOvPbIl/5DRyZKTG24AE/+nlN0mXtA/ a/6/xSOuyrnNtQ0efxsWT4PrR6kPjTZfHVtHsJZMT0MeK4KDCqZQLYyNazYGJHkKoSys 7rLY7Yw51eFxOPp+j2sxIfsryvmaZ3pDJ7gy1ofzO0UgFXeMVfNK0lO9ar34vB6ntbd6 QNJg== X-Gm-Message-State: AJIora8Ke7+Bkm7o2cfWAsdFbFFgR1iCOWPkyj8yGsWn2Ua3TcdOQjQ/ EdHF7p/BjUJvy1pDPIFmviNFhg== X-Google-Smtp-Source: AGRyM1u0E04Ew60hmcTsh0czeXohs6Fb3/eaGE8jGFnsE2y7hLGkSmza1WWiq5qyBWVL95BtnaBBXg== X-Received: by 2002:a05:6512:10c3:b0:48a:b6d:41d with SMTP id k3-20020a05651210c300b0048a0b6d041dmr22990192lfg.679.1658417529272; Thu, 21 Jul 2022 08:32:09 -0700 (PDT) Received: from krzk-bin.. (89-162-31-138.fiber.signal.no. [89.162.31.138]) by smtp.gmail.com with ESMTPSA id a27-20020ac25e7b000000b0048a2995772asm504604lfr.73.2022.07.21.08.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 08:32:08 -0700 (PDT) From: Krzysztof Kozlowski To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Markuss Broks , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Alexandru Tachici , Marcelo Schmitt , Tomislav Denis , Cosmin Tanislav , Nishant Malpani , Dragos Bogdan , Nuno Sa , Jean-Baptiste Maneyrol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Tomi Valkeinen , Andrzej Hajda , Maxime Ripard , Marek Belisko , "H. Nikolaus Schaller" , Christian Eggers , Beniamin Bia , Stefan Popa , Oskar Andero , =?utf-8?q?M=C3=A5rten_Lindahl?= , Dan Murphy , Sean Nyekjaer , Cristian Pop , Lukas Wunner , Matt Ranostay , Matheus Tavares , Sankar Velliangiri , Lubomir Rintel , Stefan Wahren , Pratyush Yadav , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH 1/6] dt-bindings: panel: explicitly list SPI CPHA and CPOL Date: Thu, 21 Jul 2022 17:31:50 +0200 Message-Id: <20220721153155.245336-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> References: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The spi-cpha and spi-cpol properties are device specific and should be accepted only if device really needs them. Explicitly list them in device bindings in preparation of their removal from generic spi-peripheral-props.yaml schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/display/panel/lgphilips,lb035q02.yaml | 10 ++++++++++ .../bindings/display/panel/samsung,ld9040.yaml | 10 ++++++++++ .../bindings/display/panel/samsung,lms380kf01.yaml | 12 +++++++++--- .../bindings/display/panel/samsung,lms397kf04.yaml | 12 +++++++++--- .../bindings/display/panel/samsung,s6d27a1.yaml | 12 +++++++++--- .../bindings/display/panel/sitronix,st7789v.yaml | 10 ++++++++++ .../devicetree/bindings/display/panel/tpo,td.yaml | 10 ++++++++++ 7 files changed, 67 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml b/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml index 5e4e0e552c2f..0bd7bbad5b94 100644 --- a/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml +++ b/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml @@ -21,6 +21,16 @@ properties: enable-gpios: true port: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. + required: - compatible - enable-gpios diff --git a/Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml b/Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml index d525165d6d63..ee6a61549916 100644 --- a/Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml +++ b/Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml @@ -42,6 +42,16 @@ properties: panel-height-mm: description: physical panel height [mm] + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. + required: - compatible - reg diff --git a/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml b/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml index 251f0c7115aa..7f010cb4aa20 100644 --- a/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml +++ b/Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml @@ -43,9 +43,15 @@ properties: backlight: true - spi-cpha: true - - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. spi-max-frequency: maximum: 1200000 diff --git a/Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml b/Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml index cd62968426fb..794da8b45896 100644 --- a/Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml +++ b/Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml @@ -33,9 +33,15 @@ properties: backlight: true - spi-cpha: true - - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. spi-max-frequency: description: inherited as a SPI client node, the datasheet specifies diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml b/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml index 26e3c820a2f7..468111b1a1b4 100644 --- a/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml @@ -41,9 +41,15 @@ properties: backlight: true - spi-cpha: true - - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. spi-max-frequency: maximum: 1200000 diff --git a/Documentation/devicetree/bindings/display/panel/sitronix,st7789v.yaml b/Documentation/devicetree/bindings/display/panel/sitronix,st7789v.yaml index 9e1d707c2ace..0eea7de51689 100644 --- a/Documentation/devicetree/bindings/display/panel/sitronix,st7789v.yaml +++ b/Documentation/devicetree/bindings/display/panel/sitronix,st7789v.yaml @@ -23,6 +23,16 @@ properties: backlight: true port: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. + required: - compatible - reg diff --git a/Documentation/devicetree/bindings/display/panel/tpo,td.yaml b/Documentation/devicetree/bindings/display/panel/tpo,td.yaml index f902a9d74141..9b0e8659d6bd 100644 --- a/Documentation/devicetree/bindings/display/panel/tpo,td.yaml +++ b/Documentation/devicetree/bindings/display/panel/tpo,td.yaml @@ -28,6 +28,16 @@ properties: backlight: true port: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. + required: - compatible - port From patchwork Thu Jul 21 15:31:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12925382 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4BE34CCA48A for ; Thu, 21 Jul 2022 15:32:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F0CA10E1E1; Thu, 21 Jul 2022 15:32:18 +0000 (UTC) Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 12B3E10E147 for ; Thu, 21 Jul 2022 15:32:15 +0000 (UTC) Received: by mail-lj1-x22d.google.com with SMTP id m9so2244319ljp.9 for ; Thu, 21 Jul 2022 08:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EQ3a4s4qAEwtcohIu8tm1jnBQEyD7eezvu0seYsojDk=; b=pikqJKQKDc80pZvt5GG9B/77j9Vze0u0SHT/M63SdP85NaV/WJhfiWUx/O1iwBo1Zs 51WywlGFpQWGed8kGkk3jy3hRIlYyF6bMoDMzVFESaPihCyv2oGnsZBrm+fYFQQUvEfI 8SERir7uPVpgDr1aUxZpdzczhbLYBol8OzA6bkZU1Q4mIQjwb2Wno1DEK6jwYIdYnX3s a7ZnCdCjHAjyZ8H5kdIxU1KB2fF5E+C2gKb1LQV8HYp2F5BTeFLPaSMuW8NDUaoIGUuS eJ0tKfWVX9DsAu/i2o+lGMU/UooKmEoL+XO1TwpEoziUCJ/CUbB4nG9nYzyj0wOLRrVO aDaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EQ3a4s4qAEwtcohIu8tm1jnBQEyD7eezvu0seYsojDk=; b=1vwTvl3YxvALS3qZEyrfkQRvShMNNNg4mq20b7QSgThZT9cnSvb3FdCY6EVgQFAdW8 JDkpXiPdIyIa92OqPlyGJEGqG6CftCDlvdJFdUYteyQTPnVBzxKckW7u1zn0VEXlysip HmQ8KMsCrTZS7tt/vPbJc/AcXN09POvWBXpBDg5bTMCx5q5f0J6Pn3t8ApzAzS/Wo5A3 1mpaA2qJMT8NRr+JbKKrdAnT3tsBlJ4Opwmkpjlq3IqdizepSqYE1bxMXmaPNlr0o0Ul puzF8qHz7YT217nzw0OD34AiaPEn1OcUUxhPskpF6nvTAaTfVbeJ0TmPKzVy0Zi4RoG0 xuuQ== X-Gm-Message-State: AJIora/8mz0H+Hq3drR3PvOaPTc0jcWHAieUcNj1FQvtvqXOoeao0dJ+ pdJ9o7EeYTsdUUEz/rGZN0u6oA== X-Google-Smtp-Source: AGRyM1tu65CRx5q05gwHKFNcvSCCItevg0NuGLpkWKa4yuq3GQbnJvL5P0DuUjKl3ITIfcyOAD7U5g== X-Received: by 2002:a2e:164b:0:b0:25d:eb67:7161 with SMTP id 11-20020a2e164b000000b0025deb677161mr256507ljw.70.1658417531893; Thu, 21 Jul 2022 08:32:11 -0700 (PDT) Received: from krzk-bin.. (89-162-31-138.fiber.signal.no. [89.162.31.138]) by smtp.gmail.com with ESMTPSA id a27-20020ac25e7b000000b0048a2995772asm504604lfr.73.2022.07.21.08.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 08:32:11 -0700 (PDT) From: Krzysztof Kozlowski To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Markuss Broks , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Alexandru Tachici , Marcelo Schmitt , Tomislav Denis , Cosmin Tanislav , Nishant Malpani , Dragos Bogdan , Nuno Sa , Jean-Baptiste Maneyrol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Tomi Valkeinen , Andrzej Hajda , Maxime Ripard , Marek Belisko , "H. Nikolaus Schaller" , Christian Eggers , Beniamin Bia , Stefan Popa , Oskar Andero , =?utf-8?q?M=C3=A5rten_Lindahl?= , Dan Murphy , Sean Nyekjaer , Cristian Pop , Lukas Wunner , Matt Ranostay , Matheus Tavares , Sankar Velliangiri , Lubomir Rintel , Stefan Wahren , Pratyush Yadav , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH 2/6] dt-bindings: eeprom: at25: explicitly list SPI CPHA and CPOL Date: Thu, 21 Jul 2022 17:31:51 +0200 Message-Id: <20220721153155.245336-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> References: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The spi-cpha and spi-cpol properties are device specific and should be accepted only if device really needs them. Explicitly list them in device bindings in preparation of their removal from generic spi-peripheral-props.yaml schema. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/eeprom/at25.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/eeprom/at25.yaml b/Documentation/devicetree/bindings/eeprom/at25.yaml index fbf99e346966..64666624b6aa 100644 --- a/Documentation/devicetree/bindings/eeprom/at25.yaml +++ b/Documentation/devicetree/bindings/eeprom/at25.yaml @@ -65,9 +65,15 @@ properties: For 9 bits, the MSB of the address is sent as bit 3 of the instruction byte, before the address byte. - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. - spi-cpol: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. read-only: description: From patchwork Thu Jul 21 15:31:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12925383 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 98CDBC433EF for ; Thu, 21 Jul 2022 15:32:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BCF7A10E147; Thu, 21 Jul 2022 15:32:21 +0000 (UTC) Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by gabe.freedesktop.org (Postfix) with ESMTPS id C206810E147 for ; Thu, 21 Jul 2022 15:32:16 +0000 (UTC) Received: by mail-lf1-x131.google.com with SMTP id u13so3371783lfn.5 for ; Thu, 21 Jul 2022 08:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Atr8n4kwNDths2E9aDaStg9WSYmmytzFyNR7lUPKA94=; b=U3zrKJQ0kDhJ5Q9BYlrusJz/xFVRDur8ZeSn4VIBer1ZDRCj6gDLl13i9+t92wOlnG WsaDXaY/oKwsLzfDtDpQmnUOjL8OVSuO3JsVVrW5jwiiTXwSsb0RjerownlEJ9BNLkIF ez6KemhF9mOkOSWF+yrE8uT9aKIMUc0IolbQtih9ySBmPm8piAxXrGNeifiyYMyhnepd HHT0UJgW31V1l69DjtPrJtVpBwRY7fjJV9gDwcaXYNd2RQOyE3RMPJbyAUAKS50xZFrr A0gUC4Ui1+/cSGpWCVwuDrboQww9a/Kbw31OSMmHI3YwvRF6aRtJvt4gNCqly8ZgXvLW Znhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Atr8n4kwNDths2E9aDaStg9WSYmmytzFyNR7lUPKA94=; b=IMVyLgGDbr60KIy0r4BsIm6RF1R0uNDM1ITcxIzFkq/yKnqZvu8y5WexvIt7Lyl/nD HamePvFA3pypX1Kuy7BKC6cT0bpc5m/g2+cphJ8mmU146UOoCaK2+kB65fzBk1N02Rco 6G8AbGiF3pwEYQjX79fPQ30jTmnZX+ehLXuV+qJDgR0idnOvFT4hDCEN6RWiQWPLt/3r S04mH6U/9+ndVLvsCObk9ClnxDjp8MEORxl1+IfFDsDH+42awQTIjo7DaKPm+wntIWqz MARENOcQ9VP4t6J2oo7jSJFddzU9eOOErkgXYE6GHGQ/4qrATgMGk1qbuRL6BRN/MLmO DfAg== X-Gm-Message-State: AJIora+giC9XfU+2ankiLWQPiE1eFsmm9Y4BlzbqhYdmCnt2kYrCIwBA +t/DXw4AUhiOhfw5ISV5WSuD7Q== X-Google-Smtp-Source: AGRyM1seD4EpW1GLCdc5aKlaKcuO+ZYLZPvBK7x3FBqr7vfRa1iGqNXXvm15HkT86xxm2+tVLbD0HA== X-Received: by 2002:ac2:5cb7:0:b0:48a:7002:1dc8 with SMTP id e23-20020ac25cb7000000b0048a70021dc8mr1354335lfq.273.1658417534675; Thu, 21 Jul 2022 08:32:14 -0700 (PDT) Received: from krzk-bin.. (89-162-31-138.fiber.signal.no. [89.162.31.138]) by smtp.gmail.com with ESMTPSA id a27-20020ac25e7b000000b0048a2995772asm504604lfr.73.2022.07.21.08.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 08:32:14 -0700 (PDT) From: Krzysztof Kozlowski To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Markuss Broks , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Alexandru Tachici , Marcelo Schmitt , Tomislav Denis , Cosmin Tanislav , Nishant Malpani , Dragos Bogdan , Nuno Sa , Jean-Baptiste Maneyrol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Tomi Valkeinen , Andrzej Hajda , Maxime Ripard , Marek Belisko , "H. Nikolaus Schaller" , Christian Eggers , Beniamin Bia , Stefan Popa , Oskar Andero , =?utf-8?q?M=C3=A5rten_Lindahl?= , Dan Murphy , Sean Nyekjaer , Cristian Pop , Lukas Wunner , Matt Ranostay , Matheus Tavares , Sankar Velliangiri , Lubomir Rintel , Stefan Wahren , Pratyush Yadav , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH 3/6] dt-bindings: iio: explicitly list SPI CPHA and CPOL Date: Thu, 21 Jul 2022 17:31:52 +0200 Message-Id: <20220721153155.245336-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> References: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The spi-cpha and spi-cpol properties are device specific and should be accepted only if device really needs them. Explicitly list them in device bindings in preparation of their removal from generic spi-peripheral-props.yaml schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/iio/accel/adi,adxl345.yaml | 10 ++++++++-- .../devicetree/bindings/iio/adc/adi,ad7192.yaml | 10 ++++++++-- .../devicetree/bindings/iio/adc/adi,ad7292.yaml | 5 ++++- .../devicetree/bindings/iio/adc/adi,ad7606.yaml | 10 ++++++++-- .../devicetree/bindings/iio/adc/adi,ad7768-1.yaml | 10 ++++++++-- .../bindings/iio/adc/microchip,mcp3201.yaml | 12 ++++++++++-- .../devicetree/bindings/iio/adc/ti,adc084s021.yaml | 11 +++++++++-- .../devicetree/bindings/iio/adc/ti,ads124s08.yaml | 5 ++++- .../devicetree/bindings/iio/adc/ti,ads131e08.yaml | 5 ++++- .../devicetree/bindings/iio/addac/adi,ad74413r.yaml | 5 ++++- .../devicetree/bindings/iio/dac/adi,ad5592r.yaml | 5 ++++- .../devicetree/bindings/iio/dac/adi,ad5755.yaml | 10 ++++++++-- .../devicetree/bindings/iio/dac/adi,ad5758.yaml | 6 +++++- .../devicetree/bindings/iio/dac/adi,ad5766.yaml | 5 ++++- .../devicetree/bindings/iio/dac/ti,dac082s085.yaml | 9 +++++++-- .../bindings/iio/gyroscope/adi,adxrs290.yaml | 10 ++++++++-- .../devicetree/bindings/iio/imu/adi,adis16460.yaml | 12 +++++++++--- .../devicetree/bindings/iio/imu/adi,adis16475.yaml | 10 ++++++++-- .../devicetree/bindings/iio/imu/adi,adis16480.yaml | 11 +++++++++-- .../bindings/iio/imu/invensense,icm42600.yaml | 12 ++++++++++-- .../bindings/iio/proximity/ams,as3935.yaml | 5 ++++- .../devicetree/bindings/iio/resolver/adi,ad2s90.yaml | 10 ++++++++-- .../bindings/iio/temperature/maxim,max31855k.yaml | 6 +++++- .../bindings/iio/temperature/maxim,max31856.yaml | 6 +++++- .../bindings/iio/temperature/maxim,max31865.yaml | 6 +++++- 25 files changed, 166 insertions(+), 40 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml b/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml index 9bb039e2f533..0b498b9c9823 100644 --- a/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml +++ b/Documentation/devicetree/bindings/iio/accel/adi,adxl345.yaml @@ -28,9 +28,15 @@ properties: reg: maxItems: 1 - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. - spi-cpol: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. spi-max-frequency: true diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml index 22b7ed3723f6..d533eb6e9233 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7192.yaml @@ -26,9 +26,15 @@ properties: reg: maxItems: 1 - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. - spi-cpha: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. spi-max-frequency: true diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml index a3e39a40c9b3..c0be5c87bd5c 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7292.yaml @@ -28,7 +28,10 @@ properties: description: | The regulator supply for ADC and DAC reference voltage. - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. spi-max-frequency: true diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml index 73775174cf57..181358c90f8e 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml @@ -29,9 +29,15 @@ properties: reg: maxItems: 1 - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. - spi-cpol: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. spi-max-frequency: true diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml index a85a28145ef6..6f9457f41ac3 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7768-1.yaml @@ -52,9 +52,15 @@ properties: spi-max-frequency: true - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. - spi-cpha: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. "#io-channel-cells": const: 1 diff --git a/Documentation/devicetree/bindings/iio/adc/microchip,mcp3201.yaml b/Documentation/devicetree/bindings/iio/adc/microchip,mcp3201.yaml index fcc1ba53b20d..b880354567e3 100644 --- a/Documentation/devicetree/bindings/iio/adc/microchip,mcp3201.yaml +++ b/Documentation/devicetree/bindings/iio/adc/microchip,mcp3201.yaml @@ -33,8 +33,16 @@ properties: maxItems: 1 spi-max-frequency: true - spi-cpha: true - spi-cpol: true + + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. vref-supply: description: External reference. diff --git a/Documentation/devicetree/bindings/iio/adc/ti,adc084s021.yaml b/Documentation/devicetree/bindings/iio/adc/ti,adc084s021.yaml index 1a113b30a414..07e1d54e93fe 100644 --- a/Documentation/devicetree/bindings/iio/adc/ti,adc084s021.yaml +++ b/Documentation/devicetree/bindings/iio/adc/ti,adc084s021.yaml @@ -24,8 +24,15 @@ properties: vref-supply: description: External reference, needed to establish input scaling - spi-cpol: true - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. "#io-channel-cells": const: 1 diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads124s08.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads124s08.yaml index 9f5e96439c01..74be1b4a4c27 100644 --- a/Documentation/devicetree/bindings/iio/adc/ti,ads124s08.yaml +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads124s08.yaml @@ -20,7 +20,10 @@ properties: spi-max-frequency: true - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. reset-gpios: maxItems: 1 diff --git a/Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml b/Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml index e0670e3fbb72..b05426a4cae5 100644 --- a/Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml +++ b/Documentation/devicetree/bindings/iio/adc/ti,ads131e08.yaml @@ -30,7 +30,10 @@ properties: spi-max-frequency: true - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. clocks: description: | diff --git a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml index baa65a521bad..5f5354601a0f 100644 --- a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml +++ b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml @@ -39,7 +39,10 @@ properties: spi-max-frequency: maximum: 1000000 - spi-cpol: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. interrupts: maxItems: 1 diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5592r.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5592r.yaml index 30194880f457..7f094e31bddc 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5592r.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5592r.yaml @@ -21,7 +21,10 @@ properties: spi-max-frequency: maximum: 30000000 - spi-cpol: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. "#address-cells": const: 1 diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5755.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5755.yaml index f866b88e1440..11cec9c991c0 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5755.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5755.yaml @@ -22,8 +22,14 @@ properties: maxItems: 1 spi-cpha: - description: Either this or spi-cpol but not both. - spi-cpol: true + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. spi-max-frequency: true diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml index fd4edca34a28..4efcc2c7eaf8 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5758.yaml @@ -17,7 +17,11 @@ properties: maxItems: 1 spi-max-frequency: true - spi-cpha: true + + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. adi,dc-dc-mode: $ref: /schemas/types.yaml#/definitions/uint32 diff --git a/Documentation/devicetree/bindings/iio/dac/adi,ad5766.yaml b/Documentation/devicetree/bindings/iio/dac/adi,ad5766.yaml index a8f7720d1e3e..ceea30f3af55 100644 --- a/Documentation/devicetree/bindings/iio/dac/adi,ad5766.yaml +++ b/Documentation/devicetree/bindings/iio/dac/adi,ad5766.yaml @@ -30,7 +30,10 @@ properties: spi-max-frequency: maximum: 1000000 - spi-cpol: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. reset-gpios: description: GPIO spec for the RESET pin. As the line is active low, it diff --git a/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml b/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml index b0157050f1ee..31e909eca988 100644 --- a/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml +++ b/Documentation/devicetree/bindings/iio/dac/ti,dac082s085.yaml @@ -25,10 +25,15 @@ properties: reg: maxItems: 1 - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + spi-cpol: + type: boolean description: - Must be either spi-cpha, or spi-cpol but not both. + The device requires inverse clock polarity (CPOL) mode. vref-supply: description: Needed to provide output scaling. diff --git a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml index 662ec59ca0af..5462efc1b87f 100644 --- a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml +++ b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml @@ -24,9 +24,15 @@ properties: spi-max-frequency: maximum: 5000000 - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. - spi-cpha: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. interrupts: maxItems: 1 diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml index 340be256f283..f28833915f2b 100644 --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml @@ -21,9 +21,15 @@ properties: reg: maxItems: 1 - spi-cpha: true - - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. spi-max-frequency: true diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml index a7574210175a..5ae163819a24 100644 --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml @@ -40,9 +40,15 @@ properties: reg: maxItems: 1 - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. - spi-cpol: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. spi-max-frequency: maximum: 2000000 diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml index dd29dc6c4c19..dab503b54ad0 100644 --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16480.yaml @@ -49,8 +49,15 @@ properties: spi-max-frequency: true - spi-cpha: true - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. reset-gpios: maxItems: 1 diff --git a/Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml b/Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml index 4c1c083d0e92..9fe3c5993601 100644 --- a/Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml +++ b/Documentation/devicetree/bindings/iio/imu/invensense,icm42600.yaml @@ -48,8 +48,16 @@ properties: description: Regulator that provides power to the bus spi-max-frequency: true - spi-cpha: true - spi-cpol: true + + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. required: - compatible diff --git a/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml b/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml index 7fcba5d6d508..1245a4134256 100644 --- a/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml +++ b/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml @@ -23,7 +23,10 @@ properties: spi-max-frequency: maximum: 2000000 - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. interrupts: maxItems: 1 diff --git a/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml b/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml index 81e4bdfc17c4..38c0acb96dd6 100644 --- a/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml +++ b/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml @@ -29,9 +29,15 @@ properties: most 2 * 600ns, so the max frequency should be 1 / (2 * 6e-7), which gives roughly 830000Hz. - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. - spi-cpha: true + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. additionalProperties: false diff --git a/Documentation/devicetree/bindings/iio/temperature/maxim,max31855k.yaml b/Documentation/devicetree/bindings/iio/temperature/maxim,max31855k.yaml index 9969bac66aa1..9bbff1a5c0a7 100644 --- a/Documentation/devicetree/bindings/iio/temperature/maxim,max31855k.yaml +++ b/Documentation/devicetree/bindings/iio/temperature/maxim,max31855k.yaml @@ -33,7 +33,11 @@ properties: maxItems: 1 spi-max-frequency: true - spi-cpha: true + + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. required: - compatible diff --git a/Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml b/Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml index 873b34766676..44e53f0c84ba 100644 --- a/Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml +++ b/Documentation/devicetree/bindings/iio/temperature/maxim,max31856.yaml @@ -20,7 +20,11 @@ properties: maxItems: 1 spi-max-frequency: true - spi-cpha: true + + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. thermocouple-type: $ref: /schemas/types.yaml#/definitions/uint32 diff --git a/Documentation/devicetree/bindings/iio/temperature/maxim,max31865.yaml b/Documentation/devicetree/bindings/iio/temperature/maxim,max31865.yaml index aafb33b16549..f1b6b151ebc9 100644 --- a/Documentation/devicetree/bindings/iio/temperature/maxim,max31865.yaml +++ b/Documentation/devicetree/bindings/iio/temperature/maxim,max31865.yaml @@ -26,7 +26,11 @@ properties: type: boolean spi-max-frequency: true - spi-cpha: true + + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. required: - compatible From patchwork Thu Jul 21 15:31:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12925384 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B303C43334 for ; Thu, 21 Jul 2022 15:32:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C2CA110E2F5; Thu, 21 Jul 2022 15:32:25 +0000 (UTC) Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by gabe.freedesktop.org (Postfix) with ESMTPS id 10FBC10E21D for ; Thu, 21 Jul 2022 15:32:19 +0000 (UTC) Received: by mail-lf1-x129.google.com with SMTP id d17so1208906lfa.12 for ; Thu, 21 Jul 2022 08:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KpbhzspuygFwG8vSA8m7O2wzJD0Js2bLL2ZwSFQUUh8=; b=Wb0rgx/+JD0lUO5OIbB13AO2kBj5vUIgEXqqA/A7qkzZbSkf6H5TybPzAc3jLDRWZz De4WQJnjI8sBvx/GegpfA1NIr8rFGrK6Aly5uAe3MV5JfBncMtME2wikDcSvchswZz2H bGSdBZ3Y/eaVXJx/oekM+nPU6YMkzGlhvS+Y09AUAaM7BodBFWsZtMuaEw5YVtimcJIS 12YbKGbYvGnx4Nl49xdzjrX7XOE0OH5uVQJ28w4sEYFoPpSaJbKMOXPTslhG0MHUDNR2 RTtCrW1myAJqWrWmhMA5zngFS4b5D3FkPX1I6gujjeNsueoKwdJpWBTxFNTF4BpJE2bo 8+mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KpbhzspuygFwG8vSA8m7O2wzJD0Js2bLL2ZwSFQUUh8=; b=VaETxIXJMQsaeW6ef1N2CVV2Wbea9omfW+gbkSExVw4FmYfZagQJzF70BsEya00bG5 hMXxWyvLq+6FDKcT3SNQcryg0TAMmypEG43Q+G3XZjb4S7v6Ln964vGVDDQjOtqTUu5/ +7OedH4TrKXzCnKw9Gi0hqbQ72XsD4evqtzXCK0PpGRndNfmFKVHb9zahIOYF2SwqBOK i3L5NsG8CJlzCzNcceQB9yMEGfz9ZEt0ozciaoOkB8hCxcTeq56GF1clqu6gqf/K+rYN dCIXp+TAjf60NPBGcwnxgMe2yU5+h0AR+NWBUXWhtO+0gIHRReok9x3jVPD6DlEEF4Ik QEew== X-Gm-Message-State: AJIora/CF7BaKlxPFl2eHuKNTqsEXw5QOXz8IVCzCyZZzGc8RZXf/ksL jRLfEoCHGvC9KElDjo98jNQ13Q== X-Google-Smtp-Source: AGRyM1ubWL7w8E7CRaphPTSvA0k3fiWFSqprLYOLH+JjbjSiG740pSD/ln4Nfs04hmWe6t26JztkWg== X-Received: by 2002:a05:6512:2809:b0:489:ff8e:44f2 with SMTP id cf9-20020a056512280900b00489ff8e44f2mr23393295lfb.70.1658417537183; Thu, 21 Jul 2022 08:32:17 -0700 (PDT) Received: from krzk-bin.. (89-162-31-138.fiber.signal.no. [89.162.31.138]) by smtp.gmail.com with ESMTPSA id a27-20020ac25e7b000000b0048a2995772asm504604lfr.73.2022.07.21.08.32.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 08:32:16 -0700 (PDT) From: Krzysztof Kozlowski To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Markuss Broks , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Alexandru Tachici , Marcelo Schmitt , Tomislav Denis , Cosmin Tanislav , Nishant Malpani , Dragos Bogdan , Nuno Sa , Jean-Baptiste Maneyrol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Tomi Valkeinen , Andrzej Hajda , Maxime Ripard , Marek Belisko , "H. Nikolaus Schaller" , Christian Eggers , Beniamin Bia , Stefan Popa , Oskar Andero , =?utf-8?q?M=C3=A5rten_Lindahl?= , Dan Murphy , Sean Nyekjaer , Cristian Pop , Lukas Wunner , Matt Ranostay , Matheus Tavares , Sankar Velliangiri , Lubomir Rintel , Stefan Wahren , Pratyush Yadav , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH 4/6] dt-bindings: misc: explicitly list SPI CPHA and CPOL Date: Thu, 21 Jul 2022 17:31:53 +0200 Message-Id: <20220721153155.245336-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> References: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The spi-cpha and spi-cpol properties are device specific and should be accepted only if device really needs them. Explicitly list them in device bindings in preparation of their removal from generic spi-peripheral-props.yaml schema. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml index b3c45c046ba5..a198848283d2 100644 --- a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml +++ b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml @@ -28,7 +28,10 @@ properties: description: GPIO uspecifier of the CMD pin maxItems: 1 - spi-cpha: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. required: - compatible From patchwork Thu Jul 21 15:31:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12925385 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF7ABC3F2D4 for ; Thu, 21 Jul 2022 15:32:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EA76510E517; Thu, 21 Jul 2022 15:32:25 +0000 (UTC) Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by gabe.freedesktop.org (Postfix) with ESMTPS id C6A1D10E21D for ; Thu, 21 Jul 2022 15:32:21 +0000 (UTC) Received: by mail-lj1-x22c.google.com with SMTP id a10so2264935ljj.5 for ; Thu, 21 Jul 2022 08:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Qkcak79PKqus0FBcBxREwIPQ11TDFoKGG7oCkfoXPQc=; b=SwxDA2lsFKhk6eufWqim1Ro7JRbs5otwloShXKdIpq6ZcJReMBAY58gN0E7UQp6NHa wSI10aoScdzw8YSJQKeSc8ZiJ2/jQrOCKox3W9A7U/I4/PTgvHSf9xW7a1onx8EY9iYk BwZQ4PSquN8zdyaSiAFB/pFTprslWTyuIlKIe7mpnyuqWJ+aqoU9wNkMOSOkuizT6zdW 8Ju7sAzettoIlO1AWlALjN59qJamLNafzIFzH9m8ccBNUht5Z2U3T63oAK2mFdYRALZa LdJNeykJiUPFRDhNj+y5tpsvd0/5F8ceDQgABQr50RMi820tS3INbLiOe9iCmBOrhtxQ /Hww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Qkcak79PKqus0FBcBxREwIPQ11TDFoKGG7oCkfoXPQc=; b=zx1DkdEkHmmCHh+kpcYnL+pESiAmgGLwk5s738ISxNUzVLQKj8uSQ6N57kjh5UF7Tf S5PL2mWkvx7l8tbgkytY1jNKTPysYn0mE7zy1Wm80OwTtTasb2xH+z9VhR1xwYxSSL71 ktTmOsPjveXROi+++vjFIvLIY7GACKuMD+BqUXI9c9DBbaYGwg8iiy8/5OYw4btV2COb QkG0bzy+ZrEFav3Vd/t2TMK7Fgk00kXizvVH+ayKjDy+qKXLP61HXQoqf6giLFtlS1mM lVRRB/mWAz8VYsuNfEeDUypJuDx2r0jpNfMXRTobkuT3nZ6EaRoqBOEPBQD/nIaPa5+N hGbQ== X-Gm-Message-State: AJIora9Q+mWK4VbyoD+MbC9x0gL1evvhKYz4j/Mgtzu48Spah797G9HW WxBKvzcD73VUshKATSumrcMs4A== X-Google-Smtp-Source: AGRyM1t5FpFk3c1ZpM6yYyF3OrMRK1RSMfVVWmGiA4wJJR3dTOcfJAhsvvr1fmUCOx5XIdCoKvqclQ== X-Received: by 2002:a2e:b947:0:b0:25d:d6f6:adaf with SMTP id 7-20020a2eb947000000b0025dd6f6adafmr3741489ljs.230.1658417539757; Thu, 21 Jul 2022 08:32:19 -0700 (PDT) Received: from krzk-bin.. (89-162-31-138.fiber.signal.no. [89.162.31.138]) by smtp.gmail.com with ESMTPSA id a27-20020ac25e7b000000b0048a2995772asm504604lfr.73.2022.07.21.08.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 08:32:19 -0700 (PDT) From: Krzysztof Kozlowski To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Markuss Broks , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Alexandru Tachici , Marcelo Schmitt , Tomislav Denis , Cosmin Tanislav , Nishant Malpani , Dragos Bogdan , Nuno Sa , Jean-Baptiste Maneyrol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Tomi Valkeinen , Andrzej Hajda , Maxime Ripard , Marek Belisko , "H. Nikolaus Schaller" , Christian Eggers , Beniamin Bia , Stefan Popa , Oskar Andero , =?utf-8?q?M=C3=A5rten_Lindahl?= , Dan Murphy , Sean Nyekjaer , Cristian Pop , Lukas Wunner , Matt Ranostay , Matheus Tavares , Sankar Velliangiri , Lubomir Rintel , Stefan Wahren , Pratyush Yadav , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH 5/6] dt-bindings: net: explicitly list SPI CPHA and CPOL Date: Thu, 21 Jul 2022 17:31:54 +0200 Message-Id: <20220721153155.245336-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> References: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The spi-cpha and spi-cpol properties are device specific and should be accepted only if device really needs them. Explicitly list them in device bindings in preparation of their removal from generic spi-peripheral-props.yaml schema. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/net/nfc/marvell,nci.yaml | 12 ++++++++++-- .../devicetree/bindings/net/vertexcom-mse102x.yaml | 12 +++++++++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml b/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml index 1bcaf6ba822c..00b3918a9bf2 100644 --- a/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml +++ b/Documentation/devicetree/bindings/net/nfc/marvell,nci.yaml @@ -56,8 +56,16 @@ properties: description: | For UART type of connection. Specifies that the chip is using RTS/CTS. - spi-cpha: true - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. + spi-max-frequency: true required: diff --git a/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml b/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml index 8156a9aeb589..9dc1609f6d06 100644 --- a/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml +++ b/Documentation/devicetree/bindings/net/vertexcom-mse102x.yaml @@ -34,9 +34,15 @@ properties: interrupts: maxItems: 1 - spi-cpha: true - - spi-cpol: true + spi-cpha: + type: boolean + description: + The device requires shifted clock phase (CPHA) mode. + + spi-cpol: + type: boolean + description: + The device requires inverse clock polarity (CPOL) mode. spi-max-frequency: minimum: 6000000 From patchwork Thu Jul 21 15:31:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12925386 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C2BC5C433EF for ; Thu, 21 Jul 2022 15:32:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1FCC210E601; Thu, 21 Jul 2022 15:32:26 +0000 (UTC) Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by gabe.freedesktop.org (Postfix) with ESMTPS id D460810E2C1 for ; Thu, 21 Jul 2022 15:32:22 +0000 (UTC) Received: by mail-lf1-x131.google.com with SMTP id u13so3372362lfn.5 for ; Thu, 21 Jul 2022 08:32:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zSAEKIvtye5jS07a7SCopVWWSkQdxtLbeG/Qb/jLxOk=; b=Rvdze6Ay/jzmEJuWKHz6d8GONFosd5gpWdYWi/JRN1OjKN2i1Jk8wdvsduQ4H8k8JL UdwErw84gZ4T/ZzSfJ5NynfzzrkFsWvRk7AQLb9rYAPas3wqT0gUiMpE9V1wXzOAsmHF 7EXEizMpX5vmdqwD6YyQM96dzP5GLBGnrBDS1/XmKVJk143W6ioev/IgPkh1VLk2Wzvz /oNmvFAOYhtfbU0Cy1XasqHa9Dek8OUzjDtO10bNzcSElFT/9iZWpMTF0hdbY2dMa4En sAR44Y7lA86ATER7P2GVmQOnk/BllCZ1FFLpXhxAkOtjuJVpIUurtPbYYw/BlC/KIOGq IdiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zSAEKIvtye5jS07a7SCopVWWSkQdxtLbeG/Qb/jLxOk=; b=tWPoNReQDoj7vjngNrdoC4Qh5hXSvr28ti0j/hf14FGuo/zmjMWjoFZM4nCAH1V7us GXgyxeSo9Rm3Vq/672Ploi9O88ZykqVZzj0Ifqfci/T6WCuAZObmPZ8bmlC6d1pL1IMQ nX/EbPrpSzmlFneFVxGVpJ8xs2Gq7LrDhoxhCHv5idI3tv6Tyue1ZTuMUPVUNYaLqjra OzMr1xOHKraVOxaPYsiTP0ByhJ8Y43iti8OYtgH9YULwh3+3daIHTQl6NlQWCoYSBxmQ pKAIX0xrhHMaGz7N/jehj35tvu01Gh9TpcTz6SaXN4phDNmW0Bkef5MTixAkPf0hInLs +4kg== X-Gm-Message-State: AJIora+Ni/yh9mW6D4OujYOvYg9yZDdGVcH+gKDK4Db1vwYSEsOdf3TS Os7oD5CGZ/FFdDHKQGXnq/qjVw== X-Google-Smtp-Source: AGRyM1t1GsMxf5C4K7kyBGZWAKDxo4V4V9DKDdnTuEaHQtbYw9EAmvVhKT4eVr1iIzVSWR6scvBZrQ== X-Received: by 2002:ac2:47f6:0:b0:488:b649:9f77 with SMTP id b22-20020ac247f6000000b00488b6499f77mr24197373lfp.559.1658417542316; Thu, 21 Jul 2022 08:32:22 -0700 (PDT) Received: from krzk-bin.. (89-162-31-138.fiber.signal.no. [89.162.31.138]) by smtp.gmail.com with ESMTPSA id a27-20020ac25e7b000000b0048a2995772asm504604lfr.73.2022.07.21.08.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 08:32:21 -0700 (PDT) From: Krzysztof Kozlowski To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Markuss Broks , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Alexandru Tachici , Marcelo Schmitt , Tomislav Denis , Cosmin Tanislav , Nishant Malpani , Dragos Bogdan , Nuno Sa , Jean-Baptiste Maneyrol , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Mark Brown , Tomi Valkeinen , Andrzej Hajda , Maxime Ripard , Marek Belisko , "H. Nikolaus Schaller" , Christian Eggers , Beniamin Bia , Stefan Popa , Oskar Andero , =?utf-8?q?M=C3=A5rten_Lindahl?= , Dan Murphy , Sean Nyekjaer , Cristian Pop , Lukas Wunner , Matt Ranostay , Matheus Tavares , Sankar Velliangiri , Lubomir Rintel , Stefan Wahren , Pratyush Yadav , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org, netdev@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH 6/6] spi: dt-bindings: drop CPHA and CPOL from common properties Date: Thu, 21 Jul 2022 17:31:55 +0200 Message-Id: <20220721153155.245336-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> References: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Krzysztof Kozlowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The spi-cpha and spi-cpol properties are device specific and should be accepted only if device really needs them. Drop them from common spi-peripheral-props.yaml schema (each device schema will list them instead). Suggested-by: Jonathan Cameron Suggested-by: Rob Herring Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/spi/spi-peripheral-props.yaml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml index 9d63a58b46a0..ce048e782e80 100644 --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml @@ -34,16 +34,6 @@ properties: description: The device requires 3-wire mode. - spi-cpha: - $ref: /schemas/types.yaml#/definitions/flag - description: - The device requires shifted clock phase (CPHA) mode. - - spi-cpol: - $ref: /schemas/types.yaml#/definitions/flag - description: - The device requires inverse clock polarity (CPOL) mode. - spi-cs-high: $ref: /schemas/types.yaml#/definitions/flag description: