* [PATCH v2 0/9] Build and support rk3036 SoC platform @ 2015-09-17 8:28 Xing Zheng 2015-09-17 9:59 ` Heiko Stübner 2015-09-17 10:34 ` [PATCH v2 6/9] pinctrl: rockchip: add support for the rk3036 Xing Zheng 0 siblings, 2 replies; 4+ messages in thread From: Xing Zheng @ 2015-09-17 8:28 UTC (permalink / raw) To: heiko-4mtYJXux2i+zQB+pC5nmwQ Cc: Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA, Russell King, Pawel Moll, Xing Zheng, Alessandro Zummo, Michael Turquette, Ian Campbell, Stephen Boyd, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-clk-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring, Alexandre Belloni, linux-gpio-u79uwXL29TY76Z2rM5mHXA, Kumar Gala, rtc-linux-/JYPxA39Uh5TLH3MbocFFw, Linus Walleij, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hi, we need to support rk3036 soc platform via upstream, there are 3 primary parts for the initial release of minimum system: dts, pinctrl, and clock tree for rk3036, and additional, add a rtc hym8563 patch to fix initial invaild, we can use these startup and run to init processs. Thanks. changed in v2: - based on v1, add clock controller documentation - enable timer5 startup - add smp for cpu1 - initial set time for rtc-hym8563 changes since v1: - add dts, pinctrl and clock tree for rk3036 soc platform The patchset (9): 9) rtc: hym8563: make sure hym8563 can be normal work 8) ARM: rockchip: add support smp for rk3036 7) rockchip: make sure timer5 is enabled on rk3036 platforms 6) pinctrl: rockchip: add support for the rk3036 5) dt-bindings: add documentation of rk3036 clock controller 4) clk: rockchip: add new clock type and controller for rk3036 3) clk: rockchip: add clock controller for rk3036 2) clk: rockchip: add dt-binding header for rk3036 1) ARM: dts: rockchip: add core rk3036 dts Changes in v2: Signed-off-by: Xing Zheng <zhengxing-TNX95d0MmH7DzftRWevZcw@public.gmane.org> Xing Zheng (9): ARM: dts: rockchip: add core rk3036 dts clk: rockchip: add dt-binding header for rk3036 clk: rockchip: add clock controller for rk3036 clk: rockchip: add new clock type and controller for rk3036 dt-bindings: add documentation of rk3036 clock controller pinctrl: rockchip: add support for the rk3036 rockchip: make sure timer5 is enabled on rk3036 platforms ARM: rockchip: add support smp for rk3036 rtc: hym8563: make sure hym8563 can be normal work .../bindings/clock/rockchip,rk3036-cru.txt | 60 +++ .../bindings/pinctrl/rockchip,pinctrl.txt | 1 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/rk3036-sdk.dts | 62 +++ arch/arm/boot/dts/rk3036.dtsi | 381 +++++++++++++++ arch/arm/mach-rockchip/platsmp.c | 121 +++++ arch/arm/mach-rockchip/rockchip.c | 22 + drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-pll.c | 262 +++++++++- drivers/clk/rockchip/clk-rk3036.c | 504 ++++++++++++++++++++ drivers/clk/rockchip/clk.h | 30 ++ drivers/pinctrl/pinctrl-rockchip.c | 17 + drivers/rtc/rtc-hym8563.c | 93 ++++ include/dt-bindings/clock/rk3036-cru.h | 198 ++++++++ 14 files changed, 1752 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,rk3036-cru.txt create mode 100644 arch/arm/boot/dts/rk3036-sdk.dts create mode 100644 arch/arm/boot/dts/rk3036.dtsi create mode 100644 drivers/clk/rockchip/clk-rk3036.c create mode 100644 include/dt-bindings/clock/rk3036-cru.h -- 1.7.9.5 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/9] Build and support rk3036 SoC platform 2015-09-17 8:28 [PATCH v2 0/9] Build and support rk3036 SoC platform Xing Zheng @ 2015-09-17 9:59 ` Heiko Stübner 2015-09-17 10:34 ` [PATCH v2 6/9] pinctrl: rockchip: add support for the rk3036 Xing Zheng 1 sibling, 0 replies; 4+ messages in thread From: Heiko Stübner @ 2015-09-17 9:59 UTC (permalink / raw) To: Xing Zheng Cc: linux-rockchip, Russell King, Michael Turquette, Alessandro Zummo, devicetree, Stephen Boyd, linux-gpio, Linus Walleij, Alexandre Belloni, Kumar Gala, linux-kernel, Ian Campbell, Rob Herring, Pawel Moll, rtc-linux, Mark Rutland, linux-clk, linux-arm-kernel Hi, Am Donnerstag, 17. September 2015, 16:28:51 schrieb Xing Zheng: > we need to support rk3036 soc platform via upstream, there are > 3 primary parts for the initial release of minimum system: dts, > pinctrl, and clock tree for rk3036, and additional, add a rtc > hym8563 patch to fix initial invaild, we can use these startup > and run to init processs. > > Thanks. > > changed in v2: > - based on v1, add clock controller documentation > - enable timer5 startup > - add smp for cpu1 > - initial set time for rtc-hym8563 > > changes since v1: > - add dts, pinctrl and clock tree for rk3036 soc platform > > The patchset (9): > 9) rtc: hym8563: make sure hym8563 can be normal work > 8) ARM: rockchip: add support smp for rk3036 > 7) rockchip: make sure timer5 is enabled on rk3036 platforms > 6) pinctrl: rockchip: add support for the rk3036 > 5) dt-bindings: add documentation of rk3036 clock controller > 4) clk: rockchip: add new clock type and controller for rk3036 > 3) clk: rockchip: add clock controller for rk3036 > 2) clk: rockchip: add dt-binding header for rk3036 > 1) ARM: dts: rockchip: add core rk3036 dts > > > Changes in v2: > Signed-off-by: Xing Zheng <zhengxing@rock-chips.com> > > Xing Zheng (9): > ARM: dts: rockchip: add core rk3036 dts > clk: rockchip: add dt-binding header for rk3036 > clk: rockchip: add clock controller for rk3036 > clk: rockchip: add new clock type and controller for rk3036 > dt-bindings: add documentation of rk3036 clock controller > pinctrl: rockchip: add support for the rk3036 > rockchip: make sure timer5 is enabled on rk3036 platforms > ARM: rockchip: add support smp for rk3036 > rtc: hym8563: make sure hym8563 can be normal work am I missing some patches? I only got patches 1-4. Anyway, you should reorder a bit - whatever other patches are necessary before - dt-bindings: add documentation of rk3036 clock controller - clk: rockchip: add dt-binding header for rk3036 - clk: rockchip: add new pll type for rk3036 - clk: rockchip: add clock controller for rk3036 - ARM: dts: rockchip: add core rk3036 dts The dts patch for example depends on the clock-header, so it really should come after its addition. Heiko > > .../bindings/clock/rockchip,rk3036-cru.txt | 60 +++ > .../bindings/pinctrl/rockchip,pinctrl.txt | 1 + > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/rk3036-sdk.dts | 62 +++ > arch/arm/boot/dts/rk3036.dtsi | 381 +++++++++++++++ > arch/arm/mach-rockchip/platsmp.c | 121 +++++ > arch/arm/mach-rockchip/rockchip.c | 22 + > drivers/clk/rockchip/Makefile | 1 + > drivers/clk/rockchip/clk-pll.c | 262 +++++++++- > drivers/clk/rockchip/clk-rk3036.c | 504 > ++++++++++++++++++++ drivers/clk/rockchip/clk.h | > 30 ++ > drivers/pinctrl/pinctrl-rockchip.c | 17 + > drivers/rtc/rtc-hym8563.c | 93 ++++ > include/dt-bindings/clock/rk3036-cru.h | 198 ++++++++ > 14 files changed, 1752 insertions(+), 1 deletion(-) > create mode 100644 > Documentation/devicetree/bindings/clock/rockchip,rk3036-cru.txt create mode > 100644 arch/arm/boot/dts/rk3036-sdk.dts > create mode 100644 arch/arm/boot/dts/rk3036.dtsi > create mode 100644 drivers/clk/rockchip/clk-rk3036.c > create mode 100644 include/dt-bindings/clock/rk3036-cru.h ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 6/9] pinctrl: rockchip: add support for the rk3036 2015-09-17 8:28 [PATCH v2 0/9] Build and support rk3036 SoC platform Xing Zheng 2015-09-17 9:59 ` Heiko Stübner @ 2015-09-17 10:34 ` Xing Zheng 2015-09-17 12:47 ` Heiko Stübner 1 sibling, 1 reply; 4+ messages in thread From: Xing Zheng @ 2015-09-17 10:34 UTC (permalink / raw) To: heiko Cc: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, zhengxing, devicetree, linux-arm-kernel, linux-rockchip, linux-kernel, linus.walleij, linux-gpio Add new type for rk3036 and many parts of pinctrl rk3036 are similar with rk2928's. Signed-off-by: Xing Zheng <zhengxing@rock-chips.com> --- Changes in v2: None .../bindings/pinctrl/rockchip,pinctrl.txt | 1 + drivers/pinctrl/pinctrl-rockchip.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt index 391ef4b..c73f2bb 100644 --- a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt @@ -22,6 +22,7 @@ Required properties for iomux controller: - compatible: one of "rockchip,rk2928-pinctrl", "rockchip,rk3066a-pinctrl" "rockchip,rk3066b-pinctrl", "rockchip,rk3188-pinctrl" "rockchip,rk3288-pinctrl", "rockchip,rk3368-pinctrl" + "rockchip,rk3036-pinctrl" - rockchip,grf: phandle referencing a syscon providing the "general register files" diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c index c5246c0..9c49510 100644 --- a/drivers/pinctrl/pinctrl-rockchip.c +++ b/drivers/pinctrl/pinctrl-rockchip.c @@ -2089,6 +2089,21 @@ static struct rockchip_pin_ctrl rk2928_pin_ctrl = { .pull_calc_reg = rk2928_calc_pull_reg_and_bit, }; +static struct rockchip_pin_bank rk3036_pin_banks[] = { + PIN_BANK(0, 32, "gpio0"), + PIN_BANK(1, 32, "gpio1"), + PIN_BANK(2, 32, "gpio2"), +}; + +static struct rockchip_pin_ctrl rk3036_pin_ctrl = { + .pin_banks = rk3036_pin_banks, + .nr_banks = ARRAY_SIZE(rk3036_pin_banks), + .label = "RK3036-GPIO", + .type = RK2928, + .grf_mux_offset = 0xa8, + .pull_calc_reg = rk2928_calc_pull_reg_and_bit, +}; + static struct rockchip_pin_bank rk3066a_pin_banks[] = { PIN_BANK(0, 32, "gpio0"), PIN_BANK(1, 32, "gpio1"), @@ -2207,6 +2222,8 @@ static struct rockchip_pin_ctrl rk3368_pin_ctrl = { static const struct of_device_id rockchip_pinctrl_dt_match[] = { { .compatible = "rockchip,rk2928-pinctrl", .data = (void *)&rk2928_pin_ctrl }, + { .compatible = "rockchip,rk3036-pinctrl", + .data = (void *)&rk3036_pin_ctrl }, { .compatible = "rockchip,rk3066a-pinctrl", .data = (void *)&rk3066a_pin_ctrl }, { .compatible = "rockchip,rk3066b-pinctrl", -- 1.7.9.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 6/9] pinctrl: rockchip: add support for the rk3036 2015-09-17 10:34 ` [PATCH v2 6/9] pinctrl: rockchip: add support for the rk3036 Xing Zheng @ 2015-09-17 12:47 ` Heiko Stübner 0 siblings, 0 replies; 4+ messages in thread From: Heiko Stübner @ 2015-09-17 12:47 UTC (permalink / raw) To: Xing Zheng Cc: robh+dt, pawel.moll, mark.rutland, ijc+devicetree, galak, devicetree, linux-arm-kernel, linux-rockchip, linux-kernel, linus.walleij, linux-gpio Am Donnerstag, 17. September 2015, 18:34:20 schrieb Xing Zheng: > Add new type for rk3036 and many parts of pinctrl rk3036 are similar > with rk2928's. > > Signed-off-by: Xing Zheng <zhengxing@rock-chips.com> very nice that the rk3036 pin-controller works with already established infrastructure :-) Reviewed-by: Heiko Stuebner <heiko@sntech.de> > --- > > Changes in v2: None > > .../bindings/pinctrl/rockchip,pinctrl.txt | 1 + > drivers/pinctrl/pinctrl-rockchip.c | 17 +++++++++++++++++ > 2 files changed, 18 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt > b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt index > 391ef4b..c73f2bb 100644 > --- a/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt > +++ b/Documentation/devicetree/bindings/pinctrl/rockchip,pinctrl.txt > @@ -22,6 +22,7 @@ Required properties for iomux controller: > - compatible: one of "rockchip,rk2928-pinctrl", > "rockchip,rk3066a-pinctrl" "rockchip,rk3066b-pinctrl", > "rockchip,rk3188-pinctrl" > "rockchip,rk3288-pinctrl", "rockchip,rk3368-pinctrl" > + "rockchip,rk3036-pinctrl" > - rockchip,grf: phandle referencing a syscon providing the > "general register files" > > diff --git a/drivers/pinctrl/pinctrl-rockchip.c > b/drivers/pinctrl/pinctrl-rockchip.c index c5246c0..9c49510 100644 > --- a/drivers/pinctrl/pinctrl-rockchip.c > +++ b/drivers/pinctrl/pinctrl-rockchip.c > @@ -2089,6 +2089,21 @@ static struct rockchip_pin_ctrl rk2928_pin_ctrl = { > .pull_calc_reg = rk2928_calc_pull_reg_and_bit, > }; > > +static struct rockchip_pin_bank rk3036_pin_banks[] = { > + PIN_BANK(0, 32, "gpio0"), > + PIN_BANK(1, 32, "gpio1"), > + PIN_BANK(2, 32, "gpio2"), > +}; > + > +static struct rockchip_pin_ctrl rk3036_pin_ctrl = { > + .pin_banks = rk3036_pin_banks, > + .nr_banks = ARRAY_SIZE(rk3036_pin_banks), > + .label = "RK3036-GPIO", > + .type = RK2928, > + .grf_mux_offset = 0xa8, > + .pull_calc_reg = rk2928_calc_pull_reg_and_bit, > +}; > + > static struct rockchip_pin_bank rk3066a_pin_banks[] = { > PIN_BANK(0, 32, "gpio0"), > PIN_BANK(1, 32, "gpio1"), > @@ -2207,6 +2222,8 @@ static struct rockchip_pin_ctrl rk3368_pin_ctrl = { > static const struct of_device_id rockchip_pinctrl_dt_match[] = { > { .compatible = "rockchip,rk2928-pinctrl", > .data = (void *)&rk2928_pin_ctrl }, > + { .compatible = "rockchip,rk3036-pinctrl", > + .data = (void *)&rk3036_pin_ctrl }, > { .compatible = "rockchip,rk3066a-pinctrl", > .data = (void *)&rk3066a_pin_ctrl }, > { .compatible = "rockchip,rk3066b-pinctrl", ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-17 12:47 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-09-17 8:28 [PATCH v2 0/9] Build and support rk3036 SoC platform Xing Zheng 2015-09-17 9:59 ` Heiko Stübner 2015-09-17 10:34 ` [PATCH v2 6/9] pinctrl: rockchip: add support for the rk3036 Xing Zheng 2015-09-17 12:47 ` Heiko Stübner
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).