Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1138828rwi; Mon, 31 Oct 2022 11:52:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5iySYV/TAttAGfQ+bf9BKhRVhR6jaxycrYtWv0lC0FvgKBTzqQtyzAezhry0wZygaqkWP9 X-Received: by 2002:a17:902:ce11:b0:172:6f2c:a910 with SMTP id k17-20020a170902ce1100b001726f2ca910mr16088560plg.156.1667242349095; Mon, 31 Oct 2022 11:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667242349; cv=none; d=google.com; s=arc-20160816; b=okVff82zN5n7/RvvISNhn27Ypfl5eoLY90EAjjU0i6UNJzS0U2Yw9Oy9sNfygNXJRW egiP+BKF3EKwbw13385JQfkEvj0r59slxSekFosYnxzHSvzL/q0ZgyQJjNDKlpiNfl7G R1GRVbhj+3BEnz/zQWGbiW/YpTH3r2ufDSLJwmvFrIzLPmd0O1KfasDYpXPXqIjUyfQO muSRNqgC8Y8+gKqwr/Plrh/BZyxW8fEw+Tp5jyyJgLLiqQ7VUFIu9goQUyN04DduNn8F CI/HOPpi2oW3qe1QW1fOdC4mSqcbQ7hgFqlg8SOgSnUlvF7fdYJD/P9D58E8XpYTzK9z aYqA== 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=zMgETaAE4cSZ0k4hJhUAcCXN4b9qeptJfCrItoYYMYI=; b=a5D4NobEy02rg3XrEn+nER0UlMMRKP/jpnIt+ozitiEutUIo77V2chaZfQKshaxzls jFLcYgnHdTWItOpueZgpRq5mpzGHo9dozp0l4YyCSUvP2Ac+krUYpQB5FQ1wfWMNsXkS OE5HdvtjIEtqKOjgvfTPPkfziSy3nihyxhTEpKFv7u6f2tIYj5alpJlG2Q9nqZr+cIBE QmIcaaBfSWYVApsKKTHkR6zQnjnMwBr4vkVs9xZjyaobqJqcqlMjqmydw9jrOqagjlB/ 4iEL6Jjw71ISsxKY+QTdsTnigSRIyXjjuD/N5xAKdQBG6mGyzp367O7IMKtQqKv/eIWl /tJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=gu0KikZe; 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 f37-20020a635125000000b0045f74df51dfsi10236154pgb.536.2022.10.31.11.52.15; Mon, 31 Oct 2022 11:52:29 -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=gu0KikZe; 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 S229827AbiJaSkt (ORCPT + 98 others); Mon, 31 Oct 2022 14:40:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbiJaSks (ORCPT ); Mon, 31 Oct 2022 14:40:48 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6BF0DF77; Mon, 31 Oct 2022 11:40:46 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so2038961wmb.2; Mon, 31 Oct 2022 11:40:46 -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=zMgETaAE4cSZ0k4hJhUAcCXN4b9qeptJfCrItoYYMYI=; b=gu0KikZeI0bIt0XggQjkFqcYoKXY8TXoey1wf6kgwmriaGpLk68bf8r4BJNdJGSw9d a/d5mHoTYv5vGK1vKN6sgbY/eRdxVuHrwq9gIzWO2Gt7ochovMmMxhBLdFHpeyEQhOGI AG0hBNxeclmPenIBhCjh48FVT3jBZVCp8y112ZL/G6i7+dLzm/IJtnUXPcd6MUnzgl0Y 2fZK35rSyVip1kRU2zrZ5Efl2vyA9GreVtaigMXDQ1na98/m3Debqnnn7evrj0SDLoMr MFTNsUVmvmFVw3JNHDNiT2+vCbE7IOyin43/yam5p4CRiI58qWxTgeB8WoZ18xG8eRBK 5UNg== 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=zMgETaAE4cSZ0k4hJhUAcCXN4b9qeptJfCrItoYYMYI=; b=1tvFfbkR98woGFkVl99vYXr1Ndslz8PmQX8dybbVZbKZn8xPei+MZWpViFjZkTOk+M A0+lHuYeR/4dbYVXGVsn6WpSD6O1IeQUhy+l0FDgpdGRAVUUhLXZhjGRByIIQm7JLP/a aw3A2vQl/AJhmU5XdrmW0NJairRTfcSSC7JDcQpesDMG0BLNF2WAmneJ3UJmptFRupi5 O9Fm9Izd7sGO0bDLAqrTEbBJzdsnTFmG9/wX4lzXCKXQrsgmjsmjtboKIQV8v7wuG+7U gvQXcMJnJz5ptp5KnQM0Y4gjDRsyV1xyBll44cJn2/58XoqDhAOItA0vhZLKd93k/6xN B/mA== X-Gm-Message-State: ACrzQf1g3uQ/H4D33NavtjwsaubuTq+nf3k/zlACyucAbraRZb2dz3jt 0ietxuDcyBUW9c6L7vdOQHs= X-Received: by 2002:a05:600c:21c9:b0:3cf:7833:2940 with SMTP id x9-20020a05600c21c900b003cf78332940mr2003113wmj.35.1667241645352; Mon, 31 Oct 2022 11:40:45 -0700 (PDT) Received: from hp-power-15.localdomain (mm-167-8-212-37.vitebsk.dynamic.pppoe.byfly.by. [37.212.8.167]) by smtp.gmail.com with ESMTPSA id k18-20020a05600c081200b003b4935f04a4sm8525887wmp.5.2022.10.31.11.40.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 11:40:44 -0700 (PDT) From: Siarhei Volkau Cc: Siarhei Volkau , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Paul Cercueil , Jiri Slaby , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v4 0/2] serial: 8250/ingenic: Add support for the JZ4750 Date: Mon, 31 Oct 2022 21:40:38 +0300 Message-Id: <20221031184041.1338129-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 JZ4750 and JZ4755 have an extra clock divisor in CGU called CPCCR.ECS. It needs to be handled properly in the early console driver. v4: - move duplicate code - apply Paul's description for the quirk & commit msg v3: - fix build errors v2: - serial moved into separate patchset - code refactored to avoid peek in CGU register - Krzysztof's ack picked v1: - big patchset for the whole JZ4755 support Siarhei Volkau (2): dt-bindings: serial: ingenic: Add support for the JZ4750/55 SoCs serial: 8250/ingenic: Add support for the JZ4750/JZ4755 .../bindings/serial/ingenic,uart.yaml | 4 +++ drivers/tty/serial/8250/8250_ingenic.c | 32 +++++++++++++++++-- 2 files changed, 33 insertions(+), 3 deletions(-) -- 2.36.1