Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1505866rwd; Thu, 18 May 2023 12:58:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5EtI92D8XUcpK0dyA6zeQb3lxFOjay9NbKmHKeb65IX38F7WzEtoHq3bgmbn0uquqIBpJN X-Received: by 2002:a17:902:daca:b0:1ac:859a:5b5a with SMTP id q10-20020a170902daca00b001ac859a5b5amr409026plx.0.1684439911859; Thu, 18 May 2023 12:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684439911; cv=none; d=google.com; s=arc-20160816; b=gKAVyo47oc1nE09poO0+c4oqsBFz1+sajjBoXp8cNV3CaZSAj71f5eHLYqXvBOJV77 wWMFSDR8bPkNENyWjdVqGwJazNqeW564y7mhmtLUT7y0k3vp4ZO5bl3/eygxkbiE5uHy NgKbF2lUPUcccz4DmM8Dmtw6+BvAjQ4isElypPfS1vSUTOia8/VIB+h8fT2g4o98P0um vbky1+26jovMck9d/7DxxBKuvAyi7n0UrJ7ubEn2fz+nDxOgYHWNFseTGmZR+sp8K2aH xhSlX6mmd+RgFoWbo5JTgqlESd7mcIyzvF8vJ3ERcsmNYTm5s3yII7FcN0OKCAA94T8L sNHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WNu+0kk84vY5N1ixcyEihltPbCfUf1wV2gQNQmZvxFA=; b=Rdtv49tFfcyctT1g7tExG3+E+ELY7M/HimnAgPXA3SSK8ZpUpA1FEhGOF7hQIJw4vf +HX6ttoZDfnI0hR624TdnezrJKN8rrzte1AGFQVmJRnij7Onrkr9T+M/MPDGLuCm+RqQ WxPsgxnuHPd42YwWsV8oD2pqqJA0tIyorOglvtDW6qtJL8UxyAVzeIgGqRxd4Qde971I 7wNmZ/41AxpYJhtWK8g1DwsN7rFZ18uXo79LIpIR62OUO/dHXFLIjwZogrTm3SxtnIJb 9VG9hZgHr+G33s5hi9RLNw1jbe/0nS/JaYGNRbc5MV2T/hb8gNySLmJhpyUMB8H7hYk0 ZWXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HW7S7nc2; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kb14-20020a170903338e00b001a1be5ca65asi1816450plb.528.2023.05.18.12.58.20; Thu, 18 May 2023 12:58:31 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HW7S7nc2; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229973AbjERTgu (ORCPT + 99 others); Thu, 18 May 2023 15:36:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjERTgt (ORCPT ); Thu, 18 May 2023 15:36:49 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00BC6E0; Thu, 18 May 2023 12:36:46 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 34IJaEx4111046; Thu, 18 May 2023 14:36:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1684438574; bh=WNu+0kk84vY5N1ixcyEihltPbCfUf1wV2gQNQmZvxFA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=HW7S7nc2iHONnG1rkw8Z7QDdwVSEWUWqWA/kF3nKYxQveAXSxzFNX88HwRpXXT5Od njanJQeLi3vHkWk2QBNBf5rdQf1TQtpssOGDeWFG3E2RYUQwMuI8vv23rA401ZB0ih IF1Z+iSJUuNxxkereGwUZLPXxlkqITMBveoqN64I= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 34IJaEZS103785 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 18 May 2023 14:36:14 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 18 May 2023 14:36:13 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 18 May 2023 14:36:13 -0500 Received: from a0498204.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 34IJaDvU053146; Thu, 18 May 2023 14:36:13 -0500 From: Judith Mendez To: Chandrasekar Ramakrishnan , CC: Wolfgang Grandegger , Marc Kleine-Budde , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , , Schuyler Patton , Tero Kristo , Rob Herring , Krzysztof Kozlowski , , , Oliver Hartkopp , Conor Dooley Subject: [PATCH v6 1/2] dt-bindings: net: can: Remove interrupt properties for MCAN Date: Thu, 18 May 2023 14:36:12 -0500 Message-ID: <20230518193613.15185-2-jm@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230518193613.15185-1-jm@ti.com> References: <20230518193613.15185-1-jm@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On AM62x SoC, MCANs on MCU domain do not have hardware interrupt routed to A53 Linux, instead they will use software interrupt by timer polling. To enable timer polling method, interrupts should be optional so remove interrupts property from required section and add an example for MCAN node with timer polling enabled. Acked-by: Krzysztof Kozlowski Signed-off-by: Judith Mendez --- Changelog: v6: 1. No changes v5: 1. Remove poll-interval 2. Remove oneOf that selects interrupts/interrupt-names or poll-interval v3: 1. Update binding poll-interval description 2. Add oneOf to select interrupts/interrupt-names or poll-interval v2: 1. Add poll-interval property to enable timer polling method 2. Add example using poll-interval property --- .../bindings/net/can/bosch,m_can.yaml | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml index 67879aab623b..bb518c831f7b 100644 --- a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml +++ b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml @@ -122,8 +122,6 @@ required: - compatible - reg - reg-names - - interrupts - - interrupt-names - clocks - clock-names - bosch,mram-cfg @@ -132,6 +130,7 @@ additionalProperties: false examples: - | + // Example with interrupts #include can@20e8000 { compatible = "bosch,m_can"; @@ -149,4 +148,21 @@ examples: }; }; + - | + // Example with timer polling + #include + can@20e8000 { + compatible = "bosch,m_can"; + reg = <0x020e8000 0x4000>, <0x02298000 0x4000>; + reg-names = "m_can", "message_ram"; + clocks = <&clks IMX6SX_CLK_CANFD>, + <&clks IMX6SX_CLK_CANFD>; + clock-names = "hclk", "cclk"; + bosch,mram-cfg = <0x0 0 0 32 0 0 0 1>; + + can-transceiver { + max-bitrate = <5000000>; + }; + }; + ... -- 2.17.1