From patchwork Mon Dec 5 07:20:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Hasemeyer X-Patchwork-Id: 29569 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2111188wrr; Sun, 4 Dec 2022 23:31:16 -0800 (PST) X-Google-Smtp-Source: AA0mqf7wohYopBpiJAcg06vNC/4SL+NWxxplnCTKMAP7j5ZPXfSOoADxEDqzXP0MV6g1d0MlIrpy X-Received: by 2002:a17:902:8e81:b0:188:4f86:e4d5 with SMTP id bg1-20020a1709028e8100b001884f86e4d5mr66395423plb.16.1670225476272; Sun, 04 Dec 2022 23:31:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670225476; cv=none; d=google.com; s=arc-20160816; b=LoCFE77jwCR3alneu6P3TlDB57/UvgpvUB3UINnaMUVaGpGTdyZsPmHN3WJk1tHkDt 6mSJOtNLv8z+FNmDXSHiDvdBkyM9C7bBxBlvWQhOM42Y8ipHuWMXGY+adPUy2hoSXERK lLehtkv2yctKb2Bb9KsWnnIx0DzZasz6r8IndbRcABNtRqRrxcVZec7k/ykbGkCAzlfO J0gATEyu5ukYYSyc4WZ+NAkJiOt9JcwHB6ltGcrOQUd46f66dzamvuZfmndzOke9Jw/p 53IWktcLsvDJ/NU+6Zk7dfA4v/R7Hz+RjH89Kpw3pv3toX9fAlCZVVcy3FTOTGuQgyx6 C0qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1tmfIAFg5Gn6maLaUosoE4qK2kRKNnA216yinP3k8AE=; b=DyhnqWU5SYHvo6aOmzg/zL0qleIUo1zuBwBIQeP5/rnkBnX9DeCiovs3URVbp8bpQR kV/PLGF2pDsr9k2kBhIpRLNnXfVoji2BIWfNR/Y4vlLaP18WuO1iC6QeOufq7tZ8I7R7 LmfaK20LOAAYl4zWQJFvkwPITCq0rrul8eo4TFuR4Jt3DVneWdXo9wYOyQSaFPtsMMcd rjbPw8VCj5gaKzv9uWa53wgnuTIC9qJrvoJ8ovKFdyvYQhOzRvXvrnriYeY+ySmzgTq9 Mf1+diK8PxEWAO6n1BgYf65bzVaZsB+zeL6AZjlyg4DDdQZ93iMaE2gR3W2KL/liTOyS vczQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=H+itvEoT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z18-20020a170903019200b001867ea919bdsi14921093plg.25.2022.12.04.23.31.02; Sun, 04 Dec 2022 23:31:16 -0800 (PST) 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=pass header.i=@chromium.org header.s=google header.b=H+itvEoT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231728AbiLEHU1 (ORCPT + 99 others); Mon, 5 Dec 2022 02:20:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231601AbiLEHUX (ORCPT ); Mon, 5 Dec 2022 02:20:23 -0500 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D79A4F03F for ; Sun, 4 Dec 2022 23:20:19 -0800 (PST) Received: by mail-io1-xd32.google.com with SMTP id q190so1884534iod.10 for ; Sun, 04 Dec 2022 23:20:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=1tmfIAFg5Gn6maLaUosoE4qK2kRKNnA216yinP3k8AE=; b=H+itvEoTRVUiX1FWmONFBFoKDIAL6a6uCF7h9yTs9BmKIxRT35H6ZMyXnDRtPID4bV XF2vZVkCtBEu4/FcueE6lH7ptBNrY9Q/82TsrtBoT7kmhF9SDOswU2MN6qe3BOgnzioG hO9QFIb5XTcSAx/ZASCU9TclLSwd4wsjnKGDc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=1tmfIAFg5Gn6maLaUosoE4qK2kRKNnA216yinP3k8AE=; b=eXzUjNLiGcbhlB8jMxMAzuv8eerGQg+0wgawhJBl9f39hwisKrdqOto8hvh3OPqPyB l7TSuk7WPfsiPQJrqxlYujjjn5XIiyNPDmOzcPkZDS9Vl1pY8QYk0s6/DJ9h3fpKy3di aX5cvNcz33kGjQreP+V7RMdnH3QqNQbl6+5ZtDGsOW/xE9jRqrizxNXUG+jtOPOwKSfc O3Dxbq3q7Gnj7UA/9HU1efJZvshTav3a71dRS+M+pe7ZmLXk2db4l/LNOXCrvQae6sR+ WfHIl2c23bmGYf1h3vGQfmc0YPIP5+ovsbHkQ2IbK5GjEzu4SKmbGPUFdlMn/Tg0vu+w /yxQ== X-Gm-Message-State: ANoB5pn6Jq7BF/AnB+NStc7yQDwqcbATqRYsHVeOIdcuuO6Ufv4iGLpX DrB04jvwIi24zq/ctuLm5rbx28EDcN4LXWig X-Received: by 2002:a6b:c343:0:b0:6df:aa48:aa04 with SMTP id t64-20020a6bc343000000b006dfaa48aa04mr11773662iof.161.1670224818991; Sun, 04 Dec 2022 23:20:18 -0800 (PST) Received: from markhas1.roam.corp.google.com (63-225-246-100.hlrn.qwest.net. [63.225.246.100]) by smtp.gmail.com with ESMTPSA id a8-20020a021608000000b003755aa71fffsm5581184jaa.105.2022.12.04.23.20.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Dec 2022 23:20:18 -0800 (PST) From: Mark Hasemeyer To: LKML Cc: Raul Rangel , Bhanu Prakash Maiya , Mark Hasemeyer , Krzysztof Kozlowski , Benson Leung , Guenter Roeck , Krzysztof Kozlowski , Lee Jones , Rob Herring , chrome-platform@lists.linux.dev, devicetree@vger.kernel.org Subject: [PATCH v9 2/3] dt-bindings: mfd: Add compatible string for UART support Date: Mon, 5 Dec 2022 00:20:00 -0700 Message-Id: <20221205001932.v9.2.I9e018ecb8bdf341648cb64417085978ff0d22a46@changeid> X-Mailer: git-send-email 2.39.0.rc0.267.gcb52ba06e7-goog In-Reply-To: <20221205001932.v9.1.If7926fcbad397bc6990dd725690229bed403948c@changeid> References: <20221205001932.v9.1.If7926fcbad397bc6990dd725690229bed403948c@changeid> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751358348902203794?= X-GMAIL-MSGID: =?utf-8?q?1751358348902203794?= From: Bhanu Prakash Maiya Add a compatible string to support the UART implementation of the cros ec interface. The driver does not support the reg and interrupt properties, so exempt them from being required for UART compatible nodes. Signed-off-by: Bhanu Prakash Maiya Co-developed-by: Mark Hasemeyer Signed-off-by: Mark Hasemeyer Acked-by: Krzysztof Kozlowski --- Changes in v9: - Rebase onto for-next - Update node-name from uart0 to serial - Remove reg and interrupt property requirement for UART compatible nodes. - Update authorship Changes in v8: - Update commit message Changes in v7: - No change Changes in v6: - No change Changes in v5: - No change Changes in v4: - Changes in commit message. Changes in v3: - Rebased changes on google,cros-ec.yaml Changes in v2: - No change --- .../bindings/mfd/google,cros-ec.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml index 3d5efa5578d1b..cdf1d719efe9d 100644 --- a/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml +++ b/Documentation/devicetree/bindings/mfd/google,cros-ec.yaml @@ -33,6 +33,9 @@ properties: - description: For implementations of the EC connected through RPMSG. const: google,cros-ec-rpmsg + - description: + For implementations of the EC connected through UART. + const: google,cros-ec-uart controller-data: true @@ -187,6 +190,15 @@ allOf: properties: mediatek,rpmsg-name: false + - if: + properties: + compatible: + not: + contains: + enum: + - google,cros-ec-rpmsg + - google,cros-ec-uart + then: required: - reg - interrupts @@ -299,4 +311,12 @@ examples: vdd-supply = <&pp3300_fp_mcu>; }; }; + + # Example for UART + - | + serial { + cros-ec { + compatible = "google,cros-ec-uart"; + }; + }; ...