Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1196461pxb; Fri, 21 Jan 2022 12:01:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlJf1Oh1iR+VZ+gAXmfPsThnZF5WrPKu3deIfsSovvkceI1SrzKF64aDegXE1J+udH1ZuW X-Received: by 2002:a17:90b:2351:: with SMTP id ms17mr2262167pjb.186.1642795313504; Fri, 21 Jan 2022 12:01:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642795313; cv=none; d=google.com; s=arc-20160816; b=uaxNwL11U6rDy1089f+Vvohj7c/mCCHDOK5LdttvRCDz9/GnaGs1nbE6PHBcKl08IJ HMleDlnMcMXHyVo+Zb0eTRHW3/Q24Rzqi6QX3BNbIjv6FhW7FMa929u55PZ7fpAm2O9R O4xkcT9JGOORV2pMejXir82sQJyssKZu/+xaU+SfN5+Fdti6RBQ6ZxhMbBSVGwHZkh4+ waj4dJOHoXI9nx2uwnnO9oQVQzWaYFcJuvI8mxijwKKSxoNe2L6DwQXKzPNuOE7vF8nq V6jCBOKS3OpoaRCf8PTVHFaWPvN6n9AMVjM+52vnydmmZQP3L5Q3jCXQooA9/dI+Ipc6 5p9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=dmsErNaRfriLUQ7jgb1pj+z+Bm18TKaEXTieKxP3MNs=; b=DcD236acnvgWrJZxq1Ytitvw9mJ/+zWo3qZPQMMfCtGivQMmDeFRLEOwaQEzgW2Emg VDQ841JMp/60XsbEpEXCYKkkecRtZ6Eqe/YFhgwRMTYPYUFcEzRRNvHKNuXbpm6p2w98 2NF4RxPSNBkuw1jntu7U3OBzg5/T2CcVXUcA98tpnWYr0+NRYaWLv/zQT/FenjVgJK+z qq8S+LKF4qmFQ+YgEu09JyhR+SwfqxHCbi69FNJRwfID529nVyuuEDm3zycEdpW+8WzV D/5t9RcK/glv/c6nIXtLeLBEUkx2noOexfPS/p9FglcORQkqcjx/WjwRWxjQSnLumkq6 q/Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=HlQzRz8+; 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=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si6689356plz.74.2022.01.21.12.01.40; Fri, 21 Jan 2022 12:01:53 -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=@canonical.com header.s=20210705 header.b=HlQzRz8+; 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=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357188AbiASTt6 (ORCPT + 99 others); Wed, 19 Jan 2022 14:49:58 -0500 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]:45710 "EHLO smtp-relay-internal-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357193AbiASTts (ORCPT ); Wed, 19 Jan 2022 14:49:48 -0500 Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 86DDA40051 for ; Wed, 19 Jan 2022 19:49:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1642621786; bh=dmsErNaRfriLUQ7jgb1pj+z+Bm18TKaEXTieKxP3MNs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HlQzRz8+CRcEr+pFW51QBxf7CEhkxPNRB4cvj0Nzis4Hb5GpEkcer9G/pk2L6mpKa AWbCrEh1CaMDW6B536RLMEx7Fbu/3WghxLJe0oFuk8jJZX34G1MBJlL+3GHB7KNmYq M8D1uyJ4WV4ukzf2bmGiT+6io9xUZGTV2oXCp78tZx/qMA58GEHNkytCy5pU4mvHM3 EZLIejLIx612NsBdJxOERD5xsvEZB+fIWDQecQL8oow6wFVFUawfZpJ1tjF3ofnolK hV8tUzZ57lSK0CnUMWnjiXjrMaU9dc5IrD941UW95n/ov5dNjYPhkp8V5x9UVPYNg7 TXn223KBzN+eA== Received: by mail-ed1-f71.google.com with SMTP id z6-20020a50eb46000000b00403a7687b5bso3686426edp.3 for ; Wed, 19 Jan 2022 11:49:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=dmsErNaRfriLUQ7jgb1pj+z+Bm18TKaEXTieKxP3MNs=; b=y6t9be8CFoW9+jv7Y6F6MLdJfMNOBpY+E+SKS4/VZWg3wR6dyAEcqe98E4cBDR+Ef+ uJHVLt08GTKavVRJXvv0GrJbrlYzz1HkiMfysr6kDbGHUntkLubv+nDI/7hSvvdFg/5E M50m5CP/D/llxhqCBTHYnqrJa0wza7bD/bcqeesnSmp8IMmWZeRjWv9jpgmuBZYaWm28 COjKerCK+8NVLYJgJ3ZkGX4SCbz5L+be78a69hSolngqbjjWHs/ykzYGBnrEjDpnGAh9 H1nQRNv3P8xMpZh01n4C8EcNJgFnUwPCjbLnQkxEcMukz3ziCixBxhaCX3OyxuYOQJNk 1Nug== X-Gm-Message-State: AOAM530dOGV2DzLx1mMjw6PiQWRYWRxM22f+Dt4cq2MyceHQh8AODk/s nUIXP2BR4SK4XgOtk4u3KqVz5j0bBNhaOoi/CEOyhQ3s/6LkiSu8FL13ideKT6+b7hmFI9wwv2i tcqmHp+nyw0JZyAOVsohqcchwMSZM1w6Tfd6tydoT/A== X-Received: by 2002:aa7:db8f:: with SMTP id u15mr31741147edt.36.1642621785853; Wed, 19 Jan 2022 11:49:45 -0800 (PST) X-Received: by 2002:aa7:db8f:: with SMTP id u15mr31741131edt.36.1642621785658; Wed, 19 Jan 2022 11:49:45 -0800 (PST) Received: from [192.168.0.45] (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id s7sm211711ejo.53.2022.01.19.11.49.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Jan 2022 11:49:45 -0800 (PST) Message-ID: <5f912896-0635-fbe7-4fda-f4cb569190d9@canonical.com> Date: Wed, 19 Jan 2022 20:49:44 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: [PATCH v3 2/4] spi: dt-bindings: samsung: convert to dtschema Content-Language: en-US To: Pratyush Yadav Cc: Andi Shyti , Mark Brown , Rob Herring , linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sam Protsenko References: <20220112100046.68068-1-krzysztof.kozlowski@canonical.com> <20220112100046.68068-3-krzysztof.kozlowski@canonical.com> <20220119192758.z3lvlkaeyeiqi73a@ti.com> From: Krzysztof Kozlowski In-Reply-To: <20220119192758.z3lvlkaeyeiqi73a@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/01/2022 20:31, Pratyush Yadav wrote: > On 12/01/22 11:00AM, Krzysztof Kozlowski wrote: >> Convert the Samsung SoC (S3C24xx, S3C64xx, S5Pv210, Exynos) SPI >> controller bindings to DT schema format >> >> Signed-off-by: Krzysztof Kozlowski >> Reviewed-by: Sam Protsenko >> --- >> .../spi/samsung,spi-peripheral-props.yaml | 35 ++++ >> .../devicetree/bindings/spi/samsung,spi.yaml | 187 ++++++++++++++++++ >> .../bindings/spi/spi-peripheral-props.yaml | 1 + >> .../devicetree/bindings/spi/spi-samsung.txt | 122 ------------ >> MAINTAINERS | 2 +- >> 5 files changed, 224 insertions(+), 123 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/spi/samsung,spi-peripheral-props.yaml >> create mode 100644 Documentation/devicetree/bindings/spi/samsung,spi.yaml >> delete mode 100644 Documentation/devicetree/bindings/spi/spi-samsung.txt >> >> diff --git a/Documentation/devicetree/bindings/spi/samsung,spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/samsung,spi-peripheral-props.yaml >> new file mode 100644 >> index 000000000000..aa5a1f48494b >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/spi/samsung,spi-peripheral-props.yaml >> @@ -0,0 +1,35 @@ >> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/spi/samsung,spi-peripheral-props.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Peripheral-specific properties for Samsung S3C/S5P/Exynos SoC SPI controller >> + >> +maintainers: >> + - Krzysztof Kozlowski >> + >> +description: >> + See spi-peripheral-props.yaml for more info. >> + >> +properties: >> + controller-data: >> + type: object >> + additionalProperties: false >> + >> + properties: >> + samsung,spi-feedback-delay: >> + description: | >> + The sampling phase shift to be applied on the miso line (to account >> + for any lag in the miso line). Valid values: >> + - 0: No phase shift. >> + - 1: 90 degree phase shift sampling. >> + - 2: 180 degree phase shift sampling. >> + - 3: 270 degree phase shift sampling. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + enum: [0, 1, 2, 3] >> + >> + required: >> + - samsung,spi-feedback-delay > > I am not quite sure if this required would work here. Let's say another > controller also uses a controller-data node, but it contains a different > set of properties. Won't this cause an error to be raised for that > controller since this property is not there? The controller-data is Samsung SPI specific (does not exist in any other binding), so why would controller-data get added to a different controller? Best regards, Krzysztof