From patchwork Mon Jan 24 08:23:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12721649 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 5E63DC433EF for ; Mon, 24 Jan 2022 08:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=04Kc13uRi9uEcYRjQb2QKLNwKm0abgMYMe6duFMAfpg=; b=hliZfUzhr2HMSw lj2/5xmc/lNCty4g9lYkrOQ6vGY4wljt6wt4bZVJpCui9Y0cDLrfDdM2YTimHslV1D/83tM54n/QZ 1bE6tuKPvFb9NpvB+un9RNsmAM3XXO7Z8OOPPuda8ezFICgc/A5DxcBDMMlOgpTZZvebaFAkICWIA k4SX7it5zwAFDAzK7/5wDBkK+rHe32PziXZIhl2tikd9zM18BbVTFJ6jsZciWlTbqjYCfzclF9c3a a2oira+VRyVRGNbM9OUlZABZtZMbIgtBc2vMmd2zLG6tTx06jNLXH0Wfjr5shXb1m//vnyeg6/P7t 1DuhQOBsoxOMp406rvtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nBue0-002ZOB-Cl; Mon, 24 Jan 2022 08:24:08 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nBudp-002ZKZ-0w for linux-arm-kernel@lists.infradead.org; Mon, 24 Jan 2022 08:23:58 +0000 Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (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 547513FE09 for ; Mon, 24 Jan 2022 08:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1643012635; bh=E9f604EUNMRc1K0x625ft9mXrJ60309YtLmhBOy5gsM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WmfQ6/k5biHVhPXmcpnVGNMbmiVsK2/ApbS0Ms0uu7oR+Veem+kFqfY8sDudVBP4v w6bizTaONN3RrP5lFxiACL3wwKQF6c1ixs0LxMgLumjsU5pX6dmWB8Zk1fqGcKJ/r9 u4PQCMYDmhB/P+qtVuu1RnMVDbXyV+5f//E8RbSvq8+yosoTY5IATVHZZiXGeTnoO2 wx3DO9ipqsAuNfx+KkkLLCvg5uNt1EqED+NxVUfhgLEI0XBglSQF2Tuw6RmujDMUZe qa0JN+JFlBH8GeW0iV4Kwv2zzZT6YG192YScfm+zvde0PzZTkOaLDxTt7633tCZyK4 u7WTOXS7mN1bQ== Received: by mail-wr1-f72.google.com with SMTP id h12-20020adfa4cc000000b001d474912698so1528536wrb.2 for ; Mon, 24 Jan 2022 00:23:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E9f604EUNMRc1K0x625ft9mXrJ60309YtLmhBOy5gsM=; b=H+3L/b4n5zng0cXxBkRUIygQVUhk8iSuKhTUdxisChAO5cSOU7u9S819rwtqR2dUtm a5RYCYRzbDe59diDx2WUBE5dPKrOd8hWI358dNJpyuNG8u5Rd8i0NkzyDgy4+2+VNjy7 uzp0aY5CRcM70qtGuCIW7DPQR4fsgbo4hBfVf95Ws0iP7wE7KM2YzZZQ/gNAMDe3fnBG ciXcho3HawY2/RsABsgKZBcWv6moXvwt9KFzR/Oq+lyjVAmu4hxT+DJ54W0YqNMnGfjR Ocp08y/f5rXchUdW/yQfVb28fZwMOXrQ1KTxm4Npu8hIJhL6NmIM15HqzHDQrQfA+iKy OQuA== X-Gm-Message-State: AOAM53320Nk1srNNMC2FF/il2vkHpChxCrzQc3nbeVRsVqPRURIjj2tR ne+vqbFDCRkn0J6WUiK18NZmx6NzXHVdTGd0/J5LSxwv1y/y2LmsQ3m0Nk9b37C0Sltrmap8/YM uRZrPFdxuuBpRm3BTqRQU+teg2jRYls/R6BkmgXOg/+B+x4Jb5u2T X-Received: by 2002:a5d:4803:: with SMTP id l3mr9501290wrq.339.1643012635036; Mon, 24 Jan 2022 00:23:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpvjCvKyZkS3eDZZP0ZWE7Zg9akUafDchzT87csJ7JBjny0Ukmeg3wKlAmCj1K+MrEAi1FMw== X-Received: by 2002:a5d:4803:: with SMTP id l3mr9501274wrq.339.1643012634897; Mon, 24 Jan 2022 00:23:54 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-168-84.adslplus.ch. [188.155.168.84]) by smtp.gmail.com with ESMTPSA id m64sm7148550wmm.31.2022.01.24.00.23.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 00:23:54 -0800 (PST) From: Krzysztof Kozlowski To: Lee Jones , Rob Herring , Benson Leung , Guenter Roeck , Krzysztof Kozlowski , Alim Akhtar , Andi Shyti , Mark Brown , Sam Protsenko , Pratyush Yadav , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH v6 2/4] mfd: dt-bindings: google, cros-ec: reference Samsung SPI bindings Date: Mon, 24 Jan 2022 09:23:45 +0100 Message-Id: <20220124082347.32747-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220124082347.32747-1-krzysztof.kozlowski@canonical.com> References: <20220124082347.32747-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220124_002357_223057_3E3018A1 X-CRM114-Status: GOOD ( 11.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The ChromeOS Embedded Controller appears on boards with Samsung Exynos SoC, where Exynos SPI bindings expect controller-data node. Reference SPI peripheral bindings which include now Samsung SPI peripheral parts. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../bindings/mfd/google,cros-ec.yaml | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml index d1f53bd449f7..525ab18005b3 100644 --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml @@ -31,7 +31,7 @@ properties: controller-data: description: - SPI controller data, see bindings/spi/spi-samsung.txt + SPI controller data, see bindings/spi/samsung,spi-peripheral-props.yaml type: object google,cros-ec-spi-pre-delay: @@ -148,18 +148,21 @@ patternProperties: required: - compatible -if: - properties: - compatible: - contains: - enum: - - google,cros-ec-i2c - - google,cros-ec-rpmsg -then: - properties: - google,cros-ec-spi-pre-delay: false - google,cros-ec-spi-msg-delay: false - spi-max-frequency: false +allOf: + - if: + properties: + compatible: + contains: + enum: + - google,cros-ec-i2c + - google,cros-ec-rpmsg + then: + properties: + google,cros-ec-spi-pre-delay: false + google,cros-ec-spi-msg-delay: false + spi-max-frequency: false + else: + $ref: /schemas/spi/spi-peripheral-props.yaml additionalProperties: false