* [PATCH v3 2/5] clk: samsung: Add dt bindings for Exynos4412 ISP clock controller [not found] ` <20171011092515.1698-1-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2017-10-11 9:25 ` Marek Szyprowski 2017-10-11 17:05 ` Krzysztof Kozlowski [not found] ` <20171011092515.1698-3-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 0 siblings, 2 replies; 6+ messages in thread From: Marek Szyprowski @ 2017-10-11 9:25 UTC (permalink / raw) To: linux-clk-u79uwXL29TY76Z2rM5mHXA, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA Cc: Marek Szyprowski, Sylwester Nawrocki, Chanwoo Choi, Inki Dae, Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz, devicetree-u79uwXL29TY76Z2rM5mHXA Some registers for the Exynos 4412 ISP (Camera subsystem) clocks are located in the ISP power domain. Because those registers are also located in a different memory region than the main clock controller, support for them can be provided by a separate clock controller. Signed-off-by: Marek Szyprowski <m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> --- .../devicetree/bindings/clock/exynos4-clock.txt | 43 ++++++++++++++++++++++ include/dt-bindings/clock/exynos4.h | 35 ++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/exynos4-clock.txt b/Documentation/devicetree/bindings/clock/exynos4-clock.txt index f5a5b19ed3b2..bc61c952cb0b 100644 --- a/Documentation/devicetree/bindings/clock/exynos4-clock.txt +++ b/Documentation/devicetree/bindings/clock/exynos4-clock.txt @@ -41,3 +41,46 @@ Example 2: UART controller node that consumes the clock generated by the clock clocks = <&clock CLK_UART2>, <&clock CLK_SCLK_UART2>; clock-names = "uart", "clk_uart_baud0"; }; + +Exynos4412 SoC contains some additional clocks for FIMC-ISP (Camera ISP) +subsystem. Registers for those clocks are located in the ISP power domain. +Because those registers are also located in a different memory region than +the main clock controller, a separate clock controller has to be defined for +handling them. + +Required Properties: + +- compatible: should be "samsung,exynos4412-isp-clock". + +- reg: physical base address of the ISP clock controller and length of memory + mapped region. + +- #clock-cells: should be 1. + +- clocks: list of the clock controller input clock identifiers, + from common clock bindings, should point to CLK_ACLK200 and + CLK_ACLK400_MCUISP clocks from the main clock controller. + +- clock-names: list of the clock controller input clock names, + as described in clock-bindings.txt, should be "aclk200" and + "aclk400_mcuisp". + +- power-domains: a phandle to ISP power domain node as described by + generic PM domain bindings. + +Example 3: The clock controllers bindings for Exynos4412 SoCs. + + clock: clock-controller@10030000 { + compatible = "samsung,exynos4412-clock"; + reg = <0x10030000 0x18000>; + #clock-cells = <1>; + }; + + isp_clock: clock-controller@10048000 { + compatible = "samsung,exynos4412-isp-clock"; + reg = <0x10048000 0x1000>; + #clock-cells = <1>; + power-domains = <&pd_isp>; + clocks = <&clock CLK_ACLK200>, <&clock CLK_ACLK400_MCUISP>; + clock-names = "aclk200", "aclk400_mcuisp"; + }; diff --git a/include/dt-bindings/clock/exynos4.h b/include/dt-bindings/clock/exynos4.h index c40111f36d5e..e9f9d400c322 100644 --- a/include/dt-bindings/clock/exynos4.h +++ b/include/dt-bindings/clock/exynos4.h @@ -272,4 +272,39 @@ /* must be greater than maximal clock id */ #define CLK_NR_CLKS 461 +/* Exynos4x12 ISP clocks */ +#define CLK_ISP_FIMC_ISP 1 +#define CLK_ISP_FIMC_DRC 2 +#define CLK_ISP_FIMC_FD 3 +#define CLK_ISP_FIMC_LITE0 4 +#define CLK_ISP_FIMC_LITE1 5 +#define CLK_ISP_MCUISP 6 +#define CLK_ISP_GICISP 7 +#define CLK_ISP_SMMU_ISP 8 +#define CLK_ISP_SMMU_DRC 9 +#define CLK_ISP_SMMU_FD 10 +#define CLK_ISP_SMMU_LITE0 11 +#define CLK_ISP_SMMU_LITE1 12 +#define CLK_ISP_PPMUISPMX 13 +#define CLK_ISP_PPMUISPX 14 +#define CLK_ISP_MCUCTL_ISP 15 +#define CLK_ISP_MPWM_ISP 16 +#define CLK_ISP_I2C0_ISP 17 +#define CLK_ISP_I2C1_ISP 18 +#define CLK_ISP_MTCADC_ISP 19 +#define CLK_ISP_PWM_ISP 20 +#define CLK_ISP_WDT_ISP 21 +#define CLK_ISP_UART_ISP 22 +#define CLK_ISP_ASYNCAXIM 23 +#define CLK_ISP_SMMU_ISPCX 24 +#define CLK_ISP_SPI0_ISP 25 +#define CLK_ISP_SPI1_ISP 26 + +#define CLK_ISP_DIV_ISP0 27 +#define CLK_ISP_DIV_ISP1 28 +#define CLK_ISP_DIV_MCUISP0 29 +#define CLK_ISP_DIV_MCUISP1 30 + +#define CLK_NR_ISP_CLKS 31 + #endif /* _DT_BINDINGS_CLOCK_EXYNOS_4_H */ -- 2.14.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v3 2/5] clk: samsung: Add dt bindings for Exynos4412 ISP clock controller 2017-10-11 9:25 ` [PATCH v3 2/5] clk: samsung: Add dt bindings for Exynos4412 ISP clock controller Marek Szyprowski @ 2017-10-11 17:05 ` Krzysztof Kozlowski 2017-10-12 6:47 ` Marek Szyprowski [not found] ` <20171011092515.1698-3-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 1 sibling, 1 reply; 6+ messages in thread From: Krzysztof Kozlowski @ 2017-10-11 17:05 UTC (permalink / raw) To: Marek Szyprowski Cc: linux-clk, linux-samsung-soc, Sylwester Nawrocki, Chanwoo Choi, Inki Dae, Bartlomiej Zolnierkiewicz, devicetree On Wed, Oct 11, 2017 at 11:25:12AM +0200, Marek Szyprowski wrote: > Some registers for the Exynos 4412 ISP (Camera subsystem) clocks are > located in the ISP power domain. Because those registers are also > located in a different memory region than the main clock controller, > support for them can be provided by a separate clock controller. > > Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> > --- > .../devicetree/bindings/clock/exynos4-clock.txt | 43 ++++++++++++++++++++++ > include/dt-bindings/clock/exynos4.h | 35 ++++++++++++++++++ > 2 files changed, 78 insertions(+) > > diff --git a/Documentation/devicetree/bindings/clock/exynos4-clock.txt b/Documentation/devicetree/bindings/clock/exynos4-clock.txt > index f5a5b19ed3b2..bc61c952cb0b 100644 > --- a/Documentation/devicetree/bindings/clock/exynos4-clock.txt > +++ b/Documentation/devicetree/bindings/clock/exynos4-clock.txt > @@ -41,3 +41,46 @@ Example 2: UART controller node that consumes the clock generated by the clock > clocks = <&clock CLK_UART2>, <&clock CLK_SCLK_UART2>; > clock-names = "uart", "clk_uart_baud0"; > }; > + > +Exynos4412 SoC contains some additional clocks for FIMC-ISP (Camera ISP) > +subsystem. Registers for those clocks are located in the ISP power domain. > +Because those registers are also located in a different memory region than > +the main clock controller, a separate clock controller has to be defined for > +handling them. > + > +Required Properties: > + > +- compatible: should be "samsung,exynos4412-isp-clock". > + > +- reg: physical base address of the ISP clock controller and length of memory > + mapped region. > + > +- #clock-cells: should be 1. > + > +- clocks: list of the clock controller input clock identifiers, > + from common clock bindings, should point to CLK_ACLK200 and > + CLK_ACLK400_MCUISP clocks from the main clock controller. > + > +- clock-names: list of the clock controller input clock names, > + as described in clock-bindings.txt, should be "aclk200" and > + "aclk400_mcuisp". > + > +- power-domains: a phandle to ISP power domain node as described by > + generic PM domain bindings. > + > +Example 3: The clock controllers bindings for Exynos4412 SoCs. > + > + clock: clock-controller@10030000 { > + compatible = "samsung,exynos4412-clock"; > + reg = <0x10030000 0x18000>; > + #clock-cells = <1>; > + }; > + > + isp_clock: clock-controller@10048000 { > + compatible = "samsung,exynos4412-isp-clock"; > + reg = <0x10048000 0x1000>; > + #clock-cells = <1>; > + power-domains = <&pd_isp>; > + clocks = <&clock CLK_ACLK200>, <&clock CLK_ACLK400_MCUISP>; > + clock-names = "aclk200", "aclk400_mcuisp"; > + }; > diff --git a/include/dt-bindings/clock/exynos4.h b/include/dt-bindings/clock/exynos4.h > index c40111f36d5e..e9f9d400c322 100644 > --- a/include/dt-bindings/clock/exynos4.h > +++ b/include/dt-bindings/clock/exynos4.h > @@ -272,4 +272,39 @@ > /* must be greater than maximal clock id */ > #define CLK_NR_CLKS 461 > > +/* Exynos4x12 ISP clocks */ Shouldn't the clock IDs go with driver changes? I think only the Documentation/ part should be separate. Best regards, Krzysztof > +#define CLK_ISP_FIMC_ISP 1 > +#define CLK_ISP_FIMC_DRC 2 > +#define CLK_ISP_FIMC_FD 3 > +#define CLK_ISP_FIMC_LITE0 4 > +#define CLK_ISP_FIMC_LITE1 5 > +#define CLK_ISP_MCUISP 6 > +#define CLK_ISP_GICISP 7 > +#define CLK_ISP_SMMU_ISP 8 > +#define CLK_ISP_SMMU_DRC 9 > +#define CLK_ISP_SMMU_FD 10 > +#define CLK_ISP_SMMU_LITE0 11 > +#define CLK_ISP_SMMU_LITE1 12 > +#define CLK_ISP_PPMUISPMX 13 > +#define CLK_ISP_PPMUISPX 14 > +#define CLK_ISP_MCUCTL_ISP 15 > +#define CLK_ISP_MPWM_ISP 16 > +#define CLK_ISP_I2C0_ISP 17 > +#define CLK_ISP_I2C1_ISP 18 > +#define CLK_ISP_MTCADC_ISP 19 > +#define CLK_ISP_PWM_ISP 20 > +#define CLK_ISP_WDT_ISP 21 > +#define CLK_ISP_UART_ISP 22 > +#define CLK_ISP_ASYNCAXIM 23 > +#define CLK_ISP_SMMU_ISPCX 24 > +#define CLK_ISP_SPI0_ISP 25 > +#define CLK_ISP_SPI1_ISP 26 > + > +#define CLK_ISP_DIV_ISP0 27 > +#define CLK_ISP_DIV_ISP1 28 > +#define CLK_ISP_DIV_MCUISP0 29 > +#define CLK_ISP_DIV_MCUISP1 30 > + > +#define CLK_NR_ISP_CLKS 31 > + > #endif /* _DT_BINDINGS_CLOCK_EXYNOS_4_H */ > -- > 2.14.2 > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 2/5] clk: samsung: Add dt bindings for Exynos4412 ISP clock controller 2017-10-11 17:05 ` Krzysztof Kozlowski @ 2017-10-12 6:47 ` Marek Szyprowski 2017-10-12 7:08 ` Krzysztof Kozlowski 0 siblings, 1 reply; 6+ messages in thread From: Marek Szyprowski @ 2017-10-12 6:47 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: linux-clk, linux-samsung-soc, Sylwester Nawrocki, Chanwoo Choi, Inki Dae, Bartlomiej Zolnierkiewicz, devicetree Hi Krzysztof, On 2017-10-11 19:05, Krzysztof Kozlowski wrote: > On Wed, Oct 11, 2017 at 11:25:12AM +0200, Marek Szyprowski wrote: >> Some registers for the Exynos 4412 ISP (Camera subsystem) clocks are >> located in the ISP power domain. Because those registers are also >> located in a different memory region than the main clock controller, >> support for them can be provided by a separate clock controller. >> >> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> >> --- >> .../devicetree/bindings/clock/exynos4-clock.txt | 43 ++++++++++++++++++++++ >> include/dt-bindings/clock/exynos4.h | 35 ++++++++++++++++++ >> 2 files changed, 78 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/clock/exynos4-clock.txt b/Documentation/devicetree/bindings/clock/exynos4-clock.txt >> index f5a5b19ed3b2..bc61c952cb0b 100644 >> --- a/Documentation/devicetree/bindings/clock/exynos4-clock.txt >> +++ b/Documentation/devicetree/bindings/clock/exynos4-clock.txt >> @@ -41,3 +41,46 @@ Example 2: UART controller node that consumes the clock generated by the clock >> clocks = <&clock CLK_UART2>, <&clock CLK_SCLK_UART2>; >> clock-names = "uart", "clk_uart_baud0"; >> }; >> + >> +Exynos4412 SoC contains some additional clocks for FIMC-ISP (Camera ISP) >> +subsystem. Registers for those clocks are located in the ISP power domain. >> +Because those registers are also located in a different memory region than >> +the main clock controller, a separate clock controller has to be defined for >> +handling them. >> + >> +Required Properties: >> + >> +- compatible: should be "samsung,exynos4412-isp-clock". >> + >> +- reg: physical base address of the ISP clock controller and length of memory >> + mapped region. >> + >> +- #clock-cells: should be 1. >> + >> +- clocks: list of the clock controller input clock identifiers, >> + from common clock bindings, should point to CLK_ACLK200 and >> + CLK_ACLK400_MCUISP clocks from the main clock controller. >> + >> +- clock-names: list of the clock controller input clock names, >> + as described in clock-bindings.txt, should be "aclk200" and >> + "aclk400_mcuisp". >> + >> +- power-domains: a phandle to ISP power domain node as described by >> + generic PM domain bindings. >> + >> +Example 3: The clock controllers bindings for Exynos4412 SoCs. >> + >> + clock: clock-controller@10030000 { >> + compatible = "samsung,exynos4412-clock"; >> + reg = <0x10030000 0x18000>; >> + #clock-cells = <1>; >> + }; >> + >> + isp_clock: clock-controller@10048000 { >> + compatible = "samsung,exynos4412-isp-clock"; >> + reg = <0x10048000 0x1000>; >> + #clock-cells = <1>; >> + power-domains = <&pd_isp>; >> + clocks = <&clock CLK_ACLK200>, <&clock CLK_ACLK400_MCUISP>; >> + clock-names = "aclk200", "aclk400_mcuisp"; >> + }; >> diff --git a/include/dt-bindings/clock/exynos4.h b/include/dt-bindings/clock/exynos4.h >> index c40111f36d5e..e9f9d400c322 100644 >> --- a/include/dt-bindings/clock/exynos4.h >> +++ b/include/dt-bindings/clock/exynos4.h >> @@ -272,4 +272,39 @@ >> /* must be greater than maximal clock id */ >> #define CLK_NR_CLKS 461 >> >> +/* Exynos4x12 ISP clocks */ > Shouldn't the clock IDs go with driver changes? I think only the > Documentation/ part should be separate. Well, Rob asked to move dt bindings and dt include to the separate patch. I see no value-added by such split, as both dt and driver patches will be processed together anyway, but I didn't want to have this patchset blocked by this issue. > ... Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v3 2/5] clk: samsung: Add dt bindings for Exynos4412 ISP clock controller 2017-10-12 6:47 ` Marek Szyprowski @ 2017-10-12 7:08 ` Krzysztof Kozlowski [not found] ` <CAJKOXPe332r+2gAeiGAkzOVrLZ-ygDpneNG134GmY-VZ6fUEGA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Krzysztof Kozlowski @ 2017-10-12 7:08 UTC (permalink / raw) To: Marek Szyprowski Cc: linux-clk, linux-samsung-soc, Sylwester Nawrocki, Chanwoo Choi, Inki Dae, Bartlomiej Zolnierkiewicz, devicetree On Thu, Oct 12, 2017 at 8:47 AM, Marek Szyprowski <m.szyprowski@samsung.com> wrote: > Hi Krzysztof, > > > On 2017-10-11 19:05, Krzysztof Kozlowski wrote: >> >> On Wed, Oct 11, 2017 at 11:25:12AM +0200, Marek Szyprowski wrote: >>> >>> Some registers for the Exynos 4412 ISP (Camera subsystem) clocks are >>> located in the ISP power domain. Because those registers are also >>> located in a different memory region than the main clock controller, >>> support for them can be provided by a separate clock controller. >>> >>> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> >>> --- >>> .../devicetree/bindings/clock/exynos4-clock.txt | 43 >>> ++++++++++++++++++++++ >>> include/dt-bindings/clock/exynos4.h | 35 >>> ++++++++++++++++++ >>> 2 files changed, 78 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/clock/exynos4-clock.txt >>> b/Documentation/devicetree/bindings/clock/exynos4-clock.txt >>> index f5a5b19ed3b2..bc61c952cb0b 100644 >>> --- a/Documentation/devicetree/bindings/clock/exynos4-clock.txt >>> +++ b/Documentation/devicetree/bindings/clock/exynos4-clock.txt >>> @@ -41,3 +41,46 @@ Example 2: UART controller node that consumes the >>> clock generated by the clock >>> clocks = <&clock CLK_UART2>, <&clock CLK_SCLK_UART2>; >>> clock-names = "uart", "clk_uart_baud0"; >>> }; >>> + >>> +Exynos4412 SoC contains some additional clocks for FIMC-ISP (Camera ISP) >>> +subsystem. Registers for those clocks are located in the ISP power >>> domain. >>> +Because those registers are also located in a different memory region >>> than >>> +the main clock controller, a separate clock controller has to be defined >>> for >>> +handling them. >>> + >>> +Required Properties: >>> + >>> +- compatible: should be "samsung,exynos4412-isp-clock". >>> + >>> +- reg: physical base address of the ISP clock controller and length of >>> memory >>> + mapped region. >>> + >>> +- #clock-cells: should be 1. >>> + >>> +- clocks: list of the clock controller input clock identifiers, >>> + from common clock bindings, should point to CLK_ACLK200 and >>> + CLK_ACLK400_MCUISP clocks from the main clock controller. >>> + >>> +- clock-names: list of the clock controller input clock names, >>> + as described in clock-bindings.txt, should be "aclk200" and >>> + "aclk400_mcuisp". >>> + >>> +- power-domains: a phandle to ISP power domain node as described by >>> + generic PM domain bindings. >>> + >>> +Example 3: The clock controllers bindings for Exynos4412 SoCs. >>> + >>> + clock: clock-controller@10030000 { >>> + compatible = "samsung,exynos4412-clock"; >>> + reg = <0x10030000 0x18000>; >>> + #clock-cells = <1>; >>> + }; >>> + >>> + isp_clock: clock-controller@10048000 { >>> + compatible = "samsung,exynos4412-isp-clock"; >>> + reg = <0x10048000 0x1000>; >>> + #clock-cells = <1>; >>> + power-domains = <&pd_isp>; >>> + clocks = <&clock CLK_ACLK200>, <&clock >>> CLK_ACLK400_MCUISP>; >>> + clock-names = "aclk200", "aclk400_mcuisp"; >>> + }; >>> diff --git a/include/dt-bindings/clock/exynos4.h >>> b/include/dt-bindings/clock/exynos4.h >>> index c40111f36d5e..e9f9d400c322 100644 >>> --- a/include/dt-bindings/clock/exynos4.h >>> +++ b/include/dt-bindings/clock/exynos4.h >>> @@ -272,4 +272,39 @@ >>> /* must be greater than maximal clock id */ >>> #define CLK_NR_CLKS 461 >>> +/* Exynos4x12 ISP clocks */ >> >> Shouldn't the clock IDs go with driver changes? I think only the >> Documentation/ part should be separate. > > > Well, Rob asked to move dt bindings and dt include to the separate patch. > > I see no value-added by such split, as both dt and driver patches will be > processed together anyway, but I didn't want to have this patchset blocked > by this issue. I understand... actually I think it does not matter where the clock IDs would go. From my perspective both approaches look fine so in any case: Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Best regards, Krzysztof ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAJKOXPe332r+2gAeiGAkzOVrLZ-ygDpneNG134GmY-VZ6fUEGA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH v3 2/5] clk: samsung: Add dt bindings for Exynos4412 ISP clock controller [not found] ` <CAJKOXPe332r+2gAeiGAkzOVrLZ-ygDpneNG134GmY-VZ6fUEGA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2017-10-13 22:02 ` Rob Herring 0 siblings, 0 replies; 6+ messages in thread From: Rob Herring @ 2017-10-13 22:02 UTC (permalink / raw) To: Krzysztof Kozlowski Cc: Marek Szyprowski, linux-clk-u79uwXL29TY76Z2rM5mHXA, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, Sylwester Nawrocki, Chanwoo Choi, Inki Dae, Bartlomiej Zolnierkiewicz, devicetree-u79uwXL29TY76Z2rM5mHXA On Thu, Oct 12, 2017 at 09:08:32AM +0200, Krzysztof Kozlowski wrote: > On Thu, Oct 12, 2017 at 8:47 AM, Marek Szyprowski > <m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> wrote: > > Hi Krzysztof, > > > > > > On 2017-10-11 19:05, Krzysztof Kozlowski wrote: > >> > >> On Wed, Oct 11, 2017 at 11:25:12AM +0200, Marek Szyprowski wrote: > >>> > >>> Some registers for the Exynos 4412 ISP (Camera subsystem) clocks are > >>> located in the ISP power domain. Because those registers are also > >>> located in a different memory region than the main clock controller, > >>> support for them can be provided by a separate clock controller. > >>> > >>> Signed-off-by: Marek Szyprowski <m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > >>> --- > >>> .../devicetree/bindings/clock/exynos4-clock.txt | 43 > >>> ++++++++++++++++++++++ > >>> include/dt-bindings/clock/exynos4.h | 35 > >>> ++++++++++++++++++ > >>> 2 files changed, 78 insertions(+) > >>> > >>> diff --git a/Documentation/devicetree/bindings/clock/exynos4-clock.txt > >>> b/Documentation/devicetree/bindings/clock/exynos4-clock.txt > >>> index f5a5b19ed3b2..bc61c952cb0b 100644 > >>> --- a/Documentation/devicetree/bindings/clock/exynos4-clock.txt > >>> +++ b/Documentation/devicetree/bindings/clock/exynos4-clock.txt > >>> @@ -41,3 +41,46 @@ Example 2: UART controller node that consumes the > >>> clock generated by the clock > >>> clocks = <&clock CLK_UART2>, <&clock CLK_SCLK_UART2>; > >>> clock-names = "uart", "clk_uart_baud0"; > >>> }; > >>> + > >>> +Exynos4412 SoC contains some additional clocks for FIMC-ISP (Camera ISP) > >>> +subsystem. Registers for those clocks are located in the ISP power > >>> domain. > >>> +Because those registers are also located in a different memory region > >>> than > >>> +the main clock controller, a separate clock controller has to be defined > >>> for > >>> +handling them. > >>> + > >>> +Required Properties: > >>> + > >>> +- compatible: should be "samsung,exynos4412-isp-clock". > >>> + > >>> +- reg: physical base address of the ISP clock controller and length of > >>> memory > >>> + mapped region. > >>> + > >>> +- #clock-cells: should be 1. > >>> + > >>> +- clocks: list of the clock controller input clock identifiers, > >>> + from common clock bindings, should point to CLK_ACLK200 and > >>> + CLK_ACLK400_MCUISP clocks from the main clock controller. > >>> + > >>> +- clock-names: list of the clock controller input clock names, > >>> + as described in clock-bindings.txt, should be "aclk200" and > >>> + "aclk400_mcuisp". > >>> + > >>> +- power-domains: a phandle to ISP power domain node as described by > >>> + generic PM domain bindings. > >>> + > >>> +Example 3: The clock controllers bindings for Exynos4412 SoCs. > >>> + > >>> + clock: clock-controller@10030000 { > >>> + compatible = "samsung,exynos4412-clock"; > >>> + reg = <0x10030000 0x18000>; > >>> + #clock-cells = <1>; > >>> + }; > >>> + > >>> + isp_clock: clock-controller@10048000 { > >>> + compatible = "samsung,exynos4412-isp-clock"; > >>> + reg = <0x10048000 0x1000>; > >>> + #clock-cells = <1>; > >>> + power-domains = <&pd_isp>; > >>> + clocks = <&clock CLK_ACLK200>, <&clock > >>> CLK_ACLK400_MCUISP>; > >>> + clock-names = "aclk200", "aclk400_mcuisp"; > >>> + }; > >>> diff --git a/include/dt-bindings/clock/exynos4.h > >>> b/include/dt-bindings/clock/exynos4.h > >>> index c40111f36d5e..e9f9d400c322 100644 > >>> --- a/include/dt-bindings/clock/exynos4.h > >>> +++ b/include/dt-bindings/clock/exynos4.h > >>> @@ -272,4 +272,39 @@ > >>> /* must be greater than maximal clock id */ > >>> #define CLK_NR_CLKS 461 > >>> +/* Exynos4x12 ISP clocks */ > >> > >> Shouldn't the clock IDs go with driver changes? I think only the > >> Documentation/ part should be separate. > > > > > > Well, Rob asked to move dt bindings and dt include to the separate patch. > > > > I see no value-added by such split, as both dt and driver patches will be > > processed together anyway, but I didn't want to have this patchset blocked > > by this issue. First, I mainly review the bindings and not the drivers and splitting them more accurately captures what was reviewed. Second, for the DT only tree generated from the kernel using git-filter-branch[1], the commit history will be more logical if it is keeping and dropping entire commits rather than 1/2 a commit. > I understand... actually I think it does not matter where the clock > IDs would go. From my perspective both approaches look fine so in any > case: > Acked-by: Krzysztof Kozlowski <krzk-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> The IDs are part of the ABI which is defined by the binding doc. Rob [1] https://git.kernel.org/pub/scm/linux/kernel/git/devicetree/devicetree-rebasing.git/ -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <20171011092515.1698-3-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH v3 2/5] clk: samsung: Add dt bindings for Exynos4412 ISP clock controller [not found] ` <20171011092515.1698-3-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> @ 2017-10-13 22:03 ` Rob Herring 0 siblings, 0 replies; 6+ messages in thread From: Rob Herring @ 2017-10-13 22:03 UTC (permalink / raw) To: Marek Szyprowski Cc: linux-clk-u79uwXL29TY76Z2rM5mHXA, linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA, Sylwester Nawrocki, Chanwoo Choi, Inki Dae, Krzysztof Kozlowski, Bartlomiej Zolnierkiewicz, devicetree-u79uwXL29TY76Z2rM5mHXA On Wed, Oct 11, 2017 at 11:25:12AM +0200, Marek Szyprowski wrote: > Some registers for the Exynos 4412 ISP (Camera subsystem) clocks are > located in the ISP power domain. Because those registers are also > located in a different memory region than the main clock controller, > support for them can be provided by a separate clock controller. > > Signed-off-by: Marek Szyprowski <m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> > --- > .../devicetree/bindings/clock/exynos4-clock.txt | 43 ++++++++++++++++++++++ > include/dt-bindings/clock/exynos4.h | 35 ++++++++++++++++++ > 2 files changed, 78 insertions(+) Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-10-13 22:03 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20171011092515.1698-1-m.szyprowski@samsung.com> [not found] ` <CGME20171011092521eucas1p12fa702013b7bdbb4f9250e9da3fda8a1@eucas1p1.samsung.com> [not found] ` <20171011092515.1698-1-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2017-10-11 9:25 ` [PATCH v3 2/5] clk: samsung: Add dt bindings for Exynos4412 ISP clock controller Marek Szyprowski 2017-10-11 17:05 ` Krzysztof Kozlowski 2017-10-12 6:47 ` Marek Szyprowski 2017-10-12 7:08 ` Krzysztof Kozlowski [not found] ` <CAJKOXPe332r+2gAeiGAkzOVrLZ-ygDpneNG134GmY-VZ6fUEGA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2017-10-13 22:02 ` Rob Herring [not found] ` <20171011092515.1698-3-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2017-10-13 22:03 ` Rob Herring
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).