Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3800224rwb; Sun, 9 Oct 2022 11:15:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66xZH18b+6dbE+eg5KfgQciMb+5/uulgbaL9gGOZQWLmRqj1NWr7KVMj81UtZ7GqMUlANp X-Received: by 2002:a17:90b:4f4a:b0:20c:64e2:2bee with SMTP id pj10-20020a17090b4f4a00b0020c64e22beemr10897879pjb.32.1665339341151; Sun, 09 Oct 2022 11:15:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665339341; cv=none; d=google.com; s=arc-20160816; b=Gl+hCtJAcldaOag37r3vEFc/snu9lj4O/YfaijyAcYuW5EweHv9p4lq9m/jKNM1qJY L+h1dTWtBnAZ1GLc8sXH9RZr5sCQPFeSpIai/wwoBaMAF9ErjhUdBLC8Ql1+MXBIhQ/r FG/C0O9Li8JM7GhgkL5lhUxdmXpf4bK0cCoK7ugTTBJ/eyNjU0pN0WXCUZ/TsLfJcQTl p159b2ijLcfBXZo1RoJqe0CiQWd7frM0cHqVarObd8q+7DvEDX/F97zQATyUbBXfFlxX 3A/me5PMJK1KppO7fzF2wetS/z8N87u2PWjlmNdSMP7aAwFwSDrdr/6Xw21/xfUx2GS9 4+fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=jyv46wHrohyjxRVTV7juENiF484l/IXY21r1YB8awFg=; b=Eont/pF37xW2GXnX+mkk/q8ZqxY32WyfZT40Imm7TBRopQIAMAzqY6EGBfLrd9F5wZ HUnuvIUgcfOrpPPtpbqilDBuqGBorvwO4CmE6dM0BAg1LYstuW+BnP84V7gvD5C7aLLb 3UxBJugsbNNzuRPvoBDO7vYWi7265DDCN5ndINxRk592+zMrFIHKCzTgttOC9HGnBAta tmzsVI5YThRp5xoqYdHXD+aShsVqavUJ+ff9kOzHq/NFBeVte85RYVDatIeEHrOwoDiK cWA0ll5y9UAsphwiikrEoSLk/ZNfD6QT1H7+ftVr26HqlkJsVVTWylSRAm48HXKjJYhA GTfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=YmytiBVw; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x3-20020a17090a788300b001fe35ddd963si13980796pjk.103.2022.10.09.11.15.27; Sun, 09 Oct 2022 11:15:41 -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=fail header.i=@gmail.com header.s=20210112 header.b=YmytiBVw; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230212AbiJISOP (ORCPT + 99 others); Sun, 9 Oct 2022 14:14:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230192AbiJISOM (ORCPT ); Sun, 9 Oct 2022 14:14:12 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDE4723BFB; Sun, 9 Oct 2022 11:14:11 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id f11so14122635wrm.6; Sun, 09 Oct 2022 11:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jyv46wHrohyjxRVTV7juENiF484l/IXY21r1YB8awFg=; b=YmytiBVwOi3FoMguaG4m9bJ7ZA80YdsK6YtZshsLAVGOLTRJolaSxiVxSRL6XaqC5G B+VThplxbizoDcfjcmntD+vV/4yBmnYRdi/pmXBlr1MCGv0jKhscJGkDORZuJcVVo8Ke xQu3NZoEzl3oi86vuXGpy2mS2AyVWEG0wJYSb4FUQ4ilYJ9przoAiKNEMYaqhrPaDJeX eX23268NSV1k+AJxs9s4dlCxLMJKcnfs+DcIJA/dx0S3GBt6RxLU+U7d5n0ZFTe67ZKh z/g3+1CkfoVXz5XLJyHgDhdsZVF/3PmI6xWChdRkB2o8sbZBnye57M6rQg+W8aGgP3C5 XHWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jyv46wHrohyjxRVTV7juENiF484l/IXY21r1YB8awFg=; b=dYTWqzlC3HuU6jXPAticz1F/xrJ4yEyb1q8YhuCiTJAlDZiH7DlqBtigJgXm3lr1c4 QKTbT0IyRjZ3zmjS6q+kGu/hLBBKXfAvnUIkzdn7qmQft+zy8URT6Q8k1M6iOu6dwSwD 7Y2qgqf5NGblnX0v6iAUFys/uGsaXFDkJ7Nh7lfhphxFvrGnpeQEyVn6gBA0rfmUC3Y8 Rl5Il+HKHNJJlOOKgiR82WTxbECab2aloBAwgI5oPkctpH47ByU6M4S8YnHGLVsDjFo8 DkvHD5XwKMDrx8sNXSyYq1+L+xSHe7w322nXkH65PkjxTpCpxlmaBe6ofVrnvHKdxo2l hsow== X-Gm-Message-State: ACrzQf1Ly2RKT5/UkKqvnZtVj/5auMoHDD565jopCPOuJ64yvHZeQOFA F91jdytRHyMH0uG8/JMGoMLVVTDCXqB5KtVu X-Received: by 2002:a5d:58d3:0:b0:22c:e8e4:1461 with SMTP id o19-20020a5d58d3000000b0022ce8e41461mr9203920wrf.227.1665339250549; Sun, 09 Oct 2022 11:14:10 -0700 (PDT) Received: from hp-power-15.localdomain (mm-190-37-212-37.vitebsk.dynamic.pppoe.byfly.by. [37.212.37.190]) by smtp.gmail.com with ESMTPSA id k16-20020adfe8d0000000b0022cd0c8c696sm6860581wrn.103.2022.10.09.11.14.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Oct 2022 11:14:10 -0700 (PDT) From: Siarhei Volkau Cc: Siarhei Volkau , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Vinod Koul , Greg Kroah-Hartman , Paul Cercueil , Thomas Bogendoerfer , Linus Walleij , Jiri Slaby , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, linux-serial@vger.kernel.org, linux-mips@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH 0/8] MIPS: ingenic: Add support for the JZ4755 SoC Date: Sun, 9 Oct 2022 21:13:29 +0300 Message-Id: <20221009181338.2896660-1-lis8215@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add preliminary support for boards based on the JZ4755 SoC from Ingenic. It is a low-power SoC with a MIPS32r1 core running at ~432 MHz, and has no FPU. The JZ4755 SoC is supposed to be newer than the JZ4725B SoC, but its internals are very close to each other. Also the Ingenic's kernel source tree calls JZ4755 as JZ4750D and JZ4725B as JZ4750L, this might mean that JZ4725B is a pin to pin compatible replacement for older JZ4725 (both are LQFP128) but belongs to newer generation JZ475x. Who knows? I guess Ingenic released their SoCs in the following order: JZ4720 (MXU ?) JZ4725 (MXU ?) JZ4730 (MXU ?) JZ4740 (MXU1 r1) JZ4750 (MXU1 r2) JZ4755 (MXU1 r2) JZ4725b (MXU1 r2) JZ4760 ... So JZ4755 DT is reusing many JZ4725B drivers because their support in mainline kernel appears earlier. Siarhei Volkau (8): dt-bindings: ingenic: Add support for the JZ4755 SoC MIPS: ingenic: add new machine type MACH_JZ4755 dt-bindings: clock: Add Ingenic JZ4755 CGU header clk: Add Ingenic JZ4755 CGU driver pinctrl: ingenic: JZ4755 minor bug fixes dmaengine: JZ4780: Add support for the JZ4755. serial: 8250/ingenic: Add support for the JZ4750/JZ4755 SoCs MIPS: ingenic: Add support for the JZ4755 SoC .../bindings/clock/ingenic,cgu.yaml | 2 + .../devicetree/bindings/dma/ingenic,dma.yaml | 1 + .../bindings/serial/ingenic,uart.yaml | 4 + arch/mips/boot/dts/ingenic/jz4755.dtsi | 439 ++++++++++++++++++ arch/mips/ingenic/Kconfig | 5 + drivers/clk/ingenic/Kconfig | 10 + drivers/clk/ingenic/Makefile | 1 + drivers/clk/ingenic/jz4755-cgu.c | 350 ++++++++++++++ drivers/dma/dma-jz4780.c | 8 + drivers/pinctrl/pinctrl-ingenic.c | 4 +- drivers/tty/serial/8250/8250_ingenic.c | 39 +- .../dt-bindings/clock/ingenic,jz4755-cgu.h | 49 ++ 12 files changed, 905 insertions(+), 7 deletions(-) create mode 100644 arch/mips/boot/dts/ingenic/jz4755.dtsi create mode 100644 drivers/clk/ingenic/jz4755-cgu.c create mode 100644 include/dt-bindings/clock/ingenic,jz4755-cgu.h -- 2.36.1