From patchwork Mon Jan 29 03:12:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Qiu X-Patchwork-Id: 19564 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp344610dyb; Sun, 28 Jan 2024 19:46:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/qDV2YBDNtrLUhdZi93lP6JyyqUGnk2behOSsHPIQ0A/lyhFdu4ctjjVmTy7LTj0epFDX X-Received: by 2002:a37:e302:0:b0:783:fbbd:155b with SMTP id y2-20020a37e302000000b00783fbbd155bmr1766463qki.28.1706499976880; Sun, 28 Jan 2024 19:46:16 -0800 (PST) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w13-20020a05620a444d00b00781555b0194si2251663qkp.671.2024.01.28.19.46.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jan 2024 19:46:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42138-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-42138-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42138-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AB2F51C2228A for ; Mon, 29 Jan 2024 03:46:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 679DF12E47; Mon, 29 Jan 2024 03:46:00 +0000 (UTC) Received: from CHN02-SH0-obe.outbound.protection.partner.outlook.cn (mail-sh0chn02on2063.outbound.protection.partner.outlook.cn [139.219.146.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED12212E5B; Mon, 29 Jan 2024 03:45:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.146.63 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706499958; cv=fail; b=eaCHUF9Z/qUpDr9ggukDiuYgzvWSV1jNc3gWWXniIese8WASSSunWBX6ZVtmpKHP0pms389Ytv0bckn8jzJpcN3d3/MzAbwOWf6OhDI+FbS0Yxz2d9TJLiEdV4FDMO7KoRF+7XzI02SH2Jx4VVx+bBXAr6G6pWWwIAw30Dwu5UE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706499958; c=relaxed/simple; bh=F7J4f8gtLa+wO9nEdwHplBUO85WpsWNy3w+btNEJur0=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=pET/0sSl65xHoPtbLXP0Suz23QEzChzpwQFr17zqfUvtAkO0Uk8HCOql4b4uReVGITjkSY62Uk+nCe7I/C1eDcf8IAArs06bgUF1rOgayl/DdWwo+78CrCApm8rCIr5mwexGY+ms0QbQuHTNXw5MUBV2O8vmwNW8VEcCOjDBDb4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.146.63 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KstA/YKVS8OJ38ljfsu016E1RB/cJBtrYag6GKl4EkWCim0AohraUXyWokMqnZ/yUye8YtGQGw0uvK9MGCbu3CHX6I2lEfc36TyuAl7pgbsfSrjOE1e/wKVPIj+OSsufrYjcrYj0F1q/fBTfmECoZ7OkQkD+S74v8+hXUSFm+ydRaEJGDoBWE/3+03Bf42ulAWtffYppBFMRfd9fNRxOxySYhRpAcTunobFLBAewM0duNbvTTI4RRpMcdRHFtCu3U4SgoN+Rb2t1R+qOhIsWCtlmYtww3d1bcfLRo3uM2yYqZAnVl65fgs8tZHaTNDUOMtJTvbrAmqTMwVYeuzROdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4rDk4Khc8YWQzN5hnYx7eNSRP+jczG9LqiGFQEMi2QA=; b=CFIBBB1HxFulvpEX707v4g4jZBE8GrXdgVZlhlwNNaJoG6Zl0MwswQ+z24CJ3zYdShZYN9rq/IPbWQZ0wOHVbjCcsIR5u3JM+CYLjZ0y0BsDnlMR4ea75XZc0s7ZuXgNQe2exVcFCUNU7pI649HgY5Cn/dajv92kzPba9vhjI92dbx8mMzJoXoLelRkC7Ao3NR4PQ7z2bHjF6od2ZivyU8RpWTKZ42fpgLc8tg+jPsGs4EJRp1ta9dLQm8uEbGoF6WH42eZUmQ+4rUpSr8I1BnJo6DFL881V549IgRGfZMDkEZyfceZQk+cOesZj55uR6AfXEqcEtnQSbvIcXcuAzg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:1b::8) by ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:1b::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.32; Mon, 29 Jan 2024 03:12:48 +0000 Received: from ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn ([fe80::a5c6:9ab0:d20f:cb78]) by ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn ([fe80::a5c6:9ab0:d20f:cb78%6]) with mapi id 15.20.7228.029; Mon, 29 Jan 2024 03:12:48 +0000 From: William Qiu To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-can@vger.kernel.org Cc: Emil Renner Berthing , Rob Herring , Wolfgang Grandegger , Philipp Zabel , Krzysztof Kozlowski , Conor Dooley , Marc Kleine-Budde , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Paul Walmsley , Palmer Dabbelt , Albert Ou , William Qiu Subject: [PATCH v1 0/4] CAST Controller Area Network driver support Date: Mon, 29 Jan 2024 11:12:35 +0800 Message-Id: <20240129031239.17037-1-william.qiu@starfivetech.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SH0PR01CA0011.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:5::23) To ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:1b::8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ0PR01MB1253:EE_ X-MS-Office365-Filtering-Correlation-Id: b3f632c2-42a2-4c0a-91e9-08dc20782bd9 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CckDggfJ+OFmWmql7gfzHCaHzlEqotrS5GvKir6khoQFA/1WS4WNxt45joAveNy25kWfsDmNGOCPYoCe+BU14DzoizrydEM7HLpesrhxyW5JOWz0Yetuar2KKm/igve3jm10IFihjcAB7/bCWnCXjwXDO/hBk01UwEXJLRNziYXFKMtAbTtVv3xZU7ELJ5eXmkXEHQg0jtxJ+y3ciulKXyhC6TVRS5TGGGwrqGWQCD3AQFz0J/JHylCN3ThZmOFjBRjG+2SfoEAM/cHrPiPj0UorDRD/aXZZ7gZ121chFmFBdl0X2OlHw6M00Ta6H3NF2BZbnvTYsbnv5vn1F0gVUw/aCHX4Y5ESrz7tGsv9LGk9X5jf6WJKvXDxHUbbABWxy5FjO7R2g7M6q2Vn9ZnePbL3qoX/2w3/UDL8u1sYroqjbN90Bpz8lgzcvWh0ArVrYbKPosrqWGr9qYmfu12/wsGp6s8H9WWkd5q3FArJCunKNwwQKDFqu+1TL4IncGgvnSENrTG+YNbj4kjkVfWx5syMJTD+pfs9nQGJjgg2UXNQ3xF7OUbL8Jc+K3+j2d0h X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(136003)(39830400003)(346002)(366004)(396003)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(41320700001)(4326008)(8936002)(8676002)(7416002)(5660300002)(44832011)(86362001)(54906003)(66946007)(66556008)(66476007)(38350700005)(4744005)(2906002)(40180700001)(41300700001)(36756003)(38100700002)(52116002)(508600001)(6666004)(2616005)(1076003)(40160700002)(107886003)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: o0mJAPtiZN8+Hjsshb4/dqolBkhqvOuIQsqEzgICEgqDUU5qnc2lkmCQAJw/JWBeLq8/kVhH11V1MVZkTHJ3Kd4LM+JcX61yXGZ/D4Y3xSPsvK/FCLBGLjMGztQlbRdTCje8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uMgFwELij4vSbtNcPb5yEcH7M83Bjv2S0gHgc9W/NHv45q9i36AI1dYw7VJ/kt2aYi6Kfw1PdFV3Ila2BMThzs/2gewJUD9USjKbBQ/ShHGtfSWN2UcpJHmf/YtTaQ8mQ1xEdjSGGIXpuJkF8CARDxQWg93vP86Vabw4hklYpwI2Qs6dKcgcdtuxlcyUAhkjdzCf5vJmCZbYgyKDH/pFUOKf6C1GWNKZQ/RSsHoUfQ1suM4Xk6wdpBDQtjz3NhItfRvoI3fi0cpxXhAPfHYkUgX2M3PqzwNIY/1WSTV7F19DBPtmLw2vEEaaHsF0fgmlPXM1ISMW2H5+pJNNo8eRd7RvSrp7QUKseG+DH5yiJhRUn7WVTGc3FXZ2Zmfy73RA== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3f632c2-42a2-4c0a-91e9-08dc20782bd9 X-MS-Exchange-CrossTenant-AuthSource: ZQ0PR01MB1253.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2024 03:12:48.5368 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BveT9G7tPu+9E/KjjTE0bRqn0f3jABVwqgYuE/CEFKAK6kK9KC1JzWdaT4cyiquZ45ldkXoxbyeEA7ktMODhFkZlW0bqaTIXGpfDqippDXc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ0PR01MB1253 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789394919642617083 X-GMAIL-MSGID: 1789394919642617083 Hi, This patchset adds initial rudimentary support for the CAST Controller Area Network driver. And we registered cast in kernel as well. This driver will be applied in JH7110 SoC first, so add relevant compatibility support. William Qiu (4): dt-bindings: vendor-prefixes: Add cast vendor prefix dt-bindings: can: Add bindings for CAST CAN Controller can: cast: add driver for CAST CAN controller riscv: dts: starfive: jh7110: Add CAN node .../devicetree/bindings/net/can/cast,can.yaml | 95 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 7 + arch/riscv/boot/dts/starfive/jh7110.dtsi | 32 + drivers/net/can/Kconfig | 7 + drivers/net/can/Makefile | 1 + drivers/net/can/cast_can.c | 1215 +++++++++++++++++ 7 files changed, 1359 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/can/cast,can.yaml create mode 100644 drivers/net/can/cast_can.c --- 2.34.1