From patchwork Wed Jun 7 11:55:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Leonard_G=C3=B6hrs?= X-Patchwork-Id: 104459 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:3046:b0:115:7a1d:dabb with SMTP id p6csp295725rwl; Wed, 7 Jun 2023 05:01:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nB+jYSMGseZi8xQ4JFVJP54pH7l3dFhDoPO3kcq92Gxt46R9Ebpqd3zACyTftmjy2F4AT X-Received: by 2002:a17:90a:181:b0:255:d86c:baec with SMTP id 1-20020a17090a018100b00255d86cbaecmr4664771pjc.46.1686139267266; Wed, 07 Jun 2023 05:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686139267; cv=none; d=google.com; s=arc-20160816; b=fDUotf7snOtB1D72NsI/OlO/D1ICZNv1ULT3+DHZe0OzmIeYhBqZLePSyt3V42eivh gzk2OrODZHGJ74aAt9AtycxrOhJM+PKbUbT4zRHQpfygbtZq11VVyp2kcO0hgeWdYdf7 8Cqp0ahC7hugsPZwsPlHV4sab14dHvCn/mXoqhVo0LBlOl2fI8uBP700B+7l/YbbNqWP q+DsxzRQOapqJrUyPlwonVVVPh2iRPGDA0lRcriK9uWECmweWrs5bYoWtX5mo/+MVven mpORK0AratlcveJ5oUB4Q3TZayDbdYpSI6Etfe2yje+Z5VUq31QP8s3QO9wjC4thC9BJ 9J8A== 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; bh=VBXYb8vnPxTKR1OhAlaD9q97zhGItr2JXUqyH16qyw0=; b=Wjf1RyGardEYn5JS/W0vVMudH60+nQ9Av8r6i6r4mHl2fyzNMMhobFVSPjyFERbWYo RPXjlEhnXKZNl8nhc6iRJuJ0942vtsiLTtmnyhGBrXVPV3awk/4EVTHZWKWgD8gCafn3 qY6TajXsb7Q/giZAOWOJ7lDYXY+d80LIL6f0ek/aAgcYJk9KRhRsyL7a/tyn+5PSflqq aDofUhVQyJD+Jszq7RXHE7RIBi04j6/duVWfqJqa/1nTY2fk+R6inomnc76ecSsEDksF QOvBric4SGZnSEHpBjfeIFKjMb6f1XY2yUTUNX5B5kBimhzg33us/XF6g1FQfNMl/WsQ XKgw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi1-20020a17090b4b4100b002536f332d07si994637pjb.149.2023.06.07.05.00.42; Wed, 07 Jun 2023 05:01:07 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240391AbjFGL54 (ORCPT + 99 others); Wed, 7 Jun 2023 07:57:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240442AbjFGL5v (ORCPT ); Wed, 7 Jun 2023 07:57:51 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C5651BDF for ; Wed, 7 Jun 2023 04:57:46 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6rmx-0000Fm-6e; Wed, 07 Jun 2023 13:57:19 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q6rmu-005jFt-RW; Wed, 07 Jun 2023 13:57:16 +0200 Received: from lgo by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1q6rmu-00CTIM-4H; Wed, 07 Jun 2023 13:57:16 +0200 From: =?utf-8?q?Leonard_G=C3=B6hrs?= To: Chandrasekar Ramakrishnan , Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: kernel@pengutronix.de, =?utf-8?q?Leonard_G=C3=B6hrs?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 4/8] dt-bindings: can: m_can: add termination-{gpios,ohms} properties Date: Wed, 7 Jun 2023 13:55:03 +0200 Message-Id: <20230607115508.2964574-4-l.goehrs@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230607115508.2964574-1-l.goehrs@pengutronix.de> References: <20230607115508.2964574-1-l.goehrs@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: lgo@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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?1768045168491935304?= X-GMAIL-MSGID: =?utf-8?q?1768045168491935304?= The termination-gpios property allows specifying a GPIO pin that enables/disables a termination resistor on said CAN interface. The termination-ohms property specifies the resistance of said resistor. Signed-off-by: Leonard Göhrs Acked-by: Conor Dooley --- Documentation/devicetree/bindings/net/can/bosch,m_can.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml index 67879aab623b5..106c79fa560c3 100644 --- a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml +++ b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml @@ -118,6 +118,9 @@ properties: phys: maxItems: 1 + termination-gpios: true + termination-ohms: true + required: - compatible - reg