Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp558180rwo; Fri, 21 Jul 2023 17:09:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhZeod935dN4yH2418+O/h++aQ3H9uCA0xbWdBYMd8ocQms1mIMbgLQoxaGxtv53uYYILJ X-Received: by 2002:a17:90b:4b8e:b0:258:c4b5:c6b4 with SMTP id lr14-20020a17090b4b8e00b00258c4b5c6b4mr2514606pjb.12.1689984559582; Fri, 21 Jul 2023 17:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689984559; cv=none; d=google.com; s=arc-20160816; b=vqdXnMlNho3lct2yLhBwbxMu/mVv5TztZ93GampkjeKFfBOTCcEqH+uVgLH1o1gqJ4 9z9mj+bEWB21VBm4ubOQUWSRXXbwdqGFZMSFqDSLFsLA+B44ym89CmQVWLTMAxciYztd dHzkKrNmmCPJShWEBxCPdd+7V5nkYfNeglAskiieJXTmWWcsbcoKKvtAzeVcnTvyB2XV oy3D0+fXUOYGpDejQrXg40/qTMp2b+lTa42ERTuqxbsVmRJmq/+cmES5wnDBQTGJ0xaZ KnWjhmyUuegMUcFZ9HoqLyHD8NPenbk4Kt5RDCbeEQmgOPA+O3aJRvj3/SQuD2R7Wt/X geHw== 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=wiQgZ4Wm6yEDAcXzCVAc5MydP04eah8gErZxesi/BMI=; fh=suQTAhYBHOXoVUNU2HOlF4ZtZwyV/FNE8pEYzcffps0=; b=F24ULJt7dACKP+pe23Zhe7gsXSqXw/AIAGu6xLArTluJwyfuuoJ7r46FV6W3EZevKv 1GZ1hXftJ7xvmv9qqg8L1qYiPktZpGSdXetcjaopEdpxHwPcO+RAdlxXXrlQJQh5rHGf 6n0mTgnEPqW3bkmLozJN3BPygtdEVWzHXeVhQGwFAnRMDjl8yLtXFGsSrM8R6pIpVWs1 axjq0BdsN0apCay/0MsSNQzXeHrZfTiTKYfyWf7MZPdryvJR1UTG0/0CoKX6SBrbUz6z EidWjj2gGLSzofUkfd8sivG0hbKizB3Bj4quT2aXzWFX/uPrlyMkURGG4fHWn0RqrfEt c0dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jookia.org header.s=key1 header.b=h1WWdtgA; 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 rj8-20020a17090b3e8800b00263e9b06a99si6913533pjb.77.2023.07.21.17.09.06; Fri, 21 Jul 2023 17:09:19 -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=h1WWdtgA; 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 S230229AbjGUWX2 (ORCPT + 99 others); Fri, 21 Jul 2023 18:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbjGUWX0 (ORCPT ); Fri, 21 Jul 2023 18:23:26 -0400 Received: from out-10.mta0.migadu.com (out-10.mta0.migadu.com [91.218.175.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CAEF3AB8 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=1689977807; 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: in-reply-to:in-reply-to:references:references; bh=wiQgZ4Wm6yEDAcXzCVAc5MydP04eah8gErZxesi/BMI=; b=h1WWdtgAFYH6OTid6DgJ/kiMQnM+F7MkjMrv6GPWbln+iLdcheLmGVdwBIVOOISf0XTySI +1fzFfEeL3UgMrOD4m45O+r+Gg8wfM9V+QdPjmU2ct5YJnpjqbyiRIAPjPU8sZQ5WviVyt OSv6a78m625Yv9CDsJvl1O0yE6Yyu/+vkjUhiT10oZE3TZz0LBfQf43xPQJH3YVXv+jOyn c+n+EvgjDheGV5fayu/lnvqio57hk86rTGJzakwlfh4WwYsXjEB9ZTlUxmfOw6lMAqVwEB EiPUS4TUY+TvZwfp4XxaxECEuUA60Ns6GL8FZqrUcgm+mTa+IIbhlN4yXvMZYA== 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 1/4] dt-bindings: net: can: Add support for Allwinner D1 CAN controller Date: Sat, 22 Jul 2023 08:15:50 +1000 Message-ID: <20230721221552.1973203-3-contact@jookia.org> In-Reply-To: <20230721221552.1973203-2-contact@jookia.org> References: <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 The Allwinner D1 has two CAN controllers, both a variant of the R40 controller. Unfortunately the registers for the D1 controllers are moved around enough to be incompatible and require a new compatible. Introduce the "allwinner,sun20i-d1-can" compatible to support this. Signed-off-by: John Watts --- .../bindings/net/can/allwinner,sun4i-a10-can.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 9c494957a07a..e42ea28d6ab4 100644 --- a/Documentation/devicetree/bindings/net/can/allwinner,sun4i-a10-can.yaml +++ b/Documentation/devicetree/bindings/net/can/allwinner,sun4i-a10-can.yaml @@ -21,6 +21,7 @@ properties: - const: allwinner,sun4i-a10-can - const: allwinner,sun4i-a10-can - const: allwinner,sun8i-r40-can + - const: allwinner,sun20i-d1-can reg: maxItems: 1 @@ -37,8 +38,9 @@ properties: if: properties: compatible: - contains: - const: allwinner,sun8i-r40-can + enum: + - allwinner,sun8i-r40-can + - allwinner,sun20i-d1-can then: required: -- 2.41.0