Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2995122rwb; Fri, 9 Dec 2022 08:41:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf5xLb9eIIZaDqB59xgjoaRqpQeNVzaVpIFE4T0rGMvdldy0AKrZ1tuh/BpO29cUBn2afLKL X-Received: by 2002:a05:6a20:6983:b0:a3:754c:2769 with SMTP id t3-20020a056a20698300b000a3754c2769mr9698633pzk.40.1670604105509; Fri, 09 Dec 2022 08:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670604105; cv=none; d=google.com; s=arc-20160816; b=tckAd9HRN3vcSRSEcuNUdjbxJ/gRhP9ijhtTvsjeiFQ1BCbXu+ticMBieSITtNsxrH U8CNcPdG9JyK8QIpoVNQ7QTZtTCNHrJDJH4Uog6cFe/6cXRXJdzYqstuDfstf0BWHT2E gE/5el0jKbvqQgB/5C8g5eq6loFljs6w1JFJa7wfpti2gdc6EmNicdol2djv1Idmo6JA 9QKNw+nZHiiWbp5GRX80MtVVjmI6E7oFgHWSnuUQ9Jcm9ztiGgyX11FO0ZspTPC9qIaO 25O4bZkEEnnaByDf7hgRt6tVZfBjWQTVdXuuz61S6lXAMlMy0ROQECCQw72iEjmVFtEl s+cw== 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=IgG/TNRbidgEyJvAVaHHfxRU0Ng4OyfVihTTmLvE0JQ=; b=TwZ50a7pHSvGXSTloLB3dIWOZBid9bMkBFejYpuXBxo5fJ4v+JG2sqHDOLfL0h0fJK +VPADZxoJOpGR+yRQMREc09Z/5nf8DbYjZ4rtg6yJFVr6r7+BKLCW1zwkGHcxBMo0irT JxNHqpzzJ1SraWV/on1G140eyV/bv9TbzFYHgmKgh2DFKspHENsJSnIljRTXuJQ7IOIQ MBLDYwcvxsQU6q2Nt44NFPiKkZWq1cP3W1or/wbXoCew3g+5Ti7zBBJJuUKvr/blrm8M aR6vVJnkdEWzcEreE5WPyWJn7WxsCUgX/zB1mkBZOUjej/C0pITbL/z/1d7hJf5Hm/r2 sONA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K2COfFDP; 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 b196-20020a6334cd000000b0047899806ee2si1705412pga.533.2022.12.09.08.41.35; Fri, 09 Dec 2022 08:41:45 -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=K2COfFDP; 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 S229724AbiLIQ0e (ORCPT + 74 others); Fri, 9 Dec 2022 11:26:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbiLIQ0b (ORCPT ); Fri, 9 Dec 2022 11:26:31 -0500 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 803BF86F4D for ; Fri, 9 Dec 2022 08:26:29 -0800 (PST) Received: by mail-il1-x129.google.com with SMTP id m15so145098ilq.2 for ; Fri, 09 Dec 2022 08:26:29 -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=IgG/TNRbidgEyJvAVaHHfxRU0Ng4OyfVihTTmLvE0JQ=; b=K2COfFDPnQsv126b/kS1Mvllrw3QIpmb9WDCa0cAUFybrJ8VpQtraDrw/XddNXS3hE CGUa7htqAGx3XqePpeRi597iv9RWO6TM8JJ7TLnEN80eCZmZTxPMay9cq7dJzDL1AqnF oS2lECZHiRtfUgaLT2+k0OKBqtzpeIlqzUgn0= 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=IgG/TNRbidgEyJvAVaHHfxRU0Ng4OyfVihTTmLvE0JQ=; b=JyNul8+3gz0jAPAmDTtOo6YnFIHhv3wipUK14QBSZBYCoVuKAzq3zUvFE9QMpLtCE9 rXm/9mUC8OyX8THSqwtZbyMN+PQGpf/gkw0UEjge8O6yOK3ZvE0QQBJuj7NdW3Sss8HY QVyBcfmHl8sRHT8pCkq0N2b+rJ2oMqj24rT36Xf0kGZyU98BBq9WyatRaqK5vBcdixRh WC3orIMBAyv0UqKH597nVpf3jn1hTW6PLAn4I0o+PPYwW5060eVsG/5yK4FxiWEIZscy v6H6uZ155YUk32Pv0px444i/wgfja3qArxX9j2IpEeVhR4ZaOin2sKJTTStA8ktOTEaG +9xQ== X-Gm-Message-State: ANoB5plr8KqvgPWmSwh5Ko878tOoeE+vsws6SU9LIuytTdiZp3HL8n2S nVXZgzIyl9zJ+CJU7ioflgC2cEGNAWMsMfcJ X-Received: by 2002:a92:d489:0:b0:303:8cff:9841 with SMTP id p9-20020a92d489000000b003038cff9841mr3381027ilg.26.1670603188775; Fri, 09 Dec 2022 08:26:28 -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 b2-20020a92dcc2000000b002e85e8b8d1dsm556531ilr.5.2022.12.09.08.26.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 08:26:28 -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 v12 2/3] dt-bindings: mfd: cros-ec: Add UART compatible string Date: Fri, 9 Dec 2022 09:26:23 -0700 Message-Id: <20221209092619.v12.2.I9e018ecb8bdf341648cb64417085978ff0d22a46@changeid> X-Mailer: git-send-email 2.39.0.rc1.256.g54fd8350bd-goog In-Reply-To: <20221209092619.v12.1.If7926fcbad397bc6990dd725690229bed403948c@changeid> References: <20221209092619.v12.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 v12: - No change Changes in v11: - Update commit message to include device 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