Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp489602rwo; Fri, 21 Jul 2023 15:37:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlF1g/OGRI21oqellv7VZRe+r7Hi6/+CXHAoYQwSU84I/7a0YYEmW9FTmEaQ9eDBWzYVuY4b X-Received: by 2002:a05:6808:1788:b0:3a3:6c7d:a5cc with SMTP id bg8-20020a056808178800b003a36c7da5ccmr4326409oib.24.1689979070079; Fri, 21 Jul 2023 15:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689979070; cv=none; d=google.com; s=arc-20160816; b=lT6i9O7nY2AxvKP56aAOLg9IuvD/dd/AW6dHbO/48Jvr8ZikkAifbqA2k2TGLOXY4g hLcat9biE23oSAz9XwaYOnFWs8rylppKiRMimYeQKYpcVXAnKv8YbfXjpK1RLsKqzD2c N1TKTE4Oxl3AXcZdFBZITvTn1MGpOzB30v8YOZ09dIwLGY7bMdIUtxgfYvaw4Qm5WTvo TtsDFtPQaAFB+md/XQ+QdtwCaLmNcprdoIHOLIRWWDkY39RaCI7O0xGBHrnlJdcD15mF kEWuVFvHA3rIe004WKJs4prS1xgorPFvLZ3gUQfJlX9dTLAbwaUFW/8em9dKK2WWV8wj 5jLQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=SGOT/l6CA2g1AAdldYA0RXmYrJ8ccwGw6CVVK+w5BCA=; fh=suQTAhYBHOXoVUNU2HOlF4ZtZwyV/FNE8pEYzcffps0=; b=Nb47kXd7yt3CfKznO4jzvCjIJ+ZzNVgAZ09qrrYKhZIRBVKT0CXz6lai9TrzxH0wER 1l6/aPL1jpWAgQomLxhFDlFE3yXZNbMQ2FZo7t0U5t7rFf5yaLLiyxvqWuVg1FOuq6A4 eIdxNb9rzTuTBCWltMukWxV4e9JAljteCAxIwRFwYrRjS2JVyxt1PH3Q1gpCUIGcjdXV sGyoEss+yuy7q6pxJiEA7ZOo5F/m6g/vaoBjRIBcn0tgzkGLaafF9C4uc5QbzGMlM1u2 MJs52P+jqYwKiJsdv1CXaiOh54dYura4ihfqsSN60RxxVXawneZZ7pOdKf4uXXal2kDm 37rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=VLdIbyfi; 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=QUARANTINE dis=NONE) header.from=jookia.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o1-20020a655bc1000000b0055768bf4256si3740298pgr.525.2023.07.21.15.37.23; Fri, 21 Jul 2023 15:37:50 -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=@jookia.org header.s=key1 header.b=VLdIbyfi; 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=QUARANTINE dis=NONE) header.from=jookia.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230260AbjGUWXc (ORCPT + 99 others); Fri, 21 Jul 2023 18:23:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230242AbjGUWX1 (ORCPT ); Fri, 21 Jul 2023 18:23:27 -0400 X-Greylist: delayed 394 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 21 Jul 2023 15:23:17 PDT Received: from out-53.mta1.migadu.com (out-53.mta1.migadu.com [IPv6:2001:41d0:203:375::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D991B30ED for ; Fri, 21 Jul 2023 15:23:17 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jookia.org; s=key1; t=1689977799; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=SGOT/l6CA2g1AAdldYA0RXmYrJ8ccwGw6CVVK+w5BCA=; b=VLdIbyfiarCZNCB0QlGxH273eSht0Yq8c8LmI3LDTUsl1VYdq+uOx1lz43tZRA8ERNOt9U yQE1SKMu2JAEAm51KsOLPPLUlM53OvVtECwynDB97Wm9cl4c9dYK3SId57lMAJC107p8jj x70KJmniOy1xmL1PXrPQt+03j+xfzjTLPDOwfpa96KiJ0RfqjhSxWczv6Sxn+YnNObhQ04 +uFiu8BSWoEegNqTDmtgTSwGBMF3mMw8sjojvKJb+x3tis+ZERqMcFMJaY0j8lnlmCVrJa yBIyGkDKSbPxLjD5Btmia3l7tFY5kZ++eQuTUIBbyZmTDIzcPuBLXpUyMkrBVA== From: John Watts To: linux-sunxi@lists.linux.dev Cc: Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-can@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, John Watts Subject: [PATCH v2 0/4] Add support for Allwinner D1 CAN controllers Date: Sat, 22 Jul 2023 08:15:49 +1000 Message-ID: <20230721221552.1973203-2-contact@jookia.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 This patch series adds support for the Allwinner D1 CAN controllers. It requires adding a new device tree compatible and driver support to work around some hardware quirks. This has been tested on the Mango Pi MQ Dual running a T113 and a Lichee Panel 86 running a D1. Changes in v2: - Re-ordered patches to work with bisecting - Fixed device tree label underscores - Fixed email headers John Watts (4): dt-bindings: net: can: Add support for Allwinner D1 CAN controller riscv: dts: allwinner: d1: Add CAN controller nodes can: sun4i_can: Add acceptance register quirk can: sun4i_can: Add support for the Allwinner D1 .../net/can/allwinner,sun4i-a10-can.yaml | 6 ++-- .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 30 +++++++++++++++++++ drivers/net/can/Kconfig | 4 +-- drivers/net/can/sun4i_can.c | 22 ++++++++++++-- 4 files changed, 55 insertions(+), 7 deletions(-) -- 2.41.0