Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'omap-for-v4.17/dt-pt2-signed' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/dt

Pull "Second set of dts changes for omap variants for v4.17" from Tony Lindgren:

This series of patches configures few new drivers and adds
omap5 specific nodes:

- Enable USB OTG mode for xhci on am437x

- A series of changes to configure aux control module instance
on omap5 mostly to get the audio clocks configured

- A series of changes to update droid4 for MDM6600 modem USB PHY
and UART1 pinctrl

* tag 'omap-for-v4.17/dt-pt2-signed' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: dts: omap4-droid4: Configure uart1 pins
ARM: dts: omap4-droid4: Configure MDM6600 USB PHY
ARM: dts: omap4-droid4: Fix USB PHY port naming
ARM: dts: omap5-board-common: Add phandle for mclk clock for twl6040
ARM: dts: omap5: add fref_xtal_ck support
ARM: dts: omap5: add support for control module wkup pad config
dt-bindings: omap5: ctrl: Support for control module wkup pad config
ARM: dts: am43xx: Enable dual-role mode for USB1

+138 -8
+1
Documentation/devicetree/bindings/arm/omap/ctrl.txt
··· 25 25 "ti,omap4-scm-padconf-wkup" 26 26 "ti,omap5-scm-core" 27 27 "ti,omap5-scm-padconf-core" 28 + "ti,omap5-scm-wkup-pad-conf" 28 29 "ti,dra7-scm-core" 29 30 - reg: Contains Control Module register address range 30 31 (base address and length)
+1 -1
arch/arm/boot/dts/am437x-gp-evm.dts
··· 805 805 }; 806 806 807 807 &usb1 { 808 - dr_mode = "peripheral"; 808 + dr_mode = "otg"; 809 809 status = "okay"; 810 810 }; 811 811
+1 -1
arch/arm/boot/dts/am437x-sk-evm.dts
··· 600 600 }; 601 601 602 602 &usb1 { 603 - dr_mode = "peripheral"; 603 + dr_mode = "otg"; 604 604 status = "okay"; 605 605 pinctrl-names = "default"; 606 606 pinctrl-0 = <&usb1_pins>;
+1 -1
arch/arm/boot/dts/am43x-epos-evm.dts
··· 856 856 }; 857 857 858 858 &usb1 { 859 - dr_mode = "peripheral"; 859 + dr_mode = "otg"; 860 860 status = "okay"; 861 861 }; 862 862
+100 -3
arch/arm/boot/dts/omap4-droid4-xt894.dts
··· 70 70 regulator-always-on; 71 71 }; 72 72 73 - /* HS USB Host PHY on PORT 1 */ 74 - hsusb1_phy: hsusb1_phy { 73 + /* FS USB Host PHY on port 1 for mdm6600 */ 74 + fsusb1_phy: usb-phy@1 { 75 + compatible = "motorola,mapphone-mdm6600"; 76 + pinctrl-0 = <&usb_mdm6600_pins>; 77 + pinctrl-names = "default"; 78 + enable-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; /* gpio_95 */ 79 + power-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* gpio_54 */ 80 + reset-gpios = <&gpio2 17 GPIO_ACTIVE_HIGH>; /* gpio_49 */ 81 + /* mode: gpio_148 gpio_149 */ 82 + motorola,mode-gpios = <&gpio5 20 GPIO_ACTIVE_HIGH>, 83 + <&gpio5 21 GPIO_ACTIVE_HIGH>; 84 + /* cmd: gpio_103 gpio_104 gpio_142 */ 85 + motorola,cmd-gpios = <&gpio4 7 GPIO_ACTIVE_HIGH>, 86 + <&gpio4 8 GPIO_ACTIVE_HIGH>, 87 + <&gpio5 14 GPIO_ACTIVE_HIGH>; 88 + /* status: gpio_52 gpio_53 gpio_55 */ 89 + motorola,status-gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>, 90 + <&gpio2 21 GPIO_ACTIVE_HIGH>, 91 + <&gpio2 23 GPIO_ACTIVE_HIGH>; 92 + #phy-cells = <0>; 93 + }; 94 + 95 + /* HS USB host TLL nop-phy on port 2 for w3glte */ 96 + hsusb2_phy: usb-phy@2 { 75 97 compatible = "usb-nop-xceiv"; 76 98 #phy-cells = <0>; 77 99 }; ··· 477 455 >; 478 456 }; 479 457 458 + usb_mdm6600_pins: pinmux_usb_mdm6600_pins { 459 + pinctrl-single,pins = < 460 + /* enable 0x4a1000d8 usbb1_ulpitll_dat7.gpio_95 ag16 */ 461 + OMAP4_IOPAD(0x0d8, PIN_INPUT | MUX_MODE3) 462 + 463 + /* power 0x4a10007c gpmc_nwp.gpio_54 c25 */ 464 + OMAP4_IOPAD(0x07c, PIN_OUTPUT | MUX_MODE3) 465 + 466 + /* reset 0x4a100072 gpmc_a25.gpio_49 d20 */ 467 + OMAP4_IOPAD(0x072, PIN_OUTPUT | MUX_MODE3) 468 + 469 + /* mode0/bpwake 0x4a10014e sdmmc5_dat1.gpio_148 af4 */ 470 + OMAP4_IOPAD(0x14e, PIN_OUTPUT | MUX_MODE3) 471 + 472 + /* mode1/apwake 0x4a100150 sdmmc5_dat2.gpio_149 ag3 */ 473 + OMAP4_IOPAD(0x150, PIN_OFF_OUTPUT_LOW | PIN_INPUT | MUX_MODE3) 474 + 475 + /* status0 0x4a10007e gpmc_clk.gpio_55 b22 */ 476 + OMAP4_IOPAD(0x07e, PIN_INPUT | MUX_MODE3) 477 + 478 + /* status1 0x4a10007a gpmc_ncs3.gpio_53 c22 */ 479 + OMAP4_IOPAD(0x07a, PIN_INPUT | MUX_MODE3) 480 + 481 + /* status2 0x4a100078 gpmc_ncs2.gpio_52 d21 */ 482 + OMAP4_IOPAD(0x078, PIN_INPUT | MUX_MODE3) 483 + 484 + /* cmd0 0x4a100094 gpmc_ncs6.gpio_103 c24 */ 485 + OMAP4_IOPAD(0x094, PIN_OUTPUT | MUX_MODE3) 486 + 487 + /* cmd1 0x4a100096 gpmc_ncs7.gpio_104 d24 */ 488 + OMAP4_IOPAD(0x096, PIN_OUTPUT | MUX_MODE3) 489 + 490 + /* cmd2 0x4a100142 uart3_rts_sd.gpio_142 f28 */ 491 + OMAP4_IOPAD(0x142, PIN_OUTPUT | MUX_MODE3) 492 + >; 493 + }; 494 + 480 495 usb_ulpi_pins: pinmux_usb_ulpi_pins { 481 496 pinctrl-single,pins = < 482 497 OMAP4_IOPAD(0x196, MUX_MODE7) ··· 550 491 OMAP4_IOPAD(0x1c4, PIN_INPUT_PULLUP | MUX_MODE7) 551 492 OMAP4_IOPAD(0x1c6, PIN_INPUT_PULLUP | MUX_MODE7) 552 493 OMAP4_IOPAD(0x1c8, PIN_INPUT_PULLUP | MUX_MODE7) 494 + >; 495 + }; 496 + 497 + /* 498 + * Note that the v3.0.8 stock userspace dynamically remuxes uart1 499 + * rts pin probably for PM purposes to PIN_INPUT_PULLUP | MUX_MODE7 500 + * when not used. If needed, we can add rts pin remux later based 501 + * on power measurements. 502 + */ 503 + uart1_pins: pinmux_uart1_pins { 504 + pinctrl-single,pins = < 505 + /* 0x4a10013c mcspi1_cs2.uart1_cts ag23 */ 506 + OMAP4_IOPAD(0x13c, PIN_INPUT_PULLUP | MUX_MODE1) 507 + 508 + /* 0x4a10013e mcspi1_cs3.uart1_rts ah23 */ 509 + OMAP4_IOPAD(0x13e, MUX_MODE1) 510 + 511 + /* 0x4a100140 uart3_cts_rctx.uart1_tx f27 */ 512 + OMAP4_IOPAD(0x140, PIN_OUTPUT | MUX_MODE1) 513 + 514 + /* 0x4a1001ca dpm_emu14.uart1_rx aa3 */ 515 + OMAP4_IOPAD(0x1ca, PIN_INPUT_PULLUP | MUX_MODE2) 553 516 >; 554 517 }; 555 518 ··· 644 563 }; 645 564 }; 646 565 566 + /* 567 + * As uart1 is wired to mdm6600 with rts and cts, we can use the cts pin for 568 + * uart1 wakeirq. 569 + */ 570 + &uart1 { 571 + pinctrl-names = "default"; 572 + pinctrl-0 = <&uart1_pins>; 573 + interrupts-extended = <&wakeupgen GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH 574 + &omap4_pmx_core 0xfc>; 575 + }; 576 + 647 577 &uart3 { 648 578 interrupts-extended = <&wakeupgen GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH 649 579 &omap4_pmx_core 0x17c>; ··· 671 579 }; 672 580 }; 673 581 582 + &usbhsohci { 583 + phys = <&fsusb1_phy>; 584 + phy-names = "usb"; 585 + }; 586 + 674 587 &usbhsehci { 675 - phys = <&hsusb1_phy>; 588 + phys = <&hsusb2_phy>; 676 589 }; 677 590 678 591 &usbhshost {
+2 -2
arch/arm/boot/dts/omap5-board-common.dtsi
··· 659 659 v2v1-supply = <&smps9_reg>; 660 660 enable-active-high; 661 661 662 - clocks = <&clk32kgaudio>; 663 - clock-names = "clk32k"; 662 + clocks = <&clk32kgaudio>, <&fref_xtal_ck>; 663 + clock-names = "clk32k", "mclk"; 664 664 }; 665 665 }; 666 666
+22
arch/arm/boot/dts/omap5.dtsi
··· 287 287 pinctrl-single,register-width = <16>; 288 288 pinctrl-single,function-mask = <0x7fff>; 289 289 }; 290 + 291 + omap5_scm_wkup_pad_conf: omap5_scm_wkup_pad_conf@cda0 { 292 + compatible = "ti,omap5-scm-wkup-pad-conf", 293 + "simple-bus"; 294 + reg = <0xcda0 0x60>; 295 + #address-cells = <1>; 296 + #size-cells = <1>; 297 + ranges = <0 0xcda0 0x60>; 298 + 299 + scm_wkup_pad_conf: scm_conf@0 { 300 + compatible = "syscon", "simple-bus"; 301 + reg = <0x0 0x60>; 302 + #address-cells = <1>; 303 + #size-cells = <1>; 304 + ranges = <0 0x0 0x60>; 305 + 306 + scm_wkup_pad_conf_clocks: clocks@0 { 307 + #address-cells = <1>; 308 + #size-cells = <0>; 309 + }; 310 + }; 311 + }; 290 312 }; 291 313 292 314 ocmcram: ocmcram@40300000 {
+10
arch/arm/boot/dts/omap54xx-clocks.dtsi
··· 1179 1179 }; 1180 1180 }; 1181 1181 }; 1182 + 1183 + &scm_wkup_pad_conf_clocks { 1184 + fref_xtal_ck: fref_xtal_ck { 1185 + #clock-cells = <0>; 1186 + compatible = "ti,gate-clock"; 1187 + clocks = <&sys_clkin>; 1188 + ti,bit-shift = <28>; 1189 + reg = <0x14>; 1190 + }; 1191 + };