Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1212852rwb; Wed, 7 Dec 2022 09:55:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf55o160dHONU198ARAK+Cxa5h2aiRqhe+9L1wPDqajaV8wTTvCQrMoFwHqH6yC7D9AYz1IG X-Received: by 2002:a62:5b43:0:b0:573:6cfc:2210 with SMTP id p64-20020a625b43000000b005736cfc2210mr77972512pfb.55.1670435755419; Wed, 07 Dec 2022 09:55:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670435755; cv=none; d=google.com; s=arc-20160816; b=GFqZ7fzdno6nmITNJS+2vFc0c+shB1tSCh+r7lolXi060o398ZHedp6/tL7dwBaqqc PA6L2b6pJj8aPMgW0bLwzNivhjFXeGO20xIp1faFFfMZMltZEbIfajHUv+aNhpXFZi2K KAUN0aUO6X6KjlLmGgTAGISWjO102WB9B7LwUOZjfjCog4AB7Dqx/IjksdjUpbeKVGcw CdyEkrvF3A+9y9Gy6GlM94ryLMTnv5jNTgg35RiynM8WcNjdkyVp/uGr7mhb504pPVNI x26x0OkGJdkp9TM8rEPBgeEV0y/EVH3A0ZwH15m4RdtHNZrVAIv0xtvVX8LqKaXCiBdY FZ+Q== 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=wQHZD5UNbZreX1XKl32tTP9ac2aVItlytgfwhZVebO8=; b=jOuR5W5Thbnf2XfKI9CG971MM/uHvtZp1CWPgyvq+L/vZN+fp+NQ0yBvkXvwuBFTjD /02MryoZwkvGxVmQqmFri44ji4QZdWE2WAXzfk4n1QtO90t6TYfrkUE1q5CD7rChHLhz KDtUET1VmwuXZxvw9iHiaFxZ9tRFmQ62ACc5VVurfH5eqGmzzDi7KQDFiu7acFRvZS5L bkENlfEiahjlFf30BwKo02RwSmqBvOvpmXZNW7AkI6FEvalcn7/5sV7anh1vMmP3r1Dw mimSlzHLfq+eMzKWYDkkHST9SCF1tVbiH2u+BjMLCY3e4P1JU6NwGMG4TS2w1jpAOIV5 L7kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nfMziSmw; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w17-20020a63c111000000b00476b15a02cesi21137751pgf.70.2022.12.07.09.55.45; Wed, 07 Dec 2022 09:55:55 -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=nfMziSmw; 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 S229961AbiLGRkc (ORCPT + 74 others); Wed, 7 Dec 2022 12:40:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbiLGRk0 (ORCPT ); Wed, 7 Dec 2022 12:40:26 -0500 Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 778CBDEAD for ; Wed, 7 Dec 2022 09:40:25 -0800 (PST) Received: by mail-io1-xd36.google.com with SMTP id n63so7778492iod.7 for ; Wed, 07 Dec 2022 09:40:25 -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=wQHZD5UNbZreX1XKl32tTP9ac2aVItlytgfwhZVebO8=; b=nfMziSmw5P+4LBSK8oTS4a1Ei4qOzUCAycEf4tw+5EKwugQb5WMaVK7RgNTBMBFeop BS6NtYrAbd9kBacwGq7qBk0QZ1sNHfGBByf8Nvim+JThNEVQs1aodka41eaK0K2cQl6R UGUYF6kSEkla0mvtqN2svnmz8Bk/SpTqp6BV8= 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=wQHZD5UNbZreX1XKl32tTP9ac2aVItlytgfwhZVebO8=; b=gBJ1+7OOuE+VStJFvN978djOTAlnRZwIe4vc19FR6qYqtPGQhThCkr9syEbGEMIRl4 a/XrSMtCRt5+b5pcnet444Z9r6toCdcSP+L2Zm2mTzs79OpPbQxtKT9kZvhK+0SaFqLp Xacy3jtHpZgBR/i8Sf746BgK9YW3V5UVGYhzJjzweN6XTxU9NCpqFK2Yn1HvKP0wwWTw ybpAJnpN1NylFY9mJZwXbZIteqypV/VLt3Z0I8sEFxcekq3IV6ZZsLkpWusawg2yHBCy AwJJkOywL0ANEZj6fQdWQimz+2O9blbuMpRthUyfJ8afBziqNChysE5x3NotTLl6o6vi a8qQ== X-Gm-Message-State: ANoB5plGcOJuy0SA4oClUcJsManoDi+JB1nQwzNJUaykrSok9Q9KfaU0 Uthv4tQBJwiL659Qxiu9SkvRgeuuxXWyjgKL X-Received: by 2002:a5d:8492:0:b0:6df:bdc1:2421 with SMTP id t18-20020a5d8492000000b006dfbdc12421mr16403038iom.116.1670434824777; Wed, 07 Dec 2022 09:40:24 -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 q18-20020a920512000000b0030341bffab8sm32782ile.31.2022.12.07.09.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 09:40:24 -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 v10 2/3] dt-bindings: mfd: Add compatible string for UART support Date: Wed, 7 Dec 2022 10:40:12 -0700 Message-Id: <20221207104005.v10.2.I9e018ecb8bdf341648cb64417085978ff0d22a46@changeid> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog In-Reply-To: <20221207104005.v10.1.If7926fcbad397bc6990dd725690229bed403948c@changeid> References: <20221207104005.v10.1.If7926fcbad397bc6990dd725690229bed403948c@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 v10: - No change 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"; + }; + }; ... -- 2.39.0.rc1.256.g54fd8350bd-goog