From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D736C433EF for ; Mon, 22 Nov 2021 10:46:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239219AbhKVKtu (ORCPT ); Mon, 22 Nov 2021 05:49:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230058AbhKVKtu (ORCPT ); Mon, 22 Nov 2021 05:49:50 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D42E2C061748 for ; Mon, 22 Nov 2021 02:46:43 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id n12so78744810lfe.1 for ; Mon, 22 Nov 2021 02:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wirenboard-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QNe6aTzR9gkb/+vCdyAp/Zw0YKIRP/v2w6mNVEQQPNA=; b=3OEh1zKxBUNBazeE8TXb6pak8tCqz0c4CoZMXS16AFtpOYDidMJVNek6ZxCUO5xeXx pMM9+KRg+aAxqMZwFgzqDlaFlYlyzKft6NLXHgMN09MOwyo8351V4S+X1V4pSbG01C4u ILcfBGnqeEcEVsYfK0w/qPXgTnVLn2linheH8b5nRbBR96L5A2ab/ObIfFQ0EuDUEcYI fAzVEmdBFCzWn8UiGcuHDgESMCLUTw8hKAn8NwZCktXMLXNTKDZ+j2mV1pRC9cO0/soY GPbXLHXzxb05ZlgrQg4DBAbPjRWXAubO8sOUI77c5bFf3bXery24v2vYgj7c5TNXiZph 5MyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QNe6aTzR9gkb/+vCdyAp/Zw0YKIRP/v2w6mNVEQQPNA=; b=oR5p/ubRxGiSx89IQXd0U6Rc0eqwwNEVLbJjdCj5AZwLF+scolHCVskDKCTyrWJH/W 3HwivaOpvpxQ+Nyvsa1WkhJoT9L69TYYmWdZOnGiqD2xfZk7uBOOq7MJVgWKAL1lHBQp N1b3C/1yVlueSawM7UHNeEyjHQ2uD12UuzFInU4HrfiTXdAm5ytjOLryPlxG6KyGjQ3A syp3A4S+z5nMH0wrhyQw9VgYb0IkxBpsBBROxFHlt4ywyk3u/qVlCiXzlSl6yIOwvLXB AQvK/pt21GNb4yORXcqUQ0Kuzjn5nzBkF+Rc9LpxGMRNBdRNF5xxoboNrkd1mymi2inv knxg== X-Gm-Message-State: AOAM531S8XSitkqK4QUh++/GBdrdx0YCY+FkXIj3TTOMIb4z8x+wRdbb 50xV5XmonU7rvFNNhsjCfG0tpQ== X-Google-Smtp-Source: ABdhPJzL4Pb/y4VHvTqNi3h3McYI6lp2gv8xX2z4vKS4OUiGMikVJcAVlJtMMmJ8yufQyTioFh7x+Q== X-Received: by 2002:a05:6512:1194:: with SMTP id g20mr52837084lfr.58.1637578001912; Mon, 22 Nov 2021 02:46:41 -0800 (PST) Received: from boger-laptop.lan (81.5.99.121.dhcp.mipt-telecom.ru. [81.5.99.121]) by smtp.gmail.com with ESMTPSA id bi24sm923538lfb.49.2021.11.22.02.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Nov 2021 02:46:41 -0800 (PST) From: Evgeny Boger To: Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org Cc: Evgeny Boger , devicetree@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-can@vger.kernel.org, Wolfgang Grandegger , Marc Kleine-Budde , "David S . Miller" , Jeroen Hofstee , Gerhard Bertelsmann Subject: [PATCH 1/3] dt-bindings: net: can: add support for Allwinner R40 CAN controller Date: Mon, 22 Nov 2021 13:46:14 +0300 Message-Id: <20211122104616.537156-2-boger@wirenboard.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211122104616.537156-1-boger@wirenboard.com> References: <20211122104616.537156-1-boger@wirenboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Allwinner R40 (also known as A40i, T3, V40) has a CAN controller. The controller is the same as in earlier A10 and A20 SoCs, but needs reset line to be deasserted before use. This patch Introduces new compatible for R40 CAN controller with required resets property. Signed-off-by: Evgeny Boger --- .../net/can/allwinner,sun4i-a10-can.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/net/can/allwinner,sun4i-a10-can.yaml b/Documentation/devicetree/bindings/net/can/allwinner,sun4i-a10-can.yaml index a95960ee3feb..c93fe9d3ea82 100644 --- a/Documentation/devicetree/bindings/net/can/allwinner,sun4i-a10-can.yaml +++ b/Documentation/devicetree/bindings/net/can/allwinner,sun4i-a10-can.yaml @@ -17,6 +17,7 @@ properties: - const: allwinner,sun7i-a20-can - const: allwinner,sun4i-a10-can - const: allwinner,sun4i-a10-can + - const: allwinner,sun8i-r40-can reg: maxItems: 1 @@ -27,6 +28,19 @@ properties: clocks: maxItems: 1 + resets: + maxItems: 1 + +if: + properties: + compatible: + contains: + const: allwinner,sun8i-r40-can + +then: + required: + - resets + required: - compatible - reg @@ -47,5 +61,15 @@ examples: interrupts = ; clocks = <&ccu CLK_APB1_CAN>; }; + - | + #define RST_BUS_CAN 68 + #define CLK_BUS_CAN 91 + can1: can@1c2bc00 { + compatible = "allwinner,sun8i-r40-can"; + reg = <0x01c2bc00 0x400>; + interrupts = ; + clocks = <&ccu CLK_BUS_CAN>; + resets = <&ccu RST_BUS_CAN>; + }; ... -- 2.25.1