From patchwork Wed Sep 20 11:14:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Gorski X-Patchwork-Id: 816150 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="tOppH06y"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xxxvv5lH0z9sP1 for ; Wed, 20 Sep 2017 21:14:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751554AbdITLOS (ORCPT ); Wed, 20 Sep 2017 07:14:18 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:37215 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751533AbdITLOR (ORCPT ); Wed, 20 Sep 2017 07:14:17 -0400 Received: by mail-wm0-f66.google.com with SMTP id f4so2101225wmh.4; Wed, 20 Sep 2017 04:14:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=z9cN2ATQ5QHTuTh0ekQ09K0GOyHXBfNdFBVEN+uUfXQ=; b=tOppH06yy/yVlgtf0LYrfLaeYIgfFpP6E4V1qk5HMmOypMJWtYJYpEm+wyqvwLDvFd qdhWwe+3BW5LXNpNeoKse6zMuD1moS+qXue4P2anMfgxQxsFyWBh6V1Kdn5k+Hc0baAA sWqZ9WpteL6rfTaxnm4dxQfv8Yqp2OoscS9zn0berBQ/3ErVOihIGO+dfL3UoNklIpkt 0wvdWjQH3bnHEErksAOXZfJkLVeol5QD1OMcZLAy5JTTEGRM5evyfDzi6GN1KEslgYix UrdB667AplZkmo5CmenGX0zYJZKMRzKaDcwVj7BfU0IHqfF3qHp9riJVjaSm8HHoZi1l z9vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=z9cN2ATQ5QHTuTh0ekQ09K0GOyHXBfNdFBVEN+uUfXQ=; b=JuvHWfDQUaGjnI2jT8iNRO7/oetRmXJCLF9fHomQzALx0+XX5bQHxr71xEWOi8v2vT 7umKp+I0Eo1Bc60EfsMVoPRk8UIh4akL/U+tSEDVsT7Ja9KNHzXUBofjb94StP8L45hU JuqiRrlRwUgCkwgmM8+mFe3WO/99olWZ7jMy8SIEoYTLQ1kmbLZ0QZ/KMOtBMuoVlfWM 3dxwo/xc7miaAwmdNxwag4mhO4Ry0qb5Sh9/i3XlY8QB3xHgvSdRks//Ih1bFC4TFYos lYj96WJ+OIiOjU3bdEs0sGpiVF/OpqNCrE68+sApTAYBZtjh/oE6mrdxZTGk8FzJAlzX 5+dA== X-Gm-Message-State: AHPjjUiZ9kEupJasQ+FzujdN+9Aerq37cxoja/QqARAwk/IwPf2YIlP8 4sSdr3622dfVRT1hVmg5d/k= X-Google-Smtp-Source: AOwi7QDseebG//AoIGPoMIWW/NSjxZXBnk2bSgEDSWp8VGk2CxI7TJ/sqCxZEgAf5jfFLYywE33nhw== X-Received: by 10.80.179.185 with SMTP id s54mr4356594edd.164.1505906055903; Wed, 20 Sep 2017 04:14:15 -0700 (PDT) Received: from localhost.localdomain ([2001:470:9e39::48e]) by smtp.gmail.com with ESMTPSA id s12sm884513edd.25.2017.09.20.04.14.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Sep 2017 04:14:15 -0700 (PDT) From: Jonas Gorski To: linux-mips@linux-mips.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org Cc: Greg Kroah-Hartman , Rob Herring , Mark Rutland , Ralf Baechle , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Kevin Cernekee , Russell King Subject: [PATCH V2 0/8] MIPS: BCM63XX: add and use clkdev lookup support Date: Wed, 20 Sep 2017 13:14:00 +0200 Message-Id: <20170920111408.29711-1-jonas.gorski@gmail.com> X-Mailer: git-send-email 2.13.2 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patchset adds support for clckdev lookup support to name input clocks in various drivers more closely to their functions, or simplify their usage. Since most of these patches touch arch/mips, it probably makes most sense to go through the MIPS tree. The HSSPI driver was already updated previously to support a "pll" input with ff18e1ef04e2 ("spi/bcm63xx-hsspi: allow providing clock rate through a second clock"), so there is no need to touch it. This patch series is part of an effort to modernize BCM63XX and clean up its drivers to eventually make them usable with BMIPS and device tree. Changes V1 -> V2: * Drop the bcm63xx_enet patch, it will be sent again once the clkdev lookup is actually applied. * Added a patch to fix refcounting in the secondary switch clocks. * Slightly reordered patches to be ordered thematically. * Added collected Acks / Reviews to their respective patches. Due to none of the patches having changed between V1 and V2 I did not add individual changelogs. These will be added if the code or commit log text changes. Jonas Gorski (8): MIPS: BCM63XX: add clkdev lookup support MIPS: BCM63XX: provide periph clock as refclk for uart tty/bcm63xx_uart: use refclk for the expected clock name tty/bcm63xx_uart: allow naming clock in device tree MIPS: BMIPS: name the refclk clock for uart MIPS: BCM63XX: move the HSSPI PLL HZ into its own clock MIPS: BCM63XX: provide enet clocks as "enet" to the ethernet devices MIPS: BCM63XX: split out swpkt_sar/usb clocks .../bindings/serial/brcm,bcm6345-uart.txt | 6 + arch/mips/Kconfig | 1 + arch/mips/bcm63xx/clk.c | 242 +++++++++++++++++---- arch/mips/boot/dts/brcm/bcm3368.dtsi | 2 + arch/mips/boot/dts/brcm/bcm63268.dtsi | 2 + arch/mips/boot/dts/brcm/bcm6328.dtsi | 2 + arch/mips/boot/dts/brcm/bcm6358.dtsi | 2 + arch/mips/boot/dts/brcm/bcm6362.dtsi | 2 + arch/mips/boot/dts/brcm/bcm6368.dtsi | 2 + drivers/tty/serial/bcm63xx_uart.c | 6 +- 10 files changed, 218 insertions(+), 49 deletions(-)