head 1.53; access; symbols netbsd-11-0-RC3:1.52 netbsd-11-0-RC2:1.52 netbsd-11-0-RC1:1.52 perseant-exfatfs-base-20250801:1.52 netbsd-11:1.52.0.28 netbsd-11-base:1.52 netbsd-10-1-RELEASE:1.52 perseant-exfatfs-base-20240630:1.52 perseant-exfatfs:1.52.0.26 perseant-exfatfs-base:1.52 netbsd-8-3-RELEASE:1.40 netbsd-9-4-RELEASE:1.50 netbsd-10-0-RELEASE:1.52 netbsd-10-0-RC6:1.52 netbsd-10-0-RC5:1.52 netbsd-10-0-RC4:1.52 netbsd-10-0-RC3:1.52 netbsd-10-0-RC2:1.52 thorpej-ifq:1.52.0.24 thorpej-ifq-base:1.52 thorpej-altq-separation:1.52.0.22 thorpej-altq-separation-base:1.52 netbsd-10-0-RC1:1.52 netbsd-10:1.52.0.20 netbsd-10-base:1.52 bouyer-sunxi-drm:1.52.0.18 bouyer-sunxi-drm-base:1.52 netbsd-9-3-RELEASE:1.50 thorpej-i2c-spi-conf2:1.52.0.16 thorpej-i2c-spi-conf2-base:1.52 thorpej-futex2:1.52.0.14 thorpej-futex2-base:1.52 thorpej-cfargs2:1.52.0.12 thorpej-cfargs2-base:1.52 cjep_sun2x-base1:1.52 cjep_sun2x:1.52.0.10 cjep_sun2x-base:1.52 cjep_staticlib_x-base1:1.52 netbsd-9-2-RELEASE:1.50 cjep_staticlib_x:1.52.0.8 cjep_staticlib_x-base:1.52 thorpej-i2c-spi-conf:1.52.0.6 thorpej-i2c-spi-conf-base:1.52 thorpej-cfargs:1.52.0.4 thorpej-cfargs-base:1.52 thorpej-futex:1.52.0.2 thorpej-futex-base:1.52 netbsd-9-1-RELEASE:1.50 bouyer-xenpvh-base2:1.50 phil-wifi-20200421:1.50 bouyer-xenpvh-base1:1.50 phil-wifi-20200411:1.50 bouyer-xenpvh:1.50.0.8 bouyer-xenpvh-base:1.50 is-mlppp:1.50.0.6 is-mlppp-base:1.50 phil-wifi-20200406:1.50 netbsd-8-2-RELEASE:1.40 ad-namecache-base3:1.50 netbsd-9-0-RELEASE:1.50 netbsd-9-0-RC2:1.50 ad-namecache-base2:1.50 ad-namecache-base1:1.50 ad-namecache:1.50.0.4 ad-namecache-base:1.50 netbsd-9-0-RC1:1.50 phil-wifi-20191119:1.50 netbsd-9:1.50.0.2 netbsd-9-base:1.50 phil-wifi-20190609:1.49 netbsd-8-1-RELEASE:1.40 netbsd-8-1-RC1:1.40 isaki-audio2:1.49.0.2 isaki-audio2-base:1.49 pgoyette-compat-merge-20190127:1.46.2.3 pgoyette-compat-20190127:1.49 pgoyette-compat-20190118:1.49 pgoyette-compat-1226:1.49 pgoyette-compat-1126:1.49 pgoyette-compat-1020:1.49 pgoyette-compat-0930:1.49 pgoyette-compat-0906:1.49 pgoyette-compat-0728:1.49 netbsd-8-0-RELEASE:1.40 phil-wifi:1.48.0.2 phil-wifi-base:1.48 pgoyette-compat-0625:1.48 netbsd-8-0-RC2:1.40 pgoyette-compat-0521:1.48 pgoyette-compat-0502:1.48 pgoyette-compat-0422:1.48 netbsd-8-0-RC1:1.40 pgoyette-compat-0415:1.48 pgoyette-compat-0407:1.48 pgoyette-compat-0330:1.47 pgoyette-compat-0322:1.47 pgoyette-compat-0315:1.46 pgoyette-compat:1.46.0.2 pgoyette-compat-base:1.46 tls-maxphys:1.45.0.2 tls-maxphys-base-20171202:1.45 matt-nb8-mediatek:1.40.0.6 matt-nb8-mediatek-base:1.40 nick-nhusb-base-20170825:1.41 perseant-stdc-iso10646:1.40.0.4 perseant-stdc-iso10646-base:1.40 netbsd-8:1.40.0.2 netbsd-8-base:1.40 prg-localcount2-base3:1.35 prg-localcount2-base2:1.35 prg-localcount2-base1:1.35 prg-localcount2:1.33.0.2 prg-localcount2-base:1.33 pgoyette-localcount-20170426:1.33 bouyer-socketcan-base1:1.30 jdolecek-ncq:1.29.0.4 jdolecek-ncq-base:1.29 pgoyette-localcount-20170320:1.29 nick-nhusb-base-20170204:1.29 bouyer-socketcan:1.29.0.2 bouyer-socketcan-base:1.29 pgoyette-localcount-20170107:1.29 nick-nhusb-base-20161204:1.29 pgoyette-localcount-20161104:1.29 nick-nhusb-base-20161004:1.29 localcount-20160914:1.28 pgoyette-localcount-20160806:1.28 pgoyette-localcount-20160726:1.28 pgoyette-localcount:1.28.0.2 pgoyette-localcount-base:1.28 nick-nhusb-base-20160907:1.28 nick-nhusb-base-20160529:1.28 nick-nhusb-base-20160422:1.28 nick-nhusb-base-20160319:1.28 nick-nhusb-base-20151226:1.28 nick-nhusb-base-20150921:1.16 nick-nhusb-base-20150606:1.14 nick-nhusb:1.2.0.2 nick-nhusb-base-20150406:1.2; locks; strict; comment @# @; 1.53 date 2025.09.06.15.44.02; author thorpej; state Exp; branches; next 1.52; commitid 9V4ybx31NXy5wF9G; 1.52 date 2020.08.29.19.06.17; author jakllsch; state Exp; branches; next 1.51; commitid p3DOxGPFiB7EyZlC; 1.51 date 2020.07.08.22.28.21; author uwe; state Exp; branches; next 1.50; commitid Bj8KoLRaYWuznkfC; 1.50 date 2019.07.27.14.05.04; author skrll; state Exp; branches; next 1.49; commitid pG5kj8HtHwzmKGwB; 1.49 date 2018.07.08.11.37.50; author jmcneill; state Exp; branches; next 1.48; commitid ahT0UHr4tlN6hkJA; 1.48 date 2018.04.01.04.35.04; author ryo; state Exp; branches 1.48.2.1; next 1.47; commitid Rbo0y8tEIcKr5HwA; 1.47 date 2018.03.17.18.34.09; author ryo; state Exp; branches; next 1.46; commitid b7lKxCAbcAnedQuA; 1.46 date 2017.12.26.14.54.52; author jmcneill; state Exp; branches 1.46.2.1; next 1.45; commitid ruMVPyCrlorhBpkA; 1.45 date 2017.09.26.16.12.45; author jmcneill; state Exp; branches 1.45.2.1; next 1.44; commitid YbxVeNPZon1oXI8A; 1.44 date 2017.09.22.14.36.22; author jmcneill; state Exp; branches; next 1.43; commitid bYyd0jDI6aIcyc8A; 1.43 date 2017.09.19.23.18.01; author jmcneill; state Exp; branches; next 1.42; commitid 781xSrjyx5e5xR7A; 1.42 date 2017.09.19.20.46.12; author jmcneill; state Exp; branches; next 1.41; commitid lDtP9Ry0lEB2HQ7A; 1.41 date 2017.07.21.01.01.22; author jmcneill; state Exp; branches; next 1.40; commitid lw7NgPoEw6Vj420A; 1.40 date 2017.06.02.00.09.56; author jmcneill; state Exp; branches; next 1.39; commitid LJFxzW5AvcpckJTz; 1.39 date 2017.05.30.22.55.26; author jmcneill; state Exp; branches; next 1.38; commitid ZztECOq8tOTF0tTz; 1.38 date 2017.05.28.23.39.30; author jmcneill; state Exp; branches; next 1.37; commitid 0OOemJMbF1MyhdTz; 1.37 date 2017.05.28.00.40.20; author jmcneill; state Exp; branches; next 1.36; commitid if4ELrtmtX6qG5Tz; 1.36 date 2017.05.25.23.26.48; author jmcneill; state Exp; branches; next 1.35; commitid J0nRAKDR6vXilPSz; 1.35 date 2017.04.29.11.01.51; author jmcneill; state Exp; branches; next 1.34; commitid cURENFMKS5CE3qPz; 1.34 date 2017.04.28.09.46.49; author jmcneill; state Exp; branches; next 1.33; commitid ZDqGVbnQr85OFhPz; 1.33 date 2017.04.23.12.31.38; author jmcneill; state Exp; branches 1.33.2.1; next 1.32; commitid AmrZs3WEwt7vKEOz; 1.32 date 2017.04.22.23.53.24; author jmcneill; state Exp; branches; next 1.31; commitid W3C4pYwn7zI4yAOz; 1.31 date 2017.04.21.23.35.29; author jmcneill; state Exp; branches; next 1.30; commitid unBpIAesK4BgusOz; 1.30 date 2017.04.11.11.32.51; author jmcneill; state Exp; branches; next 1.29; commitid ERVsNf8IXITfO6Nz; 1.29 date 2016.09.26.20.05.03; author jakllsch; state Exp; branches 1.29.2.1; next 1.28; commitid a99UmIQnddq9XPnz; 1.28 date 2015.12.22.22.10.36; author jmcneill; state Exp; branches 1.28.2.1; next 1.27; commitid OOrrscly9cEnDZNy; 1.27 date 2015.12.13.22.55.05; author jmcneill; state Exp; branches; next 1.26; commitid ROfXN7PAYfOQaQMy; 1.26 date 2015.12.13.21.24.06; author jmcneill; state Exp; branches; next 1.25; commitid ztxOrqgCbheGFPMy; 1.25 date 2015.12.13.17.39.19; author jmcneill; state Exp; branches; next 1.24; commitid 6hhLZAcBxLCiqOMy; 1.24 date 2015.11.21.22.55.32; author jmcneill; state Exp; branches; next 1.23; commitid MGlZacGzVBQGS0Ky; 1.23 date 2015.11.21.12.09.39; author jmcneill; state Exp; branches; next 1.22; commitid UZcHjxo5LetViXJy; 1.22 date 2015.11.19.22.09.16; author jmcneill; state Exp; branches; next 1.21; commitid ASlpQs2AiJCYGKJy; 1.21 date 2015.11.12.00.43.52; author jmcneill; state Exp; branches; next 1.20; commitid aV2G7w8vcMveNJIy; 1.20 date 2015.11.09.23.05.58; author jmcneill; state Exp; branches; next 1.19; commitid foLO6SWuLQ6vhtIy; 1.19 date 2015.10.21.20.02.12; author jmcneill; state Exp; branches; next 1.18; commitid ALltUOziToy2V0Gy; 1.18 date 2015.10.19.21.18.36; author jmcneill; state Exp; branches; next 1.17; commitid 1eczfg2TVmMopLFy; 1.17 date 2015.10.17.21.18.16; author jmcneill; state Exp; branches; next 1.16; commitid 7F7QXZqSQFa2tvFy; 1.16 date 2015.08.22.15.10.04; author jmcneill; state Exp; branches; next 1.15; commitid bTZuKku8nNnfehyy; 1.15 date 2015.08.01.21.20.11; author jmcneill; state Exp; branches; next 1.14; commitid ImIS976oL0qlXBvy; 1.14 date 2015.05.30.13.25.55; author jmcneill; state Exp; branches; next 1.13; commitid F15JDP5ARMITltny; 1.13 date 2015.05.18.20.36.42; author jmcneill; state Exp; branches; next 1.12; commitid dpLg5EE5wsDM7Yly; 1.12 date 2015.05.18.19.32.48; author jmcneill; state Exp; branches; next 1.11; commitid qJWJG9SNOGlSLXly; 1.11 date 2015.05.15.11.49.10; author jmcneill; state Exp; branches; next 1.10; commitid opT428yNy6lWixly; 1.10 date 2015.05.13.11.06.13; author jmcneill; state Exp; branches; next 1.9; commitid cIuoeBBc7RsZ7hly; 1.9 date 2015.05.10.23.50.21; author jmcneill; state Exp; branches; next 1.8; commitid 3slEZ9UauSpjsXky; 1.8 date 2015.05.07.23.55.11; author jmcneill; state Exp; branches; next 1.7; commitid gALgCB8IqMQWzzky; 1.7 date 2015.05.05.00.25.44; author jmcneill; state Exp; branches; next 1.6; commitid JFx97yglMlhfQbky; 1.6 date 2015.05.03.01.07.44; author jmcneill; state Exp; branches; next 1.5; commitid rIMgxwJtPehh8Wjy; 1.5 date 2015.05.02.17.15.20; author jmcneill; state Exp; branches; next 1.4; commitid wY3qxLY3153KwTjy; 1.4 date 2015.05.02.12.09.04; author jmcneill; state Exp; branches; next 1.3; commitid T6Gr8ZXLS9TFPRjy; 1.3 date 2015.04.28.11.15.55; author jmcneill; state Exp; branches; next 1.2; commitid Fnvj44XGfJ8jFljy; 1.2 date 2015.03.29.22.27.04; author jmcneill; state Exp; branches 1.2.2.1; next 1.1; commitid 6fH5eDSKGKlllyfy; 1.1 date 2015.03.29.10.41.59; author jmcneill; state Exp; branches; next ; commitid lX1uoIYXP4wrrufy; 1.48.2.1 date 2019.06.10.22.05.55; author christos; state Exp; branches; next 1.48.2.2; commitid jtc8rnCzWiEEHGqB; 1.48.2.2 date 2020.04.13.08.03.36; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.46.2.1 date 2018.03.22.01.44.43; author pgoyette; state Exp; branches; next 1.46.2.2; commitid fxb4Rxa9G9QMsovA; 1.46.2.2 date 2018.04.07.04.12.12; author pgoyette; state Exp; branches; next 1.46.2.3; commitid ZMkKSYuBapz7LsxA; 1.46.2.3 date 2018.07.28.04.37.28; author pgoyette; state Exp; branches; next ; commitid 1UP1xAIUxv1ZgRLA; 1.45.2.1 date 2017.09.26.16.12.45; author jdolecek; state dead; branches; next 1.45.2.2; commitid XcIYRZTAh1LmerhA; 1.45.2.2 date 2017.12.03.11.35.54; author jdolecek; state Exp; branches; next ; commitid XcIYRZTAh1LmerhA; 1.33.2.1 date 2017.05.02.03.19.16; author pgoyette; state Exp; branches; next ; commitid oFKELrgrBgUNoLPz; 1.29.2.1 date 2017.04.21.16.53.23; author bouyer; state Exp; branches; next ; commitid dUG7nkTKALCadqOz; 1.28.2.1 date 2016.11.04.14.48.58; author pgoyette; state Exp; branches; next 1.28.2.2; commitid 2m1JRwYmpwPkOOsz; 1.28.2.2 date 2017.04.26.02.53.00; author pgoyette; state Exp; branches; next ; commitid ojV02aOSdzvBqZOz; 1.2.2.1 date 2015.03.29.22.27.04; author skrll; state dead; branches; next 1.2.2.2; commitid pz01Zhy7RP6iGxgy; 1.2.2.2 date 2015.04.06.15.17.53; author skrll; state Exp; branches; next 1.2.2.3; commitid pz01Zhy7RP6iGxgy; 1.2.2.3 date 2015.06.06.14.39.56; author skrll; state Exp; branches; next 1.2.2.4; commitid O6LVO5i6UulOvnoy; 1.2.2.4 date 2015.09.22.12.05.37; author skrll; state Exp; branches; next 1.2.2.5; commitid CpNWKp3ozVNTafCy; 1.2.2.5 date 2015.12.27.12.09.31; author skrll; state Exp; branches; next 1.2.2.6; commitid BTSqUD4SdJ5k7AOy; 1.2.2.6 date 2016.10.05.20.55.25; author skrll; state Exp; branches; next 1.2.2.7; commitid uuAdz3JYHQmaWZoz; 1.2.2.7 date 2017.08.28.17.51.31; author skrll; state Exp; branches; next ; commitid UQQpnjvcNkUZn05A; desc @@ 1.53 log @Step towards modularizing the Flattened Device Tree code. Define attributes for each of the specific device bindings: clock, dai, dma, gpio, i2c, iommu, mbox, mmc_pwrseq, phy, power, power domain, pwm, regulator, reset controller, spi, system controller, pin controller. Include these support files only if either a provider or consumer with one of these attributes is present in the kernel config. Add the necessary attributes to the device / attach declarations for each provider and consumer. There are some bindings that are consumed by generic code (iommu, pinctrl, power, power domain). Provide weak stubs for these routines to handle situations where there is no provider. No actual code changed; NFCI. @ text @# $NetBSD: files.tegra,v 1.52 2020/08/29 19:06:17 jakllsch Exp $ # # Configuration info for NVIDIA Tegra ARM Peripherals # file arch/arm/nvidia/tegra_platform.c file arch/arm/nvidia/tegra_soc.c file arch/arm/nvidia/tegra_cpufreq.c # Tegra T124 (32-bit K1) support file arch/arm/nvidia/soc_tegra124.c soc_tegra124 device tegra124cpu: fdt_clock, fdt_regulator attach tegra124cpu at cpu with tegra124_cpu file arch/arm/nvidia/tegra124_cpu.c tegra124_cpu # Interrupt controller device tegralic attach tegralic at fdt with tegra_lic file arch/arm/nvidia/tegra_lic.c tegra_lic # Memory controller device tegramc attach tegramc at fdt with tegra_mc file arch/arm/nvidia/tegra_mc.c tegra_mc # Power management controller device tegrapmc attach tegrapmc at fdt with tegra_pmc file arch/arm/nvidia/tegra_pmc.c tegra_pmc # eFUSE device tegrafuse: fdt_clock, fdt_reset attach tegrafuse at fdt with tegra_fuse file arch/arm/nvidia/tegra_fuse.c tegra_fuse # Clock and Reset controller (T124) device tegra124car: fdt_clock, fdt_reset attach tegra124car at fdt with tegra124_car file arch/arm/nvidia/tegra124_car.c tegra124_car # Clock and Reset controller (T210) device tegra210car: fdt_clock, fdt_reset attach tegra210car at fdt with tegra210_car file arch/arm/nvidia/tegra210_car.c tegra210_car # GPIO controller device tegragpio: fdt_gpio, gpiobus attach tegragpio at fdt with tegra_gpio file arch/arm/nvidia/tegra_gpio.c tegra_gpio # Timers device tegratimer: sysmon_wdog attach tegratimer at fdt with tegra_timer file arch/arm/nvidia/tegra_timer.c tegra_timer # MPIO / Pinmux device tegrapinmux: fdt_pinctrl attach tegrapinmux at fdt with tegra_pinmux file arch/arm/nvidia/tegra_pinmux.c tegra_pinmux file arch/arm/nvidia/tegra210_pinmux.c tegra_pinmux & soc_tegra210 # APB DMA device tegraapbdma: fdt_clock, fdt_dma, fdt_reset attach tegraapbdma at fdt with tegra_apbdma file arch/arm/nvidia/tegra_apbdma.c tegra_apbdma # XUSB PADCTL (common) file arch/arm/nvidia/tegra_xusbpad.c tegra_xusbpad defflag opt_tegra.h TEGRA_XUSBPAD_DEBUG # XUSB PADCTL (Tegra124) device tegra124xpad: tegra_xusbpad attach tegra124xpad at fdt with tegra124_xusbpad file arch/arm/nvidia/tegra124_xusbpad.c tegra124_xusbpad # XUSB PADCTL (Tegra210) device tegra210xpad { }: fdt_clock, fdt_regulator, fdt_reset, tegra_xusbpad device tegra210xphy: fdt_phy, tegra210xpad attach tegra210xpad at fdt with tegra210_xusbpad attach tegra210xphy at tegra210xpad file arch/arm/nvidia/tegra210_xusbpad.c tegra210_xusbpad # UART attach com at fdt with tegra_com: fdt_clock, fdt_reset file arch/arm/nvidia/tegra_com.c tegra_com # I2C device tegrai2c: fdt_clock, fdt_i2c, fdt_reset, i2cbus, i2cexec attach tegrai2c at fdt with tegra_i2c file arch/arm/nvidia/tegra_i2c.c tegra_i2c # RTC device tegrartc attach tegrartc at fdt with tegra_rtc file arch/arm/nvidia/tegra_rtc.c tegra_rtc # USB PHY device tegrausbphy: fdt_clock, fdt_regulator, fdt_reset attach tegrausbphy at fdt with tegra_usbphy file arch/arm/nvidia/tegra_usbphy.c tegra_usbphy # USB 2.0 attach ehci at fdt with tegra_ehci file arch/arm/nvidia/tegra_ehci.c tegra_ehci # XUSB (USB 3.0) attach xhci at fdt with tegra_xusb : fdt_clock, fdt_phy, fdt_regulator, fdt_reset, firmload file arch/arm/nvidia/tegra_xusb.c tegra_xusb defflag opt_tegra.h TEGRA_XUSB_DEBUG defflag opt_tegra.h TEGRA124_XUSB_BIN_STATIC defflag opt_tegra.h TEGRA210_XUSB_BIN_STATIC # SDMMC attach sdhc at fdt with tegra_sdhc: fdt_clock, fdt_gpio, fdt_regulator, fdt_reset file arch/arm/nvidia/tegra_sdhc.c tegra_sdhc # Thermal throttling controller device tegrasoctherm: fdt_clock, fdt_reset, sysmon_envsys attach tegrasoctherm at fdt with tegra_soctherm file arch/arm/nvidia/tegra_soctherm.c tegra_soctherm # PCIE device tegrapcie: fdt_clock, fdt_phy, fdt_reset, pcibus attach tegrapcie at fdt with tegra_pcie file arch/arm/nvidia/tegra_pcie.c tegra_pcie # SATA attach ahcisata at fdt with tegra_ahcisata: fdt_clock, fdt_phy, fdt_regulator, fdt_reset file arch/arm/nvidia/tegra_ahcisata.c tegra_ahcisata # HDA attach hdaudio at fdt with tegra_hdaudio: fdt_clock, fdt_reset file arch/arm/nvidia/tegra_hdaudio.c tegra_hdaudio # HDMI CEC device tegracec: fdt_clock, fdt_reset, hdmicecbus attach tegracec at fdt with tegra_cec file arch/arm/nvidia/tegra_cec.c tegra_cec # Display define tegrafbbus { } device tegradrm: fdt_clock, fdt_gpio, fdt_i2c, fdt_regulator, fdt_reset, drmkms, ddc_read_edid, tegrafbbus attach tegradrm at fdt with tegra_drm file arch/arm/nvidia/tegra_drm.c tegra_drm file arch/arm/nvidia/tegra_drm_mode.c tegra_drm file arch/arm/nvidia/tegra_drm_fb.c tegra_drm # Framebuffer console device tegrafb: tegrafbbus, drmfb, wsemuldisplaydev attach tegrafb at tegrafbbus with tegra_fb file arch/arm/nvidia/tegra_fb.c tegra_fb # GPU attach nouveau at fdt with tegra_nouveau: fdt_clock, fdt_reset file arch/arm/nvidia/tegra_nouveau.c tegra_nouveau # SOC parameters defflag opt_tegra.h SOC_TEGRAK1 defflag opt_tegra.h SOC_TEGRAX1 defflag opt_tegra.h SOC_TEGRA124: SOC_TEGRAK1 defflag opt_tegra.h SOC_TEGRA210: SOC_TEGRAX1 @ 1.52 log @tegra_xusb: fix xusb static firmware build To work around objcopy and ld now being unable to create a EABI5 object from a binary, use the assembler directive .incbin in inline assembly to pull in the firmware blob. This also probably makes TEGRA210_XUSB_BIN_STATIC actually work. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.51 2020/07/08 22:28:21 uwe Exp $ d12 1 a12 1 device tegra124cpu d32 1 a32 1 device tegrafuse d37 1 a37 1 device tegra124car: clk d42 1 a42 1 device tegra210car: clk d47 1 a47 1 device tegragpio: gpiobus d57 1 a57 1 device tegrapinmux d63 1 a63 1 device tegraapbdma d77 2 a78 2 device tegra210xpad { }: tegra_xusbpad device tegra210xphy: tegra210xpad d85 1 a85 1 attach com at fdt with tegra_com d89 1 a89 1 device tegrai2c: i2cbus, i2cexec d99 1 a99 1 device tegrausbphy d108 1 a108 1 attach xhci at fdt with tegra_xusb : firmload d115 1 a115 1 attach sdhc at fdt with tegra_sdhc d119 1 a119 1 device tegrasoctherm: sysmon_envsys d124 1 a124 1 device tegrapcie: pcibus d129 1 a129 1 attach ahcisata at fdt with tegra_ahcisata d133 1 a133 1 attach hdaudio at fdt with tegra_hdaudio d137 1 a137 1 device tegracec: hdmicecbus d143 1 a143 1 device tegradrm: drmkms, ddc_read_edid, tegrafbbus d155 1 a155 1 attach nouveau at fdt with tegra_nouveau @ 1.51 log @tegra_xusb depends on firmload. Make the dependency explicit, do not rely on some random USB device to pull it in. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.50 2019/07/27 14:05:04 skrll Exp $ d111 2 @ 1.50 log @Remove unused needs-flag @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.49 2018/07/08 11:37:50 jmcneill Exp $ d108 1 a108 1 attach xhci at fdt with tegra_xusb @ 1.49 log @Use psci_fdt_bootstrap for MP spinup on Tegra210. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.48 2018/04/01 04:35:04 ryo Exp $ d86 1 a86 1 file arch/arm/nvidia/tegra_com.c tegra_com needs-flag @ 1.48 log @Add initial support for ARMv8 (AARCH64) (by nisimura@@ and ryo@@) - sys/arch/evbarm64 is gone and integrated into sys/arch/evbarm. (by skrll@@) - add support fdt. evbarm/conf/GENERIC64 fdt (bcm2837,sunxi,tegra) based generic 64bit kernel config. (by skrll@@, jmcneill@@) @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.47 2018/03/17 18:34:09 ryo Exp $ a15 3 # Tegra T210 (X1) support file arch/arm/nvidia/soc_tegra210.c soc_tegra210 @ 1.48.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.49 2018/07/08 11:37:50 jmcneill Exp $ d16 3 @ 1.48.2.2 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 # $NetBSD$ d86 1 a86 1 file arch/arm/nvidia/tegra_com.c tegra_com @ 1.47 log @move from sys/arch/arm/arm32/armv7_generic_dma.c to sys/arch/arm/arm/arm_generic_dma.c, and change variable name from armv7_generic_dma_tag to arm_generic_dma_tag no functional change. (preliminary changes for merging aarch64) @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.46 2017/12/26 14:54:52 jmcneill Exp $ a5 11 include "arch/arm/pic/files.pic" include "arch/arm/cortex/files.cortex" file arch/arm/arm32/arm32_boot.c file arch/arm/arm32/arm32_kvminit.c file arch/arm/arm32/arm32_reboot.c file arch/arm/arm32/irq_dispatch.S file arch/arm/arm32/armv7_generic_space.c file arch/arm/arm/arm_generic_dma.c file arch/arm/arm/bus_space_a4x.S @ 1.46 log @Use DRM GEM/CMA helper. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.45 2017/09/26 16:12:45 jmcneill Exp $ d14 1 a14 1 file arch/arm/arm32/armv7_generic_dma.c @ 1.46.2.1 log @Synch with HEAD, resolve conflicts @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.47 2018/03/17 18:34:09 ryo Exp $ d14 1 a14 1 file arch/arm/arm/arm_generic_dma.c @ 1.46.2.2 log @Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$ @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.48 2018/04/01 04:35:04 ryo Exp $ d6 11 @ 1.46.2.3 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.49 2018/07/08 11:37:50 jmcneill Exp $ d16 3 @ 1.45 log @More PCIe / XUSBPAD initialization goo for Tegra210. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.44 2017/09/22 14:36:22 jmcneill Exp $ a159 1 file arch/arm/nvidia/tegra_drm_gem.c tegra_drm @ 1.45.2.1 log @file files.tegra was added on branch tls-maxphys on 2017-12-03 11:35:54 +0000 @ text @d1 175 @ 1.45.2.2 log @update from HEAD @ text @a0 175 # $NetBSD$ # # Configuration info for NVIDIA Tegra ARM Peripherals # include "arch/arm/pic/files.pic" include "arch/arm/cortex/files.cortex" file arch/arm/arm32/arm32_boot.c file arch/arm/arm32/arm32_kvminit.c file arch/arm/arm32/arm32_reboot.c file arch/arm/arm32/irq_dispatch.S file arch/arm/arm32/armv7_generic_space.c file arch/arm/arm32/armv7_generic_dma.c file arch/arm/arm/bus_space_a4x.S file arch/arm/nvidia/tegra_platform.c file arch/arm/nvidia/tegra_soc.c file arch/arm/nvidia/tegra_cpufreq.c # Tegra T124 (32-bit K1) support file arch/arm/nvidia/soc_tegra124.c soc_tegra124 device tegra124cpu attach tegra124cpu at cpu with tegra124_cpu file arch/arm/nvidia/tegra124_cpu.c tegra124_cpu # Tegra T210 (X1) support file arch/arm/nvidia/soc_tegra210.c soc_tegra210 # Interrupt controller device tegralic attach tegralic at fdt with tegra_lic file arch/arm/nvidia/tegra_lic.c tegra_lic # Memory controller device tegramc attach tegramc at fdt with tegra_mc file arch/arm/nvidia/tegra_mc.c tegra_mc # Power management controller device tegrapmc attach tegrapmc at fdt with tegra_pmc file arch/arm/nvidia/tegra_pmc.c tegra_pmc # eFUSE device tegrafuse attach tegrafuse at fdt with tegra_fuse file arch/arm/nvidia/tegra_fuse.c tegra_fuse # Clock and Reset controller (T124) device tegra124car: clk attach tegra124car at fdt with tegra124_car file arch/arm/nvidia/tegra124_car.c tegra124_car # Clock and Reset controller (T210) device tegra210car: clk attach tegra210car at fdt with tegra210_car file arch/arm/nvidia/tegra210_car.c tegra210_car # GPIO controller device tegragpio: gpiobus attach tegragpio at fdt with tegra_gpio file arch/arm/nvidia/tegra_gpio.c tegra_gpio # Timers device tegratimer: sysmon_wdog attach tegratimer at fdt with tegra_timer file arch/arm/nvidia/tegra_timer.c tegra_timer # MPIO / Pinmux device tegrapinmux attach tegrapinmux at fdt with tegra_pinmux file arch/arm/nvidia/tegra_pinmux.c tegra_pinmux file arch/arm/nvidia/tegra210_pinmux.c tegra_pinmux & soc_tegra210 # APB DMA device tegraapbdma attach tegraapbdma at fdt with tegra_apbdma file arch/arm/nvidia/tegra_apbdma.c tegra_apbdma # XUSB PADCTL (common) file arch/arm/nvidia/tegra_xusbpad.c tegra_xusbpad defflag opt_tegra.h TEGRA_XUSBPAD_DEBUG # XUSB PADCTL (Tegra124) device tegra124xpad: tegra_xusbpad attach tegra124xpad at fdt with tegra124_xusbpad file arch/arm/nvidia/tegra124_xusbpad.c tegra124_xusbpad # XUSB PADCTL (Tegra210) device tegra210xpad { }: tegra_xusbpad device tegra210xphy: tegra210xpad attach tegra210xpad at fdt with tegra210_xusbpad attach tegra210xphy at tegra210xpad file arch/arm/nvidia/tegra210_xusbpad.c tegra210_xusbpad # UART attach com at fdt with tegra_com file arch/arm/nvidia/tegra_com.c tegra_com needs-flag # I2C device tegrai2c: i2cbus, i2cexec attach tegrai2c at fdt with tegra_i2c file arch/arm/nvidia/tegra_i2c.c tegra_i2c # RTC device tegrartc attach tegrartc at fdt with tegra_rtc file arch/arm/nvidia/tegra_rtc.c tegra_rtc # USB PHY device tegrausbphy attach tegrausbphy at fdt with tegra_usbphy file arch/arm/nvidia/tegra_usbphy.c tegra_usbphy # USB 2.0 attach ehci at fdt with tegra_ehci file arch/arm/nvidia/tegra_ehci.c tegra_ehci # XUSB (USB 3.0) attach xhci at fdt with tegra_xusb file arch/arm/nvidia/tegra_xusb.c tegra_xusb defflag opt_tegra.h TEGRA_XUSB_DEBUG # SDMMC attach sdhc at fdt with tegra_sdhc file arch/arm/nvidia/tegra_sdhc.c tegra_sdhc # Thermal throttling controller device tegrasoctherm: sysmon_envsys attach tegrasoctherm at fdt with tegra_soctherm file arch/arm/nvidia/tegra_soctherm.c tegra_soctherm # PCIE device tegrapcie: pcibus attach tegrapcie at fdt with tegra_pcie file arch/arm/nvidia/tegra_pcie.c tegra_pcie # SATA attach ahcisata at fdt with tegra_ahcisata file arch/arm/nvidia/tegra_ahcisata.c tegra_ahcisata # HDA attach hdaudio at fdt with tegra_hdaudio file arch/arm/nvidia/tegra_hdaudio.c tegra_hdaudio # HDMI CEC device tegracec: hdmicecbus attach tegracec at fdt with tegra_cec file arch/arm/nvidia/tegra_cec.c tegra_cec # Display define tegrafbbus { } device tegradrm: drmkms, ddc_read_edid, tegrafbbus attach tegradrm at fdt with tegra_drm file arch/arm/nvidia/tegra_drm.c tegra_drm file arch/arm/nvidia/tegra_drm_mode.c tegra_drm file arch/arm/nvidia/tegra_drm_fb.c tegra_drm file arch/arm/nvidia/tegra_drm_gem.c tegra_drm # Framebuffer console device tegrafb: tegrafbbus, drmfb, wsemuldisplaydev attach tegrafb at tegrafbbus with tegra_fb file arch/arm/nvidia/tegra_fb.c tegra_fb # GPU attach nouveau at fdt with tegra_nouveau file arch/arm/nvidia/tegra_nouveau.c tegra_nouveau # SOC parameters defflag opt_tegra.h SOC_TEGRAK1 defflag opt_tegra.h SOC_TEGRAX1 defflag opt_tegra.h SOC_TEGRA124: SOC_TEGRAK1 defflag opt_tegra.h SOC_TEGRA210: SOC_TEGRAX1 @ 1.44 log @Replace unused mpio driver with a more generic interface for pinmux, and add Tegra210 pinmux support. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.43 2017/09/19 23:18:01 jmcneill Exp $ d91 2 a92 1 device tegra210xpad: tegra_xusbpad d94 1 d97 1 @ 1.43 log @Add basic tegra210 xusbpad driver, shorten tegra*xusbpad driver names to tegra*xpad to fit in dv_xname @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.42 2017/09/19 20:46:12 jmcneill Exp $ d71 4 a74 3 device tegrampio attach tegrampio at fdt with tegra_mpio file arch/arm/nvidia/tegra_mpio.c tegra_mpio @ 1.42 log @The xusbpad driver is tegra 124 specific so split it out into a separate driver. Add (not yet working) tegra 210 support to the xusb driver. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.41 2017/07/21 01:01:22 jmcneill Exp $ d85 2 a86 2 device tegra124xusbpad: tegra_xusbpad attach tegra124xusbpad at fdt with tegra124_xusbpad d90 2 a91 2 device tegra210xusbpad: tegra_xusbpad attach tegra210xusbpad at fdt with tegra210_xusbpad @ 1.41 log @Add support for NVIDIA Tegra X1. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.40 2017/06/02 00:09:56 jmcneill Exp $ d80 1 a80 3 # XUSB PADCTL device tegraxusbpad attach tegraxusbpad at fdt with tegra_xusbpad d84 10 @ 1.40 log @Attach Tegra124 DVFS to /cpus/cpu0 now that another driver is claiming the /cpus node. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.39 2017/05/30 22:55:26 jmcneill Exp $ d50 1 a50 1 # Clock and Reset controller d55 5 @ 1.39 log @Fix VERBOSE_INIT_ARM build with TEGRA kernel. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.38 2017/05/28 23:39:30 jmcneill Exp $ d24 1 a24 1 attach tegra124cpu at fdt with tegra124_cpu @ 1.38 log @Add a facility for platform-specific callbacks and use it to remove most of the Tegra-specific code from tegra_machdep.c. Platform code matches on the compatible property of the root ("/") DT node and allows for chip-specific implementations of the following: - devmap: Return a 0-terminated list of static device map entries. - bootstrap: Early initialization of platform-specific facilities. - early_putchar: Provides an implementation of putchar for use in early debug messages. - device_register: Platform-specific device register callback. - reset: Platform-specific CPU reset implementation. - consinit: Platform-specific console init implementation. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.37 2017/05/28 00:40:20 jmcneill Exp $ a153 8 # Console parameters defparam opt_tegra.h CONSADDR defparam opt_tegra.h CONSPEED defparam opt_tegra.h CONMODE # Memory parameters defparam opt_tegra.h MEMSIZE @ 1.37 log @Enumerate CPUs, GIC, and generic timer using FDT data instead of relying on hard-coded tables in mainbus. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.36 2017/05/25 23:26:48 jmcneill Exp $ d17 1 @ 1.36 log @Chip detection and MP spinup code for Tegra210 @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.35 2017/04/29 11:01:51 jmcneill Exp $ d14 1 a16 5 # Devicetree device tegrafdt : bus_space_generic, fdtbus attach tegrafdt at mainbus with tegra_fdt file arch/arm/nvidia/tegra_fdt.c tegra_fdt @ 1.35 log @Add Tegra124 APB-DMA controller driver. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.34 2017/04/28 09:46:49 jmcneill Exp $ d30 3 d167 1 d169 1 @ 1.34 log @Hide the debug output unless either TEGRA_XUSB_DEBUG is defined or tegra_xusb_debug is set to 1. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.33 2017/04/23 12:31:38 jmcneill Exp $ d70 5 @ 1.33 log @Split cpufreq driver out into a separate module. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.32 2017/04/22 23:53:24 jmcneill Exp $ d102 1 @ 1.33.2.1 log @Sync with HEAD - tag prg-localcount2-base1 @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.35 2017/04/29 11:01:51 jmcneill Exp $ a69 5 # APB DMA device tegraapbdma attach tegraapbdma at fdt with tegra_apbdma file arch/arm/nvidia/tegra_apbdma.c tegra_apbdma a101 1 defflag opt_tegra.h TEGRA_XUSB_DEBUG @ 1.32 log @Get rid of tegra_cpuinit after scanning fdt and attach the cpufreq support to the /cpus node. Use regulator API instead of poking directly at the I2C controller to set voltages. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.31 2017/04/21 23:35:29 jmcneill Exp $ d25 1 d28 1 a28 1 file arch/arm/nvidia/soc_tegra124.c soc_tegra124 | tegra124_cpu @ 1.31 log @Fix defparam name (CONADDR -> CONSADDR) @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.30 2017/04/11 11:32:51 jmcneill Exp $ d16 5 a22 1 file arch/arm/nvidia/soc_tegra124.c soc_tegra124 d24 4 a27 4 # On-board I/O device tegrafdt : bus_space_generic, fdtbus attach tegrafdt at mainbus with tegra_fdt file arch/arm/nvidia/tegra_fdt.c tegra_fdt @ 1.30 log @Hide debug messages with TEGRA_XUSBPAD_DEBUG @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.29 2016/09/26 20:05:03 jakllsch Exp $ d144 1 a144 1 defparam opt_tegra.h CONADDR @ 1.29 log @Add xhci(4) attachment glue and firmware handler for Tegra K1 "XUSB" xHCI controller. Adjustments to tegraxusbpad(4) will be needed to connect the controller to actual USB ports. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.28 2015/12/22 22:10:36 jmcneill Exp $ d69 1 @ 1.29.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.30 2017/04/11 11:32:51 jmcneill Exp $ a68 1 defflag opt_tegra.h TEGRA_XUSBPAD_DEBUG @ 1.28 log @Switch Tegra over to fdt based clocks and reset controls. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.27 2015/12/13 22:55:05 jmcneill Exp $ d93 4 @ 1.28.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.29 2016/09/26 20:05:03 jakllsch Exp $ a92 4 # XUSB (USB 3.0) attach xhci at fdt with tegra_xusb file arch/arm/nvidia/tegra_xusb.c tegra_xusb @ 1.28.2.2 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.33 2017/04/23 12:31:38 jmcneill Exp $ d16 5 a20 1 # Devicetree a24 9 file arch/arm/nvidia/tegra_soc.c file arch/arm/nvidia/tegra_cpufreq.c # Tegra T124 (32-bit K1) support file arch/arm/nvidia/soc_tegra124.c soc_tegra124 device tegra124cpu attach tegra124cpu at fdt with tegra124_cpu file arch/arm/nvidia/tegra124_cpu.c tegra124_cpu a68 1 defflag opt_tegra.h TEGRA_XUSBPAD_DEBUG d143 1 a143 1 defparam opt_tegra.h CONSADDR @ 1.27 log @Get rid of board-specific options. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.26 2015/12/13 21:24:06 jmcneill Exp $ d46 3 a48 3 device tegracar attach tegracar at fdt with tegra_car file arch/arm/nvidia/tegra_car.c tegra_car @ 1.26 log @remove tegraio @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.25 2015/12/13 17:39:19 jmcneill Exp $ a148 5 # Board parameters defflag opt_tegra.h TEGRA_UBOOT defflag opt_tegra.h BOARD_JETSONTK1: TEGRA_UBOOT defflag opt_tegra.h BOARD_NYAN_BIG @ 1.25 log @Use fdt for device enumeration. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.24 2015/11/21 22:55:32 jmcneill Exp $ a20 4 device tegraio { [port=-1] } : bus_space_generic attach tegraio at mainbus with tegra_io file arch/arm/nvidia/tegra_io.c tegra_io d135 1 a135 1 attach nouveau at tegraio with tegra_nouveau @ 1.24 log @Add SOC_THERM temperature sensor driver: # envstat -d tegrasoctherm0 Current CritMax WarnMax WarnMin CritMin Unit CPU0: 27.500 degC CPU1: 27.500 degC CPU2: 29.500 degC CPU3: 29.000 degC MEM0: 26.500 degC MEM1: 27.000 degC GPU: 27.000 degC PLLX: 28.000 degC @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.23 2015/11/21 12:09:39 jmcneill Exp $ d25 9 d36 1 a36 1 attach tegramc at tegraio with tegra_mc d41 1 a41 1 attach tegrapmc at tegraio with tegra_pmc d46 1 a46 1 attach tegrafuse at tegraio with tegra_fuse d51 1 a51 1 attach tegracar at tegraio with tegra_car d56 1 a56 1 attach tegragpio at tegraio with tegra_gpio d61 1 a61 1 attach tegratimer at tegraio with tegra_timer d66 1 a66 1 attach tegrampio at tegraio with tegra_mpio d71 1 a71 1 attach tegraxusbpad at tegraio with tegra_xusbpad d75 1 a75 1 attach com at tegraio with tegra_com d80 1 a80 1 attach tegrai2c at tegraio with tegra_i2c d85 1 a85 1 attach tegrartc at tegraio with tegra_rtc a88 1 define tegrausbphybus { } d90 1 a90 1 attach tegrausbphy at tegrausbphybus with tegra_usbphy d94 1 a94 2 device tegraehci: usbus, usbroothub, usb_dma, ehci, tegrausbphybus attach tegraehci at tegraio with tegra_ehci d98 1 a98 1 attach sdhc at tegraio with tegra_sdhc d103 1 a103 1 attach tegrasoctherm at tegraio with tegra_soctherm d108 1 a108 1 attach tegrapcie at tegraio with tegra_pcie d112 1 a112 1 attach ahcisata at tegraio with tegra_ahcisata d116 1 a116 1 attach hdaudio at tegraio with tegra_hdaudio a118 5 # Host1x subsystem device tegrahost1x attach tegrahost1x at tegraio with tegra_host1x file arch/arm/nvidia/tegra_host1x.c tegra_host1x d121 1 a121 1 attach tegracec at tegraio with tegra_cec d126 2 a127 2 device tegradrm: drmkms, tegrafbbus attach tegradrm at tegraio with tegra_drm @ 1.23 log @Add FUSE driver, use it to determine maximum CPU frequency for the board. Retire CPUFREQ_BOOT option and always use highest available CPU frequency. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.22 2015/11/19 22:09:16 jmcneill Exp $ d94 5 @ 1.22 log @Remove HOST1X and AHB_A2 from pmap_devmap @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.21 2015/11/12 00:43:52 jmcneill Exp $ d35 5 a142 3 # CPU parameters defparam opt_tegra.h CPUFREQ_BOOT @ 1.21 log @Use GEM for memory management. Fixes a couple issues while here: - No longer needs to allocate 35MB (!) for framebuffer console. - Allows xrandr to switch to modes larger than the framebuffer console. - Removes hack that redirected mmap calls to wsdisplay0 @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.20 2015/11/09 23:05:58 jmcneill Exp $ d75 1 d77 1 a77 1 attach tegrausbphy at tegraio with tegra_usbphy d81 2 a82 1 attach ehci at tegraio with tegra_ehci @ 1.20 log @Port the Tegra (2D) display drivers to the DRM framework. tegradrm0 at tegraio0 tegrafb0 at tegradrm0 tegrafb0: framebuffer at 0x9b000000, size 1280x720, depth 32, stride 5120 wsdisplay0 at tegrafb0 kbdmux 1 wsmux1: connecting to wsdisplay0 wsdisplay0: screen 0-3 added (default, vt100 emulation) tegradrm0: info: registered panic notifier tegradrm0: initialized tegra 0.1.0 20151108 on minor 0 Same features as before (fb console, X wsfb driver works) with the addition of being able to use xf86-video-modesetting and xrandr to switch video modes at runtime. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.19 2015/10/21 20:02:12 jmcneill Exp $ d117 1 @ 1.19 log @Split out USB PHY support out of the ehci glue and into a separate driver. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.18 2015/10/19 21:18:36 jmcneill Exp $ a104 15 # Display controller device tegradc { } attach tegradc at tegraio with tegra_dc file arch/arm/nvidia/tegra_dc.c tegra_dc # Framebuffer console attach genfb at tegradc with tegra_genfb file arch/arm/nvidia/tegra_genfb.c tegra_genfb # HDMI device tegrahdmi: edid, ddc_read_edid, videomode attach tegrahdmi at tegraio with tegra_hdmi file arch/arm/nvidia/tegra_hdmi.c tegra_hdmi defflag opt_tegra.h TEGRA_HDMI_DEBUG d110 13 @ 1.18 log @defflag TEGRA_HDMI_DEBUG @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.17 2015/10/17 21:18:16 jmcneill Exp $ d74 5 @ 1.17 log @Add bus glue for attaching nouveau DRM @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.16 2015/08/22 15:10:04 jmcneill Exp $ d113 1 @ 1.16 log @Add kernel config for Tegra K1 "Nyan Big" board, as found in the Acer Chromebook 13 (CB5-311). @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.15 2015/08/01 21:20:11 jmcneill Exp $ d119 4 @ 1.15 log @Add driver for Tegra HDMI CEC controller. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.14 2015/05/30 13:25:55 jmcneill Exp $ d135 3 a137 1 defflag opt_tegra.h BOARD_JETSONTK1 @ 1.14 log @Tegra K1 Watchdog support. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.13 2015/05/18 20:36:42 jmcneill Exp $ d114 5 @ 1.13 log @Power-on Host1x subsystem @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.12 2015/05/18 19:32:48 jmcneill Exp $ d45 5 @ 1.12 log @Work in progress HDMI / framebuffer support for Tegra K1. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.11 2015/05/15 11:49:10 jmcneill Exp $ d90 5 @ 1.11 log @Tegra XUSB PADCTL driver @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.10 2015/05/13 11:06:13 jmcneill Exp $ d90 14 @ 1.10 log @Tegra K1 CPU frequency scaling support. jetsontk1# sysctl machdep.cpu machdep.cpu.frequency.target = 2292 machdep.cpu.frequency.current = 2292 machdep.cpu.frequency.available = 2292 2100 1896 1692 1500 1296 1092 900 696 @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.9 2015/05/10 23:50:21 jmcneill Exp $ d50 5 @ 1.9 log @Tegra I2C driver @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.8 2015/05/07 23:55:11 jmcneill Exp $ d17 1 d93 3 @ 1.8 log @add Tegra MPIO / Pinmux driver @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.7 2015/05/05 00:25:44 jmcneill Exp $ d53 5 @ 1.7 log @Tegra K1 RTC driver. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.6 2015/05/03 01:07:44 jmcneill Exp $ d44 5 @ 1.6 log @Add Tegra K1 PCIE support. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.5 2015/05/02 17:15:20 jmcneill Exp $ d48 5 @ 1.5 log @jetsontk1 specific gpio setup for sdhc @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.4 2015/05/02 12:09:04 jmcneill Exp $ d56 5 @ 1.4 log @hook in gpio driver @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.3 2015/04/28 11:15:55 jmcneill Exp $ d75 3 @ 1.3 log @Add a basic driver for the Clock and Reset controller, use it to determine CPU frequency. @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.2 2015/03/29 22:27:04 jmcneill Exp $ d39 5 @ 1.2 log @Use shared armv7_generic_space @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.1 2015/03/29 10:41:59 jmcneill Exp $ d34 5 @ 1.2.2.1 log @file files.tegra was added on branch nick-nhusb on 2015-04-06 15:17:53 +0000 @ text @d1 64 @ 1.2.2.2 log @Sync with HEAD @ text @a0 64 # $NetBSD: files.tegra,v 1.2 2015/03/29 22:27:04 jmcneill Exp $ # # Configuration info for NVIDIA Tegra ARM Peripherals # include "arch/arm/pic/files.pic" include "arch/arm/cortex/files.cortex" file arch/arm/arm32/arm32_boot.c file arch/arm/arm32/arm32_kvminit.c file arch/arm/arm32/arm32_reboot.c file arch/arm/arm32/irq_dispatch.S file arch/arm/arm32/armv7_generic_space.c file arch/arm/arm/bus_space_a4x.S file arch/arm/nvidia/tegra_soc.c file arch/arm/nvidia/soc_tegra124.c soc_tegra124 # On-board I/O device tegraio { [port=-1] } : bus_space_generic attach tegraio at mainbus with tegra_io file arch/arm/nvidia/tegra_io.c tegra_io # Memory controller device tegramc attach tegramc at tegraio with tegra_mc file arch/arm/nvidia/tegra_mc.c tegra_mc # Power management controller device tegrapmc attach tegrapmc at tegraio with tegra_pmc file arch/arm/nvidia/tegra_pmc.c tegra_pmc # UART attach com at tegraio with tegra_com file arch/arm/nvidia/tegra_com.c tegra_com needs-flag # USB 2.0 attach ehci at tegraio with tegra_ehci file arch/arm/nvidia/tegra_ehci.c tegra_ehci # SDMMC attach sdhc at tegraio with tegra_sdhc file arch/arm/nvidia/tegra_sdhc.c tegra_sdhc # SATA attach ahcisata at tegraio with tegra_ahcisata file arch/arm/nvidia/tegra_ahcisata.c tegra_ahcisata # HDA attach hdaudio at tegraio with tegra_hdaudio file arch/arm/nvidia/tegra_hdaudio.c tegra_hdaudio # Console parameters defparam opt_tegra.h CONADDR defparam opt_tegra.h CONSPEED defparam opt_tegra.h CONMODE # Memory parameters defparam opt_tegra.h MEMSIZE # SOC parameters defflag opt_tegra.h SOC_TEGRAK1 defflag opt_tegra.h SOC_TEGRA124: SOC_TEGRAK1 @ 1.2.2.3 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.2.2.2 2015/04/06 15:17:53 skrll Exp $ a16 1 file arch/arm/nvidia/tegra_cpufreq.c d21 1 a21 1 attach tegraio at mainbus with tegra_io a33 25 # Clock and Reset controller device tegracar attach tegracar at tegraio with tegra_car file arch/arm/nvidia/tegra_car.c tegra_car # GPIO controller device tegragpio: gpiobus attach tegragpio at tegraio with tegra_gpio file arch/arm/nvidia/tegra_gpio.c tegra_gpio # Timers device tegratimer: sysmon_wdog attach tegratimer at tegraio with tegra_timer file arch/arm/nvidia/tegra_timer.c tegra_timer # MPIO / Pinmux device tegrampio attach tegrampio at tegraio with tegra_mpio file arch/arm/nvidia/tegra_mpio.c tegra_mpio # XUSB PADCTL device tegraxusbpad attach tegraxusbpad at tegraio with tegra_xusbpad file arch/arm/nvidia/tegra_xusbpad.c tegra_xusbpad a37 10 # I2C device tegrai2c: i2cbus, i2cexec attach tegrai2c at tegraio with tegra_i2c file arch/arm/nvidia/tegra_i2c.c tegra_i2c # RTC device tegrartc attach tegrartc at tegraio with tegra_rtc file arch/arm/nvidia/tegra_rtc.c tegra_rtc a45 5 # PCIE device tegrapcie: pcibus attach tegrapcie at tegraio with tegra_pcie file arch/arm/nvidia/tegra_pcie.c tegra_pcie a53 19 # Host1x subsystem device tegrahost1x attach tegrahost1x at tegraio with tegra_host1x file arch/arm/nvidia/tegra_host1x.c tegra_host1x # Display controller device tegradc { } attach tegradc at tegraio with tegra_dc file arch/arm/nvidia/tegra_dc.c tegra_dc # Framebuffer console attach genfb at tegradc with tegra_genfb file arch/arm/nvidia/tegra_genfb.c tegra_genfb # HDMI device tegrahdmi: edid, ddc_read_edid, videomode attach tegrahdmi at tegraio with tegra_hdmi file arch/arm/nvidia/tegra_hdmi.c tegra_hdmi a61 3 # CPU parameters defparam opt_tegra.h CPUFREQ_BOOT a64 3 # Board parameters defflag opt_tegra.h BOARD_JETSONTK1 @ 1.2.2.4 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.2.2.3 2015/06/06 14:39:56 skrll Exp $ a113 5 # HDMI CEC device tegracec: hdmicecbus attach tegracec at tegraio with tegra_cec file arch/arm/nvidia/tegra_cec.c tegra_cec d130 1 a130 3 defflag opt_tegra.h TEGRA_UBOOT defflag opt_tegra.h BOARD_JETSONTK1: TEGRA_UBOOT defflag opt_tegra.h BOARD_NYAN_BIG @ 1.2.2.5 log @Sync with HEAD (as of 26th Dec) @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.2.2.4 2015/09/22 12:05:37 skrll Exp $ d21 3 a23 8 device tegrafdt : bus_space_generic, fdtbus attach tegrafdt at mainbus with tegra_fdt file arch/arm/nvidia/tegra_fdt.c tegra_fdt # Interrupt controller device tegralic attach tegralic at fdt with tegra_lic file arch/arm/nvidia/tegra_lic.c tegra_lic d27 1 a27 1 attach tegramc at fdt with tegra_mc d32 1 a32 1 attach tegrapmc at fdt with tegra_pmc a34 5 # eFUSE device tegrafuse attach tegrafuse at fdt with tegra_fuse file arch/arm/nvidia/tegra_fuse.c tegra_fuse d36 3 a38 3 device tegra124car: clk attach tegra124car at fdt with tegra124_car file arch/arm/nvidia/tegra124_car.c tegra124_car d42 1 a42 1 attach tegragpio at fdt with tegra_gpio d47 1 a47 1 attach tegratimer at fdt with tegra_timer d52 1 a52 1 attach tegrampio at fdt with tegra_mpio d57 1 a57 1 attach tegraxusbpad at fdt with tegra_xusbpad d61 1 a61 1 attach com at fdt with tegra_com d66 1 a66 1 attach tegrai2c at fdt with tegra_i2c d71 1 a71 1 attach tegrartc at fdt with tegra_rtc a73 5 # USB PHY device tegrausbphy attach tegrausbphy at fdt with tegra_usbphy file arch/arm/nvidia/tegra_usbphy.c tegra_usbphy d75 1 a75 1 attach ehci at fdt with tegra_ehci d79 1 a79 1 attach sdhc at fdt with tegra_sdhc a81 5 # Thermal throttling controller device tegrasoctherm: sysmon_envsys attach tegrasoctherm at fdt with tegra_soctherm file arch/arm/nvidia/tegra_soctherm.c tegra_soctherm d84 1 a84 1 attach tegrapcie at fdt with tegra_pcie d88 1 a88 1 attach ahcisata at fdt with tegra_ahcisata d92 1 a92 1 attach hdaudio at fdt with tegra_hdaudio d95 19 d116 1 a116 1 attach tegracec at fdt with tegra_cec a118 18 # Display define tegrafbbus { } device tegradrm: drmkms, ddc_read_edid, tegrafbbus attach tegradrm at fdt with tegra_drm file arch/arm/nvidia/tegra_drm.c tegra_drm file arch/arm/nvidia/tegra_drm_mode.c tegra_drm file arch/arm/nvidia/tegra_drm_fb.c tegra_drm file arch/arm/nvidia/tegra_drm_gem.c tegra_drm # Framebuffer console device tegrafb: tegrafbbus, drmfb, wsemuldisplaydev attach tegrafb at tegrafbbus with tegra_fb file arch/arm/nvidia/tegra_fb.c tegra_fb # GPU attach nouveau at fdt with tegra_nouveau file arch/arm/nvidia/tegra_nouveau.c tegra_nouveau d127 3 d133 5 @ 1.2.2.6 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.2.2.5 2015/12/27 12:09:31 skrll Exp $ a92 4 # XUSB (USB 3.0) attach xhci at fdt with tegra_xusb file arch/arm/nvidia/tegra_xusb.c tegra_xusb @ 1.2.2.7 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: files.tegra,v 1.2.2.6 2016/10/05 20:55:25 skrll Exp $ a13 1 file arch/arm/arm32/armv7_generic_dma.c a15 1 file arch/arm/nvidia/tegra_platform.c a17 2 # Tegra T124 (32-bit K1) support a18 3 device tegra124cpu attach tegra124cpu at cpu with tegra124_cpu file arch/arm/nvidia/tegra124_cpu.c tegra124_cpu d20 4 a23 2 # Tegra T210 (X1) support file arch/arm/nvidia/soc_tegra210.c soc_tegra210 d45 1 a45 1 # Clock and Reset controller (T124) a49 5 # Clock and Reset controller (T210) device tegra210car: clk attach tegra210car at fdt with tegra210_car file arch/arm/nvidia/tegra210_car.c tegra210_car a64 5 # APB DMA device tegraapbdma attach tegraapbdma at fdt with tegra_apbdma file arch/arm/nvidia/tegra_apbdma.c tegra_apbdma a68 1 defflag opt_tegra.h TEGRA_XUSBPAD_DEBUG a95 1 defflag opt_tegra.h TEGRA_XUSB_DEBUG d142 8 a151 1 defflag opt_tegra.h SOC_TEGRAX1 a152 1 defflag opt_tegra.h SOC_TEGRA210: SOC_TEGRAX1 @ 1.1 log @NVIDIA Tegra K1 support, work in progress. @ text @d1 1 a1 1 # $NetBSD: files.amlogic,v 1.9 2015/03/22 17:28:22 jmcneill Exp $ d13 2 a16 2 file arch/arm/nvidia/tegra_space.c file arch/arm/arm/bus_space_a4x.S @