Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751636AbbFAHrL (ORCPT ); Mon, 1 Jun 2015 03:47:11 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:35326 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068AbbFAHrC (ORCPT ); Mon, 1 Jun 2015 03:47:02 -0400 Message-ID: <556C0DF3.7050603@linaro.org> Date: Mon, 01 Jun 2015 08:46:59 +0100 From: Daniel Thompson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Maxime Coquelin , Mike Turquette , Stephen Boyd CC: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Kamil Lulko , Andreas Farber , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org Subject: Re: [PATCH v2 2/4] dt-bindings: Document the STM32F4 clock bindings References: <1432327273-6810-1-git-send-email-daniel.thompson@linaro.org> <1432972448-10332-1-git-send-email-daniel.thompson@linaro.org> <1432972448-10332-3-git-send-email-daniel.thompson@linaro.org> <55698104.2070205@gmail.com> In-Reply-To: <55698104.2070205@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1749 Lines: 65 On 30/05/15 10:21, Maxime Coquelin wrote: > HI Daniel, > > On 05/30/2015 09:54 AM, Daniel Thompson wrote: >> This adds documentation of device tree bindings for the clock related >> portions of the STM32 RCC block. >> >> Signed-off-by: Daniel Thompson >> --- >> .../devicetree/bindings/clock/st,stm32-rcc.txt | 65 >> ++++++++++++++++++++++ >> 1 file changed, 65 insertions(+) >> >> +Example: >> + >> + /* Gated clock, AHB1 bit 0 (GPIOA) */ >> + ... { >> + clocks = <&rcc 0 0> >> + }; >> + >> + /* Gated clock, AHB2 bit 4 (GPIOA) */ > s/GPIOA/CRYP/ Oops! Will fix. >> + ... { >> + clocks = <&rcc 0 36> >> + }; >> + >> +Specifying other clocks >> +======================= >> + >> +The primary index must be set to 1. >> + >> +The secondary index is bound with the following magic numbers: >> + >> + 0 SYSTICK >> + 1 FCLK > How do you plan to handle the SAI & I2S clocks? > By adding index 3? Pretty much. Tentatively I'm thinking of: 2 I2S clocks 3 SAI1_A clock 4 SAI1_B clock 5 LCD-TFT clock Note: Sort order is based on the vertical ordering in the clock tree diagram in the data sheet. Only reason not to include these in the bindings immediately is that I wanted to check how/if these clocks are gated. The clock tree diagram shows them having individual clock gates so before proposing them using magic numbers I wanted to double check if these values can be identified at gates clocks. Daniel. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/