* [PATCH v3 0/2] Split pinctrl device for Meson8 / Meson8b and update docs
@ 2016-03-23 9:13 Carlo Caione
[not found] ` <1458724440-32228-1-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 12+ messages in thread
From: Carlo Caione @ 2016-03-23 9:13 UTC (permalink / raw)
To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
linux-6IF/jdPJHihWk0Htik3J/w, linux-meson-/JYPxA39Uh5TLH3MbocFFw,
afaerber-l3A5Bk7waGM, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
linus.walleij-QSEj5FYQhm4dnm+yROfE0A,
khilman-rdvid1DuHRBWk0Htik3J/w, pawel.moll-5wv7dgnIgG8,
devicetree-u79uwXL29TY76Z2rM5mHXA
Cc: Carlo Caione
From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org>
With http://www.spinics.net/lists/devicetree/msg116771.html we split / refactor
the pinctrl driver to have two different pinctrl devices for each bus.
Unfortunately these two patches still haven't found their way to mainline.
Reposting them as standalone patchset. Hopefully they can be ACKed as soon as
possible.
Carlo Caione (2):
ARM: dts: amlogic: Split pinctrl device for Meson8 / Meson8b
documentation: Fix pinctrl documentation for Meson8 / Meson8b
.../devicetree/bindings/pinctrl/meson,pinctrl.txt | 38 +++------------
arch/arm/boot/dts/meson8.dtsi | 57 ++++++++++++----------
arch/arm/boot/dts/meson8b.dtsi | 12 ++++-
3 files changed, 49 insertions(+), 58 deletions(-)
--
2.5.0
--
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] 12+ messages in thread[parent not found: <1458724440-32228-1-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>]
* [PATCH v3 1/2] ARM: dts: amlogic: Split pinctrl device for Meson8 / Meson8b [not found] ` <1458724440-32228-1-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> @ 2016-03-23 9:13 ` Carlo Caione [not found] ` <1458724440-32228-2-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> 2016-03-23 9:14 ` [PATCH v3 2/2] documentation: Fix pinctrl documentation " Carlo Caione 2016-03-23 19:12 ` [PATCH v3 0/2] Split pinctrl device for Meson8 / Meson8b and update docs Kevin Hilman 2 siblings, 1 reply; 12+ messages in thread From: Carlo Caione @ 2016-03-23 9:13 UTC (permalink / raw) To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-6IF/jdPJHihWk0Htik3J/w, linux-meson-/JYPxA39Uh5TLH3MbocFFw, afaerber-l3A5Bk7waGM, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, linus.walleij-QSEj5FYQhm4dnm+yROfE0A, khilman-rdvid1DuHRBWk0Htik3J/w, pawel.moll-5wv7dgnIgG8, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: Carlo Caione From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> Signed-off-by: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> Reviewed-by: Andreas Färber <afaerber-l3A5Bk7waGM@public.gmane.org> --- arch/arm/boot/dts/meson8.dtsi | 57 ++++++++++++++++++++++++------------------ arch/arm/boot/dts/meson8b.dtsi | 12 +++++++-- 2 files changed, 42 insertions(+), 27 deletions(-) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index a2ddcb8..45619f6 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -91,8 +91,8 @@ clock-frequency = <141666666>; }; - pinctrl: pinctrl@c1109880 { - compatible = "amlogic,meson8-pinctrl"; + pinctrl_cbus: pinctrl@c1109880 { + compatible = "amlogic,meson8-cbus-pinctrl"; reg = <0xc1109880 0x10>; #address-cells = <1>; #size-cells = <1>; @@ -108,29 +108,6 @@ #gpio-cells = <2>; }; - gpio_ao: ao-bank@c1108030 { - reg = <0xc8100014 0x4>, - <0xc810002c 0x4>, - <0xc8100024 0x8>; - reg-names = "mux", "pull", "gpio"; - gpio-controller; - #gpio-cells = <2>; - }; - - uart_ao_a_pins: uart_ao_a { - mux { - groups = "uart_tx_ao_a", "uart_rx_ao_a"; - function = "uart_ao"; - }; - }; - - i2c_ao_pins: i2c_mst_ao { - mux { - groups = "i2c_mst_sck_ao", "i2c_mst_sda_ao"; - function = "i2c_mst_ao"; - }; - }; - spi_nor_pins: nor { mux { groups = "nor_d", "nor_q", "nor_c", "nor_cs"; @@ -157,4 +134,34 @@ }; }; + pinctrl_aobus: pinctrl@c8100084 { + compatible = "amlogic,meson8-aobus-pinctrl"; + reg = <0xc8100084 0xc>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + gpio_ao: ao-bank@c1108030 { + reg = <0xc8100014 0x4>, + <0xc810002c 0x4>, + <0xc8100024 0x8>; + reg-names = "mux", "pull", "gpio"; + gpio-controller; + #gpio-cells = <2>; + }; + + uart_ao_a_pins: uart_ao_a { + mux { + groups = "uart_tx_ao_a", "uart_rx_ao_a"; + function = "uart_ao"; + }; + }; + + i2c_ao_pins: i2c_mst_ao { + mux { + groups = "i2c_mst_sck_ao", "i2c_mst_sda_ao"; + function = "i2c_mst_ao"; + }; + }; + }; }; /* end of / */ diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index 8bad557..2bfe401 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -155,8 +155,8 @@ reg = <0xc1108000 0x4>, <0xc1104000 0x460>; }; - pinctrl: pinctrl@c1109880 { - compatible = "amlogic,meson8b-pinctrl"; + pinctrl_cbus: pinctrl@c1109880 { + compatible = "amlogic,meson8b-cbus-pinctrl"; reg = <0xc1109880 0x10>; #address-cells = <1>; #size-cells = <1>; @@ -171,6 +171,14 @@ gpio-controller; #gpio-cells = <2>; }; + }; + + pinctrl_aobus: pinctrl@c8100084 { + compatible = "amlogic,meson8b-aobus-pinctrl"; + reg = <0xc8100084 0xc>; + #address-cells = <1>; + #size-cells = <1>; + ranges; gpio_ao: ao-bank@c1108030 { reg = <0xc8100014 0x4>, -- 2.5.0 -- 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] 12+ messages in thread
[parent not found: <1458724440-32228-2-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH v3 1/2] ARM: dts: amlogic: Split pinctrl device for Meson8 / Meson8b [not found] ` <1458724440-32228-2-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> @ 2016-03-31 9:40 ` Linus Walleij 0 siblings, 0 replies; 12+ messages in thread From: Linus Walleij @ 2016-03-31 9:40 UTC (permalink / raw) To: Carlo Caione Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-6IF/jdPJHihWk0Htik3J/w, linux-meson-/JYPxA39Uh5TLH3MbocFFw, Andreas Färber, Rob Herring, khilman-rdvid1DuHRBWk0Htik3J/w, Paweł Moll, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Carlo Caione On Wed, Mar 23, 2016 at 10:13 AM, Carlo Caione <carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> wrote: > From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> > > Signed-off-by: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> > Reviewed-by: Andreas Färber <afaerber-l3A5Bk7waGM@public.gmane.org> Acked-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> Please merge this as a fix through the ARM SoC tree. Yours, Linus Walleij -- 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] 12+ messages in thread
* [PATCH v3 2/2] documentation: Fix pinctrl documentation for Meson8 / Meson8b [not found] ` <1458724440-32228-1-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> 2016-03-23 9:13 ` [PATCH v3 1/2] ARM: dts: amlogic: Split pinctrl device for Meson8 / Meson8b Carlo Caione @ 2016-03-23 9:14 ` Carlo Caione [not found] ` <1458724440-32228-3-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> 2016-03-23 19:12 ` [PATCH v3 0/2] Split pinctrl device for Meson8 / Meson8b and update docs Kevin Hilman 2 siblings, 1 reply; 12+ messages in thread From: Carlo Caione @ 2016-03-23 9:14 UTC (permalink / raw) To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-6IF/jdPJHihWk0Htik3J/w, linux-meson-/JYPxA39Uh5TLH3MbocFFw, afaerber-l3A5Bk7waGM, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, linus.walleij-QSEj5FYQhm4dnm+yROfE0A, khilman-rdvid1DuHRBWk0Htik3J/w, pawel.moll-5wv7dgnIgG8, devicetree-u79uwXL29TY76Z2rM5mHXA Cc: Carlo Caione From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> Fix pin controller documentation introducing the new compatibles for the pinctrl drivers specific for aobus / cbus. This is needed because we have changed the pin controller driver: we have now a single specialized pinctrl driver / compatible for each bus the controller is attached to, instead of one single driver dealing with all the controllers we have on different buses. Signed-off-by: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> --- .../devicetree/bindings/pinctrl/meson,pinctrl.txt | 38 ++++------------------ 1 file changed, 7 insertions(+), 31 deletions(-) diff --git a/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt index 3f6a524..32f4a2d 100644 --- a/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt @@ -1,13 +1,16 @@ == Amlogic Meson pinmux controller == Required properties for the root node: - - compatible: "amlogic,meson8-pinctrl" or "amlogic,meson8b-pinctrl" + - compatible: one of "amlogic,meson8-cbus-pinctrl" + "amlogic,meson8b-cbus-pinctrl" + "amlogic,meson8-aobus-pinctrl" + "amlogic,meson8b-aobus-pinctrl" - reg: address and size of registers controlling irq functionality === GPIO sub-nodes === -The 2 power domains of the controller (regular and always-on) are -represented as sub-nodes and each of them acts as a GPIO controller. +The GPIO bank for the controller is represented as a sub-node and it acts as a +GPIO controller. Required properties for sub-nodes are: - reg: should contain address and size for mux, pull-enable, pull and @@ -18,10 +21,6 @@ Required properties for sub-nodes are: - gpio-controller: identifies the node as a gpio controller - #gpio-cells: must be 2 -Valid sub-node names are: - - "banks" for the regular domain - - "ao-bank" for the always-on domain - === Other sub-nodes === Child nodes without the "gpio-controller" represent some desired @@ -45,7 +44,7 @@ pinctrl-bindings.txt === Example === pinctrl: pinctrl@c1109880 { - compatible = "amlogic,meson8-pinctrl"; + compatible = "amlogic,meson8-cbus-pinctrl"; reg = <0xc1109880 0x10>; #address-cells = <1>; #size-cells = <1>; @@ -61,15 +60,6 @@ pinctrl-bindings.txt #gpio-cells = <2>; }; - gpio_ao: ao-bank@c1108030 { - reg = <0xc8100014 0x4>, - <0xc810002c 0x4>, - <0xc8100024 0x8>; - reg-names = "mux", "pull", "gpio"; - gpio-controller; - #gpio-cells = <2>; - }; - nand { mux { groups = "nand_io", "nand_io_ce0", "nand_io_ce1", @@ -79,18 +69,4 @@ pinctrl-bindings.txt function = "nand"; }; }; - - uart_ao_a { - mux { - groups = "uart_tx_ao_a", "uart_rx_ao_a", - "uart_cts_ao_a", "uart_rts_ao_a"; - function = "uart_ao"; - }; - - conf { - pins = "GPIOAO_0", "GPIOAO_1", - "GPIOAO_2", "GPIOAO_3"; - bias-disable; - }; - }; }; -- 2.5.0 -- 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] 12+ messages in thread
[parent not found: <1458724440-32228-3-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH v3 2/2] documentation: Fix pinctrl documentation for Meson8 / Meson8b [not found] ` <1458724440-32228-3-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> @ 2016-03-23 10:34 ` Andreas Färber 2016-03-23 15:20 ` Rob Herring 2016-03-31 9:38 ` Linus Walleij 2 siblings, 0 replies; 12+ messages in thread From: Andreas Färber @ 2016-03-23 10:34 UTC (permalink / raw) To: Carlo Caione Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-6IF/jdPJHihWk0Htik3J/w, linux-meson-/JYPxA39Uh5TLH3MbocFFw, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, linus.walleij-QSEj5FYQhm4dnm+yROfE0A, khilman-rdvid1DuHRBWk0Htik3J/w, pawel.moll-5wv7dgnIgG8, devicetree-u79uwXL29TY76Z2rM5mHXA, Carlo Caione Am 23.03.2016 um 10:14 schrieb Carlo Caione: > From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> > > Fix pin controller documentation introducing the new compatibles for > the pinctrl drivers specific for aobus / cbus. > > This is needed because we have changed the pin controller driver: we > have now a single specialized pinctrl driver / compatible for each bus > the controller is attached to, instead of one single driver dealing with > all the controllers we have on different buses. > > Signed-off-by: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> > --- > .../devicetree/bindings/pinctrl/meson,pinctrl.txt | 38 ++++------------------ > 1 file changed, 7 insertions(+), 31 deletions(-) Reviewed-by: Andreas Färber <afaerber-l3A5Bk7waGM@public.gmane.org> Thanks, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg) -- 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] 12+ messages in thread
* Re: [PATCH v3 2/2] documentation: Fix pinctrl documentation for Meson8 / Meson8b [not found] ` <1458724440-32228-3-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> 2016-03-23 10:34 ` Andreas Färber @ 2016-03-23 15:20 ` Rob Herring 2016-03-23 16:04 ` Carlo Caione 2016-03-31 9:38 ` Linus Walleij 2 siblings, 1 reply; 12+ messages in thread From: Rob Herring @ 2016-03-23 15:20 UTC (permalink / raw) To: Carlo Caione Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-6IF/jdPJHihWk0Htik3J/w, linux-meson-/JYPxA39Uh5TLH3MbocFFw, afaerber-l3A5Bk7waGM, linus.walleij-QSEj5FYQhm4dnm+yROfE0A, khilman-rdvid1DuHRBWk0Htik3J/w, pawel.moll-5wv7dgnIgG8, devicetree-u79uwXL29TY76Z2rM5mHXA, Carlo Caione On Wed, Mar 23, 2016 at 10:14:00AM +0100, Carlo Caione wrote: > From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> > > Fix pin controller documentation introducing the new compatibles for > the pinctrl drivers specific for aobus / cbus. > > This is needed because we have changed the pin controller driver: we > have now a single specialized pinctrl driver / compatible for each bus > the controller is attached to, instead of one single driver dealing with > all the controllers we have on different buses. Aren't you breaking compatibility with old DTs here? If so, you need to be clear that you are and why you think that is okay. > Signed-off-by: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> > --- > .../devicetree/bindings/pinctrl/meson,pinctrl.txt | 38 ++++------------------ > 1 file changed, 7 insertions(+), 31 deletions(-) -- 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] 12+ messages in thread
* Re: [PATCH v3 2/2] documentation: Fix pinctrl documentation for Meson8 / Meson8b 2016-03-23 15:20 ` Rob Herring @ 2016-03-23 16:04 ` Carlo Caione [not found] ` <CAL9uMOGaf5556KX5RJWbaW0d1zcTZu4S6FvoqEXQCWXg1QUDpg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Carlo Caione @ 2016-03-23 16:04 UTC (permalink / raw) To: Rob Herring Cc: Carlo Caione, linux-arm-kernel, Linux Upstreaming Team, linux-meson-/JYPxA39Uh5TLH3MbocFFw, Andreas Färber, Linus Walleij, khilman-rdvid1DuHRBWk0Htik3J/w, pawel.moll-5wv7dgnIgG8, devicetree On Wed, Mar 23, 2016 at 4:20 PM, Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote: > On Wed, Mar 23, 2016 at 10:14:00AM +0100, Carlo Caione wrote: >> From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> >> >> Fix pin controller documentation introducing the new compatibles for >> the pinctrl drivers specific for aobus / cbus. >> >> This is needed because we have changed the pin controller driver: we >> have now a single specialized pinctrl driver / compatible for each bus >> the controller is attached to, instead of one single driver dealing with >> all the controllers we have on different buses. > > Aren't you breaking compatibility with old DTs here? If so, you need to > be clear that you are and why you think that is okay. Rob, It's a bit too late to worry about breaking compatibility since the driver changes are already landed in mainline and currently Meson8 and Meson8b platforms are broken because of this. You can read the whole discussion here [1] and here [2]. Driver and DT changes were supposed to go in together but a bit of general misunderstanding caused this issue. We decided to break compatibility with the old DTs since the the platform support is still in the really early stage so I really don't think this is going to cause any problem and we have a lot of good reasons to split the pinctrl driver. First of all it makes sense from the hardware prospective, since we actually have two different pin controllers on two different buses. Splitting the driver allows us to introduce in the DTS both CBUS and AOBUS as simple buses. We need a clear description of the two buses in the DTS since several devices have a different register mapping depending on which bus they are attached to. Also as you can read here [3] we want to map the whole CBUS as a syscon device to be able to access several registers scattered inside CBUS. As Andreas pointed out gxbb arch already models CBUS and AOBUS as simple-buses so we could reuse this driver also for that architecture. Thanks, [1] http://www.spinics.net/lists/arm-kernel/msg489730.html [2] http://www.spinics.net/lists/devicetree/msg116771.html [3] http://www.spinics.net/lists/devicetree/msg115019.html -- Carlo Caione | +39.340.80.30.096 | Endless -- 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] 12+ messages in thread
[parent not found: <CAL9uMOGaf5556KX5RJWbaW0d1zcTZu4S6FvoqEXQCWXg1QUDpg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH v3 2/2] documentation: Fix pinctrl documentation for Meson8 / Meson8b [not found] ` <CAL9uMOGaf5556KX5RJWbaW0d1zcTZu4S6FvoqEXQCWXg1QUDpg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2016-03-25 13:40 ` Rob Herring 0 siblings, 0 replies; 12+ messages in thread From: Rob Herring @ 2016-03-25 13:40 UTC (permalink / raw) To: Carlo Caione Cc: Carlo Caione, linux-arm-kernel, Linux Upstreaming Team, linux-meson-/JYPxA39Uh5TLH3MbocFFw, Andreas Färber, Linus Walleij, khilman-rdvid1DuHRBWk0Htik3J/w, pawel.moll-5wv7dgnIgG8, devicetree On Wed, Mar 23, 2016 at 05:04:19PM +0100, Carlo Caione wrote: > On Wed, Mar 23, 2016 at 4:20 PM, Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote: > > On Wed, Mar 23, 2016 at 10:14:00AM +0100, Carlo Caione wrote: > >> From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> > >> > >> Fix pin controller documentation introducing the new compatibles for > >> the pinctrl drivers specific for aobus / cbus. > >> > >> This is needed because we have changed the pin controller driver: we > >> have now a single specialized pinctrl driver / compatible for each bus > >> the controller is attached to, instead of one single driver dealing with > >> all the controllers we have on different buses. > > > > Aren't you breaking compatibility with old DTs here? If so, you need to > > be clear that you are and why you think that is okay. > > Rob, > It's a bit too late to worry about breaking compatibility since the > driver changes are already landed in mainline and currently Meson8 and > Meson8b platforms are broken because of this. > You can read the whole discussion here [1] and here [2]. Driver and DT > changes were supposed to go in together but a bit of general > misunderstanding caused this issue. My comment was the commit message needs to be clear that you are breaking compatibility. That was true before part of this went in. > We decided to break compatibility with the old DTs since the the > platform support is still in the really early stage so I really don't > think this is going to cause any problem and we have a lot of good > reasons to split the pinctrl driver. First of all it makes sense from > the hardware prospective, since we actually have two different pin > controllers on two different buses. Splitting the driver allows us to > introduce in the DTS both CBUS and AOBUS as simple buses. We need a > clear description of the two buses in the DTS since several devices > have a different register mapping depending on which bus they are > attached to. Also as you can read here [3] we want to map the whole > CBUS as a syscon device to be able to access several registers > scattered inside CBUS. >From a quick glance, you mainly needed to keep the old compatible string in the driver and just ignore ao-bank. Then only what depended on ao-bank would break. Maybe that's less broken than completely breaking the pinctrl driver... Anyway, merge the fix: Acked-by: Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Rob -- 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] 12+ messages in thread
* Re: [PATCH v3 2/2] documentation: Fix pinctrl documentation for Meson8 / Meson8b [not found] ` <1458724440-32228-3-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> 2016-03-23 10:34 ` Andreas Färber 2016-03-23 15:20 ` Rob Herring @ 2016-03-31 9:38 ` Linus Walleij [not found] ` <CACRpkdaFrM9ccDAbb0ks3_GFPPZvmLDnKY30MCRbpzemYhVFvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2 siblings, 1 reply; 12+ messages in thread From: Linus Walleij @ 2016-03-31 9:38 UTC (permalink / raw) To: Carlo Caione Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-6IF/jdPJHihWk0Htik3J/w, linux-meson-/JYPxA39Uh5TLH3MbocFFw, Andreas Färber, Rob Herring, khilman-rdvid1DuHRBWk0Htik3J/w, Paweł Moll, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Carlo Caione On Wed, Mar 23, 2016 at 10:14 AM, Carlo Caione <carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> wrote: > From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> > > Fix pin controller documentation introducing the new compatibles for > the pinctrl drivers specific for aobus / cbus. > > This is needed because we have changed the pin controller driver: we > have now a single specialized pinctrl driver / compatible for each bus > the controller is attached to, instead of one single driver dealing with > all the controllers we have on different buses. > > Signed-off-by: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> This patch applied to the pinctrl tree with the tags. It is just documentation so it's obviously not an urgent fix. Please merge patch 1/2 through the ARM SoC tree. Yours, Linus Walleij -- 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] 12+ messages in thread
[parent not found: <CACRpkdaFrM9ccDAbb0ks3_GFPPZvmLDnKY30MCRbpzemYhVFvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH v3 2/2] documentation: Fix pinctrl documentation for Meson8 / Meson8b [not found] ` <CACRpkdaFrM9ccDAbb0ks3_GFPPZvmLDnKY30MCRbpzemYhVFvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2016-03-31 9:41 ` Carlo Caione [not found] ` <CAOQ7t2YZ5iNzXKGr-ucq3cH1nEEuHjmNY+756Y3KbjsaBtPwTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 12+ messages in thread From: Carlo Caione @ 2016-03-31 9:41 UTC (permalink / raw) To: Linus Walleij Cc: Carlo Caione, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-6IF/jdPJHihWk0Htik3J/w, linux-meson, Andreas Färber, Rob Herring, Kevin Hilman, Paweł Moll, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Carlo Caione On Thu, Mar 31, 2016 at 11:38 AM, Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote: > On Wed, Mar 23, 2016 at 10:14 AM, Carlo Caione <carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> wrote: > >> From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> >> >> Fix pin controller documentation introducing the new compatibles for >> the pinctrl drivers specific for aobus / cbus. >> >> This is needed because we have changed the pin controller driver: we >> have now a single specialized pinctrl driver / compatible for each bus >> the controller is attached to, instead of one single driver dealing with >> all the controllers we have on different buses. >> >> Signed-off-by: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> > > This patch applied to the pinctrl tree with the tags. > > It is just documentation so it's obviously not an urgent > fix. > > Please merge patch 1/2 through the ARM SoC tree. Hey Linus, I already submitted DT fix and Documentation in the PR to arm-soc here http://www.spinics.net/lists/arm-kernel/msg493680.html Cheers, -- Carlo Caione -- 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] 12+ messages in thread
[parent not found: <CAOQ7t2YZ5iNzXKGr-ucq3cH1nEEuHjmNY+756Y3KbjsaBtPwTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH v3 2/2] documentation: Fix pinctrl documentation for Meson8 / Meson8b [not found] ` <CAOQ7t2YZ5iNzXKGr-ucq3cH1nEEuHjmNY+756Y3KbjsaBtPwTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2016-03-31 9:42 ` Linus Walleij 0 siblings, 0 replies; 12+ messages in thread From: Linus Walleij @ 2016-03-31 9:42 UTC (permalink / raw) To: Carlo Caione Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-6IF/jdPJHihWk0Htik3J/w, linux-meson, Andreas Färber, Rob Herring, Kevin Hilman, Paweł Moll, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Carlo Caione On Thu, Mar 31, 2016 at 11:41 AM, Carlo Caione <carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> wrote: > On Thu, Mar 31, 2016 at 11:38 AM, Linus Walleij > Hey Linus, > I already submitted DT fix and Documentation in the PR to arm-soc here > http://www.spinics.net/lists/arm-kernel/msg493680.html Aha OK I will take the doc fix out of my tree then and expect this to be fixed through ARM SoC. Yours, Linus Walleij -- 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] 12+ messages in thread
* Re: [PATCH v3 0/2] Split pinctrl device for Meson8 / Meson8b and update docs [not found] ` <1458724440-32228-1-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> 2016-03-23 9:13 ` [PATCH v3 1/2] ARM: dts: amlogic: Split pinctrl device for Meson8 / Meson8b Carlo Caione 2016-03-23 9:14 ` [PATCH v3 2/2] documentation: Fix pinctrl documentation " Carlo Caione @ 2016-03-23 19:12 ` Kevin Hilman 2 siblings, 0 replies; 12+ messages in thread From: Kevin Hilman @ 2016-03-23 19:12 UTC (permalink / raw) To: Carlo Caione Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-6IF/jdPJHihWk0Htik3J/w, linux-meson-/JYPxA39Uh5TLH3MbocFFw, afaerber-l3A5Bk7waGM, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, linus.walleij-QSEj5FYQhm4dnm+yROfE0A, pawel.moll-5wv7dgnIgG8, devicetree-u79uwXL29TY76Z2rM5mHXA, Carlo Caione Carlo Caione <carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org> writes: > From: Carlo Caione <carlo-6IF/jdPJHihWk0Htik3J/w@public.gmane.org> > > With http://www.spinics.net/lists/devicetree/msg116771.html we split / refactor > the pinctrl driver to have two different pinctrl devices for each bus. > > Unfortunately these two patches still haven't found their way to mainline. > Reposting them as standalone patchset. Hopefully they can be ACKed as soon as > possible. Tested-by: Kevin Hilman <khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> I confirm that this gets meson8b-odroidc1 booting again in mainline. Kevin -- 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] 12+ messages in thread
end of thread, other threads:[~2016-03-31 9:42 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 9:13 [PATCH v3 0/2] Split pinctrl device for Meson8 / Meson8b and update docs Carlo Caione
[not found] ` <1458724440-32228-1-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2016-03-23 9:13 ` [PATCH v3 1/2] ARM: dts: amlogic: Split pinctrl device for Meson8 / Meson8b Carlo Caione
[not found] ` <1458724440-32228-2-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2016-03-31 9:40 ` Linus Walleij
2016-03-23 9:14 ` [PATCH v3 2/2] documentation: Fix pinctrl documentation " Carlo Caione
[not found] ` <1458724440-32228-3-git-send-email-carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
2016-03-23 10:34 ` Andreas Färber
2016-03-23 15:20 ` Rob Herring
2016-03-23 16:04 ` Carlo Caione
[not found] ` <CAL9uMOGaf5556KX5RJWbaW0d1zcTZu4S6FvoqEXQCWXg1QUDpg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-25 13:40 ` Rob Herring
2016-03-31 9:38 ` Linus Walleij
[not found] ` <CACRpkdaFrM9ccDAbb0ks3_GFPPZvmLDnKY30MCRbpzemYhVFvg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-31 9:41 ` Carlo Caione
[not found] ` <CAOQ7t2YZ5iNzXKGr-ucq3cH1nEEuHjmNY+756Y3KbjsaBtPwTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-31 9:42 ` Linus Walleij
2016-03-23 19:12 ` [PATCH v3 0/2] Split pinctrl device for Meson8 / Meson8b and update docs Kevin Hilman
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).